Skip to content
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
23 changes: 17 additions & 6 deletions arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -2325,10 +2325,11 @@ Name: i2c-sensor
Info: Adds support for a number of I2C barometric pressure, temperature,
light level and chemical sensors on i2c_arm
Load: dtoverlay=i2c-sensor,<param>=<val>
Params: addr Set the address for the ADT7410, BH1750, BME280,
BME680, BMP280, BMP380, CCS811, DS1621, HDC100X,
JC42, LM75, MCP980x, MPU6050, MPU9250, MS5637,
MS5803, MS5805, MS5837, MS8607, SHT3x or TMP102
Params: addr Set the address for the ADT7410, AS73211,
AS7331, BH1750, BME280, BME680, BMP280, BMP380,
CCS811, DS1621, HDC100X, HDC3020, JC42, LM75,
MCP980x, MPU6050, MPU9250, MS5637, MS5803,
MS5805, MS5837, MS8607, SHT3x or TMP102

adt7410 Select the Analog Devices ADT7410 and ADT7420
temperature sensors
Expand All @@ -2337,6 +2338,12 @@ Params: addr Set the address for the ADT7410, BH1750, BME280,
aht10 Select the Aosong AHT10 temperature and humidity
sensor

as73211 Select the AMS AS73211 XYZ true color sensor
Valid addresses 0x74-0x77, default 0x74

as7331 Select the AMS AS7331 spectral UV sensor
Valid addresses 0x74-0x77, default 0x74

bh1750 Select the Rohm BH1750 ambient light sensor
Valid addresses 0x23 or 0x5c, default 0x23

Expand Down Expand Up @@ -2368,13 +2375,17 @@ Params: addr Set the address for the ADT7410, BH1750, BME280,
hdc100x Select the Texas Instruments HDC100x temp sensor
Valid addresses 0x40-0x43, default 0x40

hdc3020 Select the Texas Instruments HDC3020 temp sensor
Valid addresses 0x44-0x47, default 0x44

hts221 Select the HTS221 temperature and humidity
sensor

htu21 Select the HTU21 temperature and humidity sensor

int_pin Set the GPIO to use for interrupts (hts221,
max30102, mpu6050 and mpu9250 only)
int_pin Set the GPIO to use for interrupts (as73211,
as7331, hdc3020, hts221, max30102, mpu6050 and
mpu9250 only)

jc42 Select any of the many JEDEC JC42.4-compliant
temperature sensors, including:
Expand Down
63 changes: 61 additions & 2 deletions arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,57 @@
};
};

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

hdc3020: hdc3020@44 {
compatible = "ti,hdc3020";
reg = <0x44>;
interrupt-parent = <&gpio>;
interrupts = <4 IRQ_TYPE_EDGE_RISING>;
status = "okay";
};
};
};

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

as73211: as73211@74 {
compatible = "ams,as73211";
reg = <0x74>;
interrupt-parent = <&gpio>;
interrupts = <4 IRQ_TYPE_EDGE_RISING>;
status = "okay";
};
};
};

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

as7331: as7331@74 {
compatible = "ams,as7331";
reg = <0x74>;
interrupt-parent = <&gpio>;
interrupts = <4 IRQ_TYPE_EDGE_RISING>;
status = "okay";
};
};
};


__overrides__ {
bme280 = <0>,"+0";
Expand Down Expand Up @@ -594,6 +645,9 @@
adt7410 = <0>,"+34";
hts221 = <0>,"+35";
veml6075 = <0>,"+36";
hdc3020 = <0>,"+37";
as73211 = <0>,"+38";
as7331 = <0>,"+39";

addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
Expand All @@ -603,11 +657,16 @@
<&ms5837>,"reg:0", <&ms8607>,"reg:0",
<&mpu6050>,"reg:0", <&mpu9250>,"reg:0",
<&bno055>,"reg:0", <&sht4x>,"reg:0",
<&bmp380>,"reg:0", <&adt7410>,"reg:0";
<&bmp380>,"reg:0", <&adt7410>,"reg:0",
<&hdc3020>,"reg:0", <&as73211>,"reg:0",
<&as7331>,"reg:0";
int_pin = <&max30102>, "interrupts:0",
<&mpu6050>, "interrupts:0",
<&mpu9250>, "interrupts:0",
<&hts221>, "interrupts:0";
<&hts221>, "interrupts:0",
<&hdc3020>, "interrupts:0",
<&as73211>, "interrupts:0",
<&as7331>, "interrupts:0";
no_timeout = <&jc42>, "smbus-timeout-disable?";
reset_pin = <&bno055>,"reset-gpios:4", <0>,"+30";
};
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/configs/bcm2709_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1394,11 +1394,14 @@ CONFIG_SPS30_I2C=m
CONFIG_MAX30102=m
CONFIG_DHT11=m
CONFIG_HDC100X=m
CONFIG_HDC3020=m
CONFIG_HTS221=m
CONFIG_HTU21=m
CONFIG_SI7020=m
CONFIG_BOSCH_BNO055_I2C=m
CONFIG_INV_MPU6050_I2C=m
CONFIG_APDS9960=m
CONFIG_AS73211=m
CONFIG_BH1750=m
CONFIG_TSL4531=m
CONFIG_VEML6070=m
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/configs/bcm2711_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1418,11 +1418,14 @@ CONFIG_SPS30_I2C=m
CONFIG_MAX30102=m
CONFIG_DHT11=m
CONFIG_HDC100X=m
CONFIG_HDC3020=m
CONFIG_HTS221=m
CONFIG_HTU21=m
CONFIG_SI7020=m
CONFIG_BOSCH_BNO055_I2C=m
CONFIG_INV_MPU6050_I2C=m
CONFIG_APDS9960=m
CONFIG_AS73211=m
CONFIG_BH1750=m
CONFIG_TSL4531=m
CONFIG_VEML6070=m
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/configs/bcmrpi_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1387,11 +1387,14 @@ CONFIG_SPS30_I2C=m
CONFIG_MAX30102=m
CONFIG_DHT11=m
CONFIG_HDC100X=m
CONFIG_HDC3020=m
CONFIG_HTS221=m
CONFIG_HTU21=m
CONFIG_SI7020=m
CONFIG_BOSCH_BNO055_I2C=m
CONFIG_INV_MPU6050_I2C=m
CONFIG_APDS9960=m
CONFIG_AS73211=m
CONFIG_BH1750=m
CONFIG_TSL4531=m
CONFIG_VEML6070=m
Expand Down
3 changes: 3 additions & 0 deletions arch/arm64/configs/bcm2711_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1472,11 +1472,14 @@ CONFIG_SPS30_I2C=m
CONFIG_MAX30102=m
CONFIG_DHT11=m
CONFIG_HDC100X=m
CONFIG_HDC3020=m
CONFIG_HTS221=m
CONFIG_HTU21=m
CONFIG_SI7020=m
CONFIG_BOSCH_BNO055_I2C=m
CONFIG_INV_MPU6050_I2C=m
CONFIG_APDS9960=m
CONFIG_AS73211=m
CONFIG_BH1750=m
CONFIG_TSL4531=m
CONFIG_VEML6070=m
Expand Down
3 changes: 3 additions & 0 deletions arch/arm64/configs/bcm2712_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1475,11 +1475,14 @@ CONFIG_SPS30_I2C=m
CONFIG_MAX30102=m
CONFIG_DHT11=m
CONFIG_HDC100X=m
CONFIG_HDC3020=m
CONFIG_HTS221=m
CONFIG_HTU21=m
CONFIG_SI7020=m
CONFIG_BOSCH_BNO055_I2C=m
CONFIG_INV_MPU6050_I2C=m
CONFIG_APDS9960=m
CONFIG_AS73211=m
CONFIG_BH1750=m
CONFIG_TSL4531=m
CONFIG_VEML6070=m
Expand Down
3 changes: 3 additions & 0 deletions arch/arm64/configs/bcmrpi3_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1373,11 +1373,14 @@ CONFIG_SPS30_I2C=m
CONFIG_MAX30102=m
CONFIG_DHT11=m
CONFIG_HDC100X=m
CONFIG_HDC3020=m
CONFIG_HTS221=m
CONFIG_HTU21=m
CONFIG_SI7020=m
CONFIG_BOSCH_BNO055_I2C=m
CONFIG_INV_MPU6050_I2C=m
CONFIG_APDS9960=m
CONFIG_AS73211=m
CONFIG_BH1750=m
CONFIG_TSL4531=m
CONFIG_VEML6070=m
Expand Down