Skip to content

Commit 5386dd4

Browse files
pelwellpopcornmix
authored andcommitted
overlays: Support VEML6030 in i2c-sensor overlay
Add a veml6030 parameter to the i2c-sensor overlay. Signed-off-by: Phil Elwell <[email protected]>
1 parent 6372fe8 commit 5386dd4

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2426,7 +2426,7 @@ Params: addr Set the address for the ADS7828, ADS7830,
24262426
BME680, BMP280, BMP380, BMP58x, CCS811, DS1621,
24272427
HDC100X, HDC3020, JC42, LM75, MCP980x,
24282428
MPU6050, MPU9250, MS5637, MS5803, MS5805,
2429-
MS5837, MS8607, SHT3x or TMP102
2429+
MS5837, MS8607, SHT3x, TMP102 or VEML6030.
24302430

24312431
i2c-bus Supports all the standard I2C bus selection
24322432
parameters - see "dtoverlay -h i2c-bus"
@@ -2606,6 +2606,8 @@ Params: addr Set the address for the ADS7828, ADS7830,
26062606
tsl4531 Select the AMS TSL4531 digital ambient light
26072607
sensor
26082608

2609+
veml6030 Select the Vishay VEML6030 ambient light sensor
2610+
26092611
veml6040 Select the Vishay VEML6040 RGBW light sensor
26102612

26112613
veml6070 Select the Vishay VEML6070 ultraviolet light

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

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,24 @@
771771
};
772772
};
773773

774+
fragment@50 {
775+
target = <&i2cbus>;
776+
__dormant__ {
777+
#address-cells = <1>;
778+
#size-cells = <0>;
779+
status = "okay";
780+
781+
veml6030: veml6030@48 {
782+
compatible = "vishay,veml6030";
783+
reg = <0x48>;
784+
interrupt-parent = <&gpio>;
785+
interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
786+
pinctrl-0 = <&int_pins>;
787+
pinctrl-names = "default";
788+
};
789+
};
790+
};
791+
774792
fragment@99 {
775793
target = <&gpio>;
776794
__dormant__ {
@@ -833,6 +851,7 @@
833851
ads7830 = <0>,"+47";
834852
adxl355 = <0>,"+48";
835853
bmp58x = <0>,"+49";
854+
veml6030 = <0>,"+50+99";
836855

837856
addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
838857
<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
@@ -846,7 +865,8 @@
846865
<&hdc3020>,"reg:0", <&as73211>,"reg:0",
847866
<&as7331>,"reg:0", <&adxl345>,"reg:0",
848867
<&ads7828>,"reg:0", <&ads7830>,"reg:0",
849-
<&adxl355>,"reg:0", <&bmp58x>,"reg:0";
868+
<&adxl355>,"reg:0", <&bmp58x>,"reg:0",
869+
<&veml6030>,"reg:0";
850870
int_pin = <&int_pins>, "brcm,pins:0",
851871
<&int_pins>, "reg:0",
852872
<&max30102>, "interrupts:0",
@@ -857,7 +877,8 @@
857877
<&as73211>, "interrupts:0",
858878
<&as7331>, "interrupts:0",
859879
<&adxl345>, "interrupts:0",
860-
<&tcs3472>, "interrupts:0";
880+
<&tcs3472>, "interrupts:0",
881+
<&veml6030>, "interrupts:0";
861882
label = <&ads7828>, "label",
862883
<&ads7830>, "label";
863884
no_timeout = <&jc42>, "smbus-timeout-disable?";

0 commit comments

Comments
 (0)