196 lines · yaml
1# SPDX-License-Identifier: GPL-2.02%YAML 1.23---4$id: http://devicetree.org/schemas/rtc/allwinner,sun6i-a31-rtc.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Allwinner A31 RTC8 9maintainers:10 - Chen-Yu Tsai <wens@csie.org>11 - Maxime Ripard <mripard@kernel.org>12 13properties:14 "#clock-cells":15 const: 116 17 compatible:18 oneOf:19 - enum:20 - allwinner,sun6i-a31-rtc21 - allwinner,sun8i-a23-rtc22 - allwinner,sun8i-h3-rtc23 - allwinner,sun8i-r40-rtc24 - allwinner,sun8i-v3-rtc25 - allwinner,sun50i-h5-rtc26 - allwinner,sun50i-h6-rtc27 - allwinner,sun50i-h616-rtc28 - allwinner,sun50i-r329-rtc29 - items:30 - const: allwinner,sun50i-a64-rtc31 - const: allwinner,sun8i-h3-rtc32 - items:33 - const: allwinner,sun20i-d1-rtc34 - const: allwinner,sun50i-r329-rtc35 36 reg:37 maxItems: 138 39 interrupts:40 minItems: 141 items:42 - description: RTC Alarm 043 - description: RTC Alarm 144 45 clocks:46 minItems: 147 maxItems: 448 49 clock-names:50 minItems: 151 maxItems: 452 53 clock-output-names:54 minItems: 155 maxItems: 356 description:57 The RTC provides up to three clocks58 - the Low Frequency Oscillator or LOSC, at index 0,59 - the Low Frequency Oscillator External output (X32KFOUT in60 the datasheet), at index 1,61 - the Internal Oscillator, at index 2.62 63allOf:64 - $ref: rtc.yaml#65 - if:66 properties:67 compatible:68 contains:69 const: allwinner,sun6i-a31-rtc70 71 then:72 properties:73 clock-output-names:74 maxItems: 175 76 - if:77 properties:78 compatible:79 contains:80 enum:81 - allwinner,sun8i-a23-rtc82 - allwinner,sun8i-r40-rtc83 - allwinner,sun8i-v3-rtc84 85 then:86 properties:87 clock-output-names:88 minItems: 289 maxItems: 290 91 - if:92 properties:93 compatible:94 contains:95 enum:96 - allwinner,sun8i-h3-rtc97 - allwinner,sun50i-h5-rtc98 - allwinner,sun50i-h6-rtc99 100 then:101 properties:102 clock-output-names:103 minItems: 3104 105 - if:106 properties:107 compatible:108 contains:109 const: allwinner,sun50i-h616-rtc110 111 then:112 properties:113 clocks:114 items:115 - description: Bus clock for register access116 - description: 24 MHz oscillator117 - description: 32 kHz clock from the CCU118 119 clock-names:120 items:121 - const: bus122 - const: hosc123 - const: pll-32k124 125 required:126 - clocks127 - clock-names128 129 - if:130 properties:131 compatible:132 contains:133 const: allwinner,sun50i-r329-rtc134 135 then:136 properties:137 clocks:138 minItems: 3139 items:140 - description: Bus clock for register access141 - description: 24 MHz oscillator142 - description: AHB parent for internal SPI clock143 - description: External 32768 Hz oscillator144 145 clock-names:146 minItems: 3147 items:148 - const: bus149 - const: hosc150 - const: ahb151 - const: ext-osc32k152 153 required:154 - clocks155 - clock-names156 157 - if:158 properties:159 compatible:160 contains:161 enum:162 - allwinner,sun8i-r40-rtc163 - allwinner,sun50i-h616-rtc164 - allwinner,sun50i-r329-rtc165 166 then:167 properties:168 interrupts:169 maxItems: 1170 171 else:172 properties:173 interrupts:174 minItems: 2175 176required:177 - "#clock-cells"178 - compatible179 - reg180 - interrupts181 182additionalProperties: false183 184examples:185 - |186 rtc: rtc@1f00000 {187 compatible = "allwinner,sun6i-a31-rtc";188 reg = <0x01f00000 0x400>;189 interrupts = <0 40 4>, <0 41 4>;190 clock-output-names = "osc32k";191 clocks = <&ext_osc32k>;192 #clock-cells = <1>;193 };194 195...196