]> git.dujemihanovic.xyz Git - u-boot.git/commit
board: rockchip: Add Xunlong Orange Pi 3B
authorRicardo Pardini <ricardo@pardini.net>
Wed, 31 Jul 2024 09:03:31 +0000 (09:03 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 9 Aug 2024 10:35:24 +0000 (18:35 +0800)
commita52099b4a2ae9e8cafc79268325249bcad308012
tree806e6363a178442c3860980c8c48a4cf1ecd1c46
parent60dc9c894798d617dab86fe76d404424452fa2db
board: rockchip: Add Xunlong Orange Pi 3B

The Xunlong Orange Pi 3B is a single-board computer based on the
Rockchip RK3566 SoC.

The two hw revisions use different io-voltage for Ethernet PHY and can
be identified using GPIO4_C4:
- v1.1.1: x (internal pull-down)
- v2.1:   PHY_RESET (external pull-up)

Implement rk_board_late_init() to set correct fdtfile env var and
board_fit_config_name_match() to load correct FIT config based on what
board is detected at runtime so a single board target can be used for
both hw revisions.

Minimal DTs that includ DT from dts/upstream is added to support booting
from both hw revision and only set Ethernet PHY io-voltage when the hw
revision is detected at runtime. A side-affect of this is that defconfig
show OF_UPSTREAM=n, however dts/upstream DTs is used for this board.

Features tested on Orange Pi 3B 4GB (v1.1.1 and v2.1):
- SD-card boot
- eMMC boot
- SPI Flash boot
- Ethernet
- PCIe/NVMe
- USB host

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
Co-developed-by: Jonas Karlman <jonas@kwiboo.se>
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
13 files changed:
arch/arm/dts/rk3566-orangepi-3b-u-boot.dtsi [new file with mode: 0644]
arch/arm/dts/rk3566-orangepi-3b-v1.1-u-boot.dtsi [new file with mode: 0644]
arch/arm/dts/rk3566-orangepi-3b-v1.1.dts [new file with mode: 0644]
arch/arm/dts/rk3566-orangepi-3b-v2.1-u-boot.dtsi [new file with mode: 0644]
arch/arm/dts/rk3566-orangepi-3b-v2.1.dts [new file with mode: 0644]
arch/arm/dts/rk3566-orangepi-3b.dts [new file with mode: 0644]
arch/arm/mach-rockchip/rk3568/Kconfig
board/xunlong/orangepi-3b-rk3566/Kconfig [new file with mode: 0644]
board/xunlong/orangepi-3b-rk3566/MAINTAINERS [new file with mode: 0644]
board/xunlong/orangepi-3b-rk3566/Makefile [new file with mode: 0644]
board/xunlong/orangepi-3b-rk3566/orangepi-3b-rk3566.c [new file with mode: 0644]
configs/orangepi-3b-rk3566_defconfig [new file with mode: 0644]
doc/board/rockchip/rockchip.rst