This series adds support for the Xunlong Orange Pi 5 Pro, an RK3588S
board with eMMC, an M.2 M-Key slot for NVMe and an onboard Motorcomm
YT6801 1GbE NIC behind PCIe.

The board devicetree was merged for Linux v7.3. Patches 1-4 pick the
required commits from devicetree-rebasing with
tools/update-subtree.sh pick, so this series does not need to wait
for the v7.3 dts sync. They include a refactor of the Orange Pi 5/5B
devicetree that the Pro builds on.

Patch 5 adds the defconfig, -u-boot.dtsi, MAINTAINERS entry and
documentation.

The upstream devicetree muxes the PERST# pins of pcie2x1l1 and
pcie2x1l2 to the controller's dedicated function while also using
them as reset-gpios. Linux switches the pin to GPIO function when it
is requested, U-Boot does not, and probing pcie2x1l2 hangs. The
-u-boot.dtsi overrides the pinctrl to GPIO function for the reset
pins, as rk3568-rock-3a-u-boot.dtsi does. A fix for the Linux
devicetree has been sent:
https://lore.kernel.org/linux-rockchip/[email protected]/
The override can be dropped once that reaches dts/upstream.

Tested on an Orange Pi 5 Pro 16GB:
- SD-card boot
- eMMC boot
- PCIe/NVMe

Changes in v2:
- Add Reviewed-by tags from Quentin (patches 1-4) and Jonas
  (patch 5)
- Drop PREBOOT, DISPLAY_BOARDINFO_LATE, OF_SPL_REMOVE_PROPS and the
  video options from the defconfig
- Enable LED_PWM for the PWM LEDs
- Sort the MAINTAINERS entry and add Jonas as reviewer
- Add a Link to the Linux devicetree PERST# fix in patch 5

Not changed in v2:
- BUTTON/BUTTON_ADC is not enabled. As Jonas pointed out, the
  Recovery key in the upstream devicetree is not wired to the SARADC
  on this board, so the devicetree needs fixing first.
- No ethernet in U-Boot. The NIC on my boards is a Motorcomm YT6801,
  not an RTL8111, and U-Boot does not have a driver for it.

v1: https://patchwork.ozlabs.org/project/uboot/list/?series=526207

Dennis Gilmore (5):
  dt-bindings: arm: rockchip: Add Orange Pi 5 Pro
  arm64: dts: rockchip: rename PLDO regulator labels to match schematic
    on rk3588s-orangepi-5
  arm64: dts: rockchip: refactor items from Orange Pi 5/b to prep for
    Pro
  arm64: dts: rockchip: Add Orange Pi 5 Pro board support
  board: rockchip: Add Xunlong Orange Pi 5 Pro

 .../dts/rk3588s-orangepi-5-pro-u-boot.dtsi    |  25 ++
 board/rockchip/evb_rk3588/MAINTAINERS         |   7 +
 configs/orangepi-5-pro-rk3588s_defconfig      |  74 ++++
 doc/board/rockchip/rockchip.rst               |   1 +
 dts/upstream/Bindings/arm/rockchip.yaml       |   1 +
 .../arm64/rockchip/rk3588s-orangepi-5-5b.dtsi | 256 +++++++++++++
 .../arm64/rockchip/rk3588s-orangepi-5-pro.dts | 358 ++++++++++++++++++
 .../src/arm64/rockchip/rk3588s-orangepi-5.dts |   6 +-
 .../arm64/rockchip/rk3588s-orangepi-5.dtsi    | 263 +------------
 .../arm64/rockchip/rk3588s-orangepi-5b.dts    |   2 +-
 10 files changed, 743 insertions(+), 250 deletions(-)
 create mode 100644 arch/arm/dts/rk3588s-orangepi-5-pro-u-boot.dtsi
 create mode 100644 configs/orangepi-5-pro-rk3588s_defconfig
 create mode 100644 dts/upstream/src/arm64/rockchip/rk3588s-orangepi-5-5b.dtsi
 create mode 100644 dts/upstream/src/arm64/rockchip/rk3588s-orangepi-5-pro.dts


base-commit: 527115ef6783cec49e5610c523c124b399011361
-- 
2.56.0

Reply via email to