]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - Documentation/devicetree/bindings/clock/sunxi-ccu.txt
dt-bindings: add device tree binding for Allwinner H6 main CCU
[mirror_ubuntu-bionic-kernel.git] / Documentation / devicetree / bindings / clock / sunxi-ccu.txt
CommitLineData
c0692d68
MR
1Allwinner Clock Control Unit Binding
2------------------------------------
3
4Required properties :
c6e6c96d 5- compatible: must contain one of the following compatibles:
de275d23 6 - "allwinner,sun4i-a10-ccu"
7e784240
JL
7 - "allwinner,sun5i-a10s-ccu"
8 - "allwinner,sun5i-a13-ccu"
c6e6c96d 9 - "allwinner,sun6i-a31-ccu"
0f1053a9 10 - "allwinner,sun7i-a20-ccu"
5690879d 11 - "allwinner,sun8i-a23-ccu"
d05c748b 12 - "allwinner,sun8i-a33-ccu"
11ad470c 13 - "allwinner,sun8i-a83t-ccu"
0d28276b 14 - "allwinner,sun8i-a83t-r-ccu"
c0692d68 15 - "allwinner,sun8i-h3-ccu"
d4879bda 16 - "allwinner,sun8i-h3-r-ccu"
0a634155 17+ - "allwinner,sun8i-r40-ccu"
4a9decc9 18 - "allwinner,sun8i-v3s-ccu"
b8eb71dc 19 - "allwinner,sun9i-a80-ccu"
c6a06374 20 - "allwinner,sun50i-a64-ccu"
d4879bda 21 - "allwinner,sun50i-a64-r-ccu"
9be1c8af 22 - "allwinner,sun50i-h5-ccu"
b4edc2be 23 - "allwinner,sun50i-h6-ccu"
7e784240 24 - "nextthing,gr8-ccu"
c0692d68
MR
25
26- reg: Must contain the registers base address and length
27- clocks: phandle to the oscillators feeding the CCU. Two are needed:
28 - "hosc": the high frequency oscillator (usually at 24MHz)
29 - "losc": the low frequency oscillator (usually at 32kHz)
11ad470c 30 On the A83T, this is the internal 16MHz oscillator divided by 512
c0692d68
MR
31- clock-names: Must contain the clock names described just above
32- #clock-cells : must contain 1
33- #reset-cells : must contain 1
34
b4edc2be
IZ
35For the main CCU on H6, one more clock is needed:
36- "iosc": the SoC's internal frequency oscillator
37
0d28276b 38For the PRCM CCUs on A83T/H3/A64, two more clocks are needed:
a91afc97 39- "pll-periph": the SoC's peripheral PLL from the main CCU
d4879bda
IZ
40- "iosc": the SoC's internal frequency oscillator
41
42Example for generic CCU:
48c926cd 43ccu: clock@1c20000 {
c0692d68
MR
44 compatible = "allwinner,sun8i-h3-ccu";
45 reg = <0x01c20000 0x400>;
46 clocks = <&osc24M>, <&osc32k>;
47 clock-names = "hosc", "losc";
48 #clock-cells = <1>;
49 #reset-cells = <1>;
50};
d4879bda
IZ
51
52Example for PRCM CCU:
48c926cd 53r_ccu: clock@1f01400 {
d4879bda
IZ
54 compatible = "allwinner,sun50i-a64-r-ccu";
55 reg = <0x01f01400 0x100>;
a91afc97
CYT
56 clocks = <&osc24M>, <&osc32k>, <&iosc>, <&ccu CLK_PLL_PERIPH0>;
57 clock-names = "hosc", "losc", "iosc", "pll-periph";
d4879bda
IZ
58 #clock-cells = <1>;
59 #reset-cells = <1>;
60};