Skip to content

Commit 9da3c21

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 <phil@raspberrypi.com>
1 parent 0c20388 commit 9da3c21

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
@@ -2499,12 +2499,18 @@ Params: addr Set the address for the ADT7410, BH1750, BME280,
24992499
sgp30 Select the Sensirion SGP30 VOC sensor.
25002500
Fixed address 0x58.
25012501

2502+
tcs3472 Select the AMS TAOS TCS3472 family of RGBW light
2503+
sensors.
2504+
Valid addresses 0x48-0x4b, default 0x48 XXX
2505+
25022506
tmp102 Select the Texas Instruments TMP102 temp sensor
25032507
Valid addresses 0x48-0x4b, default 0x48
25042508

25052509
tsl4531 Select the AMS TSL4531 digital ambient light
25062510
sensor
25072511

2512+
veml6040 Select the Vishay VEML6040 RGBW light sensor
2513+
25082514
veml6070 Select the Vishay VEML6070 ultraviolet light
25092515
sensor
25102516

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

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,39 @@
581581
};
582582
};
583583

584+
fragment@40 {
585+
target = <&i2cbus>;
586+
__dormant__ {
587+
#address-cells = <1>;
588+
#size-cells = <0>;
589+
status = "okay";
590+
591+
tcs3472: tcs3472@29 {
592+
compatible = "amstaos,tcs3472";
593+
reg = <0x29>;
594+
interrupt-parent = <&gpio>;
595+
interrupts = <4 IRQ_TYPE_EDGE_RISING>;
596+
pinctrl-0 = <&int_pins>;
597+
pinctrl-names = "default";
598+
};
599+
};
600+
};
601+
602+
fragment@41 {
603+
target = <&i2cbus>;
604+
__dormant__ {
605+
#address-cells = <1>;
606+
#size-cells = <0>;
607+
status = "okay";
608+
609+
veml6040: veml6040@10 {
610+
compatible = "vishay,veml6040";
611+
reg = <0x10>;
612+
status = "okay";
613+
};
614+
};
615+
};
616+
584617
fragment@99 {
585618
target = <&gpio>;
586619
__dormant__ {
@@ -631,6 +664,8 @@
631664
hts221 = <0>,"+35+99";
632665
veml6075 = <0>,"+36";
633666
as73211 = <0>,"+38+99";
667+
tcs3472 = <0>,"+40+99";
668+
veml6040 = <0>,"+41";
634669

635670
addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
636671
<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
@@ -647,7 +682,8 @@
647682
<&mpu6050>, "interrupts:0",
648683
<&mpu9250>, "interrupts:0",
649684
<&hts221>, "interrupts:0",
650-
<&as73211>, "interrupts:0";
685+
<&as73211>, "interrupts:0",
686+
<&tcs3472>, "interrupts:0";
651687
no_timeout = <&jc42>, "smbus-timeout-disable?";
652688
reset_pin = <&bno055>,"reset-gpios:4", <0>,"+30";
653689
};

0 commit comments

Comments
 (0)