2016-06-30 02:05:22 +07:00
|
|
|
Allwinner Clock Control Unit Binding
|
|
|
|
------------------------------------
|
|
|
|
|
|
|
|
Required properties :
|
2016-08-25 13:21:59 +07:00
|
|
|
- compatible: must contain one of the following compatibles:
|
2017-08-24 00:23:31 +07:00
|
|
|
- "allwinner,sun4i-a10-ccu"
|
2017-08-08 08:25:40 +07:00
|
|
|
- "allwinner,sun5i-a10s-ccu"
|
|
|
|
- "allwinner,sun5i-a13-ccu"
|
2016-08-25 13:21:59 +07:00
|
|
|
- "allwinner,sun6i-a31-ccu"
|
2017-08-24 00:23:30 +07:00
|
|
|
- "allwinner,sun7i-a20-ccu"
|
2016-08-31 21:55:00 +07:00
|
|
|
- "allwinner,sun8i-a23-ccu"
|
2016-08-24 19:10:15 +07:00
|
|
|
- "allwinner,sun8i-a33-ccu"
|
2017-05-19 14:06:07 +07:00
|
|
|
- "allwinner,sun8i-a83t-ccu"
|
2017-05-26 15:00:23 +07:00
|
|
|
- "allwinner,sun8i-a83t-r-ccu"
|
2016-06-30 02:05:22 +07:00
|
|
|
- "allwinner,sun8i-h3-ccu"
|
2017-04-04 16:50:56 +07:00
|
|
|
- "allwinner,sun8i-h3-r-ccu"
|
2017-05-27 17:23:05 +07:00
|
|
|
+ - "allwinner,sun8i-r40-ccu"
|
2017-01-20 00:54:46 +07:00
|
|
|
- "allwinner,sun8i-v3s-ccu"
|
2017-01-28 19:22:34 +07:00
|
|
|
- "allwinner,sun9i-a80-ccu"
|
2016-07-06 13:31:34 +07:00
|
|
|
- "allwinner,sun50i-a64-ccu"
|
2017-04-04 16:50:56 +07:00
|
|
|
- "allwinner,sun50i-a64-r-ccu"
|
2017-03-02 03:13:39 +07:00
|
|
|
- "allwinner,sun50i-h5-ccu"
|
2018-03-16 21:02:12 +07:00
|
|
|
- "allwinner,sun50i-h6-ccu"
|
2018-05-04 01:38:41 +07:00
|
|
|
- "allwinner,sun50i-h6-r-ccu"
|
2017-08-08 08:25:40 +07:00
|
|
|
- "nextthing,gr8-ccu"
|
2016-06-30 02:05:22 +07: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 14:06:07 +07:00
|
|
|
On the A83T, this is the internal 16MHz oscillator divided by 512
|
2016-06-30 02:05:22 +07:00
|
|
|
- clock-names: Must contain the clock names described just above
|
|
|
|
- #clock-cells : must contain 1
|
|
|
|
- #reset-cells : must contain 1
|
|
|
|
|
2018-03-16 21:02:12 +07:00
|
|
|
For the main CCU on H6, one more clock is needed:
|
|
|
|
- "iosc": the SoC's internal frequency oscillator
|
|
|
|
|
2018-05-04 01:38:41 +07:00
|
|
|
For the PRCM CCUs on A83T/H3/A64/H6, two more clocks are needed:
|
2017-05-31 14:58:19 +07:00
|
|
|
- "pll-periph": the SoC's peripheral PLL from the main CCU
|
2017-04-04 16:50:56 +07:00
|
|
|
- "iosc": the SoC's internal frequency oscillator
|
|
|
|
|
|
|
|
Example for generic CCU:
|
2017-11-08 23:27:48 +07:00
|
|
|
ccu: clock@1c20000 {
|
2016-06-30 02:05:22 +07:00
|
|
|
compatible = "allwinner,sun8i-h3-ccu";
|
|
|
|
reg = <0x01c20000 0x400>;
|
|
|
|
clocks = <&osc24M>, <&osc32k>;
|
|
|
|
clock-names = "hosc", "losc";
|
|
|
|
#clock-cells = <1>;
|
|
|
|
#reset-cells = <1>;
|
|
|
|
};
|
2017-04-04 16:50:56 +07:00
|
|
|
|
|
|
|
Example for PRCM CCU:
|
2017-11-08 23:27:48 +07:00
|
|
|
r_ccu: clock@1f01400 {
|
2017-04-04 16:50:56 +07:00
|
|
|
compatible = "allwinner,sun50i-a64-r-ccu";
|
|
|
|
reg = <0x01f01400 0x100>;
|
2017-05-31 14:58:19 +07:00
|
|
|
clocks = <&osc24M>, <&osc32k>, <&iosc>, <&ccu CLK_PLL_PERIPH0>;
|
|
|
|
clock-names = "hosc", "losc", "iosc", "pll-periph";
|
2017-04-04 16:50:56 +07:00
|
|
|
#clock-cells = <1>;
|
|
|
|
#reset-cells = <1>;
|
|
|
|
};
|