From 3ff231d9a0230ecf58035e970f8241a0c2e7d47d Mon Sep 17 00:00:00 2001 From: brentr Date: Sat, 9 Jul 2022 02:35:51 -0700 Subject: [PATCH] Brentr (#3966) * This disables support for the RockPI-S "SDNAND" soldered on EMMC storage Without it, SDNAND functions There are no issues on boards that lack the EMMC storage option In this case, the kernel probes the chip, quietly fails and continues without creating the corresponding /dev/mmcblk* nodes * This patch attempts to enable CPU operating points that are not defined. The result is that the cpufreq-dt driver aborts when attempting to process these incompletely defined nodes. The CPU ends up running at a constant clock rate, without cpufreq support. Simply removing the patch restores proper cpufreq operation. Note, however, that the CPU operating points are still overvolted for the newer RK3308B-S SOC. See: https://dl.radxa.com/rockpis/docs/sw/RK3308B-S&RK3308H-S_Software_Compatibility_Introduction_V1.0.0_20211016.pdf --- ...0028-arm64-dts-rk3308-add-opp-1300mhz.patch | 18 ------------------ ...is-0030-disabled-emmc-fix-boot-sdcard.patch | 11 ----------- 2 files changed, 29 deletions(-) delete mode 100644 patch/kernel/archive/rockchip64-5.18/board-rockpis-0028-arm64-dts-rk3308-add-opp-1300mhz.patch delete mode 100644 patch/kernel/archive/rockchip64-5.18/board-rockpis-0030-disabled-emmc-fix-boot-sdcard.patch diff --git a/patch/kernel/archive/rockchip64-5.18/board-rockpis-0028-arm64-dts-rk3308-add-opp-1300mhz.patch b/patch/kernel/archive/rockchip64-5.18/board-rockpis-0028-arm64-dts-rk3308-add-opp-1300mhz.patch deleted file mode 100644 index c38e170cc7..0000000000 --- a/patch/kernel/archive/rockchip64-5.18/board-rockpis-0028-arm64-dts-rk3308-add-opp-1300mhz.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- a/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts 2020-12-25 21:20:04.848721628 +0200 -+++ b/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts 2020-12-26 18:57:00.289626975 +0200 -@@ -191,6 +191,15 @@ - cpu-supply = <&vdd_core>; - }; - -+&cpu0_opp_table { -+ opp-1200000000 { -+ status = "okay"; -+ }; -+ opp-1296000000 { -+ status = "okay"; -+ }; -+}; -+ - &emmc { - bus-width = <4>; // Confirm if right value - <8> - cap-mmc-highspeed; diff --git a/patch/kernel/archive/rockchip64-5.18/board-rockpis-0030-disabled-emmc-fix-boot-sdcard.patch b/patch/kernel/archive/rockchip64-5.18/board-rockpis-0030-disabled-emmc-fix-boot-sdcard.patch deleted file mode 100644 index faa15136df..0000000000 --- a/patch/kernel/archive/rockchip64-5.18/board-rockpis-0030-disabled-emmc-fix-boot-sdcard.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts 2020-12-26 18:58:21.965015472 +0200 -+++ b/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts 2020-12-26 20:35:04.055890457 +0200 -@@ -202,7 +202,7 @@ - /* please provide actual vmmc and vqmmc supplies - vin is not a valid supply for emmcs */ - vin-supply = <&vcc_io>; -- status = "okay"; -+ status = "disabled"; - }; - - &i2c1 {