summaryrefslogtreecommitdiffstats
path: root/target/linux/rockchip/patches-6.1/032-v6.10-arm64-dts-rockchip-regulator-for-sd-needs-to-be-alwa.patch
diff options
context:
space:
mode:
authorAntonio Flores <antflores627@gmail.com>2024-04-11 12:35:00 -0400
committerNick Hainke <vincent@systemli.org>2024-05-05 00:46:48 +0200
commit4ebcc5375a5f3610164a3b605437b4392f021454 (patch)
treecb4db47f433929a395d6c1c624118538293f6268 /target/linux/rockchip/patches-6.1/032-v6.10-arm64-dts-rockchip-regulator-for-sd-needs-to-be-alwa.patch
parentcfb7df2991d9b9580d9c14b482813214bddbe125 (diff)
downloadopenwrt-4ebcc5375a5f3610164a3b605437b4392f021454.tar.gz
openwrt-4ebcc5375a5f3610164a3b605437b4392f021454.tar.bz2
openwrt-4ebcc5375a5f3610164a3b605437b4392f021454.zip
rockchip: add Bananapi-R2 Pro board support
Hardware spec: - Rockchip RK3568 Quad-core ARM Cortex-A55 CPU 2GHz - GPU Mali-G52 1-Core-2EE OpenGL ES3.2 Vu1kn 1.1 OpenCL 2.0 - Memory2G DDR3 SDRAM (option 4G) - Storage Onboard 16GB eMMC Flash, Micro SD-Card slot, SATA 3.0 Port,SPI flash - Network 5 x 10/100/1000 Mbit/s Ethernet MT7531 - Display 1 HDMI port, 2 DSI interface(1 DSI can change to LVDS by software) - Camera 1 CSI camera interface - Audio Output HDMI & I2S & Speaker & Headphone - USB port USB 3.0 PORT (x2), micro USB OTG (x1) - PCIE 1 mini pcie interface & 1 M.2 key-e interface - Remote IR Receiver (x1) - GPIO 40 Pin Header : GPIO (x28) and Power (+5V, +3.3V and GND). - Switches Reset button, Power button, U-boot button - LED Power Status - Power Source 12 volt 2A via DC Power Installation: Uncompress the OpenWrt sysupgrade and write image to the SD card using dd (dd if=*.img of=/*) Boot from the SD card 1-hold down the MaskRom button 2-Connect DC power 3-Wait 5 seconds, release the button. eMMC Installation: 1-Uncompress the OpenWrt sysupgrade image 2-fash to eMMC dd if=openwrt-rockchip-armv8-sinovoip_bpi-r2-pro-squashfs-sysupgrade.img of=/dev/mmcblk1 sync 3-remove SD card reboot Signed-off-by: Antonio Flores <antflores627@gmail.com>
Diffstat (limited to 'target/linux/rockchip/patches-6.1/032-v6.10-arm64-dts-rockchip-regulator-for-sd-needs-to-be-alwa.patch')
-rw-r--r--target/linux/rockchip/patches-6.1/032-v6.10-arm64-dts-rockchip-regulator-for-sd-needs-to-be-alwa.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/target/linux/rockchip/patches-6.1/032-v6.10-arm64-dts-rockchip-regulator-for-sd-needs-to-be-alwa.patch b/target/linux/rockchip/patches-6.1/032-v6.10-arm64-dts-rockchip-regulator-for-sd-needs-to-be-alwa.patch
new file mode 100644
index 0000000000..dca18f5c58
--- /dev/null
+++ b/target/linux/rockchip/patches-6.1/032-v6.10-arm64-dts-rockchip-regulator-for-sd-needs-to-be-alwa.patch
@@ -0,0 +1,33 @@
+From 433d54818f64a2fe0562f8c04c7a81f562368515 Mon Sep 17 00:00:00 2001
+From: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
+Date: Tue, 5 Mar 2024 15:32:18 +0100
+Subject: [PATCH] arm64: dts: rockchip: regulator for sd needs to be always on
+ for BPI-R2Pro
+
+With default dts configuration for BPI-R2Pro, the regulator for sd card is
+powered off when reboot is commanded, and the only solution to detect the
+sd card again, and therefore, allow rebooting from there, is to do a
+hardware reset.
+
+Configure the regulator for sd to be always on for BPI-R2Pro in order to
+avoid this issue.
+
+Fixes: f901aaadaa2a ("arm64: dts: rockchip: Add Bananapi R2 Pro")
+Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
+Link: https://lore.kernel.org/r/20240305143222.189413-1-jtornosm@redhat.com
+Signed-off-by: Heiko Stuebner <heiko@sntech.de>
+---
+ arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts
++++ b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts
+@@ -412,6 +412,8 @@
+
+ vccio_sd: LDO_REG5 {
+ regulator-name = "vccio_sd";
++ regulator-always-on;
++ regulator-boot-on;
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <3300000>;
+