From 67f0d48ba3724f072c029405a5c8e2c4d5b7baf7 Mon Sep 17 00:00:00 2001 From: Martin Ayotte Date: Tue, 30 Jun 2020 13:32:36 -0400 Subject: [PATCH] add patch for missing ext_osc32k on H6 to fix OPiLite2 WiFi --- .../add-missing-ext_osc32k-on-H6.patch | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 patch/kernel/sunxi-dev/add-missing-ext_osc32k-on-H6.patch diff --git a/patch/kernel/sunxi-dev/add-missing-ext_osc32k-on-H6.patch b/patch/kernel/sunxi-dev/add-missing-ext_osc32k-on-H6.patch new file mode 100644 index 0000000000..ddcf5a3182 --- /dev/null +++ b/patch/kernel/sunxi-dev/add-missing-ext_osc32k-on-H6.patch @@ -0,0 +1,26 @@ +diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +index f55879b..c3621dd 100644 +--- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi ++++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +@@ -70,6 +80,13 @@ + clock-output-names = "osc24M"; + }; + ++ ext_osc32k: ext_osc32k_clk { ++ #clock-cells = <0>; ++ compatible = "fixed-clock"; ++ clock-frequency = <32768>; ++ clock-output-names = "ext_osc32k"; ++ }; ++ + pmu { + compatible = "arm,cortex-a53-pmu"; + interrupts = , +@@ -922,6 +1050,7 @@ + interrupts = <5 IRQ_TYPE_LEVEL_HIGH>, + <6 IRQ_TYPE_LEVEL_HIGH>; + clock-output-names = "osc32k", "osc32k-out", "iosc"; ++ clocks = <&ext_osc32k>; + #clock-cells = <1>; + }; +