diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2017-07-17 22:48:31 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2017-09-18 20:34:55 +0200 |
commit | 3b88f74bbe9134465a84234e1e7400af585f8c2b (patch) | |
tree | 6c8767c77eb1f0ba2647ac3a4ce76826953f3301 /target/linux/sunxi/patches-4.9/0024-arm64-allwinner-a64-add-r_ccu-node.patch | |
parent | 34a422794ddab738408edc7e3980ccbc14f28af4 (diff) | |
download | upstream-3b88f74bbe9134465a84234e1e7400af585f8c2b.tar.gz upstream-3b88f74bbe9134465a84234e1e7400af585f8c2b.tar.bz2 upstream-3b88f74bbe9134465a84234e1e7400af585f8c2b.zip |
sunxi: Backport patches from kernel 4.11 for A64
This backports some more patches from kernel 4.11 adding more devices
to the device tree of the A64 SoC.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'target/linux/sunxi/patches-4.9/0024-arm64-allwinner-a64-add-r_ccu-node.patch')
-rw-r--r-- | target/linux/sunxi/patches-4.9/0024-arm64-allwinner-a64-add-r_ccu-node.patch | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/target/linux/sunxi/patches-4.9/0024-arm64-allwinner-a64-add-r_ccu-node.patch b/target/linux/sunxi/patches-4.9/0024-arm64-allwinner-a64-add-r_ccu-node.patch new file mode 100644 index 0000000000..19a3589708 --- /dev/null +++ b/target/linux/sunxi/patches-4.9/0024-arm64-allwinner-a64-add-r_ccu-node.patch @@ -0,0 +1,52 @@ +From 791a9e001d3ba3b552888b0bf3c592a50b71f57e Mon Sep 17 00:00:00 2001 +From: Icenowy Zheng <icenowy@aosc.xyz> +Date: Tue, 4 Apr 2017 17:50:58 +0800 +Subject: arm64: allwinner: a64: add r_ccu node + +A64 SoC have a CCU (r_ccu) in PRCM block. + +Add the device node for it. + +The mux 3 of R_CCU is an internal oscillator, which is 16MHz according +to the user manual, and has only 30% accuracy based on our experience +on older SoCs. The real mesaured value of it on two Pine64 boards is +around 11MHz, which is around 70% of 16MHz. + +Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz> +Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> +--- + arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 17 +++++++++++++++++ + 1 file changed, 17 insertions(+) + +--- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi ++++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +@@ -98,6 +98,14 @@ + clock-output-names = "osc32k"; + }; + ++ iosc: internal-osc-clk { ++ #clock-cells = <0>; ++ compatible = "fixed-clock"; ++ clock-frequency = <16000000>; ++ clock-accuracy = <300000000>; ++ clock-output-names = "iosc"; ++ }; ++ + psci { + compatible = "arm,psci-0.2"; + method = "smc"; +@@ -389,5 +397,14 @@ + interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; + }; ++ ++ r_ccu: clock@1f01400 { ++ compatible = "allwinner,sun50i-a64-r-ccu"; ++ reg = <0x01f01400 0x100>; ++ clocks = <&osc24M>, <&osc32k>, <&iosc>; ++ clock-names = "hosc", "losc", "iosc"; ++ #clock-cells = <1>; ++ #reset-cells = <1>; ++ }; + }; + }; |