Skip to content

Commit e2fcd8f

Browse files
pelwellpopcornmix
authored andcommitted
overlays: i2c-sensor: Add veml6035/7700/3235
Add more Vishay ambient light sensors. Signed-off-by: Phil Elwell <[email protected]>
1 parent 5386dd4 commit e2fcd8f

File tree

2 files changed

+59
-3
lines changed

2 files changed

+59
-3
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2512,8 +2512,8 @@ Params: addr Set the address for the ADS7828, ADS7830,
25122512
ti,shunt-gain for configuration
25132513

25142514
int_pin Set the GPIO to use for interrupts (as73211,
2515-
as7331, hdc3020, hts221, max30102, mpu6050 and
2516-
mpu9250 only)
2515+
as7331, hdc3020, hts221, max30102, mpu6050,
2516+
mpu9250, veml6030, veml6035 only)
25172517

25182518
jc42 Select any of the many JEDEC JC42.4-compliant
25192519
temperature sensors, including:
@@ -2606,8 +2606,14 @@ Params: addr Set the address for the ADS7828, ADS7830,
26062606
tsl4531 Select the AMS TSL4531 digital ambient light
26072607
sensor
26082608

2609+
veml3235 Select the Vishay VEML3235 ambient light sensor
2610+
26092611
veml6030 Select the Vishay VEML6030 ambient light sensor
26102612

2613+
veml6035 Select the Vishay VEML6035 ambient light sensor
2614+
2615+
veml7700 Select the Vishay VEML7700 ambient light sensor
2616+
26112617
veml6040 Select the Vishay VEML6040 RGBW light sensor
26122618

26132619
veml6070 Select the Vishay VEML6070 ultraviolet light

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

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,52 @@
789789
};
790790
};
791791

792+
fragment@51 {
793+
target = <&i2cbus>;
794+
__dormant__ {
795+
#address-cells = <1>;
796+
#size-cells = <0>;
797+
status = "okay";
798+
799+
veml6035: veml6035@29 {
800+
compatible = "vishay,veml6035";
801+
reg = <0x29>;
802+
interrupt-parent = <&gpio>;
803+
interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
804+
pinctrl-0 = <&int_pins>;
805+
pinctrl-names = "default";
806+
};
807+
};
808+
};
809+
810+
fragment@52 {
811+
target = <&i2cbus>;
812+
__dormant__ {
813+
#address-cells = <1>;
814+
#size-cells = <0>;
815+
status = "okay";
816+
817+
veml7700: veml7700@10 {
818+
compatible = "vishay,veml7700";
819+
reg = <0x10>;
820+
};
821+
};
822+
};
823+
824+
fragment@53 {
825+
target = <&i2cbus>;
826+
__dormant__ {
827+
#address-cells = <1>;
828+
#size-cells = <0>;
829+
status = "okay";
830+
831+
veml3235: veml3235@10 {
832+
compatible = "vishay,veml3025";
833+
reg = <0x10>;
834+
};
835+
};
836+
};
837+
792838
fragment@99 {
793839
target = <&gpio>;
794840
__dormant__ {
@@ -852,6 +898,9 @@
852898
adxl355 = <0>,"+48";
853899
bmp58x = <0>,"+49";
854900
veml6030 = <0>,"+50+99";
901+
veml6035 = <0>,"+51+99";
902+
veml7700 = <0>,"+52";
903+
veml3235 = <0>,"+53";
855904

856905
addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
857906
<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
@@ -878,7 +927,8 @@
878927
<&as7331>, "interrupts:0",
879928
<&adxl345>, "interrupts:0",
880929
<&tcs3472>, "interrupts:0",
881-
<&veml6030>, "interrupts:0";
930+
<&veml6030>, "interrupts:0",
931+
<&veml6035>, "interrupts:0";
882932
label = <&ads7828>, "label",
883933
<&ads7830>, "label";
884934
no_timeout = <&jc42>, "smbus-timeout-disable?";

0 commit comments

Comments
 (0)