~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml (Version linux-6.12-rc7) and /Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml (Version linux-5.9.16)


  1 # SPDX-License-Identifier: GPL-2.0                  1 # SPDX-License-Identifier: GPL-2.0
  2 %YAML 1.2                                           2 %YAML 1.2
  3 ---                                                 3 ---
  4 $id: http://devicetree.org/schemas/rtc/allwinn      4 $id: http://devicetree.org/schemas/rtc/allwinner,sun6i-a31-rtc.yaml#
  5 $schema: http://devicetree.org/meta-schemas/co      5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6                                                     6 
  7 title: Allwinner A31 RTC                       !!   7 title: Allwinner A31 RTC Device Tree Bindings
  8                                                     8 
  9 maintainers:                                        9 maintainers:
 10   - Chen-Yu Tsai <wens@csie.org>                    10   - Chen-Yu Tsai <wens@csie.org>
 11   - Maxime Ripard <mripard@kernel.org>              11   - Maxime Ripard <mripard@kernel.org>
 12                                                    12 
 13 properties:                                        13 properties:
 14   "#clock-cells":                                  14   "#clock-cells":
 15     const: 1                                       15     const: 1
 16                                                    16 
 17   compatible:                                      17   compatible:
 18     oneOf:                                         18     oneOf:
 19       - enum:                                  !!  19       - const: allwinner,sun6i-a31-rtc
 20           - allwinner,sun6i-a31-rtc            !!  20       - const: allwinner,sun8i-a23-rtc
 21           - allwinner,sun8i-a23-rtc            !!  21       - const: allwinner,sun8i-h3-rtc
 22           - allwinner,sun8i-h3-rtc             !!  22       - const: allwinner,sun8i-r40-rtc
 23           - allwinner,sun8i-r40-rtc            !!  23       - const: allwinner,sun8i-v3-rtc
 24           - allwinner,sun8i-v3-rtc             !!  24       - const: allwinner,sun50i-h5-rtc
 25           - allwinner,sun50i-h5-rtc            << 
 26           - allwinner,sun50i-h6-rtc            << 
 27           - allwinner,sun50i-h616-rtc          << 
 28           - allwinner,sun50i-r329-rtc          << 
 29       - items:                                     25       - items:
 30           - const: allwinner,sun50i-a64-rtc        26           - const: allwinner,sun50i-a64-rtc
 31           - const: allwinner,sun8i-h3-rtc          27           - const: allwinner,sun8i-h3-rtc
 32       - items:                                 !!  28       - const: allwinner,sun50i-h6-rtc
 33           - const: allwinner,sun20i-d1-rtc     << 
 34           - const: allwinner,sun50i-r329-rtc   << 
 35                                                    29 
 36   reg:                                             30   reg:
 37     maxItems: 1                                    31     maxItems: 1
 38                                                    32 
 39   interrupts:                                      33   interrupts:
 40     minItems: 1                                    34     minItems: 1
                                                   >>  35     maxItems: 2
 41     items:                                         36     items:
 42       - description: RTC Alarm 0                   37       - description: RTC Alarm 0
 43       - description: RTC Alarm 1                   38       - description: RTC Alarm 1
 44                                                    39 
 45   clocks:                                          40   clocks:
 46     minItems: 1                                !!  41     maxItems: 1
 47     maxItems: 4                                << 
 48                                                << 
 49   clock-names:                                 << 
 50     minItems: 1                                << 
 51     maxItems: 4                                << 
 52                                                    42 
 53   clock-output-names:                              43   clock-output-names:
 54     minItems: 1                                    44     minItems: 1
 55     maxItems: 3                                    45     maxItems: 3
 56     description:                                   46     description:
 57       The RTC provides up to three clocks          47       The RTC provides up to three clocks
 58         - the Low Frequency Oscillator or LOSC     48         - the Low Frequency Oscillator or LOSC, at index 0,
 59         - the Low Frequency Oscillator Externa     49         - the Low Frequency Oscillator External output (X32KFOUT in
 60           the datasheet), at index 1,              50           the datasheet), at index 1,
 61         - the Internal Oscillator, at index 2.     51         - the Internal Oscillator, at index 2.
 62                                                    52 
 63 allOf:                                             53 allOf:
 64   - $ref: rtc.yaml#                            !!  54   - $ref: "rtc.yaml#"
 65   - if:                                            55   - if:
 66       properties:                                  56       properties:
 67         compatible:                                57         compatible:
 68           contains:                                58           contains:
 69             const: allwinner,sun6i-a31-rtc         59             const: allwinner,sun6i-a31-rtc
 70                                                    60 
 71     then:                                          61     then:
 72       properties:                                  62       properties:
 73         clock-output-names:                        63         clock-output-names:
                                                   >>  64           minItems: 1
 74           maxItems: 1                              65           maxItems: 1
 75                                                    66 
 76   - if:                                            67   - if:
 77       properties:                                  68       properties:
 78         compatible:                                69         compatible:
 79           contains:                                70           contains:
 80             enum:                                  71             enum:
 81               - allwinner,sun8i-a23-rtc            72               - allwinner,sun8i-a23-rtc
 82               - allwinner,sun8i-r40-rtc            73               - allwinner,sun8i-r40-rtc
 83               - allwinner,sun8i-v3-rtc             74               - allwinner,sun8i-v3-rtc
 84                                                    75 
 85     then:                                          76     then:
 86       properties:                                  77       properties:
 87         clock-output-names:                        78         clock-output-names:
 88           minItems: 2                              79           minItems: 2
 89           maxItems: 2                              80           maxItems: 2
 90                                                    81 
 91   - if:                                            82   - if:
 92       properties:                                  83       properties:
 93         compatible:                                84         compatible:
 94           contains:                                85           contains:
 95             enum:                                  86             enum:
 96               - allwinner,sun8i-h3-rtc             87               - allwinner,sun8i-h3-rtc
 97               - allwinner,sun50i-h5-rtc            88               - allwinner,sun50i-h5-rtc
 98               - allwinner,sun50i-h6-rtc        << 
 99                                                    89 
100     then:                                          90     then:
101       properties:                                  91       properties:
102         clock-output-names:                        92         clock-output-names:
103           minItems: 3                              93           minItems: 3
                                                   >>  94           maxItems: 3
104                                                    95 
105   - if:                                            96   - if:
106       properties:                                  97       properties:
107         compatible:                                98         compatible:
108           contains:                                99           contains:
109             const: allwinner,sun50i-h616-rtc   !! 100             const: allwinner,sun50i-h6-rtc
110                                                   101 
111     then:                                         102     then:
112       properties:                                 103       properties:
113         clocks:                                !! 104         clock-output-names:
114           items:                               << 
115             - description: Bus clock for regis << 
116             - description: 24 MHz oscillator   << 
117             - description: 32 kHz clock from t << 
118                                                << 
119         clock-names:                           << 
120           items:                               << 
121             - const: bus                       << 
122             - const: hosc                      << 
123             - const: pll-32k                   << 
124                                                << 
125       required:                                << 
126         - clocks                               << 
127         - clock-names                          << 
128                                                << 
129   - if:                                        << 
130       properties:                              << 
131         compatible:                            << 
132           contains:                            << 
133             const: allwinner,sun50i-r329-rtc   << 
134                                                << 
135     then:                                      << 
136       properties:                              << 
137         clocks:                                << 
138           minItems: 3                          << 
139           items:                               << 
140             - description: Bus clock for regis << 
141             - description: 24 MHz oscillator   << 
142             - description: AHB parent for inte << 
143             - description: External 32768 Hz o << 
144                                                << 
145         clock-names:                           << 
146           minItems: 3                             105           minItems: 3
147           items:                               !! 106           maxItems: 3
148             - const: bus                       << 
149             - const: hosc                      << 
150             - const: ahb                       << 
151             - const: ext-osc32k                << 
152                                                << 
153       required:                                << 
154         - clocks                               << 
155         - clock-names                          << 
156                                                   107 
157   - if:                                           108   - if:
158       properties:                                 109       properties:
159         compatible:                               110         compatible:
160           contains:                               111           contains:
161             enum:                              !! 112             const: allwinner,sun8i-r40-rtc
162               - allwinner,sun8i-r40-rtc        << 
163               - allwinner,sun50i-h616-rtc      << 
164               - allwinner,sun50i-r329-rtc      << 
165                                                   113 
166     then:                                         114     then:
167       properties:                                 115       properties:
168         interrupts:                               116         interrupts:
                                                   >> 117           minItems: 1
169           maxItems: 1                             118           maxItems: 1
170                                                   119 
171     else:                                         120     else:
172       properties:                                 121       properties:
173         interrupts:                               122         interrupts:
174           minItems: 2                             123           minItems: 2
                                                   >> 124           maxItems: 2
175                                                   125 
176 required:                                         126 required:
177   - "#clock-cells"                                127   - "#clock-cells"
178   - compatible                                    128   - compatible
179   - reg                                           129   - reg
180   - interrupts                                    130   - interrupts
                                                   >> 131   - clocks
                                                   >> 132   - clock-output-names
181                                                   133 
182 additionalProperties: false                       134 additionalProperties: false
183                                                   135 
184 examples:                                         136 examples:
185   - |                                             137   - |
186     rtc: rtc@1f00000 {                            138     rtc: rtc@1f00000 {
187         compatible = "allwinner,sun6i-a31-rtc"    139         compatible = "allwinner,sun6i-a31-rtc";
188         reg = <0x01f00000 0x400>;                 140         reg = <0x01f00000 0x400>;
189         interrupts = <0 40 4>, <0 41 4>;          141         interrupts = <0 40 4>, <0 41 4>;
190         clock-output-names = "osc32k";            142         clock-output-names = "osc32k";
191         clocks = <&ext_osc32k>;                   143         clocks = <&ext_osc32k>;
192         #clock-cells = <1>;                       144         #clock-cells = <1>;
193     };                                            145     };
194                                                   146 
195 ...                                               147 ...
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php