0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/clock/allwinner,sun4i-a10-usb-clk.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Allwinner A10 USB 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 properties:
0016 "#clock-cells":
0017 const: 1
0018 description: >
0019 The additional ID argument passed to the clock shall refer to
0020 the index of the output.
0021
0022 "#reset-cells":
0023 const: 1
0024
0025 compatible:
0026 enum:
0027 - allwinner,sun4i-a10-usb-clk
0028 - allwinner,sun5i-a13-usb-clk
0029 - allwinner,sun6i-a31-usb-clk
0030 - allwinner,sun8i-a23-usb-clk
0031 - allwinner,sun8i-h3-usb-clk
0032
0033 reg:
0034 maxItems: 1
0035
0036 clocks:
0037 maxItems: 1
0038
0039 clock-output-names:
0040 minItems: 2
0041 maxItems: 8
0042
0043 required:
0044 - "#clock-cells"
0045 - "#reset-cells"
0046 - compatible
0047 - reg
0048 - clocks
0049 - clock-output-names
0050
0051 additionalProperties: false
0052
0053 allOf:
0054 - if:
0055 properties:
0056 compatible:
0057 contains:
0058 const: allwinner,sun4i-a10-usb-clk
0059
0060 then:
0061 properties:
0062 clock-output-names:
0063 maxItems: 3
0064
0065 - if:
0066 properties:
0067 compatible:
0068 contains:
0069 const: allwinner,sun5i-a13-usb-clk
0070
0071 then:
0072 properties:
0073 clock-output-names:
0074 maxItems: 2
0075
0076 - if:
0077 properties:
0078 compatible:
0079 contains:
0080 const: allwinner,sun6i-a31-usb-clk
0081
0082 then:
0083 properties:
0084 clock-output-names:
0085 maxItems: 6
0086
0087 - if:
0088 properties:
0089 compatible:
0090 contains:
0091 const: allwinner,sun8i-a23-usb-clk
0092
0093 then:
0094 properties:
0095 clock-output-names:
0096 maxItems: 5
0097
0098 - if:
0099 properties:
0100 compatible:
0101 contains:
0102 const: allwinner,sun8i-h3-usb-clk
0103
0104 then:
0105 properties:
0106 clock-output-names:
0107 maxItems: 8
0108
0109 examples:
0110 - |
0111 clk@1c200cc {
0112 #clock-cells = <1>;
0113 #reset-cells = <1>;
0114 compatible = "allwinner,sun4i-a10-usb-clk";
0115 reg = <0x01c200cc 0x4>;
0116 clocks = <&pll6 1>;
0117 clock-output-names = "usb_ohci0", "usb_ohci1", "usb_phy";
0118 };
0119
0120 - |
0121 clk@1c200cc {
0122 #clock-cells = <1>;
0123 #reset-cells = <1>;
0124 compatible = "allwinner,sun5i-a13-usb-clk";
0125 reg = <0x01c200cc 0x4>;
0126 clocks = <&pll6 1>;
0127 clock-output-names = "usb_ohci0", "usb_phy";
0128 };
0129
0130 - |
0131 clk@1c200cc {
0132 #clock-cells = <1>;
0133 #reset-cells = <1>;
0134 compatible = "allwinner,sun6i-a31-usb-clk";
0135 reg = <0x01c200cc 0x4>;
0136 clocks = <&osc24M>;
0137 clock-output-names = "usb_phy0", "usb_phy1", "usb_phy2",
0138 "usb_ohci0", "usb_ohci1",
0139 "usb_ohci2";
0140 };
0141
0142 - |
0143 clk@1c200cc {
0144 #clock-cells = <1>;
0145 #reset-cells = <1>;
0146 compatible = "allwinner,sun8i-a23-usb-clk";
0147 reg = <0x01c200cc 0x4>;
0148 clocks = <&osc24M>;
0149 clock-output-names = "usb_phy0", "usb_phy1", "usb_hsic",
0150 "usb_hsic_12M", "usb_ohci0";
0151 };
0152
0153 - |
0154 clk@1c200cc {
0155 #clock-cells = <1>;
0156 #reset-cells = <1>;
0157 compatible = "allwinner,sun8i-h3-usb-clk";
0158 reg = <0x01c200cc 0x4>;
0159 clocks = <&osc24M>;
0160 clock-output-names = "usb_phy0", "usb_phy1",
0161 "usb_phy2", "usb_phy3",
0162 "usb_ohci0", "usb_ohci1",
0163 "usb_ohci2", "usb_ohci3";
0164 };
0165
0166 ...