Skip to content

Commit

Permalink
overlays: Add TCS3472 and VEML6040 support
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
pelwell committed Oct 29, 2024
1 parent 0988ecd commit 33c5355
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
6 changes: 6 additions & 0 deletions arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -2499,12 +2499,18 @@ Params: addr Set the address for the ADT7410, BH1750, BME280,
sgp30 Select the Sensirion SGP30 VOC sensor.
Fixed address 0x58.

tcs3472 Select the AMS TAOS TCS3472 family of RGBW light
sensors.
Valid addresses 0x48-0x4b, default 0x48 XXX

tmp102 Select the Texas Instruments TMP102 temp sensor
Valid addresses 0x48-0x4b, default 0x48

tsl4531 Select the AMS TSL4531 digital ambient light
sensor

veml6040 Select the Vishay VEML6040 RGBW light sensor

veml6070 Select the Vishay VEML6070 ultraviolet light
sensor

Expand Down
38 changes: 37 additions & 1 deletion arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,39 @@
};
};

fragment@40 {
target = <&i2cbus>;
__dormant__ {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

tcs3472: tcs3472@29 {
compatible = "amstaos,tcs3472";
reg = <0x29>;
interrupt-parent = <&gpio>;
interrupts = <4 IRQ_TYPE_EDGE_RISING>;
pinctrl-0 = <&int_pins>;
pinctrl-names = "default";
};
};
};

fragment@41 {
target = <&i2cbus>;
__dormant__ {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

veml6040: veml6040@10 {
compatible = "vishay,veml6040";
reg = <0x10>;
status = "okay";
};
};
};

fragment@99 {
target = <&gpio>;
__dormant__ {
Expand Down Expand Up @@ -630,6 +663,8 @@
hts221 = <0>,"+35+99";
veml6075 = <0>,"+36";
as73211 = <0>,"+38+99";
tcs3472 = <0>,"+40+99";
veml6040 = <0>,"+41";

addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
Expand All @@ -646,7 +681,8 @@
<&mpu6050>, "interrupts:0",
<&mpu9250>, "interrupts:0",
<&hts221>, "interrupts:0",
<&as73211>, "interrupts:0";
<&as73211>, "interrupts:0",
<&tcs3472>, "interrupts:0";
no_timeout = <&jc42>, "smbus-timeout-disable?";
reset_pin = <&bno055>,"reset-gpios:4", <0>,"+30";
};
Expand Down

0 comments on commit 33c5355

Please sign in to comment.