1 Device Tree Clock bindings for arch-sunxi
3 This binding uses the common clock binding[1].
5 [1] Documentation/devicetree/bindings/clock/clock-bindings.txt
8 - compatible : shall be one of the following:
9 "allwinner,sun4i-osc-clk" - for a gatable oscillator
10 "allwinner,sun4i-pll1-clk" - for the main PLL clock
11 "allwinner,sun4i-cpu-clk" - for the CPU multiplexer clock
12 "allwinner,sun4i-axi-clk" - for the AXI clock
13 "allwinner,sun4i-axi-gates-clk" - for the AXI gates
14 "allwinner,sun4i-ahb-clk" - for the AHB clock
15 "allwinner,sun4i-ahb-gates-clk" - for the AHB gates
16 "allwinner,sun4i-apb0-clk" - for the APB0 clock
17 "allwinner,sun4i-apb0-gates-clk" - for the APB0 gates
18 "allwinner,sun4i-apb1-clk" - for the APB1 clock
19 "allwinner,sun4i-apb1-mux-clk" - for the APB1 clock muxing
20 "allwinner,sun4i-apb1-gates-clk" - for the APB1 gates
22 Required properties for all clocks:
23 - reg : shall be the control register address for the clock.
24 - clocks : shall be the input parent clock(s) phandle for the clock
25 - #clock-cells : from common clock binding; shall be set to 0 except for
26 "allwinner,sun4i-*-gates-clk" where it shall be set to 1
28 Additionally, "allwinner,sun4i-*-gates-clk" clocks require:
29 - clock-output-names : the corresponding gate names that the clock controls
33 osc24M: osc24M@01c20050 {
35 compatible = "allwinner,sun4i-osc-clk";
36 reg = <0x01c20050 0x4>;
37 clocks = <&osc24M_fixed>;
42 compatible = "allwinner,sun4i-pll1-clk";
43 reg = <0x01c20000 0x4>;
49 compatible = "allwinner,sun4i-cpu-clk";
50 reg = <0x01c20054 0x4>;
51 clocks = <&osc32k>, <&osc24M>, <&pll1>;
58 The "allwinner,sun4i-*-gates-clk" clocks provide several gatable outputs;
59 their corresponding offsets as present on sun4i are listed below. Note that
60 some of these gates are not present on sun5i.
62 * AXI gates ("allwinner,sun4i-axi-gates-clk")
66 * AHB gates ("allwinner,sun4i-ahb-gates-clk")
116 * APB0 gates ("allwinner,sun4i-apb0-gates-clk")
129 * APB1 gates ("allwinner,sun4i-apb1-gates-clk")
150 [*]: The datasheet didn't mention these, but they are present on AW code
151 [**]: The datasheet had this marked as "NC" but they are used on AW code