1 From ba93a3eeaf4101166feec31b4a2799b6d4aee640 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Mon, 7 Dec 2020 08:49:53 +0000
4 Subject: [PATCH] overlays: Add PCF85063 and PCF85063A to i2c-rtc
6 Add support for the PCF85063 and PCF85063A RTC devices to the
9 Also enable the device to be used on i2c0 (i2c_vc) on GPIOs 0&1 (use
10 parameter "i2c0") and GPIOs 44 & 45 (use parameter "i2c_csi_dsi").
12 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
14 arch/arm/boot/dts/overlays/README | 8 ++
15 .../arm/boot/dts/overlays/i2c-rtc-overlay.dts | 98 ++++++++++---------
16 2 files changed, 61 insertions(+), 45 deletions(-)
18 --- a/arch/arm/boot/dts/overlays/README
19 +++ b/arch/arm/boot/dts/overlays/README
20 @@ -1257,6 +1257,10 @@ Params: abx80x Select o
22 pcf2129 Select the PCF2129 device
24 + pcf85063 Select the PCF85363 device
26 + pcf85063a Select the PCF85363A device
28 pcf8523 Select the PCF8523 device
30 pcf85363 Select the PCF85363 device
31 @@ -1269,6 +1273,10 @@ Params: abx80x Select o
33 sd3078 Select the ZXW Shenzhen whwave SD3078 device
35 + i2c0 Choose the I2C0 bus on GPIOs 0&1
37 + i2c_csi_dsi Choose the I2C0 bus on GPIOs 44&45
39 addr Sets the address for the RTC. Note that the
40 device must be configured to use the specified
42 --- a/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
43 +++ b/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
45 compatible = "brcm,bcm2835";
48 - target = <&i2c_arm>;
56 compatible = "abracon,abx80x";
58 abracon,tc-diode = "standard";
59 abracon,tc-resistor = <0>;
66 - target = <&i2c_arm>;
74 compatible = "dallas,ds1307";
82 - target = <&i2c_arm>;
90 compatible = "dallas,ds1339";
91 trickle-resistor-ohms = <0>;
99 - target = <&i2c_arm>;
100 + target = <&i2cbus>;
102 #address-cells = <1>;
107 compatible = "maxim,ds3231";
115 - target = <&i2c_arm>;
116 + target = <&i2cbus>;
118 #address-cells = <1>;
122 mcp7940x: mcp7940x@6f {
123 compatible = "microchip,mcp7940x";
131 - target = <&i2c_arm>;
132 + target = <&i2cbus>;
134 #address-cells = <1>;
138 mcp7941x: mcp7941x@6f {
139 compatible = "microchip,mcp7941x";
147 - target = <&i2c_arm>;
148 + target = <&i2cbus>;
150 #address-cells = <1>;
155 compatible = "nxp,pcf2127";
163 - target = <&i2c_arm>;
164 + target = <&i2cbus>;
166 #address-cells = <1>;
170 pcf8523: pcf8523@68 {
171 compatible = "nxp,pcf8523";
179 - target = <&i2c_arm>;
180 + target = <&i2cbus>;
182 #address-cells = <1>;
186 pcf8563: pcf8563@51 {
187 compatible = "nxp,pcf8563";
195 - target = <&i2c_arm>;
196 + target = <&i2cbus>;
198 #address-cells = <1>;
203 compatible = "st,m41t62";
211 - target = <&i2c_arm>;
212 + target = <&i2cbus>;
214 #address-cells = <1>;
219 compatible = "microcrystal,rv3028";
227 - target = <&i2c_arm>;
228 + target = <&i2cbus>;
230 #address-cells = <1>;
235 compatible = "nxp,pcf2129";
243 - target = <&i2c_arm>;
244 + target = <&i2cbus>;
246 #address-cells = <1>;
251 compatible = "nxp,pcf85363";
259 - target = <&i2c_arm>;
260 + target = <&i2cbus>;
262 #address-cells = <1>;
267 compatible = "microcrystal,rv1805";
269 abracon,tc-diode = "standard";
270 abracon,tc-resistor = <0>;
277 - target = <&i2c_arm>;
278 + target = <&i2cbus>;
280 #address-cells = <1>;
285 compatible = "whwave,sd3078";
293 + target = <&i2cbus>;
295 + #address-cells = <1>;
299 + compatible = "nxp,pcf85063";
306 + target = <&i2cbus>;
308 + #address-cells = <1>;
312 + compatible = "nxp,pcf85063a";
318 + frag100: fragment@100 {
319 + target = <&i2c_arm>;
320 + i2cbus: __overlay__ {
329 pcf85363 = <0>,"+12";
332 + pcf85063 = <0>,"+15";
333 + pcf85063a = <0>,"+16";
335 + i2c0 = <&frag100>, "target:0=",<&i2c0>;
336 + i2c_csi_dsi = <&frag100>, "target:0=",<&i2c_csi_dsi>;
338 addr = <&abx80x>, "reg:0",