sunxi: Backport patches from kernel 4.11 for A64
[openwrt/staging/lynxis.git] / target / linux / sunxi / patches-4.9 / 0027-arm64-allwinner-a64-Add-PLL_PERIPH0-clock-to-the-R_C.patch
1 From f74994a94063bc85ac1d6ad677ed06b5279c101f Mon Sep 17 00:00:00 2001
2 From: Chen-Yu Tsai <wens@csie.org>
3 Date: Wed, 31 May 2017 15:58:24 +0800
4 Subject: arm64: allwinner: a64: Add PLL_PERIPH0 clock to the R_CCU
5
6 The AR100 clock within the R_CCU (PRCM) has the PLL_PERIPH0 as one of
7 its parents.
8
9 This adds the reference in the device tree describing this relationship.
10 This patch uses a raw number for the clock index to ease merging by
11 avoiding cross tree dependencies.
12
13 Signed-off-by: Chen-Yu Tsai <wens@csie.org>
14 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
15 ---
16 arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 5 +++--
17 1 file changed, 3 insertions(+), 2 deletions(-)
18
19 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
20 +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
21 @@ -403,8 +403,9 @@
22 r_ccu: clock@1f01400 {
23 compatible = "allwinner,sun50i-a64-r-ccu";
24 reg = <0x01f01400 0x100>;
25 - clocks = <&osc24M>, <&osc32k>, <&iosc>;
26 - clock-names = "hosc", "losc", "iosc";
27 + clocks = <&osc24M>, <&osc32k>, <&iosc>,
28 + <&ccu 11>;
29 + clock-names = "hosc", "losc", "iosc", "pll-periph";
30 #clock-cells = <1>;
31 #reset-cells = <1>;
32 };