blob: e9c5a1d9834af600de55821bc0077e6235ff0bff [file] [log] [blame]
Maxime Ripardc0692d62016-06-29 21:05:22 +02001Allwinner Clock Control Unit Binding
2------------------------------------
3
4Required properties :
Chen-Yu Tsaic6e6c962016-08-25 14:21:59 +08005- compatible: must contain one of the following compatibles:
6 - "allwinner,sun6i-a31-ccu"
Maxime Ripard56908792016-08-31 16:55:00 +02007 - "allwinner,sun8i-a23-ccu"
Maxime Ripardd05c7482016-08-24 14:10:15 +02008 - "allwinner,sun8i-a33-ccu"
Maxime Ripardc0692d62016-06-29 21:05:22 +02009 - "allwinner,sun8i-h3-ccu"
Icenowy Zhengd4879bd2017-04-04 17:50:56 +080010 - "allwinner,sun8i-h3-r-ccu"
Icenowy Zheng4a9decc2017-01-20 01:54:46 +080011 - "allwinner,sun8i-v3s-ccu"
Chen-Yu Tsaib8eb71d2017-01-28 20:22:34 +080012 - "allwinner,sun9i-a80-ccu"
Maxime Ripardc6a06372016-07-06 08:31:34 +020013 - "allwinner,sun50i-a64-ccu"
Icenowy Zhengd4879bd2017-04-04 17:50:56 +080014 - "allwinner,sun50i-a64-r-ccu"
Icenowy Zheng9be1c8a2017-03-02 04:13:39 +080015 - "allwinner,sun50i-h5-ccu"
Maxime Ripardc0692d62016-06-29 21:05:22 +020016
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
Icenowy Zhengd4879bd2017-04-04 17:50:56 +080025For the PRCM CCUs on H3/A64, one more clock is needed:
26- "iosc": the SoC's internal frequency oscillator
27
28Example for generic CCU:
Maxime Ripardc0692d62016-06-29 21:05:22 +020029ccu: 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};
Icenowy Zhengd4879bd2017-04-04 17:50:56 +080037
38Example for PRCM CCU:
39r_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};