Message ID | 1335183097-21104-5-git-send-email-ldewangan@nvidia.com |
---|---|
State | Accepted, archived |
Headers | show |
On 04/23/2012 06:11 AM, Laxman Dewangan wrote: > Add the device info for ALS and proximity sensor for tegra > boards cardhu, ventana and seabridge. > > Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Thanks, applied. I made the following minor changes: s/PZ02/PZ2/ in .dts files, s/seabridge/seaboard/ in commit description I note that the proximity detection doesn't appear to work on my Cardhu, although the light sensor works. Is that expected? Both work on Seaboard and Ventana. -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Monday 23 April 2012 10:45 PM, Stephen Warren wrote: > On 04/23/2012 06:11 AM, Laxman Dewangan wrote: >> Add the device info for ALS and proximity sensor for tegra >> boards cardhu, ventana and seabridge. >> >> Signed-off-by: Laxman Dewangan<ldewangan@nvidia.com> > Thanks, applied. > > I made the following minor changes: s/PZ02/PZ2/ in .dts files, > s/seabridge/seaboard/ in commit description > > I note that the proximity detection doesn't appear to work on my Cardhu, > although the light sensor works. Is that expected? Both work on Seaboard > and Ventana. Yes, there is problem in cardhu about component mounting for ir led. This is fixed on other version of reference board. So on cardhu, proximity sensing always return 0xFF. -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/arch/arm/boot/dts/tegra-cardhu.dts b/arch/arm/boot/dts/tegra-cardhu.dts index ab8d901..facb950 100644 --- a/arch/arm/boot/dts/tegra-cardhu.dts +++ b/arch/arm/boot/dts/tegra-cardhu.dts @@ -93,6 +93,14 @@ 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 { diff --git a/arch/arm/boot/dts/tegra-seaboard.dts b/arch/arm/boot/dts/tegra-seaboard.dts index ed0a2f5..a114183 100644 --- a/arch/arm/boot/dts/tegra-seaboard.dts +++ b/arch/arm/boot/dts/tegra-seaboard.dts @@ -270,6 +270,14 @@ 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 PZ02 */ + }; }; i2c@7000c400 { diff --git a/arch/arm/boot/dts/tegra-ventana.dts b/arch/arm/boot/dts/tegra-ventana.dts index bd074cf..6ea41df 100644 --- a/arch/arm/boot/dts/tegra-ventana.dts +++ b/arch/arm/boot/dts/tegra-ventana.dts @@ -256,6 +256,14 @@ 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 PZ02 */ + }; }; i2c@7000c400 {
Add the device info for ALS and proximity sensor for tegra boards cardhu, ventana and seabridge. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> --- Changes from V1: - remove labels. - added interrupt numbers. arch/arm/boot/dts/tegra-cardhu.dts | 8 ++++++++ arch/arm/boot/dts/tegra-seaboard.dts | 8 ++++++++ arch/arm/boot/dts/tegra-ventana.dts | 8 ++++++++ 3 files changed, 24 insertions(+), 0 deletions(-)