Skip to content

Commit b2f724a

Browse files
committed
overlays: Back-port several sensors
Extend the i2c-sensor overlay with support for the HTS221, VEML6075 and AS73211 sensors. Link: #6446 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
1 parent 481fc2c commit b2f724a

File tree

2 files changed

+66
-1
lines changed

2 files changed

+66
-1
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2386,6 +2386,8 @@ Params: addr Set the address for the ADT7410, BH1750, BME280,
23862386
aht10 Select the Aosong AHT10 temperature and humidity
23872387
sensor
23882388

2389+
as73211 Select the AMS AS73211 XYZ true color sensor
2390+
23892391
bh1750 Select the Rohm BH1750 ambient light sensor
23902392
Valid addresses 0x23 or 0x5c, default 0x23
23912393

@@ -2417,6 +2419,9 @@ Params: addr Set the address for the ADT7410, BH1750, BME280,
24172419
hdc100x Select the Texas Instruments HDC100x temp sensor
24182420
Valid addresses 0x40-0x43, default 0x40
24192421

2422+
hts221 Select the HTS221 temperature and humidity
2423+
sensor
2424+
24202425
htu21 Select the HTU21 temperature and humidity sensor
24212426

24222427
int_pin Set the GPIO to use for interrupts (max30102,
@@ -2503,6 +2508,9 @@ Params: addr Set the address for the ADT7410, BH1750, BME280,
25032508
veml6070 Select the Vishay VEML6070 ultraviolet light
25042509
sensor
25052510

2511+
veml6075 Select the Vishay VEML6075 UVA and UVB light
2512+
sensor
2513+
25062514
i2c0 Choose the I2C0 bus on GPIOs 0&1
25072515

25082516
i2c_csi_dsi Choose the I2C0 bus on GPIOs 44&45

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

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/plugin/;
44

55
#include <dt-bindings/gpio/gpio.h>
6+
#include <dt-bindings/interrupt-controller/irq.h>
67

78
/ {
89
compatible = "brcm,bcm2835";
@@ -529,6 +530,57 @@
529530
};
530531
};
531532

533+
fragment@35 {
534+
target = <&i2cbus>;
535+
__dormant__ {
536+
#address-cells = <1>;
537+
#size-cells = <0>;
538+
status = "okay";
539+
540+
hts221: hts221@5f {
541+
compatible = "st,hts221-humid", "st,hts221";
542+
reg = <0x5f>;
543+
interrupt-parent = <&gpio>;
544+
interrupts = <4 IRQ_TYPE_EDGE_RISING>;
545+
pinctrl-0 = <&int_pins>;
546+
pinctrl-names = "default";
547+
};
548+
};
549+
};
550+
551+
fragment@36 {
552+
target = <&i2cbus>;
553+
__dormant__ {
554+
#address-cells = <1>;
555+
#size-cells = <0>;
556+
status = "okay";
557+
558+
veml6075: veml6075@10 {
559+
compatible = "vishay,veml6075";
560+
reg = <0x10>;
561+
status = "okay";
562+
};
563+
};
564+
};
565+
566+
fragment@38 {
567+
target = <&i2cbus>;
568+
__dormant__ {
569+
#address-cells = <1>;
570+
#size-cells = <0>;
571+
status = "okay";
572+
573+
as73211: as73211@74 {
574+
compatible = "ams,as73211";
575+
reg = <0x74>;
576+
interrupt-parent = <&gpio>;
577+
interrupts = <4 IRQ_TYPE_EDGE_RISING>;
578+
pinctrl-0 = <&int_pins>;
579+
pinctrl-names = "default";
580+
};
581+
};
582+
};
583+
532584
fragment@99 {
533585
target = <&gpio>;
534586
__dormant__ {
@@ -576,6 +628,9 @@
576628
bno055 = <0>,"+31";
577629
sht4x = <0>,"+32";
578630
adt7410 = <0>,"+34";
631+
hts221 = <0>,"+35+99";
632+
veml6075 = <0>,"+36";
633+
as73211 = <0>,"+38+99";
579634

580635
addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
581636
<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
@@ -590,7 +645,9 @@
590645
<&int_pins>, "reg:0",
591646
<&max30102>, "interrupts:0",
592647
<&mpu6050>, "interrupts:0",
593-
<&mpu9250>, "interrupts:0";
648+
<&mpu9250>, "interrupts:0",
649+
<&hts221>, "interrupts:0",
650+
<&as73211>, "interrupts:0";
594651
no_timeout = <&jc42>, "smbus-timeout-disable?";
595652
reset_pin = <&bno055>,"reset-gpios:4", <0>,"+30";
596653
};

0 commit comments

Comments
 (0)