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 contains: 69 enum: 70 - nxp,pcf85063 71 then: 72 properties: 73 quartz-load-femtofarads: 74 const: 7000 75 - if: 76 properties: 77 compatible: 78 not: 79 contains: 80 enum: 81 - microcrystal,rv8063 82 then: 83 properties: 84 spi-cs-high: false 85 spi-3wire: false 86 87required: 88 - compatible 89 - reg 90 91unevaluatedProperties: false 92 93examples: 94 - | 95 i2c { 96 #address-cells = <1>; 97 #size-cells = <0>; 98 99 rtc@51 { 100 compatible = "nxp,pcf85063a"; 101 reg = <0x51>; 102 quartz-load-femtofarads = <12500>; 103 104 clock { 105 compatible = "fixed-clock"; 106 #clock-cells = <0>; 107 clock-frequency = <32768>; 108 }; 109 }; 110 }; 111 112 - | 113 spi { 114 #address-cells = <1>; 115 #size-cells = <0>; 116 117 rtc@0 { 118 compatible = "microcrystal,rv8063"; 119 reg = <0>; 120 spi-cs-high; 121 spi-3wire; 122 }; 123 }; 124