Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/clock/allwinner,sun4i-a10-mod0-clk.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Allwinner A10 Module 0 Clock Device Tree Bindings
0008 
0009 maintainers:
0010   - Chen-Yu Tsai <wens@csie.org>
0011   - Maxime Ripard <mripard@kernel.org>
0012 
0013 deprecated: true
0014 
0015 select:
0016   properties:
0017     compatible:
0018       contains:
0019         enum:
0020           - allwinner,sun4i-a10-mod0-clk
0021           - allwinner,sun9i-a80-mod0-clk
0022 
0023   # The PRCM on the A31 and A23 will have the reg property missing,
0024   # since it's set at the upper level node, and will be validated by
0025   # PRCM's schema. Make sure we only validate standalone nodes.
0026   required:
0027     - compatible
0028     - reg
0029 
0030 properties:
0031   "#clock-cells":
0032     const: 0
0033 
0034   compatible:
0035     enum:
0036       - allwinner,sun4i-a10-mod0-clk
0037       - allwinner,sun9i-a80-mod0-clk
0038 
0039   reg:
0040     maxItems: 1
0041 
0042   clocks:
0043     # On the A80, the PRCM mod0 clocks have 2 parents.
0044     minItems: 2
0045     maxItems: 3
0046     description: >
0047       The parent order must match the hardware programming order.
0048 
0049   clock-output-names:
0050     maxItems: 1
0051 
0052 required:
0053   - "#clock-cells"
0054   - compatible
0055   - reg
0056   - clocks
0057   - clock-output-names
0058 
0059 additionalProperties: false
0060 
0061 examples:
0062   - |
0063     clk@1c20080 {
0064         #clock-cells = <0>;
0065         compatible = "allwinner,sun4i-a10-mod0-clk";
0066         reg = <0x01c20080 0x4>;
0067         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
0068         clock-output-names = "nand";
0069     };
0070 
0071   - |
0072     clk@8001454 {
0073         #clock-cells = <0>;
0074         compatible = "allwinner,sun4i-a10-mod0-clk";
0075         reg = <0x08001454 0x4>;
0076         clocks = <&osc32k>, <&osc24M>;
0077         clock-output-names = "r_ir";
0078     };
0079 
0080 ...