ARM: dts: AM33XX: Add tsl2550 ambient light sensor DT data
PATCH 1/1 ARM: dts: AM33XX: Add tsl2550 ambient light sensor DT data
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.
--- arch/arm/boot/dts/am335x-evm.dts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
arch/arm/boot/dts/am335x-evm.dts +6 -1
@@ -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>;
Signature · 1 line
1.7.9.5
PATCH 1/1 ARM: dts: AM33XX: Add tsl2550 ambient light sensor DT data
Quoted 28 lines · Chimata
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 <[email protected]>--- arch/arm/boot/dts/am335x-evm.dts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)arch/arm/boot/dts/am335x-evm.dts +1
-1@@ -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>;
arch/arm/boot/dts/am335x-evm.dts line 89
Quoted 10 lines
arch/arm/boot/dts/am335x-evm.dts +5
-0}; + 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
PATCH 1/1 ARM: dts: AM33XX: Add tsl2550 ambient light sensor DT data
Hi Anil,
Quoted 42 lines · Chimata
Quoted 28 lines · Chimata
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 <[email protected]>--- arch/arm/boot/dts/am335x-evm.dts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)arch/arm/boot/dts/am335x-evm.dts +1
-1@@ -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>;arch/arm/boot/dts/am335x-evm.dts line 89
Quoted 10 lines
arch/arm/boot/dts/am335x-evm.dts +5
-0}; + tsl2550: tsl2550 at 39 { + compatible = "taos,tsl2550"; + reg = <0x39>; + }; + tmp275: tmp275 at 48 { compatible = "ti,tmp275"; reg = <0x48>;Hi Tony/Benoit,
Quoted 1 line
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
PATCH 1/1 ARM: dts: AM33XX: Add tsl2550 ambient light sensor DT data
+Grant, DTML
Quoted 45 lines · Benoit
Hi Anil,
Quoted 42 lines · Chimata
Quoted 28 lines · Chimata
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 <[email protected]>--- arch/arm/boot/dts/am335x-evm.dts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)arch/arm/boot/dts/am335x-evm.dts +1
-1@@ -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>;arch/arm/boot/dts/am335x-evm.dts line 89
Quoted 10 lines
arch/arm/boot/dts/am335x-evm.dts +5
-0}; + tsl2550: tsl2550 at 39 { + compatible = "taos,tsl2550"; + reg = <0x39>; + }; + tmp275: tmp275 at 48 { compatible = "ti,tmp275"; reg = <0x48>;Hi Tony/Benoit,
Quoted 7 lines
Quoted 1 line
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