Skip to content

rockchip: rk3328: Update defconfigs, DTs and enable boot from SPI

Jonas Karlman u-boot 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest15 patches 21 repliesIn review
  2. v115 patches 23 repliesSuperseded

Changes in v2 from the cover letter

- Remove unused SPL drivers, I2C and PMIC
- Add helpful CMD_GPIO and CMD_REGULATOR to boards
- Add missing UART2 pinctrl nodes to soc u-boot.dtsi
- Mark the pinctrl node to be included in U-Boot proper pre-reloc phase
- Add SD-card IO-voltage related nodes to nanopi-r2 u-boot.dtsi
- Fix an ethernet issue on orangepi-r1-plus-lts
- Include SPI flash pinctrl nodes in SPL
- Collect r-b tags

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15rockchip: rk3328: Update default u-boot, spl-boot-order proparch/arm/dts/rk3328-nanopi-r2c-plus-u-boot.dtsi arch/arm/dts/rk3328-nanopi-r2s-u-boot.dtsi arch/arm/dts/rk3328-orangepi-r1-plus-lts-u-boot.dtsi +4 more+3 -301 reply
2/15rockchip: rk3328-evb: Update defconfigboard/rockchip/evb_rk3328/MAINTAINERS board/rockchip/evb_rk3328/README configs/evb-rk3328_defconfig+18 -761 reply
3/15rockchip: rk3328-rock64: Update defconfigboard/rockchip/evb_rk3328/MAINTAINERS configs/rock64-rk3328_defconfig+11 -51 reply
4/15rockchip: rk3328-roc-cc: Update defconfigboard/rockchip/evb_rk3328/MAINTAINERS configs/roc-cc-rk3328_defconfig doc/board/rockchip/rockchip.rst+13 -61 reply
5/15rockchip: rk3328-rock-pi-e: Update defconfigboard/rockchip/evb_rk3328/MAINTAINERS configs/rock-pi-e-rk3328_defconfig doc/board/rockchip/rockchip.rst+12 -82 replies
6/15rockchip: rk3328-nanopi-r2: Update defconfigarch/arm/dts/rk3328-nanopi-r2s-u-boot.dtsi board/rockchip/evb_rk3328/MAINTAINERS configs/nanopi-r2c-plus-rk3328_defconfig +3 more+50 -212 replies
7/15rockchip: rk3328-orangepi-r1-plus: Update defconfigarch/arm/dts/rk3328-orangepi-r1-plus-lts-u-boot.dtsi arch/arm/dts/rk3328-orangepi-r1-plus-u-boot.dtsi board/rockchip/evb_rk3328/MAINTAINERS +3 more+32 -221 reply
8/15rockchip: rk3328: Fix loading FIT from SD-card when booting from eMMCarch/arm/dts/rk3328-evb-u-boot.dtsi arch/arm/dts/rk3328-nanopi-r2s-u-boot.dtsi arch/arm/dts/rk3328-orangepi-r1-plus-lts-u-boot.dtsi +5 more+107 -1101 reply
9/15gpio: rockchip: Use gpio alias id as gpio bank iddrivers/gpio/rk_gpio.c+5 -22 replies
10/15rng: rockchip: Use same compatible as linuxarch/arm/dts/rk3328-u-boot.dtsi arch/arm/dts/rk3399-u-boot.dtsi drivers/rng/rockchip_rng.c+11 -31 reply
11/15rockchip: rk3328: Sync device tree from linux v6.8-rc1arch/arm/dts/rk3328-evb.dts arch/arm/dts/rk3328-nanopi-r2s.dts arch/arm/dts/rk3328-orangepi-r1-plus-lts.dts +6 more+112 -261 reply
12/15Revert "rockchip: Allow booting from SPI"arch/arm/mach-rockchip/spl-boot-order.c+0 -31 reply
13/15rockchip: rk3328: Add support to build bootable SPI imagearch/arm/dts/rk3328-u-boot.dtsi arch/arm/mach-rockchip/rk3328/rk3328.c+12 -03 replies
14/15rockchip: rk3328-rock64: Enable boot from SPI NOR flasharch/arm/dts/rk3328-rock64-u-boot.dtsi configs/rock64-rk3328_defconfig+25 -01 reply
15/15rockchip: rk3328-orangepi-r1-plus: Enable boot from SPI NOR flasharch/arm/dts/rk3328-orangepi-r1-plus-lts-u-boot.dtsi arch/arm/dts/rk3328-orangepi-r1-plus-u-boot.dtsi configs/orangepi-r1-plus-lts-rk3328_defconfig +1 more+52 -01 reply

Reviews trailers per patch

All 15 patches have a Reviewed-by or Acked-by.

PatchDragan SimicTianling ShenHeinrich SchuchardtQuentin SchulzKever Yang
1/15R-b R-b
2/15R-b
3/15R-b R-b
4/15R-b
5/15R-b R-b
6/15R-b R-b
7/15R-b R-b
8/15R-b
9/15R-b R-b
10/15R-b R-b
11/15R-b
12/15R-b
13/15R-b
14/15R-b R-b
15/15R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v2 thread

Cover letter [PATCH v2 00/15] rockchip: rk3328: Update defconfigs, DTs and enable boot from SPI

This series contains miscellaneous updates to defconfigs, syncs latest device trees from linux, fixes an issue loading FIT from SD-card when running SPL from eMMC and enables building a bootable SPI image on RK3328 boards.

I am also adding myself as a reviewer for the three RK3328 boards I own.

Patch 1-7 updates boards to enable similar Kconfig options and use a common order for from where to try and load FIT.

Patch 8 fix loading FIT from SD-card when booting from eMMC by using pinctrl for emmc and sdmmc in SPL.

Patch 9-10 makes rockchip gpio and rng driver compatible with linux.

Patch 11 sync latest rk3328 device tree files from linux v6.8-rc1.

Patch 12 reverts an old commit that added duplicated code.

Patch 13-15 enables building u-boot-rockchip-spi.bin for boards with SPI flash.

Changes in v2:
- Remove unused SPL drivers, I2C and PMIC
- Add helpful CMD_GPIO and CMD_REGULATOR to boards
- Add missing UART2 pinctrl nodes to soc u-boot.dtsi
- Mark the pinctrl node to be included in U-Boot proper pre-reloc phase
- Add SD-card IO-voltage related nodes to nanopi-r2 u-boot.dtsi
- Fix an ethernet issue on orangepi-r1-plus-lts
- Include SPI flash pinctrl nodes in SPL
- Collect r-b tags

This series depends on the "rockchip: Update stack and bss addresses on RK3328 and RK3399" series at [1] being applied _after_ this series. Some boards may go over the simple malloc limit without that series also applied.

See [2] for a branch with the dependent series applied.

[1] https://patchwork.ozlabs.org/cover/1887729/
[2] https://github.com/Kwiboo/u-boot-rockchip/commits/rk3328-update-v2

Jonas Karlman (15):
rockchip: rk3328: Update default u-boot,spl-boot-order prop
rockchip: rk3328-evb: Update defconfig
rockchip: rk3328-rock64: Update defconfig
rockchip: rk3328-roc-cc: Update defconfig
rockchip: rk3328-rock-pi-e: Update defconfig
rockchip: rk3328-nanopi-r2: Update defconfig
rockchip: rk3328-orangepi-r1-plus: Update defconfig
rockchip: rk3328: Fix loading FIT from SD-card when booting from eMMC
gpio: rockchip: Use gpio alias id as gpio bank id
rng: rockchip: Use same compatible as linux
rockchip: rk3328: Sync device tree from linux v6.8-rc1 Revert "rockchip: Allow booting from SPI"
rockchip: rk3328: Add support to build bootable SPI image
rockchip: rk3328-rock64: Enable boot from SPI NOR flash
rockchip: rk3328-orangepi-r1-plus: Enable boot from SPI NOR flash

 arch/arm/dts/rk3328-evb-u-boot.dtsi           |   4 +
 arch/arm/dts/rk3328-evb.dts                   |   1 +
 .../dts/rk3328-nanopi-r2c-plus-u-boot.dtsi    |   6 -
 arch/arm/dts/rk3328-nanopi-r2s-u-boot.dtsi    |  24 +---
 arch/arm/dts/rk3328-nanopi-r2s.dts            |   3 +-
 .../rk3328-orangepi-r1-plus-lts-u-boot.dtsi   |  32 ++----
 arch/arm/dts/rk3328-orangepi-r1-plus-lts.dts  |   4 +-
 .../dts/rk3328-orangepi-r1-plus-u-boot.dtsi   |  32 ++----
 arch/arm/dts/rk3328-orangepi-r1-plus.dts      |   1 +
 arch/arm/dts/rk3328-roc-cc-u-boot.dtsi        |  22 +---
 arch/arm/dts/rk3328-roc-cc.dts                |   3 +-
 arch/arm/dts/rk3328-rock-pi-e-u-boot.dtsi     |  17 ---
 arch/arm/dts/rk3328-rock-pi-e.dts             |  55 +++++++++
 arch/arm/dts/rk3328-rock64-u-boot.dtsi        |  28 ++---
 arch/arm/dts/rk3328-rock64.dts                |   1 +
 arch/arm/dts/rk3328-u-boot.dtsi               | 108 +++++++++++++++---
 arch/arm/dts/rk3328.dtsi                      |  64 ++++++++---
 arch/arm/dts/rk3399-u-boot.dtsi               |   2 +-
 arch/arm/mach-rockchip/rk3328/rk3328.c        |   1 +
 arch/arm/mach-rockchip/spl-boot-order.c       |   3 -
 board/rockchip/evb_rk3328/MAINTAINERS         |  11 ++
 board/rockchip/evb_rk3328/README              |  70 ------------
 configs/evb-rk3328_defconfig                  |  22 +++-
 configs/nanopi-r2c-plus-rk3328_defconfig      |  20 +++-
 configs/nanopi-r2c-rk3328_defconfig           |  20 +++-
 configs/nanopi-r2s-rk3328_defconfig           |  20 +++-
 configs/orangepi-r1-plus-lts-rk3328_defconfig |  29 ++++-
 configs/orangepi-r1-plus-rk3328_defconfig     |  29 ++++-
 configs/roc-cc-rk3328_defconfig               |  15 ++-
 configs/rock-pi-e-rk3328_defconfig            |  17 +--
 configs/rock64-rk3328_defconfig               |  23 +++-
 doc/board/rockchip/rockchip.rst               |   9 +-
 drivers/gpio/rk_gpio.c                        |   7 +-
 drivers/rng/rockchip_rng.c                    |  10 +-
 34 files changed, 432 insertions(+), 281 deletions(-)
 delete mode 100644 board/rockchip/evb_rk3328/README
Signature · 1 line
2.43.0