ARM: dt: tegra: enable als and proximity sensor
authorLaxman Dewangan <ldewangan@nvidia.com>
Mon, 23 Apr 2012 12:11:36 +0000 (17:41 +0530)
committerStephen Warren <swarren@nvidia.com>
Thu, 3 May 2012 20:49:07 +0000 (14:49 -0600)
Add the device info for ALS and proximity sensor for tegra
boards cardhu, ventana and seaboard.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
[swarren: s/PZ02/PZ2/ in .dts files, s/seabridge/seaboard/ in commit
 description]
Signed-off-by: Stephen Warren <swarren@nvidia.com>
arch/arm/boot/dts/tegra-cardhu.dts
arch/arm/boot/dts/tegra-seaboard.dts
arch/arm/boot/dts/tegra-ventana.dts

index 0a9f34a..8c81b44 100644 (file)
 
        i2c@7000c500 {
                clock-frequency = <100000>;
+
+               /* ALS and Proximity sensor */
+               isl29028@44 {
+                       compatible = "isil,isl29028";
+                       reg = <0x44>;
+                       interrupt-parent = <&gpio>;
+                       interrupts = <88 0x04>; /*gpio PL0 */
+               };
        };
 
        i2c@7000c700 {
index ec33116..0f30fc9 100644 (file)
                        micdet-delay = <100>;
                        gpio-cfg = < 0xffffffff 0xffffffff 0 0xffffffff 0xffffffff >;
                };
+
+               /* ALS and proximity sensor */
+               isl29018@44 {
+                       compatible = "isil,isl29018";
+                       reg = <0x44>;
+                       interrupt-parent = <&gpio>;
+                       interrupts = < 202 0x04 >; /* GPIO PZ2 */
+               };
        };
 
        i2c@7000c400 {
index 71eb2e5..4ef84f4 100644 (file)
                        micdet-delay = <100>;
                        gpio-cfg = < 0xffffffff 0xffffffff 0 0xffffffff 0xffffffff >;
                };
+
+               /* ALS and proximity sensor */
+               isl29018@44 {
+                       compatible = "isil,isl29018";
+                       reg = <0x44>;
+                       interrupt-parent = <&gpio>;
+                       interrupts = <202 0x04>; /*gpio PZ2 */
+               };
        };
 
        i2c@7000c400 {