Skip to content

Commit

Permalink
overlays: Add max17040 support to i2c-sensor
Browse files Browse the repository at this point in the history
See: #2906

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
  • Loading branch information
Phil Elwell committed Mar 26, 2019
1 parent cd55f32 commit de7e4ca
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/arm/boot/dts/overlays/README
Expand Up @@ -1004,6 +1004,9 @@ Params: addr Set the address for the BME280, BMP280, DS1621,

lm75addr Deprecated - use addr parameter instead

max17040 Select the Maxim Integrated MAX17040 battery
monitor

sht3x Select the Sensiron SHT3x temperature and
humidity sensor. Valid addresses 0x44-0x45,
default 0x44
Expand Down
16 changes: 16 additions & 0 deletions arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
Expand Up @@ -201,6 +201,21 @@
};
};

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

max17040: max17040@36 {
compatible = "maxim,max17040";
reg = <0x36>;
status = "okay";
};
};
};

__overrides__ {
addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
Expand All @@ -219,5 +234,6 @@
veml6070 = <0>,"+10";
sht3x = <0>,"+11";
ds1621 = <0>,"+12";
max17040 = <0>,"+13";
};
};

0 comments on commit de7e4ca

Please sign in to comment.