1 From fe6ccc8df700133615716df211f183c9c27d1e2e Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Mon, 25 Mar 2019 18:03:48 +0000
4 Subject: [PATCH] overlays: Add max17040 support to i2c-sensor
6 See: https://github.com/raspberrypi/linux/issues/2906
8 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
10 arch/arm/boot/dts/overlays/README | 3 +++
11 .../arm/boot/dts/overlays/i2c-sensor-overlay.dts | 16 ++++++++++++++++
12 2 files changed, 19 insertions(+)
14 --- a/arch/arm/boot/dts/overlays/README
15 +++ b/arch/arm/boot/dts/overlays/README
16 @@ -1030,6 +1030,9 @@ Params: addr Set the
18 lm75addr Deprecated - use addr parameter instead
20 + max17040 Select the Maxim Integrated MAX17040 battery
23 sht3x Select the Sensiron SHT3x temperature and
24 humidity sensor. Valid addresses 0x44-0x45,
26 --- a/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
27 +++ b/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
33 + target = <&i2c_arm>;
35 + #address-cells = <1>;
39 + max17040: max17040@36 {
40 + compatible = "maxim,max17040";
48 addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
49 <&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
54 + max17040 = <0>,"+13";