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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/mfd/allwinner,sun8i-a23-prcm.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 ] ~

  1 # SPDX-License-Identifier: GPL-2.0+
  2 %YAML 1.2
  3 ---
  4 $id: http://devicetree.org/schemas/mfd/allwinner,sun8i-a23-prcm.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: Allwinner A23 PRCM
  8 
  9 maintainers:
 10   - Chen-Yu Tsai <wens@csie.org>
 11   - Maxime Ripard <mripard@kernel.org>
 12 
 13 deprecated: true
 14 
 15 properties:
 16   compatible:
 17     const: allwinner,sun8i-a23-prcm
 18 
 19   reg:
 20     maxItems: 1
 21 
 22 patternProperties:
 23   "^.*(clk|rst|codec).*$":
 24     type: object
 25     unevaluatedProperties: false
 26 
 27     properties:
 28       compatible:
 29         enum:
 30           - fixed-factor-clock
 31           - allwinner,sun8i-a23-apb0-clk
 32           - allwinner,sun8i-a23-apb0-gates-clk
 33           - allwinner,sun6i-a31-clock-reset
 34           - allwinner,sun8i-a23-codec-analog
 35 
 36     required:
 37       - compatible
 38 
 39     allOf:
 40       - if:
 41           properties:
 42             compatible:
 43               contains:
 44                 const: fixed-factor-clock
 45 
 46         then:
 47           $ref: /schemas/clock/fixed-factor-clock.yaml#
 48 
 49       - if:
 50           properties:
 51             compatible:
 52               contains:
 53                 const: allwinner,sun8i-a23-apb0-clk
 54 
 55         then:
 56           properties:
 57             "#clock-cells":
 58               const: 0
 59 
 60             clocks:
 61               maxItems: 1
 62 
 63             clock-output-names:
 64               maxItems: 1
 65 
 66           required:
 67             - "#clock-cells"
 68             - clocks
 69             - clock-output-names
 70 
 71       - if:
 72           properties:
 73             compatible:
 74               contains:
 75                 const: allwinner,sun8i-a23-apb0-gates-clk
 76 
 77         then:
 78           properties:
 79             "#clock-cells":
 80               const: 1
 81               description: >
 82                 This additional argument passed to that clock is the
 83                 offset of the bit controlling this particular gate in
 84                 the register.
 85 
 86             clocks:
 87               maxItems: 1
 88 
 89             clock-output-names:
 90               minItems: 1
 91               maxItems: 32
 92 
 93           required:
 94             - "#clock-cells"
 95             - clocks
 96             - clock-output-names
 97 
 98       - if:
 99           properties:
100             compatible:
101               contains:
102                 const: allwinner,sun6i-a31-clock-reset
103 
104         then:
105           properties:
106             "#reset-cells":
107               const: 1
108 
109           required:
110             - "#reset-cells"
111 
112 required:
113   - compatible
114   - reg
115 
116 additionalProperties: false
117 
118 examples:
119   - |
120     prcm@1f01400 {
121         compatible = "allwinner,sun8i-a23-prcm";
122         reg = <0x01f01400 0x200>;
123 
124         ar100: ar100_clk {
125             compatible = "fixed-factor-clock";
126             #clock-cells = <0>;
127             clock-div = <1>;
128             clock-mult = <1>;
129             clocks = <&osc24M>;
130             clock-output-names = "ar100";
131         };
132 
133         ahb0: ahb0_clk {
134             compatible = "fixed-factor-clock";
135             #clock-cells = <0>;
136             clock-div = <1>;
137             clock-mult = <1>;
138             clocks = <&ar100>;
139             clock-output-names = "ahb0";
140         };
141 
142         apb0: apb0_clk {
143             compatible = "allwinner,sun8i-a23-apb0-clk";
144             #clock-cells = <0>;
145             clocks = <&ahb0>;
146             clock-output-names = "apb0";
147         };
148 
149         apb0_gates: apb0_gates_clk {
150             compatible = "allwinner,sun8i-a23-apb0-gates-clk";
151             #clock-cells = <1>;
152             clocks = <&apb0>;
153             clock-output-names = "apb0_pio", "apb0_timer",
154                                  "apb0_rsb", "apb0_uart",
155                                  "apb0_i2c";
156         };
157 
158         apb0_rst: apb0_rst {
159             compatible = "allwinner,sun6i-a31-clock-reset";
160             #reset-cells = <1>;
161         };
162 
163         codec_analog: codec-analog {
164             compatible = "allwinner,sun8i-a23-codec-analog";
165         };
166     };
167 
168 ...

~ [ 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