mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-15 23:16:51 +07:00
11ad470c54
The A83T clock control unit is a hybrid of some new style clock designs from the A80, and old style layout from the other Allwinner SoCs. Like the A80, the SoC does not have a low speed 32.768 kHz oscillator. Unlike the A80, there is no clock input either. The only low speed clock available is the internal oscillator which runs at around 16 MHz, divided by 512, yielding a low speed clock around 31.250 kHz. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
50 lines
1.6 KiB
Plaintext
50 lines
1.6 KiB
Plaintext
Allwinner Clock Control Unit Binding
|
|
------------------------------------
|
|
|
|
Required properties :
|
|
- compatible: must contain one of the following compatibles:
|
|
- "allwinner,sun6i-a31-ccu"
|
|
- "allwinner,sun8i-a23-ccu"
|
|
- "allwinner,sun8i-a33-ccu"
|
|
- "allwinner,sun8i-a83t-ccu"
|
|
- "allwinner,sun8i-h3-ccu"
|
|
- "allwinner,sun8i-h3-r-ccu"
|
|
- "allwinner,sun8i-v3s-ccu"
|
|
- "allwinner,sun9i-a80-ccu"
|
|
- "allwinner,sun50i-a64-ccu"
|
|
- "allwinner,sun50i-a64-r-ccu"
|
|
- "allwinner,sun50i-h5-ccu"
|
|
|
|
- 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)
|
|
On the A83T, this is the internal 16MHz oscillator divided by 512
|
|
- clock-names: Must contain the clock names described just above
|
|
- #clock-cells : must contain 1
|
|
- #reset-cells : must contain 1
|
|
|
|
For the PRCM CCUs on H3/A64, two more clocks are needed:
|
|
- "pll-periph": the SoC's peripheral PLL from the main CCU
|
|
- "iosc": the SoC's internal frequency oscillator
|
|
|
|
Example for generic CCU:
|
|
ccu: clock@01c20000 {
|
|
compatible = "allwinner,sun8i-h3-ccu";
|
|
reg = <0x01c20000 0x400>;
|
|
clocks = <&osc24M>, <&osc32k>;
|
|
clock-names = "hosc", "losc";
|
|
#clock-cells = <1>;
|
|
#reset-cells = <1>;
|
|
};
|
|
|
|
Example for PRCM CCU:
|
|
r_ccu: clock@01f01400 {
|
|
compatible = "allwinner,sun50i-a64-r-ccu";
|
|
reg = <0x01f01400 0x100>;
|
|
clocks = <&osc24M>, <&osc32k>, <&iosc>, <&ccu CLK_PLL_PERIPH0>;
|
|
clock-names = "hosc", "losc", "iosc", "pll-periph";
|
|
#clock-cells = <1>;
|
|
#reset-cells = <1>;
|
|
};
|