1 From 7d32f48d6e7ba3090b0eb4b19da444a7e17ce5f6 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Mon, 9 Jul 2018 21:11:32 +0100
4 Subject: [PATCH 157/773] overlays: Add addr parameter to i2c-rtc (& -gpio)
6 See: https://github.com/raspberrypi/linux/issues/2611
8 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
10 arch/arm/boot/dts/overlays/README | 10 +++++++
11 .../dts/overlays/i2c-rtc-gpio-overlay.dts | 28 +++++++++++++++++++
12 .../arm/boot/dts/overlays/i2c-rtc-overlay.dts | 11 ++++++++
13 3 files changed, 49 insertions(+)
15 --- a/arch/arm/boot/dts/overlays/README
16 +++ b/arch/arm/boot/dts/overlays/README
17 @@ -817,6 +817,10 @@ Params: abx80x Select o
19 pcf8563 Select the PCF8563 device
21 + addr Sets the address for the RTC. Note that the
22 + device must be configured to use the specified
25 trickle-diode-type Diode type for trickle charge - "standard" or
26 "schottky" (ABx80x only)
28 @@ -841,6 +845,8 @@ Params: abx80x Select o
30 ds3231 Select the DS3231 device
32 + m41t62 Select the M41T62 device
34 mcp7940x Select the MCP7940x device
36 mcp7941x Select the MCP7941x device
37 @@ -851,6 +857,10 @@ Params: abx80x Select o
39 pcf8563 Select the PCF8563 device
41 + addr Sets the address for the RTC. Note that the
42 + device must be configured to use the specified
45 trickle-diode-type Diode type for trickle charge - "standard" or
46 "schottky" (ABx80x only)
48 --- a/arch/arm/boot/dts/overlays/i2c-rtc-gpio-overlay.dts
49 +++ b/arch/arm/boot/dts/overlays/i2c-rtc-gpio-overlay.dts
55 + target = <&i2c_arm>;
57 + #address-cells = <1>;
62 + compatible = "st,m41t62";
78 + addr = <&abx80x>, "reg:0",
82 + <&mcp7940x>, "reg:0",
83 + <&mcp7941x>, "reg:0",
84 + <&pcf2127>, "reg:0",
85 + <&pcf8523>, "reg:0",
86 + <&pcf8563>, "reg:0",
89 trickle-diode-type = <&abx80x>,"abracon,tc-diode";
90 trickle-resistor-ohms = <&ds1339>,"trickle-resistor-ohms:0",
91 <&abx80x>,"abracon,tc-resistor";
92 --- a/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
93 +++ b/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
99 + addr = <&abx80x>, "reg:0",
100 + <&ds1307>, "reg:0",
101 + <&ds1339>, "reg:0",
102 + <&ds3231>, "reg:0",
103 + <&mcp7940x>, "reg:0",
104 + <&mcp7941x>, "reg:0",
105 + <&pcf2127>, "reg:0",
106 + <&pcf8523>, "reg:0",
107 + <&pcf8563>, "reg:0",
108 + <&m41t62>, "reg:0";
109 trickle-diode-type = <&abx80x>,"abracon,tc-diode";
110 trickle-resistor-ohms = <&ds1339>,"trickle-resistor-ohms:0",
111 <&abx80x>,"abracon,tc-resistor";