93a699a66afbeffa72d01f80db4b78811fcbbb2a
[oweals/openwrt.git] / target / linux / bcm27xx / patches-5.4 / 950-0366-overlays-i2c-rtc-Add-pcf85363-support.patch
1 From 32dbe4ebb10b96eed117852f1643bf1f854d96c0 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Sun, 22 Dec 2019 15:29:40 +0000
4 Subject: [PATCH] overlays: i2c-rtc: Add pcf85363 support
5
6 See: https://github.com/raspberrypi/firmware/issues/1309
7
8 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
9 ---
10  arch/arm/boot/dts/overlays/README              |  2 ++
11  arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts | 16 ++++++++++++++++
12  2 files changed, 18 insertions(+)
13
14 --- a/arch/arm/boot/dts/overlays/README
15 +++ b/arch/arm/boot/dts/overlays/README
16 @@ -1078,6 +1078,8 @@ Params: abx80x                  Select o
17  
18          pcf8523                 Select the PCF8523 device
19  
20 +        pcf85363                Select the PCF85363 device
21 +
22          pcf8563                 Select the PCF8563 device
23  
24          rv3028                  Select the Micro Crystal RV3028 device
25 --- a/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
26 +++ b/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
27 @@ -188,6 +188,21 @@
28                 };
29         };
30  
31 +       fragment@12 {
32 +               target = <&i2c_arm>;
33 +              __dormant__ {
34 +                       #address-cells = <1>;
35 +                       #size-cells = <0>;
36 +                       status = "okay";
37 +
38 +                       pcf85363@51 {
39 +                               compatible = "nxp,pcf85363";
40 +                               reg = <0x51>;
41 +                               status = "okay";
42 +                       };
43 +               };
44 +       };
45 +
46         __overrides__ {
47                 abx80x = <0>,"+0";
48                 ds1307 = <0>,"+1";
49 @@ -201,6 +216,7 @@
50                 m41t62 = <0>,"+9";
51                 rv3028 = <0>,"+10";
52                 pcf2129 = <0>,"+11";
53 +               pcf85363 = <0>,"+12";
54  
55                 addr = <&abx80x>, "reg:0",
56                        <&ds1307>, "reg:0",