Maxime Ripard | c0692d6 | 2016-06-29 21:05:22 +0200 | [diff] [blame] | 1 | Allwinner Clock Control Unit Binding |
| 2 | ------------------------------------ |
| 3 | |
| 4 | Required properties : |
Chen-Yu Tsai | c6e6c96 | 2016-08-25 14:21:59 +0800 | [diff] [blame] | 5 | - compatible: must contain one of the following compatibles: |
| 6 | - "allwinner,sun6i-a31-ccu" |
Maxime Ripard | 5690879 | 2016-08-31 16:55:00 +0200 | [diff] [blame] | 7 | - "allwinner,sun8i-a23-ccu" |
Maxime Ripard | d05c748 | 2016-08-24 14:10:15 +0200 | [diff] [blame] | 8 | - "allwinner,sun8i-a33-ccu" |
Maxime Ripard | c0692d6 | 2016-06-29 21:05:22 +0200 | [diff] [blame] | 9 | - "allwinner,sun8i-h3-ccu" |
Icenowy Zheng | d4879bd | 2017-04-04 17:50:56 +0800 | [diff] [blame] | 10 | - "allwinner,sun8i-h3-r-ccu" |
Icenowy Zheng | 4a9decc | 2017-01-20 01:54:46 +0800 | [diff] [blame] | 11 | - "allwinner,sun8i-v3s-ccu" |
Chen-Yu Tsai | b8eb71d | 2017-01-28 20:22:34 +0800 | [diff] [blame] | 12 | - "allwinner,sun9i-a80-ccu" |
Maxime Ripard | c6a0637 | 2016-07-06 08:31:34 +0200 | [diff] [blame] | 13 | - "allwinner,sun50i-a64-ccu" |
Icenowy Zheng | d4879bd | 2017-04-04 17:50:56 +0800 | [diff] [blame] | 14 | - "allwinner,sun50i-a64-r-ccu" |
Icenowy Zheng | 9be1c8a | 2017-03-02 04:13:39 +0800 | [diff] [blame] | 15 | - "allwinner,sun50i-h5-ccu" |
Maxime Ripard | c0692d6 | 2016-06-29 21:05:22 +0200 | [diff] [blame] | 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 | |
Icenowy Zheng | d4879bd | 2017-04-04 17:50:56 +0800 | [diff] [blame] | 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: |
Maxime Ripard | c0692d6 | 2016-06-29 21:05:22 +0200 | [diff] [blame] | 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 | }; |
Icenowy Zheng | d4879bd | 2017-04-04 17:50:56 +0800 | [diff] [blame] | 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 | }; |