Re: New I2C and machine probing method
Brought to you by:
matthiasgrimm
From: Johannes B. <joh...@si...> - 2006-07-16 20:39:18
|
> 2. detecting the LMU I2C address > The program looked for the "lmu-controller" in the device tree and > read the attached data to find out the I2C address. > This test will only have a result, if you have a PowerBook with an > ambient light sensor. Otherwise the program won't find an LMU. > If your machine definitely has an ambient light sensor and the program > won't find it, the device tree path might be wrong. In this case please > send me the correct path or an tar archive of /proc/device-tree. I haven't tested it, but a quick look at the code suggests it won't find it here: johannes:/proc/device-tree/uni-n@f8000000/i2c@f8001000/i2c-bus@0/lmu-micro@84$ hd compatible 00000000 6c 6d 75 2d 63 6f 6e 74 72 6f 6c 6c 65 72 00 |lmu-controller.| 0000000f ...$ hd device_type 00000000 6c 6d 75 2d 63 6f 6e 74 72 6f 6c 6c 65 72 00 |lmu-controller.| johannes |