ARM: Rockchip: Add rk3568 BananaPi R2 Pro board support
Subsystems (5)
PATCH v3 1/1 ARM: Rockchip: Add rk3568 BananaPi R2 Pro board support
From: Frank Wunderlich <[email protected]>
This adds support for the BananaPi R2 Pro board.
It is basicly a copy of rk3568 evb board but with slightly modified DTS. Added GPIO-Leds to dts and modified the hw-detection a bit.
Tested features so far are:
- 1st stage booting
- Network
- SD card and Emmc
- usb (1.1 and 3 work, usb2 not working)
- power LED (green)
---
changes in v3:
- modify to be more similar to linux dts
changes in v2:
- dts: drop chosen label
- some changes to dts to make it similar to linux-version
- board.c: add "bpi" on different places and drop rk3568 partially
- drop change in dt-bindings
- add entry to Documentation rk356x supported boards
- add bpi-r2-pro to rockchip_v8_defconfig
--- Documentation/boards/rockchip.rst | 1 + arch/arm/boards/Makefile | 1 + .../rockchip-rk3568-bpi-r2pro/.gitignore | 1 + .../boards/rockchip-rk3568-bpi-r2pro/Makefile | 2 + .../boards/rockchip-rk3568-bpi-r2pro/board.c | 93 +++ .../rockchip-rk3568-bpi-r2pro/lowlevel.c | 49 ++ arch/arm/configs/rockchip_v8_defconfig | 1 + arch/arm/dts/Makefile | 1 + arch/arm/dts/rk3568-bpi-r2-pro.dts | 593 ++++++++++++++++++ arch/arm/mach-rockchip/Kconfig | 6 + images/Makefile.rockchip | 7 + 11 files changed, 755 insertions(+) create mode 100644 arch/arm/boards/rockchip-rk3568-bpi-r2pro/.gitignore create mode 100644 arch/arm/boards/rockchip-rk3568-bpi-r2pro/Makefile create mode 100644 arch/arm/boards/rockchip-rk3568-bpi-r2pro/board.c create mode 100644 arch/arm/boards/rockchip-rk3568-bpi-r2pro/lowlevel.c create mode 100644 arch/arm/dts/rk3568-bpi-r2-pro.dts
Documentation/boards/rockchip.rst +1 -0
@@ -57,6 +57,7 @@ Supported Boards ---------------- - Rockchip RK3568 EVB +- Rockchip RK3568 Bananapi R2 Pro - Pine64 Quartz64 Model A The steps described in the following target the RK3568 and the RK3568 EVB but
arch/arm/boards/Makefile +1 -0
@@ -186,4 +186,5 @@ obj-$(CONFIG_MACH_TQMLS1046A) += tqmls1046a/ obj-$(CONFIG_MACH_MNT_REFORM) += mnt-reform/ obj-$(CONFIG_MACH_SKOV_ARM9CPU) += skov-arm9cpu/ obj-$(CONFIG_MACH_RK3568_EVB) += rockchip-rk3568-evb/ +obj-$(CONFIG_MACH_RK3568_BPI_R2PRO) += rockchip-rk3568-bpi-r2pro/ obj-$(CONFIG_MACH_PINE64_QUARTZ64) += pine64-quartz64/
arch/arm/boards/rockchip-rk3568-bpi-r2pro/.gitignore new file +1 -0
@@ -0,0 +1 @@ +sdram-init.bin
arch/arm/boards/rockchip-rk3568-bpi-r2pro/Makefile new file +2 -0
@@ -0,0 +1,2 @@ +obj-y += board.o +lwl-y += lowlevel.o
arch/arm/boards/rockchip-rk3568-bpi-r2pro/board.c new file +93 -0
93 lines not on this page · raw message
arch/arm/boards/rockchip-rk3568-bpi-r2pro/lowlevel.c new file +49 -0
49 lines not on this page · raw message
arch/arm/configs/rockchip_v8_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARCH_ROCKCHIP=y CONFIG_MACH_RK3568_EVB=y +CONFIG_MACH_RK3568_BPI_R2PRO=y CONFIG_MACH_PINE64_QUARTZ64=y CONFIG_BOARD_ARM_GENERIC_DT=y CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
arch/arm/dts/Makefile +1 -0
@@ -105,6 +105,7 @@ lwl-$(CONFIG_MACH_RADXA_ROCK) += rk3188-radxarock.dtb.o lwl-$(CONFIG_MACH_PHYTEC_SOM_RK3288) += rk3288-phycore-som.dtb.o lwl-$(CONFIG_MACH_REALQ7) += imx6q-dmo-edmqmx6.dtb.o lwl-$(CONFIG_MACH_RK3568_EVB) += rk3568-evb1-v10.dtb.o +lwl-$(CONFIG_MACH_RK3568_BPI_R2PRO) += rk3568-bpi-r2-pro.dtb.o lwl-$(CONFIG_MACH_RPI) += bcm2835-rpi.dtb.o lwl-$(CONFIG_MACH_RPI2) += bcm2836-rpi-2.dtb.o lwl-$(CONFIG_MACH_RPI3) += bcm2837-rpi-3.dtb.o
arch/arm/dts/rk3568-bpi-r2-pro.dts new file +593 -0
593 lines not on this page · raw message
arch/arm/mach-rockchip/Kconfig +6 -0
@@ -68,6 +68,12 @@ config MACH_RK3568_EVB help Say Y here if you are using a RK3568 EVB +config MACH_RK3568_BPI_R2PRO + select ARCH_RK3568 + bool "RK3568 BPI R2PRO" + help + Say Y here if you are using a RK3568 Bananpi R2 Pro + config MACH_PINE64_QUARTZ64 select ARCH_RK3568 bool "Pine64 Quartz64"
images/Makefile.rockchip +7 -0
@@ -14,6 +14,9 @@ image-$(CONFIG_MACH_PHYTEC_SOM_RK3288) += barebox-rk3288-phycore-som.img pblb-$(CONFIG_MACH_RK3568_EVB) += start_rk3568_evb image-$(CONFIG_MACH_RK3568_EVB) += barebox-rk3568-evb.img +pblb-$(CONFIG_MACH_RK3568_BPI_R2PRO) += start_rk3568_bpi_r2pro +image-$(CONFIG_MACH_RK3568_BPI_R2PRO) += barebox-rk3568-bpi-r2pro.img + pblb-$(CONFIG_MACH_PINE64_QUARTZ64) += start_quartz64a image-$(CONFIG_MACH_PINE64_QUARTZ64) += barebox-quartz64a.img
@@ -24,6 +27,10 @@ $(obj)/barebox-rk3568-evb.img: $(obj)/start_rk3568_evb.pblb \ $(board)/rockchip-rk3568-evb/sdram-init.bin $(call if_changed,rkimg_image) +$(obj)/barebox-rk3568-bpi-r2pro.img: $(obj)/start_rk3568_bpi_r2pro.pblb \ + $(board)/rockchip-rk3568-bpi-r2pro/sdram-init.bin + $(call if_changed,rkimg_image) + $(obj)/barebox-quartz64a.img: $(obj)/start_quartz64a.pblb \ $(board)/pine64-quartz64/sdram-init.bin $(call if_changed,rkimg_image)
Signature · 7 lines
2.25.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 8 lines · Frank Wunderlich
From: Frank Wunderlich <[email protected]>
This adds support for the BananaPi R2 Pro board.
It is basicly a copy of rk3568 evb board but with slightly modified DTS. Added GPIO-Leds to dts and modified the hw-detection a bit.Tested features so far are:
Quoted 7 lines
- 1st stage booting
- Network
- SD card and Emmc
- usb (1.1 and 3 work, usb2 not working)
- power LED (green)Signed-off-by Frank Wunderlich <[email protected]>
Applied, thanks
Sascha
Signature · 9 lines
Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox