Subject: Re: hardware monitors on newer iBooks/PowerBooks
To: netbsd-macppc <port-macppc@NetBSD.org>
From: Antoine Reilles <Antoine.Reilles@loria.fr>
List: port-macppc
Date: 10/12/2005 11:17:35
--3V7upXqbjpZ4EhLz
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Sat, Oct 08, 2005 at 10:20:36AM -0400, Michael wrote:
> > For this one, aain, replacing ki2c by i2c:
> > name codec
> > device_type codec
> > compatible tas3004
> > codec
>=20
> Ok, that's the same as in my iBook, but there it's called 'deq' so
> that's why it doesn't attach. More code to change.
> One last thing - what's the 'compatible' property of mac-io/i2s ? The
> current driver only knows about 'snapper', maybe they're similar enough.
> At least both use the same codec/mixer/equalizer chip ( Texas
> Instruments TAS3004 )
What i have for i2s is:
0 > dev mac-io ok
0 > ls=20
ff980d98: /interrupt-controller@40000
ff981010: /gpio@50 =20
ff9815d0: /modem-reset@1d
ff981728: /modem-power@1c
ff981880: /accelerometer-1@13
ff981a40: /accelerometer-2@14
ff981c00: /headphone-mute@1f
ff981d58: /amp-mute@20
ff981ea8: /hw-reset@25
ff981ff8: /linein-detect@c
ff9821b8: /headphone-detect@17
ff982388: /extint-gpio1@9
ff982568: /programmer-switch@11
ff982700: /cpu-vcore-select@6b
ff982840: /gpio4@1e
ff982d90: /escc-legacy@12000
ff982fb8: /ch-a@12004
ff983168: /ch-b@12000
ff983318: /escc@13000
ff983550: /ch-a@13020
ff984160: /ch-b@13000
ff984cc8: /i2s@0=20
ff984ec0: /i2s-a@10000
ff985080: /sound
ffa04d80: /i2s-b@11000
ff985208: /timer@15000
ff9853b0: /via-pmu@16000
ff9855d0: /battery@0,0
ff988e08: /pmu-i2c
ff989df8: /rtc
ff98a4c8: /adb
ff98a660: /keyboard@2
ff98b550: /mouse@3
ff98b8d0: /eject-key
ff98ba78: /power-mgt
ffa05668: /usb-power-mgt
ff98bd28: /battery@0
ff98bfc0: /backlight@f300
ff98c100: /i2c@18000
ff98ccd8: /i2c-bus@0
ff98cea0: /codec@6a =20
ff98cfd8: /ata-3@20000
ff98fcf8: /disk
[maybe the superfluous information could be interesting: i don't have the
cpu-frequency stuff, and it looks like i can't boot the kernel with the
frequency scaling patch, it alfays fails with a "decrementer exception", or=
an
invalid memory access]
so for i2s:
0 > dev mac-io/i2s ok
0 > .properties=20
name i2s
device_type i2s
built-in =20
reg 00000000 00005000=20
00000000 00000a00=20
ranges =20
#address-cells 00000001=20
AAPL,address 80010000=20
ok
=20
not very interesting, but i have these i2s-a and i2s-b:
0 > dev mac-io/i2s/i2s-a ok
0 > .properties=20
name i2s-a
device_type soundbus
compatible i2sbus
built-in =20
reg 00010000 00001000=20
00008000 00000100=20
00008100 00000100=20
interrupts 0000001e 00000001 00000001 00000000 00000002 000000=
00=20
interrupt-parent /pci@f2000000/mac-io@17/interrupt-controller@40000
platform-headphone-mute /pci@f2000000/mac-io@17/gpio@50/headphone-mute@1f
platform-amp-mute /pci@f2000000/mac-io@17/gpio@50/amp-mute@20
platform-hw-reset /pci@f2000000/mac-io@17/gpio@50/hw-reset@25
platform-linein-detect /pci@f2000000/mac-io@17/gpio@50/linein-detect@c
platform-headphone-detect /pci@f2000000/mac-io@17/gpio@50/headphone-detect@=
17
platform-get-enable /pci@f2000000/mac-io@17
platform-enable /pci@f2000000/mac-io@17
platform-disable /pci@f2000000/mac-io@17
platform-get-clock-enable /pci@f2000000/mac-io@17
platform-clock-enable /pci@f2000000/mac-io@17
platform-clock-disable /pci@f2000000/mac-io@17
platform-get-sw-reset /pci@f2000000/mac-io@17
platform-clear-sw-reset /pci@f2000000/mac-io@17
platform-sw-reset /pci@f2000000/mac-io@17
platform-get-cell-enable/pci@f2000000/mac-io@17
platform-cell-enable /pci@f2000000/mac-io@17
platform-cell-disable /pci@f2000000/mac-io@17
ok
and the sound:
0 > dev mac-io/i2s/i2s-a/sound ok
0 > .properties=20
name sound
device_type soundchip
compatible AOAbase
built-in =20
layout-id 00000048=20
object-model-version 00000002=20
vendor-id 0000106b=20
platform-tas-codec-ref /pci@f2000000/mac-io@17/i2c@18000/i2c-bus@0/codec@6a
ok
and the i2s-b:
0 > dev mac-io/i2s/i2s-b ok
0 > .properties=20
name i2s-b
device_type i2s-b
compatible i2s-modem
built-in =20
reg 00011000 00001000=20
00008200 00000100=20
00008300 00000100=20
interrupts 0000001f 00000001 00000003 00000000 00000004 000000=
00=20
interrupt-parent /pci@f2000000/mac-io@17/interrupt-controller@40000
sw-reset-enable 00000000=20
ok
This one is probably the internal modem
I hope this information can help, it would be great to get the sound workin=
g on
this machine.
Do not hesitate if you want more information from openfirmware, or want me =
to
test patches.
Best regards,
antoine
--3V7upXqbjpZ4EhLz
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (NetBSD)
iD8DBQFDTNSv4VqmoGDE/mwRAo6iAJ9fprZPHfVSbLz5dUeBJh14p2v3NgCgiHHY
UI/QbmqmEGi/dstA5lLgVK0=
=ONm3
-----END PGP SIGNATURE-----
--3V7upXqbjpZ4EhLz--