From 5cb66ac9fcfbc1e72f751d3e1438e6b1a2b11285 Mon Sep 17 00:00:00 2001 From: Tomasz Stachewicz Date: Mon, 5 Aug 2019 18:04:29 +0200 Subject: [PATCH] Banana Pi M2 Zero: remove board-bpi-m2-zero-enable-dvfs.patch (#1503) In current kernels (both next and dev) this patch breaks cpufreq and all that depends on it (no dvfs means board overheating). Removing it makes cpufreq and dvfs work again. --- .../board-bpi-m2-zero-enable-dvfs.patch | 39 ------------------- .../board-bpi-m2-zero-enable-dvfs.patch | 39 ------------------- 2 files changed, 78 deletions(-) delete mode 100644 patch/kernel/sunxi-dev/board-bpi-m2-zero-enable-dvfs.patch delete mode 100644 patch/kernel/sunxi-next/board-bpi-m2-zero-enable-dvfs.patch diff --git a/patch/kernel/sunxi-dev/board-bpi-m2-zero-enable-dvfs.patch b/patch/kernel/sunxi-dev/board-bpi-m2-zero-enable-dvfs.patch deleted file mode 100644 index 42c797238e..0000000000 --- a/patch/kernel/sunxi-dev/board-bpi-m2-zero-enable-dvfs.patch +++ /dev/null @@ -1,39 +0,0 @@ -diff --git a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts -index 7d01f93..401cbd9 100644 ---- a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts -+++ b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts -@@ -48,6 +48,23 @@ - }; - }; - -+ reg_sy8113b: gpio-regulator { -+ compatible = "regulator-gpio"; -+ regulator-name = "vdd-cpux"; -+ regulator-type = "voltage"; -+ regulator-boot-on; -+ regulator-always-on; -+ regulator-min-microvolt = <1100000>; -+ regulator-max-microvolt = <1300000>; -+ regulator-ramp-delay = <50>; /* 4ms */ -+ -+ gpios = <&r_pio 0 1 GPIO_ACTIVE_HIGH>; /* PL1 */ -+ enable-active-high; -+ gpios-states = <0x1>; -+ states = <1100000 0x0 -+ 1300000 0x1>; -+ }; -+ - wifi_pwrseq: wifi_pwrseq { - compatible = "mmc-pwrseq-simple"; - pinctrl-names = "default"; -@@ -55,6 +72,10 @@ - }; - }; - -+&cpu0 { -+ cpu-supply = <®_sy8113b>; -+}; -+ - &ehci0 { - status = "okay"; - }; diff --git a/patch/kernel/sunxi-next/board-bpi-m2-zero-enable-dvfs.patch b/patch/kernel/sunxi-next/board-bpi-m2-zero-enable-dvfs.patch deleted file mode 100644 index 42c797238e..0000000000 --- a/patch/kernel/sunxi-next/board-bpi-m2-zero-enable-dvfs.patch +++ /dev/null @@ -1,39 +0,0 @@ -diff --git a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts -index 7d01f93..401cbd9 100644 ---- a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts -+++ b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts -@@ -48,6 +48,23 @@ - }; - }; - -+ reg_sy8113b: gpio-regulator { -+ compatible = "regulator-gpio"; -+ regulator-name = "vdd-cpux"; -+ regulator-type = "voltage"; -+ regulator-boot-on; -+ regulator-always-on; -+ regulator-min-microvolt = <1100000>; -+ regulator-max-microvolt = <1300000>; -+ regulator-ramp-delay = <50>; /* 4ms */ -+ -+ gpios = <&r_pio 0 1 GPIO_ACTIVE_HIGH>; /* PL1 */ -+ enable-active-high; -+ gpios-states = <0x1>; -+ states = <1100000 0x0 -+ 1300000 0x1>; -+ }; -+ - wifi_pwrseq: wifi_pwrseq { - compatible = "mmc-pwrseq-simple"; - pinctrl-names = "default"; -@@ -55,6 +72,10 @@ - }; - }; - -+&cpu0 { -+ cpu-supply = <®_sy8113b>; -+}; -+ - &ehci0 { - status = "okay"; - };