Skip to content

Commit c502129

Browse files
pelwellpopcornmix
authored andcommitted
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 <phil@raspberrypi.com>
1 parent 6620c00 commit c502129

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2567,12 +2567,18 @@ Params: addr Set the address for the ADT7410, AS73211,
25672567
sgp30 Select the Sensirion SGP30 VOC sensor.
25682568
Fixed address 0x58.
25692569

2570+
tcs3472 Select the AMS TAOS TCS3472 family of RGBW light
2571+
sensors.
2572+
Valid addresses 0x48-0x4b, default 0x48
2573+
25702574
tmp102 Select the Texas Instruments TMP102 temp sensor
25712575
Valid addresses 0x48-0x4b, default 0x48
25722576

25732577
tsl4531 Select the AMS TSL4531 digital ambient light
25742578
sensor
25752579

2580+
veml6040 Select the Vishay VEML6040 RGBW light sensor
2581+
25762582
veml6070 Select the Vishay VEML6070 ultraviolet light
25772583
sensor
25782584

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

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,39 @@
680680
};
681681
};
682682

683+
fragment@44 {
684+
target = <&i2cbus>;
685+
__dormant__ {
686+
#address-cells = <1>;
687+
#size-cells = <0>;
688+
status = "okay";
689+
690+
tcs3472: tcs3472@29 {
691+
compatible = "amstaos,tcs3472";
692+
reg = <0x29>;
693+
interrupt-parent = <&gpio>;
694+
interrupts = <4 IRQ_TYPE_EDGE_RISING>;
695+
pinctrl-0 = <&int_pins>;
696+
pinctrl-names = "default";
697+
};
698+
};
699+
};
700+
701+
fragment@45 {
702+
target = <&i2cbus>;
703+
__dormant__ {
704+
#address-cells = <1>;
705+
#size-cells = <0>;
706+
status = "okay";
707+
708+
veml6040: veml6040@10 {
709+
compatible = "vishay,veml6040";
710+
reg = <0x10>;
711+
status = "okay";
712+
};
713+
};
714+
};
715+
683716
fragment@99 {
684717
target = <&gpio>;
685718
__dormant__ {
@@ -736,6 +769,8 @@
736769
as7331 = <0>,"+41+99";
737770
adxl345 = <0>,"+42+99";
738771
aht20 = <0>,"+43";
772+
tcs3472 = <0>,"+44+99";
773+
veml6040 = <0>,"+45";
739774

740775
addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
741776
<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
@@ -757,7 +792,8 @@
757792
<&hdc3020>, "interrupts:0",
758793
<&as73211>, "interrupts:0",
759794
<&as7331>, "interrupts:0",
760-
<&adxl345>, "interrupts:0";
795+
<&adxl345>, "interrupts:0",
796+
<&tcs3472>, "interrupts:0";
761797
no_timeout = <&jc42>, "smbus-timeout-disable?";
762798
reset_pin = <&bno055>,"reset-gpios:4", <0>,"+30";
763799
shunt_resistor = <&ina238>,"shunt-resistor:0";

0 commit comments

Comments
 (0)