Skip to content

Commit 64a4503

Browse files
committed
overlays: i2c-sensor: Add the scd4x CO2 sensors
See: #7091 Signed-off-by: Phil Elwell <[email protected]>
1 parent 0923c46 commit 64a4503

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
@@ -804,6 +804,20 @@
804804
};
805805
};
806806

807+
fragment@52 {
808+
target = <&i2cbus>;
809+
__dormant__ {
810+
#address-cells = <1>;
811+
#size-cells = <0>;
812+
status = "okay";
813+
814+
scd4x: scd4x@62 {
815+
compatible = "sensirion,scd40";
816+
reg = <0x62>;
817+
};
818+
};
819+
};
820+
807821
fragment@98 {
808822
target-path = "/";
809823
__dormant__ {
@@ -881,6 +895,7 @@
881895
bmp58x = <0>,"+49";
882896
veml6030 = <0>,"+50+99";
883897
tmp117 = <0>,"+51+98";
898+
scd4x = <0>,"+52";
884899

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

0 commit comments

Comments
 (0)