blob: b24de10039471fc64536441204e2a9ee6fd5b4a4 [file] [log] [blame]
Emilio Lópeze874a662013-02-25 11:44:26 -03001Device Tree Clock bindings for arch-sunxi
2
3This binding uses the common clock binding[1].
4
5[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
6
7Required properties:
8- compatible : shall be one of the following:
Emilio Lópeze3276992013-03-26 23:39:17 -03009 "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
Emilio López13569a72013-03-27 18:20:37 -030013 "allwinner,sun4i-axi-gates-clk" - for the AXI gates
Emilio Lópeze3276992013-03-26 23:39:17 -030014 "allwinner,sun4i-ahb-clk" - for the AHB clock
Maxime Ripard4f985b42013-04-30 11:56:22 +020015 "allwinner,sun4i-ahb-gates-clk" - for the AHB gates on A10
16 "allwinner,sun5i-a13-ahb-gates-clk" - for the AHB gates on A13
Maxime Ripard2371dd82013-07-16 11:21:59 +020017 "allwinner,sun5i-a10s-ahb-gates-clk" - for the AHB gates on A10s
Emilio Lópeze3276992013-03-26 23:39:17 -030018 "allwinner,sun4i-apb0-clk" - for the APB0 clock
Maxime Ripard4f985b42013-04-30 11:56:22 +020019 "allwinner,sun4i-apb0-gates-clk" - for the APB0 gates on A10
20 "allwinner,sun5i-a13-apb0-gates-clk" - for the APB0 gates on A13
Maxime Ripard2371dd82013-07-16 11:21:59 +020021 "allwinner,sun5i-a10s-apb0-gates-clk" - for the APB0 gates on A10s
Emilio Lópeze3276992013-03-26 23:39:17 -030022 "allwinner,sun4i-apb1-clk" - for the APB1 clock
23 "allwinner,sun4i-apb1-mux-clk" - for the APB1 clock muxing
Maxime Ripard4f985b42013-04-30 11:56:22 +020024 "allwinner,sun4i-apb1-gates-clk" - for the APB1 gates on A10
25 "allwinner,sun5i-a13-apb1-gates-clk" - for the APB1 gates on A13
Maxime Ripard2371dd82013-07-16 11:21:59 +020026 "allwinner,sun5i-a10s-apb1-gates-clk" - for the APB1 gates on A10s
Emilio Lópeze874a662013-02-25 11:44:26 -030027
28Required properties for all clocks:
29- reg : shall be the control register address for the clock.
30- clocks : shall be the input parent clock(s) phandle for the clock
Emilio López13569a72013-03-27 18:20:37 -030031- #clock-cells : from common clock binding; shall be set to 0 except for
Maxime Ripard4f985b42013-04-30 11:56:22 +020032 "allwinner,*-gates-clk" where it shall be set to 1
Emilio López13569a72013-03-27 18:20:37 -030033
Maxime Ripard4f985b42013-04-30 11:56:22 +020034Additionally, "allwinner,*-gates-clk" clocks require:
Emilio López13569a72013-03-27 18:20:37 -030035- clock-output-names : the corresponding gate names that the clock controls
Emilio Lópeze874a662013-02-25 11:44:26 -030036
Maxime Ripard4f985b42013-04-30 11:56:22 +020037Clock consumers should specify the desired clocks they use with a
38"clocks" phandle cell. Consumers that are using a gated clock should
39provide an additional ID in their clock property. The values of this
40ID are documented in sunxi/<soc>-gates.txt.
41
Emilio Lópeze874a662013-02-25 11:44:26 -030042For example:
43
44osc24M: osc24M@01c20050 {
45 #clock-cells = <0>;
Emilio Lópeze3276992013-03-26 23:39:17 -030046 compatible = "allwinner,sun4i-osc-clk";
Emilio Lópeze874a662013-02-25 11:44:26 -030047 reg = <0x01c20050 0x4>;
48 clocks = <&osc24M_fixed>;
49};
50
51pll1: pll1@01c20000 {
52 #clock-cells = <0>;
Emilio Lópeze3276992013-03-26 23:39:17 -030053 compatible = "allwinner,sun4i-pll1-clk";
Emilio Lópeze874a662013-02-25 11:44:26 -030054 reg = <0x01c20000 0x4>;
55 clocks = <&osc24M>;
56};
57
58cpu: cpu@01c20054 {
59 #clock-cells = <0>;
Emilio Lópeze3276992013-03-26 23:39:17 -030060 compatible = "allwinner,sun4i-cpu-clk";
Emilio Lópeze874a662013-02-25 11:44:26 -030061 reg = <0x01c20054 0x4>;
62 clocks = <&osc32k>, <&osc24M>, <&pll1>;
63};