Skip to content

Add TCS3472 and VEML6040 sensor support (and a few others) #6448

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -2567,12 +2567,18 @@ Params: addr Set the address for the ADT7410, AS73211,
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

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 @@ -680,6 +680,39 @@
};
};

fragment@44 {
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@45 {
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 @@ -736,6 +769,8 @@
as7331 = <0>,"+41+99";
adxl345 = <0>,"+42+99";
aht20 = <0>,"+43";
tcs3472 = <0>,"+44+99";
veml6040 = <0>,"+45";

addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
Expand All @@ -757,7 +792,8 @@
<&hdc3020>, "interrupts:0",
<&as73211>, "interrupts:0",
<&as7331>, "interrupts:0",
<&adxl345>, "interrupts:0";
<&adxl345>, "interrupts:0",
<&tcs3472>, "interrupts:0";
no_timeout = <&jc42>, "smbus-timeout-disable?";
reset_pin = <&bno055>,"reset-gpios:4", <0>,"+30";
shunt_resistor = <&ina238>,"shunt-resistor:0";
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/configs/bcm2709_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1437,7 +1437,9 @@ CONFIG_INV_MPU6050_I2C=m
CONFIG_APDS9960=m
CONFIG_AS73211=m
CONFIG_BH1750=m
CONFIG_TCS3472=m
CONFIG_TSL4531=m
CONFIG_VEML6040=m
CONFIG_VEML6070=m
CONFIG_VEML6075=m
CONFIG_IIO_HRTIMER_TRIGGER=m
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/configs/bcm2711_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1471,7 +1471,9 @@ CONFIG_INV_MPU6050_I2C=m
CONFIG_APDS9960=m
CONFIG_AS73211=m
CONFIG_BH1750=m
CONFIG_TCS3472=m
CONFIG_TSL4531=m
CONFIG_VEML6040=m
CONFIG_VEML6070=m
CONFIG_VEML6075=m
CONFIG_IIO_HRTIMER_TRIGGER=m
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/configs/bcmrpi_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1429,7 +1429,9 @@ CONFIG_INV_MPU6050_I2C=m
CONFIG_APDS9960=m
CONFIG_AS73211=m
CONFIG_BH1750=m
CONFIG_TCS3472=m
CONFIG_TSL4531=m
CONFIG_VEML6040=m
CONFIG_VEML6070=m
CONFIG_VEML6075=m
CONFIG_IIO_HRTIMER_TRIGGER=m
Expand Down
2 changes: 2 additions & 0 deletions arch/arm64/configs/bcm2711_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1534,7 +1534,9 @@ CONFIG_INV_MPU6050_I2C=m
CONFIG_APDS9960=m
CONFIG_AS73211=m
CONFIG_BH1750=m
CONFIG_TCS3472=m
CONFIG_TSL4531=m
CONFIG_VEML6040=m
CONFIG_VEML6070=m
CONFIG_VEML6075=m
CONFIG_IIO_HRTIMER_TRIGGER=m
Expand Down
2 changes: 2 additions & 0 deletions arch/arm64/configs/bcm2711_rt_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1533,7 +1533,9 @@ CONFIG_INV_MPU6050_I2C=m
CONFIG_APDS9960=m
CONFIG_AS73211=m
CONFIG_BH1750=m
CONFIG_TCS3472=m
CONFIG_TSL4531=m
CONFIG_VEML6040=m
CONFIG_VEML6070=m
CONFIG_VEML6075=m
CONFIG_IIO_HRTIMER_TRIGGER=m
Expand Down
2 changes: 2 additions & 0 deletions arch/arm64/configs/bcm2712_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1536,7 +1536,9 @@ CONFIG_INV_MPU6050_I2C=m
CONFIG_APDS9960=m
CONFIG_AS73211=m
CONFIG_BH1750=m
CONFIG_TCS3472=m
CONFIG_TSL4531=m
CONFIG_VEML6040=m
CONFIG_VEML6070=m

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think CONFIG_VEML6040=m needs to be added to the defconfigs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed - it's been missing from the start, but not tested. It's there now, and there will be another test build in about 40 minutes.

CONFIG_VEML6075=m
CONFIG_IIO_HRTIMER_TRIGGER=m
Expand Down
Loading