mirror of https://gitee.com/openkylin/linux.git
45 lines
1.3 KiB
Plaintext
45 lines
1.3 KiB
Plaintext
|
Device Tree Clock bindings for arch-sunxi
|
||
|
|
||
|
This binding uses the common clock binding[1].
|
||
|
|
||
|
[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
|
||
|
|
||
|
Required properties:
|
||
|
- compatible : shall be one of the following:
|
||
|
"allwinner,sunxi-osc-clk" - for a gatable oscillator
|
||
|
"allwinner,sunxi-pll1-clk" - for the main PLL clock
|
||
|
"allwinner,sunxi-cpu-clk" - for the CPU multiplexer clock
|
||
|
"allwinner,sunxi-axi-clk" - for the sunxi AXI clock
|
||
|
"allwinner,sunxi-ahb-clk" - for the sunxi AHB clock
|
||
|
"allwinner,sunxi-apb0-clk" - for the sunxi APB0 clock
|
||
|
"allwinner,sunxi-apb1-clk" - for the sunxi APB1 clock
|
||
|
"allwinner,sunxi-apb1-mux-clk" - for the sunxi APB1 clock muxing
|
||
|
|
||
|
Required properties for all clocks:
|
||
|
- reg : shall be the control register address for the clock.
|
||
|
- clocks : shall be the input parent clock(s) phandle for the clock
|
||
|
- #clock-cells : from common clock binding; shall be set to 0.
|
||
|
|
||
|
For example:
|
||
|
|
||
|
osc24M: osc24M@01c20050 {
|
||
|
#clock-cells = <0>;
|
||
|
compatible = "allwinner,sunxi-osc-clk";
|
||
|
reg = <0x01c20050 0x4>;
|
||
|
clocks = <&osc24M_fixed>;
|
||
|
};
|
||
|
|
||
|
pll1: pll1@01c20000 {
|
||
|
#clock-cells = <0>;
|
||
|
compatible = "allwinner,sunxi-pll1-clk";
|
||
|
reg = <0x01c20000 0x4>;
|
||
|
clocks = <&osc24M>;
|
||
|
};
|
||
|
|
||
|
cpu: cpu@01c20054 {
|
||
|
#clock-cells = <0>;
|
||
|
compatible = "allwinner,sunxi-cpu-clk";
|
||
|
reg = <0x01c20054 0x4>;
|
||
|
clocks = <&osc32k>, <&osc24M>, <&pll1>;
|
||
|
};
|