]> git.karo-electronics.de Git - karo-tx-linux.git/blob - Documentation/devicetree/bindings/clock/sunxi-ccu.txt
ALSA: hda - Apply quirks to Broxton-T, too
[karo-tx-linux.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, one more clock is needed:
26 - "iosc": the SoC's internal frequency oscillator
27
28 Example for generic CCU:
29 ccu: clock@01c20000 {
30         compatible = "allwinner,sun8i-h3-ccu";
31         reg = <0x01c20000 0x400>;
32         clocks = <&osc24M>, <&osc32k>;
33         clock-names = "hosc", "losc";
34         #clock-cells = <1>;
35         #reset-cells = <1>;
36 };
37
38 Example for PRCM CCU:
39 r_ccu: clock@01f01400 {
40         compatible = "allwinner,sun50i-a64-r-ccu";
41         reg = <0x01f01400 0x100>;
42         clocks = <&osc24M>, <&osc32k>, <&iosc>;
43         clock-names = "hosc", "losc", "iosc";
44         #clock-cells = <1>;
45         #reset-cells = <1>;
46 };