Skip to content

Commit 5040a30

Browse files
ubergesundheitPhil Elwell
authored and
Phil Elwell
committed
Include tsl4531, veml6070 and hdc100x dtoverlay (#2252)
This commit adds the needed kernel config keys and extends the i2c-sensor-overlay.dts file with support for: * the Texas Instruments HDC100x temp sensor * the AMS TSL4531 digital ambient light sensor * the Vishay VEML6070 ultraviolet light sensor
1 parent 8da6d21 commit 5040a30

File tree

4 files changed

+66
-3
lines changed

4 files changed

+66
-3
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,8 +756,8 @@ Name: i2c-sensor
756756
Info: Adds support for a number of I2C barometric pressure and temperature
757757
sensors on i2c_arm
758758
Load: dtoverlay=i2c-sensor,<param>=<val>
759-
Params: addr Set the address for the BME280, BMP280, TMP102
760-
or LM75
759+
Params: addr Set the address for the BME280, BMP280, TMP102,
760+
HDC100X or LM75
761761

762762
bme280 Select the Bosch Sensortronic BME280
763763
Valid addresses 0x76-0x77, default 0x76
@@ -769,6 +769,9 @@ Params: addr Set the address for the BME280, BMP280, TMP102
769769
bmp280 Select the Bosch Sensortronic BMP280
770770
Valid addresses 0x76-0x77, default 0x76
771771

772+
hdc100x Select the Texas Instruments HDC100x temp sensor
773+
Valid addresses 0x40-0x43, default 0x40
774+
772775
htu21 Select the HTU21 temperature and humidity sensor
773776

774777
lm75 Select the Maxim LM75 temperature sensor
@@ -782,6 +785,12 @@ Params: addr Set the address for the BME280, BMP280, TMP102
782785
tmp102 Select the Texas Instruments TMP102 temp sensor
783786
Valid addresses 0x48-0x4b, default 0x48
784787

788+
tsl4531 Select the AMS TSL4531 digital ambient light
789+
sensor
790+
791+
veml6070 Select the Vishay VEML6070 ultraviolet light
792+
sensor
793+
785794

786795
Name: i2c0-bcm2708
787796
Info: Enable the i2c_bcm2708 driver for the i2c0 bus. Not all pin combinations

arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,54 @@
126126
};
127127
};
128128

129+
fragment@8 {
130+
target = <&i2c_arm>;
131+
__dormant__ {
132+
#address-cells = <1>;
133+
#size-cells = <0>;
134+
status = "okay";
135+
136+
hdc100x: hdc100x@40 {
137+
compatible = "hdc100x";
138+
reg = <0x40>;
139+
status = "okay";
140+
};
141+
};
142+
};
143+
144+
fragment@9 {
145+
target = <&i2c_arm>;
146+
__dormant__ {
147+
#address-cells = <1>;
148+
#size-cells = <0>;
149+
status = "okay";
150+
151+
tsl4531: tsl4531@29 {
152+
compatible = "tsl4531";
153+
reg = <0x29>;
154+
status = "okay";
155+
};
156+
};
157+
};
158+
159+
fragment@10 {
160+
target = <&i2c_arm>;
161+
__dormant__ {
162+
#address-cells = <1>;
163+
#size-cells = <0>;
164+
status = "okay";
165+
166+
veml6070: veml6070@38 {
167+
compatible = "veml6070";
168+
reg = <0x38>;
169+
status = "okay";
170+
};
171+
};
172+
};
173+
129174
__overrides__ {
130175
addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
131-
<&lm75>,"reg:0";
176+
<&lm75>,"reg:0",<&hdc100x>,"reg:0";
132177
bme280 = <0>,"+0";
133178
bmp085 = <0>,"+1";
134179
bmp180 = <0>,"+2";
@@ -138,5 +183,8 @@
138183
lm75addr = <&lm75>,"reg:0";
139184
si7020 = <0>,"+6";
140185
tmp102 = <0>,"+7";
186+
hdc100x = <0>,"+8";
187+
tsl4531 = <0>,"+9";
188+
veml6070 = <0>,"+10";
141189
};
142190
};

arch/arm/configs/bcm2709_defconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,8 +1184,11 @@ CONFIG_IIO_BUFFER_CB=m
11841184
CONFIG_MCP320X=m
11851185
CONFIG_MCP3422=m
11861186
CONFIG_DHT11=m
1187+
CONFIG_HDC100X=m
11871188
CONFIG_HTU21=m
11881189
CONFIG_INV_MPU6050_I2C=m
1190+
CONFIG_TSL4531=m
1191+
CONFIG_VEML6070=m
11891192
CONFIG_BMP280=m
11901193
CONFIG_PWM_BCM2835=m
11911194
CONFIG_PWM_PCA9685=m

arch/arm/configs/bcmrpi_defconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,8 +1190,11 @@ CONFIG_IIO_BUFFER_CB=m
11901190
CONFIG_MCP320X=m
11911191
CONFIG_MCP3422=m
11921192
CONFIG_DHT11=m
1193+
CONFIG_HDC100X=m
11931194
CONFIG_HTU21=m
11941195
CONFIG_INV_MPU6050_I2C=m
1196+
CONFIG_TSL4531=m
1197+
CONFIG_VEML6070=m
11951198
CONFIG_BMP280=m
11961199
CONFIG_PWM_BCM2835=m
11971200
CONFIG_PWM_PCA9685=m

0 commit comments

Comments
 (0)