2016-06-30 03:05:22 +08:00
|
|
|
Allwinner Clock Control Unit Binding
|
|
|
|
------------------------------------
|
|
|
|
|
|
|
|
Required properties :
|
2016-08-25 14:21:59 +08:00
|
|
|
- compatible: must contain one of the following compatibles:
|
|
|
|
- "allwinner,sun6i-a31-ccu"
|
2016-08-31 22:55:00 +08:00
|
|
|
- "allwinner,sun8i-a23-ccu"
|
2016-08-24 20:10:15 +08:00
|
|
|
- "allwinner,sun8i-a33-ccu"
|
2017-05-19 15:06:07 +08:00
|
|
|
- "allwinner,sun8i-a83t-ccu"
|
2017-05-26 16:00:23 +08:00
|
|
|
- "allwinner,sun8i-a83t-r-ccu"
|
2016-06-30 03:05:22 +08:00
|
|
|
- "allwinner,sun8i-h3-ccu"
|
2017-04-04 17:50:56 +08:00
|
|
|
- "allwinner,sun8i-h3-r-ccu"
|
2017-01-20 01:54:46 +08:00
|
|
|
- "allwinner,sun8i-v3s-ccu"
|
2017-01-28 20:22:34 +08:00
|
|
|
- "allwinner,sun9i-a80-ccu"
|
2016-07-06 14:31:34 +08:00
|
|
|
- "allwinner,sun50i-a64-ccu"
|
2017-04-04 17:50:56 +08:00
|
|
|
- "allwinner,sun50i-a64-r-ccu"
|
2017-03-02 04:13:39 +08:00
|
|
|
- "allwinner,sun50i-h5-ccu"
|
2016-06-30 03:05:22 +08:00
|
|
|
|
|
|
|
- reg: Must contain the registers base address and length
|
|
|
|
- clocks: phandle to the oscillators feeding the CCU. Two are needed:
|
|
|
|
- "hosc": the high frequency oscillator (usually at 24MHz)
|
|
|
|
- "losc": the low frequency oscillator (usually at 32kHz)
|
2017-05-19 15:06:07 +08:00
|
|
|
On the A83T, this is the internal 16MHz oscillator divided by 512
|
2016-06-30 03:05:22 +08:00
|
|
|
- clock-names: Must contain the clock names described just above
|
|
|
|
- #clock-cells : must contain 1
|
|
|
|
- #reset-cells : must contain 1
|
|
|
|
|
2017-05-26 16:00:23 +08:00
|
|
|
For the PRCM CCUs on A83T/H3/A64, two more clocks are needed:
|
2017-05-31 15:58:19 +08:00
|
|
|
- "pll-periph": the SoC's peripheral PLL from the main CCU
|
2017-04-04 17:50:56 +08:00
|
|
|
- "iosc": the SoC's internal frequency oscillator
|
|
|
|
|
|
|
|
Example for generic CCU:
|
2016-06-30 03:05:22 +08:00
|
|
|
ccu: clock@01c20000 {
|
|
|
|
compatible = "allwinner,sun8i-h3-ccu";
|
|
|
|
reg = <0x01c20000 0x400>;
|
|
|
|
clocks = <&osc24M>, <&osc32k>;
|
|
|
|
clock-names = "hosc", "losc";
|
|
|
|
#clock-cells = <1>;
|
|
|
|
#reset-cells = <1>;
|
|
|
|
};
|
2017-04-04 17:50:56 +08:00
|
|
|
|
|
|
|
Example for PRCM CCU:
|
|
|
|
r_ccu: clock@01f01400 {
|
|
|
|
compatible = "allwinner,sun50i-a64-r-ccu";
|
|
|
|
reg = <0x01f01400 0x100>;
|
2017-05-31 15:58:19 +08:00
|
|
|
clocks = <&osc24M>, <&osc32k>, <&iosc>, <&ccu CLK_PLL_PERIPH0>;
|
|
|
|
clock-names = "hosc", "losc", "iosc", "pll-periph";
|
2017-04-04 17:50:56 +08:00
|
|
|
#clock-cells = <1>;
|
|
|
|
#reset-cells = <1>;
|
|
|
|
};
|