0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/rtc/nxp,pcf85063.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: NXP PCF85063 Real Time Clock
0008
0009 maintainers:
0010 - Alexander Stein <alexander.stein@ew.tq-group.com>
0011
0012 properties:
0013 compatible:
0014 enum:
0015 - microcrystal,rv8263
0016 - nxp,pcf85063
0017 - nxp,pcf85063a
0018 - nxp,pcf85063tp
0019 - nxp,pca85073a
0020
0021 reg:
0022 maxItems: 1
0023
0024 "#clock-cells":
0025 const: 0
0026
0027 clock-output-names:
0028 maxItems: 1
0029
0030 interrupts:
0031 maxItems: 1
0032
0033 quartz-load-femtofarads:
0034 description:
0035 The capacitive load of the quartz(x-tal).
0036 enum: [7000, 12500]
0037 default: 7000
0038
0039 clock:
0040 $ref: /schemas/clock/fixed-clock.yaml
0041 description:
0042 Provide this if the square wave pin is used as boot-enabled
0043 fixed clock.
0044
0045 wakeup-source: true
0046
0047 allOf:
0048 - $ref: rtc.yaml#
0049 - if:
0050 properties:
0051 compatible:
0052 contains:
0053 enum:
0054 - microcrystal,rv8263
0055 then:
0056 properties:
0057 quartz-load-femtofarads: false
0058 - if:
0059 properties:
0060 compatible:
0061 contains:
0062 enum:
0063 - nxp,pcf85063
0064 then:
0065 properties:
0066 quartz-load-femtofarads:
0067 const: 7000
0068
0069 required:
0070 - compatible
0071 - reg
0072
0073 additionalProperties: false
0074
0075 examples:
0076 - |
0077 i2c {
0078 #address-cells = <1>;
0079 #size-cells = <0>;
0080
0081 rtc@51 {
0082 compatible = "nxp,pcf85063a";
0083 reg = <0x51>;
0084 quartz-load-femtofarads = <12500>;
0085
0086 clock {
0087 compatible = "fixed-clock";
0088 #clock-cells = <0>;
0089 clock-frequency = <32768>;
0090 };
0091 };
0092 };