From 84384292ba409571781d8c28bf1dd837f5e10483 Mon Sep 17 00:00:00 2001 From: Sparticuz Date: Fri, 8 Mar 2024 21:17:17 -0500 Subject: [PATCH] update wifi patches for rk3566-ml --- .../RK3566/003-fix-ps-vs-dts-aliases.patch | 34 +++++++++++++++++++ .../RK3566/004-fix-8821cs-sdio-errors.patch | 25 ++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 projects/Rockchip/patches/linux/RK3566/003-fix-ps-vs-dts-aliases.patch create mode 100644 projects/Rockchip/patches/linux/RK3566/004-fix-8821cs-sdio-errors.patch diff --git a/projects/Rockchip/patches/linux/RK3566/003-fix-ps-vs-dts-aliases.patch b/projects/Rockchip/patches/linux/RK3566/003-fix-ps-vs-dts-aliases.patch new file mode 100644 index 000000000..407e89275 --- /dev/null +++ b/projects/Rockchip/patches/linux/RK3566/003-fix-ps-vs-dts-aliases.patch @@ -0,0 +1,34 @@ +diff --git a/arch/arm64/boot/dts/rockchip/rk3566-anbernic-rg353ps.dts b/arch/arm64/boot/dts/rockchip/rk3566-anbernic-rg353ps.dts +index b211973e36c2..1eb16af26291 100644 +--- a/arch/arm64/boot/dts/rockchip/rk3566-anbernic-rg353ps.dts ++++ b/arch/arm64/boot/dts/rockchip/rk3566-anbernic-rg353ps.dts +@@ -12,9 +12,9 @@ / { + compatible = "anbernic,rg353ps", "rockchip,rk3566"; + + aliases { +- mmc0 = &sdmmc0; +- mmc1 = &sdmmc1; +- mmc2 = &sdmmc2; ++ mmc1 = &sdmmc0; ++ mmc2 = &sdmmc1; ++ mmc3 = &sdmmc2; + }; + + battery: battery { +diff --git a/arch/arm64/boot/dts/rockchip/rk3566-anbernic-rg353vs.dts b/arch/arm64/boot/dts/rockchip/rk3566-anbernic-rg353vs.dts +index a7dc462fe21f..0675c79d1f3a 100644 +--- a/arch/arm64/boot/dts/rockchip/rk3566-anbernic-rg353vs.dts ++++ b/arch/arm64/boot/dts/rockchip/rk3566-anbernic-rg353vs.dts +@@ -12,9 +12,9 @@ / { + compatible = "anbernic,rg353vs", "rockchip,rk3566"; + + aliases { +- mmc0 = &sdmmc0; +- mmc1 = &sdmmc1; +- mmc2 = &sdmmc2; ++ mmc1 = &sdmmc0; ++ mmc2 = &sdmmc1; ++ mmc3 = &sdmmc2; + }; + + battery: battery { diff --git a/projects/Rockchip/patches/linux/RK3566/004-fix-8821cs-sdio-errors.patch b/projects/Rockchip/patches/linux/RK3566/004-fix-8821cs-sdio-errors.patch new file mode 100644 index 000000000..6389a6942 --- /dev/null +++ b/projects/Rockchip/patches/linux/RK3566/004-fix-8821cs-sdio-errors.patch @@ -0,0 +1,25 @@ +From a0e01b2bb51a032af5e95e4acd9081f33afd9884 Mon Sep 17 00:00:00 2001 +From: brrrrrrrrrr +Date: Fri, 16 Feb 2024 13:00:59 -0500 +Subject: [PATCH] Fix 8821cs sdio errors + +--- + arch/arm64/boot/dts/rockchip/rk3566-anbernic-rgxx3.dtsi | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/arch/arm64/boot/dts/rockchip/rk3566-anbernic-rgxx3.dtsi b/arch/arm64/boot/dts/rockchip/rk3566-anbernic-rgxx3.dtsi +index abf7dea167c2..5cd11e962c81 100644 +--- a/arch/arm64/boot/dts/rockchip/rk3566-anbernic-rgxx3.dtsi ++++ b/arch/arm64/boot/dts/rockchip/rk3566-anbernic-rgxx3.dtsi +@@ -636,6 +636,9 @@ &sdmmc2 { + pinctrl-names = "default"; + vmmc-supply = <&vcc_wifi>; + vqmmc-supply = <&vcca1v8_pmu>; ++ no-mmc; ++ no-sd; ++ sd-uhs-sdr50; + status = "okay"; + }; + +-- +2.43.1