Skip to content

Commit daecda9

Browse files
pelwellpopcornmix
authored andcommitted
overlays: i2c-sensor: Add mcp980x support
See: #5234 Signed-off-by: Phil Elwell <[email protected]>
1 parent 7e063eb commit daecda9

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1981,6 +1981,10 @@ Params: addr Set the address for the BH1750, BME280, BME680,
19811981
max30102 Select the Maxim Integrated MAX30102 heart-rate
19821982
and blood-oxygen sensor
19831983

1984+
mcp980x Select the Maxim MCP980x range of temperature
1985+
sensors (e.g. MCP9808).
1986+
Valid addresses are 0x18-0x1f (default 0x18)
1987+
19841988
sht3x Select the Sensiron SHT3x temperature and
19851989
humidity sensor. Valid addresses 0x44-0x45,
19861990
default 0x44

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

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,20 @@
323323
};
324324
};
325325

326+
fragment@21 {
327+
target = <&i2cbus>;
328+
__dormant__ {
329+
#address-cells = <1>;
330+
#size-cells = <0>;
331+
status = "okay";
332+
333+
mcp980x: mcp980x@18 {
334+
compatible = "maxim,mcp980x";
335+
reg = <0x18>;
336+
};
337+
};
338+
};
339+
326340
__overrides__ {
327341
bme280 = <0>,"+0";
328342
bmp085 = <0>,"+1";
@@ -346,11 +360,12 @@
346360
bh1750 = <0>, "+18";
347361
max30102 = <0>,"+19";
348362
aht10 = <0>,"+20";
363+
mcp980x = <0>,"+21";
349364

350365
addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
351366
<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
352367
<&ds1621>,"reg:0", <&bme680>,"reg:0", <&ccs811>,"reg:0",
353-
<&bh1750>,"reg:0";
368+
<&bh1750>,"reg:0", <&mcp980x>,"reg:0";
354369
int_pin = <&max30102>, "interrupts:0";
355370
};
356371
};

0 commit comments

Comments
 (0)