xref: /linux/Documentation/devicetree/bindings/rtc/nxp,pcf85063.yaml (revision db4a3f0fbedb0398f77b9047e8b8bb2b49f355bb)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/rtc/nxp,pcf85063.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: NXP PCF85063 Real Time Clock
8
9maintainers:
10  - Alexander Stein <alexander.stein@ew.tq-group.com>
11
12properties:
13  compatible:
14    enum:
15      - microcrystal,rv8063
16      - microcrystal,rv8263
17      - nxp,pcf85063
18      - nxp,pcf85063a
19      - nxp,pcf85063tp
20      - nxp,pca85073a
21
22  reg:
23    maxItems: 1
24
25  "#clock-cells":
26    const: 0
27
28  clock-output-names:
29    maxItems: 1
30
31  interrupts:
32    maxItems: 1
33
34  quartz-load-femtofarads:
35    description:
36      The capacitive load of the quartz(x-tal).
37    enum: [7000, 12500]
38    default: 7000
39
40  clock:
41    $ref: /schemas/clock/fixed-clock.yaml
42    description:
43      Provide this if the square wave pin is used as boot-enabled
44      fixed clock.
45
46  wakeup-source: true
47
48  spi-cs-high: true
49
50  spi-3wire: true
51
52allOf:
53  - $ref: /schemas/spi/spi-peripheral-props.yaml#
54  - $ref: rtc.yaml#
55  - if:
56      properties:
57        compatible:
58          contains:
59            enum:
60              - microcrystal,rv8063
61              - microcrystal,rv8263
62    then:
63      properties:
64        quartz-load-femtofarads: false
65  - if:
66      properties:
67        compatible:
68          not:
69            contains:
70              enum:
71                - microcrystal,rv8063
72    then:
73      properties:
74        spi-cs-high: false
75        spi-3wire: false
76
77required:
78  - compatible
79  - reg
80
81unevaluatedProperties: false
82
83examples:
84  - |
85    i2c {
86        #address-cells = <1>;
87        #size-cells = <0>;
88
89        rtc@51 {
90          compatible = "nxp,pcf85063a";
91          reg = <0x51>;
92          quartz-load-femtofarads = <12500>;
93
94          clock {
95            compatible = "fixed-clock";
96            #clock-cells = <0>;
97            clock-frequency = <32768>;
98          };
99        };
100      };
101
102  - |
103    spi {
104        #address-cells = <1>;
105        #size-cells = <0>;
106
107        rtc@0 {
108            compatible = "microcrystal,rv8063";
109            reg = <0>;
110            spi-cs-high;
111            spi-3wire;
112        };
113    };
114