]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - Documentation/devicetree/bindings/clock/sunxi-ccu.txt
Merge remote-tracking branch 'regulator/fix/max77802' into regulator-linus
[mirror_ubuntu-artful-kernel.git] / Documentation / devicetree / bindings / clock / sunxi-ccu.txt
1 Allwinner Clock Control Unit Binding
2 ------------------------------------
3
4 Required properties :
5 - compatible: must contain one of the following compatibles:
6 - "allwinner,sun6i-a31-ccu"
7 - "allwinner,sun8i-a23-ccu"
8 - "allwinner,sun8i-a33-ccu"
9 - "allwinner,sun8i-h3-ccu"
10 - "allwinner,sun8i-h3-r-ccu"
11 - "allwinner,sun8i-v3s-ccu"
12 - "allwinner,sun9i-a80-ccu"
13 - "allwinner,sun50i-a64-ccu"
14 - "allwinner,sun50i-a64-r-ccu"
15 - "allwinner,sun50i-h5-ccu"
16
17 - reg: Must contain the registers base address and length
18 - clocks: phandle to the oscillators feeding the CCU. Two are needed:
19 - "hosc": the high frequency oscillator (usually at 24MHz)
20 - "losc": the low frequency oscillator (usually at 32kHz)
21 - clock-names: Must contain the clock names described just above
22 - #clock-cells : must contain 1
23 - #reset-cells : must contain 1
24
25 For the PRCM CCUs on H3/A64, two more clocks are needed:
26 - "pll-periph": the SoC's peripheral PLL from the main CCU
27 - "iosc": the SoC's internal frequency oscillator
28
29 Example for generic CCU:
30 ccu: clock@01c20000 {
31 compatible = "allwinner,sun8i-h3-ccu";
32 reg = <0x01c20000 0x400>;
33 clocks = <&osc24M>, <&osc32k>;
34 clock-names = "hosc", "losc";
35 #clock-cells = <1>;
36 #reset-cells = <1>;
37 };
38
39 Example for PRCM CCU:
40 r_ccu: clock@01f01400 {
41 compatible = "allwinner,sun50i-a64-r-ccu";
42 reg = <0x01f01400 0x100>;
43 clocks = <&osc24M>, <&osc32k>, <&iosc>, <&ccu CLK_PLL_PERIPH0>;
44 clock-names = "hosc", "losc", "iosc", "pll-periph";
45 #clock-cells = <1>;
46 #reset-cells = <1>;
47 };