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 0a9f34a2c3aae9e09cf7a3e939ec5737e030be0b..8c81b4471261e07341d6c8dc5f8169b553f32cac 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 ec33116f5df92a5ef2d0dda633b29d3e7218943f..0f30fc9f200557b4ebcdde532e55d00bccbc8b5b 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 71eb2e50a66824b4f8a441c547238132ea154e02..4ef84f43d788695d4cca817435c22b16926a559c 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 {