Skip to content

Commit 29c71ae

Browse files
committed
overlays: Add TCS3472 and VEML6040 support
Extend the i2c-sensor overlay with support for the VEML6040 and TCS3472 family of light sensors. Link: #6446 Signed-off-by: Phil Elwell <[email protected]>
1 parent 35af55d commit 29c71ae

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

arch/arm/boot/dts/overlays/README

+6
Original file line numberDiff line numberDiff line change
@@ -2515,12 +2515,18 @@ Params: addr Set the address for the ADT7410, BH1750, BME280,
25152515
sgp30 Select the Sensirion SGP30 VOC sensor.
25162516
Fixed address 0x58.
25172517

2518+
tcs3472 Select the AMS TAOS TCS3472 family of RGBW light
2519+
sensors.
2520+
Valid addresses 0x48-0x4b, default 0x48 XXX
2521+
25182522
tmp102 Select the Texas Instruments TMP102 temp sensor
25192523
Valid addresses 0x48-0x4b, default 0x48
25202524

25212525
tsl4531 Select the AMS TSL4531 digital ambient light
25222526
sensor
25232527

2528+
veml6040 Select the Vishay VEML6040 RGBW light sensor
2529+
25242530
veml6070 Select the Vishay VEML6070 ultraviolet light
25252531
sensor
25262532

arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi

+37-1
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,39 @@
613613
};
614614
};
615615

616+
fragment@40 {
617+
target = <&i2cbus>;
618+
__dormant__ {
619+
#address-cells = <1>;
620+
#size-cells = <0>;
621+
status = "okay";
622+
623+
tcs3472: tcs3472@29 {
624+
compatible = "amstaos,tcs3472";
625+
reg = <0x29>;
626+
interrupt-parent = <&gpio>;
627+
interrupts = <4 IRQ_TYPE_EDGE_RISING>;
628+
pinctrl-0 = <&int_pins>;
629+
pinctrl-names = "default";
630+
};
631+
};
632+
};
633+
634+
fragment@41 {
635+
target = <&i2cbus>;
636+
__dormant__ {
637+
#address-cells = <1>;
638+
#size-cells = <0>;
639+
status = "okay";
640+
641+
veml6040: veml6040@10 {
642+
compatible = "vishay,veml6040";
643+
reg = <0x10>;
644+
status = "okay";
645+
};
646+
};
647+
};
648+
616649
fragment@99 {
617650
target = <&gpio>;
618651
__dormant__ {
@@ -665,6 +698,8 @@
665698
hts221 = <0>,"+37+99";
666699
veml6075 = <0>,"+38";
667700
as73211 = <0>,"+39+99";
701+
tcs3472 = <0>,"+40+99";
702+
veml6040 = <0>,"+41";
668703

669704
addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
670705
<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
@@ -681,7 +716,8 @@
681716
<&mpu6050>, "interrupts:0",
682717
<&mpu9250>, "interrupts:0",
683718
<&hts221>, "interrupts:0",
684-
<&as73211>, "interrupts:0";
719+
<&as73211>, "interrupts:0",
720+
<&tcs3472>, "interrupts:0";
685721
no_timeout = <&jc42>, "smbus-timeout-disable?";
686722
reset_pin = <&bno055>,"reset-gpios:4", <0>,"+30";
687723
shunt_resistor = <&ina238>,"shunt-resistor:0";

0 commit comments

Comments
 (0)