dca18f5c584e388423436177318407754f546017
[openwrt/staging/ldir.git] /
1 From 433d54818f64a2fe0562f8c04c7a81f562368515 Mon Sep 17 00:00:00 2001
2 From: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
3 Date: Tue, 5 Mar 2024 15:32:18 +0100
4 Subject: [PATCH] arm64: dts: rockchip: regulator for sd needs to be always on
5 for BPI-R2Pro
6
7 With default dts configuration for BPI-R2Pro, the regulator for sd card is
8 powered off when reboot is commanded, and the only solution to detect the
9 sd card again, and therefore, allow rebooting from there, is to do a
10 hardware reset.
11
12 Configure the regulator for sd to be always on for BPI-R2Pro in order to
13 avoid this issue.
14
15 Fixes: f901aaadaa2a ("arm64: dts: rockchip: Add Bananapi R2 Pro")
16 Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
17 Link: https://lore.kernel.org/r/20240305143222.189413-1-jtornosm@redhat.com
18 Signed-off-by: Heiko Stuebner <heiko@sntech.de>
19 ---
20 arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 2 ++
21 1 file changed, 2 insertions(+)
22
23 --- a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts
24 +++ b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts
25 @@ -412,6 +412,8 @@
26
27 vccio_sd: LDO_REG5 {
28 regulator-name = "vccio_sd";
29 + regulator-always-on;
30 + regulator-boot-on;
31 regulator-min-microvolt = <1800000>;
32 regulator-max-microvolt = <3300000>;
33