Skip to content

Commit 97d2136

Browse files
pelwellpopcornmix
authored andcommitted
overlays: i2c-sensor: Add the scd4x CO2 sensors
See: #7091 Signed-off-by: Phil Elwell <[email protected]>
1 parent 543af3e commit 97d2136

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2576,6 +2576,8 @@ Params: addr Set the address for the ADS7828, ADS7830,
25762576
measurement in uOhms. (ina238 only, disabled
25772577
by default)
25782578

2579+
scd4x Select the Sensirion SCD40/41 CO2 sensors.
2580+
25792581
sht3x Select the Sensirion SHT3x temperature and
25802582
humidity sensors. Valid addresses 0x44-0x45,
25812583
default 0x44

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,20 @@
850850
};
851851
};
852852

853+
fragment@55 {
854+
target = <&i2cbus>;
855+
__dormant__ {
856+
#address-cells = <1>;
857+
#size-cells = <0>;
858+
status = "okay";
859+
860+
scd4x: scd4x@62 {
861+
compatible = "sensirion,scd40";
862+
reg = <0x62>;
863+
};
864+
};
865+
};
866+
853867
fragment@98 {
854868
target-path = "/";
855869
__dormant__ {
@@ -930,6 +944,7 @@
930944
veml7700 = <0>,"+52";
931945
veml3235 = <0>,"+53";
932946
tmp117 = <0>,"+54+98";
947+
scd4x = <0>,"+55";
933948

934949
addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
935950
<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",

0 commit comments

Comments
 (0)