linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: AM33XX: Add tsl2550 ambient light sensor DT data
@ 2012-09-21 15:49 AnilKumar Ch
  2012-10-18  5:46 ` AnilKumar, Chimata
  0 siblings, 1 reply; 4+ messages in thread
From: AnilKumar Ch @ 2012-09-21 15:49 UTC (permalink / raw)
  To: linux-arm-kernel

Add tsl2550 ambient light sensor DT data to am335x-evm.dts. In AM335x
EVM tsl2550 ambient light sensor is connected to I2C2 bus. So this patch
adds child node inside i2c2 node with i2c slave address.

TAOS tsl2550 sensor with two-wire SMBus serial interface. This patch
also reduces I2C2 clock frequency to 100KHz from 400KHz because the
maximum clock frequency of SMBus is 100KHz.

Signed-off-by: AnilKumar Ch <anilkumar@ti.com>
---
 arch/arm/boot/dts/am335x-evm.dts |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts
index 3b1f313..d99aa0f 100644
--- a/arch/arm/boot/dts/am335x-evm.dts
+++ b/arch/arm/boot/dts/am335x-evm.dts
@@ -49,7 +49,7 @@
 
 		i2c2: i2c at 4802a000 {
 			status = "okay";
-			clock-frequency = <400000>;
+			clock-frequency = <100000>;
 
 			lis331dlh: lis331dlh at 18 {
 				compatible = "st,lis331dlh", "st,lis3lv02d";
@@ -79,6 +79,11 @@
 				st,max-limit-z = <750>;
 			};
 
+			tsl2550: tsl2550 at 39 {
+				compatible = "taos,tsl2550";
+				reg = <0x39>;
+			};
+
 			tmp275: tmp275 at 48 {
 				compatible = "ti,tmp275";
 				reg = <0x48>;
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] ARM: dts: AM33XX: Add tsl2550 ambient light sensor DT data
  2012-09-21 15:49 [PATCH] ARM: dts: AM33XX: Add tsl2550 ambient light sensor DT data AnilKumar Ch
@ 2012-10-18  5:46 ` AnilKumar, Chimata
  2012-10-18  8:08   ` Benoit Cousson
  0 siblings, 1 reply; 4+ messages in thread
From: AnilKumar, Chimata @ 2012-10-18  5:46 UTC (permalink / raw)
  To: linux-arm-kernel

On Fri, Sep 21, 2012 at 21:19:11, AnilKumar, Chimata wrote:
> Add tsl2550 ambient light sensor DT data to am335x-evm.dts. In AM335x
> EVM tsl2550 ambient light sensor is connected to I2C2 bus. So this patch
> adds child node inside i2c2 node with i2c slave address.
> 
> TAOS tsl2550 sensor with two-wire SMBus serial interface. This patch
> also reduces I2C2 clock frequency to 100KHz from 400KHz because the
> maximum clock frequency of SMBus is 100KHz.
> 
> Signed-off-by: AnilKumar Ch <anilkumar@ti.com>
> ---
>  arch/arm/boot/dts/am335x-evm.dts |    7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts
> index 3b1f313..d99aa0f 100644
> --- a/arch/arm/boot/dts/am335x-evm.dts
> +++ b/arch/arm/boot/dts/am335x-evm.dts
> @@ -49,7 +49,7 @@
>  
>  		i2c2: i2c at 4802a000 {
>  			status = "okay";
> -			clock-frequency = <400000>;
> +			clock-frequency = <100000>;
>  
>  			lis331dlh: lis331dlh at 18 {
>  				compatible = "st,lis331dlh", "st,lis3lv02d";
> @@ -79,6 +79,11 @@
>  				st,max-limit-z = <750>;
>  			};
>  
> +			tsl2550: tsl2550 at 39 {
> +				compatible = "taos,tsl2550";
> +				reg = <0x39>;
> +			};
> +
>  			tmp275: tmp275 at 48 {
>  				compatible = "ti,tmp275";
>  				reg = <0x48>;

Hi Tony/Benoit,

If there are no comments in this patch could you please take this in?

Thanks
AnilKumar

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] ARM: dts: AM33XX: Add tsl2550 ambient light sensor DT data
  2012-10-18  5:46 ` AnilKumar, Chimata
@ 2012-10-18  8:08   ` Benoit Cousson
  2012-10-18 11:24     ` AnilKumar, Chimata
  0 siblings, 1 reply; 4+ messages in thread
From: Benoit Cousson @ 2012-10-18  8:08 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Anil,

On 10/18/2012 07:46 AM, AnilKumar, Chimata wrote:
> On Fri, Sep 21, 2012 at 21:19:11, AnilKumar, Chimata wrote:
>> Add tsl2550 ambient light sensor DT data to am335x-evm.dts. In AM335x
>> EVM tsl2550 ambient light sensor is connected to I2C2 bus. So this patch
>> adds child node inside i2c2 node with i2c slave address.
>>
>> TAOS tsl2550 sensor with two-wire SMBus serial interface. This patch
>> also reduces I2C2 clock frequency to 100KHz from 400KHz because the
>> maximum clock frequency of SMBus is 100KHz.
>>
>> Signed-off-by: AnilKumar Ch <anilkumar@ti.com>
>> ---
>>  arch/arm/boot/dts/am335x-evm.dts |    7 ++++++-
>>  1 file changed, 6 insertions(+), 1 deletion(-)
>>
>> diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts
>> index 3b1f313..d99aa0f 100644
>> --- a/arch/arm/boot/dts/am335x-evm.dts
>> +++ b/arch/arm/boot/dts/am335x-evm.dts
>> @@ -49,7 +49,7 @@
>>  
>>  		i2c2: i2c at 4802a000 {
>>  			status = "okay";
>> -			clock-frequency = <400000>;
>> +			clock-frequency = <100000>;
>>  
>>  			lis331dlh: lis331dlh at 18 {
>>  				compatible = "st,lis331dlh", "st,lis3lv02d";
>> @@ -79,6 +79,11 @@
>>  				st,max-limit-z = <750>;
>>  			};
>>  
>> +			tsl2550: tsl2550 at 39 {
>> +				compatible = "taos,tsl2550";
>> +				reg = <0x39>;
>> +			};
>> +
>>  			tmp275: tmp275 at 48 {
>>  				compatible = "ti,tmp275";
>>  				reg = <0x48>;
> 
> Hi Tony/Benoit,
> 
> If there are no comments in this patch could you please take this in?

Have you updated the binding documentation to list the device?

It should be in:
Documentation/devicetree/bindings/i2c/trivial-devices.txt

Please Cc as well the DT ml.

Regards,
Benoit

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] ARM: dts: AM33XX: Add tsl2550 ambient light sensor DT data
  2012-10-18  8:08   ` Benoit Cousson
@ 2012-10-18 11:24     ` AnilKumar, Chimata
  0 siblings, 0 replies; 4+ messages in thread
From: AnilKumar, Chimata @ 2012-10-18 11:24 UTC (permalink / raw)
  To: linux-arm-kernel

+Grant, DTML

On Thu, Oct 18, 2012 at 13:38:30, Cousson, Benoit wrote:
> Hi Anil,
> 
> On 10/18/2012 07:46 AM, AnilKumar, Chimata wrote:
> > On Fri, Sep 21, 2012 at 21:19:11, AnilKumar, Chimata wrote:
> >> Add tsl2550 ambient light sensor DT data to am335x-evm.dts. In AM335x
> >> EVM tsl2550 ambient light sensor is connected to I2C2 bus. So this patch
> >> adds child node inside i2c2 node with i2c slave address.
> >>
> >> TAOS tsl2550 sensor with two-wire SMBus serial interface. This patch
> >> also reduces I2C2 clock frequency to 100KHz from 400KHz because the
> >> maximum clock frequency of SMBus is 100KHz.
> >>
> >> Signed-off-by: AnilKumar Ch <anilkumar@ti.com>
> >> ---
> >>  arch/arm/boot/dts/am335x-evm.dts |    7 ++++++-
> >>  1 file changed, 6 insertions(+), 1 deletion(-)
> >>
> >> diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts
> >> index 3b1f313..d99aa0f 100644
> >> --- a/arch/arm/boot/dts/am335x-evm.dts
> >> +++ b/arch/arm/boot/dts/am335x-evm.dts
> >> @@ -49,7 +49,7 @@
> >>  
> >>  		i2c2: i2c at 4802a000 {
> >>  			status = "okay";
> >> -			clock-frequency = <400000>;
> >> +			clock-frequency = <100000>;
> >>  
> >>  			lis331dlh: lis331dlh at 18 {
> >>  				compatible = "st,lis331dlh", "st,lis3lv02d";
> >> @@ -79,6 +79,11 @@
> >>  				st,max-limit-z = <750>;
> >>  			};
> >>  
> >> +			tsl2550: tsl2550 at 39 {
> >> +				compatible = "taos,tsl2550";
> >> +				reg = <0x39>;
> >> +			};
> >> +
> >>  			tmp275: tmp275 at 48 {
> >>  				compatible = "ti,tmp275";
> >>  				reg = <0x48>;
> > 
> > Hi Tony/Benoit,
> > 
> > If there are no comments in this patch could you please take this in?
> 
> Have you updated the binding documentation to list the device?
> 
> It should be in:
> Documentation/devicetree/bindings/i2c/trivial-devices.txt
> 

No I have not updated, I will send a separate patch by adding all the supported
devices, missed from earlier (this device, tmp275 and lis331dlh)

Thanks
AnilKumar

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-10-18 11:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-21 15:49 [PATCH] ARM: dts: AM33XX: Add tsl2550 ambient light sensor DT data AnilKumar Ch
2012-10-18  5:46 ` AnilKumar, Chimata
2012-10-18  8:08   ` Benoit Cousson
2012-10-18 11:24     ` AnilKumar, Chimata

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).