blob: 20b8479c2760e393541d95029eaa1ca14a52e4a9 [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
13 "allwinner,sun4i-ahb-clk" - for the AHB clock
14 "allwinner,sun4i-apb0-clk" - for the APB0 clock
15 "allwinner,sun4i-apb1-clk" - for the APB1 clock
16 "allwinner,sun4i-apb1-mux-clk" - for the APB1 clock muxing
Emilio Lópeze874a662013-02-25 11:44:26 -030017
18Required properties for all clocks:
19- reg : shall be the control register address for the clock.
20- clocks : shall be the input parent clock(s) phandle for the clock
21- #clock-cells : from common clock binding; shall be set to 0.
22
23For example:
24
25osc24M: osc24M@01c20050 {
26 #clock-cells = <0>;
Emilio Lópeze3276992013-03-26 23:39:17 -030027 compatible = "allwinner,sun4i-osc-clk";
Emilio Lópeze874a662013-02-25 11:44:26 -030028 reg = <0x01c20050 0x4>;
29 clocks = <&osc24M_fixed>;
30};
31
32pll1: pll1@01c20000 {
33 #clock-cells = <0>;
Emilio Lópeze3276992013-03-26 23:39:17 -030034 compatible = "allwinner,sun4i-pll1-clk";
Emilio Lópeze874a662013-02-25 11:44:26 -030035 reg = <0x01c20000 0x4>;
36 clocks = <&osc24M>;
37};
38
39cpu: cpu@01c20054 {
40 #clock-cells = <0>;
Emilio Lópeze3276992013-03-26 23:39:17 -030041 compatible = "allwinner,sun4i-cpu-clk";
Emilio Lópeze874a662013-02-25 11:44:26 -030042 reg = <0x01c20054 0x4>;
43 clocks = <&osc32k>, <&osc24M>, <&pll1>;
44};