Skip to contentSkip to conversation

arm: rockchip: switch to mainline dts for bpi-r2-pro

PATCH Superseded Frank Wunderlich 1 participant 1 message Aug 21, 2022

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arm: rockchip: switch to mainline dts for bpi-r2-pro

From: Frank Wunderlich <[email protected]>

Use mainline DTS for Bananapi R2 Pro like the other rk356x devices.

Xhci0 has to be set to host again, as board has no id-pin to switch between otg and hostmode.

---
v2:
- fixed patch to apply on master

---
 .../arm/boards/pine64-quartz64/sdram-init.bin | Bin 0 -> 59392 bytes
 .../boards/rockchip-rk3568-bpi-r2pro/board.c  |   5 +-
 .../rockchip-rk3568-bpi-r2pro/sdram-init.bin  | Bin 0 -> 59392 bytes
 .../boards/rockchip-rk3568-evb/sdram-init.bin | Bin 0 -> 59392 bytes
 arch/arm/configs/rk3568_defconfig             | 144 +++++
 arch/arm/dts/rk3568-bpi-r2-pro.dts            | 522 +-----------------
 build.sh                                      |  60 ++
 7 files changed, 208 insertions(+), 523 deletions(-)
 create mode 100644 arch/arm/boards/pine64-quartz64/sdram-init.bin
 create mode 100644 arch/arm/boards/rockchip-rk3568-bpi-r2pro/sdram-init.bin
 create mode 100644 arch/arm/boards/rockchip-rk3568-evb/sdram-init.bin
 create mode 100644 arch/arm/configs/rk3568_defconfig
 create mode 100755 build.sh
arch/arm/boards/pine64-quartz64/sdram-init.bin new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..271bf5b720b6d0f1a31bc6630cf0fa6188ecf42d
GIT binary patch
arch/arm/boards/rockchip-rk3568-bpi-r2pro/board.c +3 -2
index 1a5faa8afb12..b5d406576f89 100644
@@ -28,8 +28,9 @@ static int rk3568_bpi_r2pro_probe(struct device_d *dev)
 	else
 		of_device_enable_path("/chosen/environment-emmc");
 
-	rk3568_bbu_mmc_register("emmc", BBU_HANDLER_FLAG_DEFAULT, "/dev/emmc");
-	rk3568_bbu_mmc_register("sd", 0, "/dev/sd");
+	rk3568_bbu_mmc_register("sd", 0, "/dev/mmc0");
+	rk3568_bbu_mmc_register("emmc", BBU_HANDLER_FLAG_DEFAULT,
+				"/dev/mmc1");
 
 	return 0;
 }
arch/arm/boards/rockchip-rk3568-bpi-r2pro/sdram-init.bin new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..271bf5b720b6d0f1a31bc6630cf0fa6188ecf42d
GIT binary patch
arch/arm/boards/rockchip-rk3568-evb/sdram-init.bin new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..271bf5b720b6d0f1a31bc6630cf0fa6188ecf42d
GIT binary patch
arch/arm/configs/rk3568_defconfig new file +144 -0

144 lines not on this page · raw message

arch/arm/dts/rk3568-bpi-r2-pro.dts +1 -521

552 lines not on this page · raw message

build.sh new file +60 -0

60 lines not on this page · raw message

Signature · 1 line
2.34.1