mbox series

[00/31] rockchip: rk3399: Sync DT with linux v6.8 and update defconfigs

Message ID 20240331202921.262323-1-jonas@kwiboo.se
Headers show
Series rockchip: rk3399: Sync DT with linux v6.8 and update defconfigs | expand

Message

Jonas Karlman March 31, 2024, 8:28 p.m. UTC
This series adds support for new clocks used in linux v6.8 device trees,
enables use of FIT signature check for checksum validation and fixes
loading FIT from SD-card when loading FIT from eMMC fails.

After this series it should be possible to move RK3399 boards to use
OF_UPSTREAM in a future patch once dts/upstream move to a v6.8+ tag.

I have runtime tested this series on following devices:
- 96boards Rock960
- Khadas Edge Captain
- Pine64 PineBook Pro
- Pine64 RockPro64
- Radxa ROCK 4C+
- Radxa ROCK 4SE
- Radxa ROCK Pi 4A
- Radxa ROCK Pi 4B+

This series depends on the following series:
- Enable booting from SPI flash on ROCK Pi 4 [1]
- rockchip: spl: Cache boot source id for later use [2]

A copy of this series and all its depends can be found at [3]

[1] https://patchwork.ozlabs.org/cover/1912469/
[2] https://patchwork.ozlabs.org/cover/1915071/
[3] https://github.com/Kwiboo/u-boot-rockchip/commits/rk3399-dt-sync-v1

Jonas Karlman (31):
  rockchip: rk3399-gru: Fix max SPL size on bob and kevin
  rockchip: rk3399-ficus: Enable TPL and use common bss and stack addr
  rockchip: rk3399: Sort imply statements alphabetically
  rockchip: rk3399: Enable ARMv8 crypto and FIT checksum validation
  rockchip: rk3399: Enable random generator on all boards
  rockchip: rk3399: Imply support for GbE PHY
  rockchip: rk3399: Enable DT overlay support on all boards
  rockchip: rk3399: Remove use of xPL_MISC_DRIVERS options
  rockchip: rk3399: Add a default spl-boot-order prop
  rockchip: rk3399: Fix loading FIT from SD-card when booting from eMMC
  clk: rockchip: rk3399: Rename SCLK_DDRCLK to SCLK_DDRC
  clk: rockchip: rk3399: Add dummy support for ACLK_VDU clock
  clk: rockchip: rk3399: Add dummy support for SCLK_PCIEPHY_REF clock
  clk: rockchip: rk3399: Add SCLK_USB3OTGx_REF support
  rockchip: rk3399: Sync soc device tree from linux v6.8
  rockchip: rk3399-gru: Sync device tree from linux v6.8
  rockchip: rk3399-puma: Sync DT from linux v6.8
  rockchip: rk3399-rock-pi-n10: Sync device tree from linux v6.8
  rockchip: rk3399-eaidk-610: Sync device tree from linux v6.8
  rockchip: rk3399-leez: Sync device tree from linux v6.8
  rockchip: rk3399-evb: Sync device tree from linux v6.8
  rockchip: rk3399-firefly: Sync device tree from linux v6.8
  rockchip: rk3399-orangepi: Sync device tree from linux v6.8
  rockchip: rk3399-roc-pc: Sync device tree from linux v6.8
  rockchip: rk3399-nanopi-4: Sync device tree from linux v6.8
  rockchip: rk3399-rock960: Sync device tree from linux v6.8
  rockchip: rk3399-khadas: Sync device tree from linux v6.8
  rockchip: rk3399-rock-pi-4: Sync device tree from linux v6.8
  rockchip: rk3399-rockpro64: Sync device tree from linux v6.8
  rockchip: rk3399-pinebook-pro: Sync device tree from linux v6.8
  rockchip: rk3399-pinephone-pro: Sync device tree from linux v6.8

 arch/arm/dts/rk3288-vmarc-som.dtsi            |  48 +++
 arch/arm/dts/rk3399-eaidk-610-u-boot.dtsi     |   1 -
 arch/arm/dts/rk3399-eaidk-610.dts             |   3 +-
 arch/arm/dts/rk3399-evb-u-boot.dtsi           |  13 +-
 arch/arm/dts/rk3399-evb.dts                   |   3 +-
 arch/arm/dts/rk3399-ficus-u-boot.dtsi         |  10 +-
 arch/arm/dts/rk3399-ficus.dts                 |   4 +
 arch/arm/dts/rk3399-firefly-u-boot.dtsi       |   6 -
 arch/arm/dts/rk3399-firefly.dts               |  17 +-
 arch/arm/dts/rk3399-gru-bob.dts               |   8 +-
 arch/arm/dts/rk3399-gru-chromebook.dtsi       | 200 +++++++++++-
 arch/arm/dts/rk3399-gru-kevin.dts             |   3 +-
 arch/arm/dts/rk3399-gru-u-boot.dtsi           |  34 ++-
 arch/arm/dts/rk3399-gru.dtsi                  |  52 +++-
 arch/arm/dts/rk3399-khadas-edge-captain.dts   |   4 +
 arch/arm/dts/rk3399-khadas-edge-u-boot.dtsi   |   7 +-
 arch/arm/dts/rk3399-khadas-edge-v.dts         |   4 +
 arch/arm/dts/rk3399-khadas-edge.dtsi          |  10 +-
 arch/arm/dts/rk3399-leez-p710-u-boot.dtsi     |   6 -
 arch/arm/dts/rk3399-leez-p710.dts             |   8 +-
 arch/arm/dts/rk3399-nanopc-t4.dts             |   2 +-
 arch/arm/dts/rk3399-nanopi-m4-2gb.dts         |  55 +---
 arch/arm/dts/rk3399-nanopi-m4b.dts            |   2 +-
 arch/arm/dts/rk3399-nanopi-r4s.dts            |   4 +-
 arch/arm/dts/rk3399-nanopi4-u-boot.dtsi       |  18 +-
 arch/arm/dts/rk3399-nanopi4.dtsi              |   7 +-
 arch/arm/dts/rk3399-op1-opp.dtsi              |  31 +-
 arch/arm/dts/rk3399-opp.dtsi                  |   6 +-
 arch/arm/dts/rk3399-orangepi-u-boot.dtsi      |  12 +
 arch/arm/dts/rk3399-orangepi.dts              |  12 +-
 arch/arm/dts/rk3399-pinebook-pro-u-boot.dtsi  |  23 +-
 arch/arm/dts/rk3399-pinebook-pro.dts          |  24 +-
 arch/arm/dts/rk3399-pinephone-pro-u-boot.dtsi |  24 +-
 arch/arm/dts/rk3399-pinephone-pro.dts         | 147 +++++++++
 arch/arm/dts/rk3399-puma-haikou-u-boot.dtsi   |  27 +-
 arch/arm/dts/rk3399-puma-haikou.dts           |  42 ++-
 arch/arm/dts/rk3399-puma.dtsi                 |  17 +-
 arch/arm/dts/rk3399-roc-pc-u-boot.dtsi        |  45 +--
 arch/arm/dts/rk3399-roc-pc.dtsi               |  15 +-
 arch/arm/dts/rk3399-rock-4c-plus-u-boot.dtsi  |  20 ++
 arch/arm/dts/rk3399-rock-4c-plus.dts          |   1 +
 arch/arm/dts/rk3399-rock-4se-u-boot.dtsi      |  12 +
 arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi     |   6 -
 arch/arm/dts/rk3399-rock-pi-4.dtsi            |   4 +-
 arch/arm/dts/rk3399-rock-pi-4c-u-boot.dtsi    |   7 +
 arch/arm/dts/rk3399-rock-pi-4c.dts            |  10 +
 arch/arm/dts/rk3399-rock960-u-boot.dtsi       |  11 +-
 arch/arm/dts/rk3399-rock960.dtsi              |   5 +-
 arch/arm/dts/rk3399-rockpro64-u-boot.dtsi     |  22 +-
 arch/arm/dts/rk3399-rockpro64.dtsi            |  98 +++++-
 arch/arm/dts/rk3399-u-boot.dtsi               | 129 +++++---
 arch/arm/dts/rk3399.dtsi                      | 289 ++++++++++++++++--
 .../arm/dts/rk3399pro-rock-pi-n10-u-boot.dtsi |   6 -
 arch/arm/dts/rk3399pro-vmarc-som.dtsi         |  20 +-
 .../dts/rockchip-radxa-dalang-carrier.dtsi    |  21 ++
 arch/arm/mach-rockchip/Kconfig                |  38 ++-
 configs/chromebook_bob_defconfig              |   6 +-
 configs/chromebook_kevin_defconfig            |   6 +-
 configs/eaidk-610-rk3399_defconfig            |  13 +-
 configs/evb-rk3399_defconfig                  |  10 +-
 configs/ficus-rk3399_defconfig                |  38 +--
 configs/firefly-rk3399_defconfig              |  17 +-
 configs/khadas-edge-captain-rk3399_defconfig  |  35 ++-
 configs/khadas-edge-rk3399_defconfig          |  29 +-
 configs/khadas-edge-v-rk3399_defconfig        |  35 ++-
 configs/leez-rk3399_defconfig                 |  13 +-
 configs/nanopc-t4-rk3399_defconfig            |  18 +-
 configs/nanopi-m4-2gb-rk3399_defconfig        |  22 +-
 configs/nanopi-m4-rk3399_defconfig            |  22 +-
 configs/nanopi-m4b-rk3399_defconfig           |  22 +-
 configs/nanopi-neo4-rk3399_defconfig          |  22 +-
 configs/nanopi-r4s-rk3399_defconfig           |  16 +-
 configs/orangepi-rk3399_defconfig             |  14 +-
 configs/pinebook-pro-rk3399_defconfig         |  13 +-
 configs/pinephone-pro-rk3399_defconfig        |  13 +-
 configs/puma-rk3399_defconfig                 |   5 +-
 configs/roc-pc-mezzanine-rk3399_defconfig     |  15 +-
 configs/roc-pc-rk3399_defconfig               |  13 +-
 configs/rock-4c-plus-rk3399_defconfig         |  27 +-
 configs/rock-4se-rk3399_defconfig             |  28 +-
 configs/rock-pi-4-rk3399_defconfig            |  13 +-
 configs/rock-pi-4c-rk3399_defconfig           |  27 +-
 configs/rock-pi-n10-rk3399pro_defconfig       |  10 +-
 configs/rock960-rk3399_defconfig              |  18 +-
 configs/rockpro64-rk3399_defconfig            |  16 +-
 drivers/clk/rockchip/clk_rk3399.c             |  12 +-
 include/dt-bindings/clock/rk3399-cru.h        |  30 +-
 87 files changed, 1700 insertions(+), 531 deletions(-)

Comments

Sumit Garg April 1, 2024, 8:52 a.m. UTC | #1
Hi Jonas,

On Mon, 1 Apr 2024 at 01:59, Jonas Karlman <jonas@kwiboo.se> wrote:
>
> This series adds support for new clocks used in linux v6.8 device trees,
> enables use of FIT signature check for checksum validation and fixes
> loading FIT from SD-card when loading FIT from eMMC fails.
>
> After this series it should be possible to move RK3399 boards to use
> OF_UPSTREAM in a future patch once dts/upstream move to a v6.8+ tag.
>

Thanks for putting this effort together. A switch to v6.8 tag for
OF_UPSTREAM will happen as part of patch [1]. So if you want to save
further effort then you can just rebase with a switch to OF_UPSTREAM
once that patch [1] lands in next.

[1] https://lists.denx.de/pipermail/u-boot/2024-March/549611.html

-Sumit

> I have runtime tested this series on following devices:
> - 96boards Rock960
> - Khadas Edge Captain
> - Pine64 PineBook Pro
> - Pine64 RockPro64
> - Radxa ROCK 4C+
> - Radxa ROCK 4SE
> - Radxa ROCK Pi 4A
> - Radxa ROCK Pi 4B+
>
> This series depends on the following series:
> - Enable booting from SPI flash on ROCK Pi 4 [1]
> - rockchip: spl: Cache boot source id for later use [2]
>
> A copy of this series and all its depends can be found at [3]
>
> [1] https://patchwork.ozlabs.org/cover/1912469/
> [2] https://patchwork.ozlabs.org/cover/1915071/
> [3] https://github.com/Kwiboo/u-boot-rockchip/commits/rk3399-dt-sync-v1
>
> Jonas Karlman (31):
>   rockchip: rk3399-gru: Fix max SPL size on bob and kevin
>   rockchip: rk3399-ficus: Enable TPL and use common bss and stack addr
>   rockchip: rk3399: Sort imply statements alphabetically
>   rockchip: rk3399: Enable ARMv8 crypto and FIT checksum validation
>   rockchip: rk3399: Enable random generator on all boards
>   rockchip: rk3399: Imply support for GbE PHY
>   rockchip: rk3399: Enable DT overlay support on all boards
>   rockchip: rk3399: Remove use of xPL_MISC_DRIVERS options
>   rockchip: rk3399: Add a default spl-boot-order prop
>   rockchip: rk3399: Fix loading FIT from SD-card when booting from eMMC
>   clk: rockchip: rk3399: Rename SCLK_DDRCLK to SCLK_DDRC
>   clk: rockchip: rk3399: Add dummy support for ACLK_VDU clock
>   clk: rockchip: rk3399: Add dummy support for SCLK_PCIEPHY_REF clock
>   clk: rockchip: rk3399: Add SCLK_USB3OTGx_REF support
>   rockchip: rk3399: Sync soc device tree from linux v6.8
>   rockchip: rk3399-gru: Sync device tree from linux v6.8
>   rockchip: rk3399-puma: Sync DT from linux v6.8
>   rockchip: rk3399-rock-pi-n10: Sync device tree from linux v6.8
>   rockchip: rk3399-eaidk-610: Sync device tree from linux v6.8
>   rockchip: rk3399-leez: Sync device tree from linux v6.8
>   rockchip: rk3399-evb: Sync device tree from linux v6.8
>   rockchip: rk3399-firefly: Sync device tree from linux v6.8
>   rockchip: rk3399-orangepi: Sync device tree from linux v6.8
>   rockchip: rk3399-roc-pc: Sync device tree from linux v6.8
>   rockchip: rk3399-nanopi-4: Sync device tree from linux v6.8
>   rockchip: rk3399-rock960: Sync device tree from linux v6.8
>   rockchip: rk3399-khadas: Sync device tree from linux v6.8
>   rockchip: rk3399-rock-pi-4: Sync device tree from linux v6.8
>   rockchip: rk3399-rockpro64: Sync device tree from linux v6.8
>   rockchip: rk3399-pinebook-pro: Sync device tree from linux v6.8
>   rockchip: rk3399-pinephone-pro: Sync device tree from linux v6.8
>
>  arch/arm/dts/rk3288-vmarc-som.dtsi            |  48 +++
>  arch/arm/dts/rk3399-eaidk-610-u-boot.dtsi     |   1 -
>  arch/arm/dts/rk3399-eaidk-610.dts             |   3 +-
>  arch/arm/dts/rk3399-evb-u-boot.dtsi           |  13 +-
>  arch/arm/dts/rk3399-evb.dts                   |   3 +-
>  arch/arm/dts/rk3399-ficus-u-boot.dtsi         |  10 +-
>  arch/arm/dts/rk3399-ficus.dts                 |   4 +
>  arch/arm/dts/rk3399-firefly-u-boot.dtsi       |   6 -
>  arch/arm/dts/rk3399-firefly.dts               |  17 +-
>  arch/arm/dts/rk3399-gru-bob.dts               |   8 +-
>  arch/arm/dts/rk3399-gru-chromebook.dtsi       | 200 +++++++++++-
>  arch/arm/dts/rk3399-gru-kevin.dts             |   3 +-
>  arch/arm/dts/rk3399-gru-u-boot.dtsi           |  34 ++-
>  arch/arm/dts/rk3399-gru.dtsi                  |  52 +++-
>  arch/arm/dts/rk3399-khadas-edge-captain.dts   |   4 +
>  arch/arm/dts/rk3399-khadas-edge-u-boot.dtsi   |   7 +-
>  arch/arm/dts/rk3399-khadas-edge-v.dts         |   4 +
>  arch/arm/dts/rk3399-khadas-edge.dtsi          |  10 +-
>  arch/arm/dts/rk3399-leez-p710-u-boot.dtsi     |   6 -
>  arch/arm/dts/rk3399-leez-p710.dts             |   8 +-
>  arch/arm/dts/rk3399-nanopc-t4.dts             |   2 +-
>  arch/arm/dts/rk3399-nanopi-m4-2gb.dts         |  55 +---
>  arch/arm/dts/rk3399-nanopi-m4b.dts            |   2 +-
>  arch/arm/dts/rk3399-nanopi-r4s.dts            |   4 +-
>  arch/arm/dts/rk3399-nanopi4-u-boot.dtsi       |  18 +-
>  arch/arm/dts/rk3399-nanopi4.dtsi              |   7 +-
>  arch/arm/dts/rk3399-op1-opp.dtsi              |  31 +-
>  arch/arm/dts/rk3399-opp.dtsi                  |   6 +-
>  arch/arm/dts/rk3399-orangepi-u-boot.dtsi      |  12 +
>  arch/arm/dts/rk3399-orangepi.dts              |  12 +-
>  arch/arm/dts/rk3399-pinebook-pro-u-boot.dtsi  |  23 +-
>  arch/arm/dts/rk3399-pinebook-pro.dts          |  24 +-
>  arch/arm/dts/rk3399-pinephone-pro-u-boot.dtsi |  24 +-
>  arch/arm/dts/rk3399-pinephone-pro.dts         | 147 +++++++++
>  arch/arm/dts/rk3399-puma-haikou-u-boot.dtsi   |  27 +-
>  arch/arm/dts/rk3399-puma-haikou.dts           |  42 ++-
>  arch/arm/dts/rk3399-puma.dtsi                 |  17 +-
>  arch/arm/dts/rk3399-roc-pc-u-boot.dtsi        |  45 +--
>  arch/arm/dts/rk3399-roc-pc.dtsi               |  15 +-
>  arch/arm/dts/rk3399-rock-4c-plus-u-boot.dtsi  |  20 ++
>  arch/arm/dts/rk3399-rock-4c-plus.dts          |   1 +
>  arch/arm/dts/rk3399-rock-4se-u-boot.dtsi      |  12 +
>  arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi     |   6 -
>  arch/arm/dts/rk3399-rock-pi-4.dtsi            |   4 +-
>  arch/arm/dts/rk3399-rock-pi-4c-u-boot.dtsi    |   7 +
>  arch/arm/dts/rk3399-rock-pi-4c.dts            |  10 +
>  arch/arm/dts/rk3399-rock960-u-boot.dtsi       |  11 +-
>  arch/arm/dts/rk3399-rock960.dtsi              |   5 +-
>  arch/arm/dts/rk3399-rockpro64-u-boot.dtsi     |  22 +-
>  arch/arm/dts/rk3399-rockpro64.dtsi            |  98 +++++-
>  arch/arm/dts/rk3399-u-boot.dtsi               | 129 +++++---
>  arch/arm/dts/rk3399.dtsi                      | 289 ++++++++++++++++--
>  .../arm/dts/rk3399pro-rock-pi-n10-u-boot.dtsi |   6 -
>  arch/arm/dts/rk3399pro-vmarc-som.dtsi         |  20 +-
>  .../dts/rockchip-radxa-dalang-carrier.dtsi    |  21 ++
>  arch/arm/mach-rockchip/Kconfig                |  38 ++-
>  configs/chromebook_bob_defconfig              |   6 +-
>  configs/chromebook_kevin_defconfig            |   6 +-
>  configs/eaidk-610-rk3399_defconfig            |  13 +-
>  configs/evb-rk3399_defconfig                  |  10 +-
>  configs/ficus-rk3399_defconfig                |  38 +--
>  configs/firefly-rk3399_defconfig              |  17 +-
>  configs/khadas-edge-captain-rk3399_defconfig  |  35 ++-
>  configs/khadas-edge-rk3399_defconfig          |  29 +-
>  configs/khadas-edge-v-rk3399_defconfig        |  35 ++-
>  configs/leez-rk3399_defconfig                 |  13 +-
>  configs/nanopc-t4-rk3399_defconfig            |  18 +-
>  configs/nanopi-m4-2gb-rk3399_defconfig        |  22 +-
>  configs/nanopi-m4-rk3399_defconfig            |  22 +-
>  configs/nanopi-m4b-rk3399_defconfig           |  22 +-
>  configs/nanopi-neo4-rk3399_defconfig          |  22 +-
>  configs/nanopi-r4s-rk3399_defconfig           |  16 +-
>  configs/orangepi-rk3399_defconfig             |  14 +-
>  configs/pinebook-pro-rk3399_defconfig         |  13 +-
>  configs/pinephone-pro-rk3399_defconfig        |  13 +-
>  configs/puma-rk3399_defconfig                 |   5 +-
>  configs/roc-pc-mezzanine-rk3399_defconfig     |  15 +-
>  configs/roc-pc-rk3399_defconfig               |  13 +-
>  configs/rock-4c-plus-rk3399_defconfig         |  27 +-
>  configs/rock-4se-rk3399_defconfig             |  28 +-
>  configs/rock-pi-4-rk3399_defconfig            |  13 +-
>  configs/rock-pi-4c-rk3399_defconfig           |  27 +-
>  configs/rock-pi-n10-rk3399pro_defconfig       |  10 +-
>  configs/rock960-rk3399_defconfig              |  18 +-
>  configs/rockpro64-rk3399_defconfig            |  16 +-
>  drivers/clk/rockchip/clk_rk3399.c             |  12 +-
>  include/dt-bindings/clock/rk3399-cru.h        |  30 +-
>  87 files changed, 1700 insertions(+), 531 deletions(-)
>
> --
> 2.43.2
>
Jonas Karlman April 1, 2024, 9:45 a.m. UTC | #2
Hi Sumit,

On 2024-04-01 10:52, Sumit Garg wrote:
> Hi Jonas,
> 
> On Mon, 1 Apr 2024 at 01:59, Jonas Karlman <jonas@kwiboo.se> wrote:
>>
>> This series adds support for new clocks used in linux v6.8 device trees,
>> enables use of FIT signature check for checksum validation and fixes
>> loading FIT from SD-card when loading FIT from eMMC fails.
>>
>> After this series it should be possible to move RK3399 boards to use
>> OF_UPSTREAM in a future patch once dts/upstream move to a v6.8+ tag.
>>
> 
> Thanks for putting this effort together. A switch to v6.8 tag for
> OF_UPSTREAM will happen as part of patch [1]. So if you want to save
> further effort then you can just rebase with a switch to OF_UPSTREAM
> once that patch [1] lands in next.

Because this is a jump of device tree files from v5.14-rc1 to v6.8,
reviewability and being able to cherry-pick these changes to my
rk3xxx-2024.04 branch, I think it is much more appropriate to first sync
everything to v6.8 and then in a separate series move to OF_UPSTREAM.
Else it can be very hard to understand some of the changes that has been
and was needed to be made to u-boot.dtsi files.

Reviewability is one of the shortcomings with a switch to OF_UPSTREAM.

Regards,
Jonas

> 
> [1] https://lists.denx.de/pipermail/u-boot/2024-March/549611.html
> 
> -Sumit
> 
>> I have runtime tested this series on following devices:
>> - 96boards Rock960
>> - Khadas Edge Captain
>> - Pine64 PineBook Pro
>> - Pine64 RockPro64
>> - Radxa ROCK 4C+
>> - Radxa ROCK 4SE
>> - Radxa ROCK Pi 4A
>> - Radxa ROCK Pi 4B+
>>
>> This series depends on the following series:
>> - Enable booting from SPI flash on ROCK Pi 4 [1]
>> - rockchip: spl: Cache boot source id for later use [2]
>>
>> A copy of this series and all its depends can be found at [3]
>>
>> [1] https://patchwork.ozlabs.org/cover/1912469/
>> [2] https://patchwork.ozlabs.org/cover/1915071/
>> [3] https://github.com/Kwiboo/u-boot-rockchip/commits/rk3399-dt-sync-v1
>>
>> Jonas Karlman (31):
>>   rockchip: rk3399-gru: Fix max SPL size on bob and kevin
>>   rockchip: rk3399-ficus: Enable TPL and use common bss and stack addr
>>   rockchip: rk3399: Sort imply statements alphabetically
>>   rockchip: rk3399: Enable ARMv8 crypto and FIT checksum validation
>>   rockchip: rk3399: Enable random generator on all boards
>>   rockchip: rk3399: Imply support for GbE PHY
>>   rockchip: rk3399: Enable DT overlay support on all boards
>>   rockchip: rk3399: Remove use of xPL_MISC_DRIVERS options
>>   rockchip: rk3399: Add a default spl-boot-order prop
>>   rockchip: rk3399: Fix loading FIT from SD-card when booting from eMMC
>>   clk: rockchip: rk3399: Rename SCLK_DDRCLK to SCLK_DDRC
>>   clk: rockchip: rk3399: Add dummy support for ACLK_VDU clock
>>   clk: rockchip: rk3399: Add dummy support for SCLK_PCIEPHY_REF clock
>>   clk: rockchip: rk3399: Add SCLK_USB3OTGx_REF support
>>   rockchip: rk3399: Sync soc device tree from linux v6.8
>>   rockchip: rk3399-gru: Sync device tree from linux v6.8
>>   rockchip: rk3399-puma: Sync DT from linux v6.8
>>   rockchip: rk3399-rock-pi-n10: Sync device tree from linux v6.8
>>   rockchip: rk3399-eaidk-610: Sync device tree from linux v6.8
>>   rockchip: rk3399-leez: Sync device tree from linux v6.8
>>   rockchip: rk3399-evb: Sync device tree from linux v6.8
>>   rockchip: rk3399-firefly: Sync device tree from linux v6.8
>>   rockchip: rk3399-orangepi: Sync device tree from linux v6.8
>>   rockchip: rk3399-roc-pc: Sync device tree from linux v6.8
>>   rockchip: rk3399-nanopi-4: Sync device tree from linux v6.8
>>   rockchip: rk3399-rock960: Sync device tree from linux v6.8
>>   rockchip: rk3399-khadas: Sync device tree from linux v6.8
>>   rockchip: rk3399-rock-pi-4: Sync device tree from linux v6.8
>>   rockchip: rk3399-rockpro64: Sync device tree from linux v6.8
>>   rockchip: rk3399-pinebook-pro: Sync device tree from linux v6.8
>>   rockchip: rk3399-pinephone-pro: Sync device tree from linux v6.8
>>
>>  arch/arm/dts/rk3288-vmarc-som.dtsi            |  48 +++
>>  arch/arm/dts/rk3399-eaidk-610-u-boot.dtsi     |   1 -
>>  arch/arm/dts/rk3399-eaidk-610.dts             |   3 +-
>>  arch/arm/dts/rk3399-evb-u-boot.dtsi           |  13 +-
>>  arch/arm/dts/rk3399-evb.dts                   |   3 +-
>>  arch/arm/dts/rk3399-ficus-u-boot.dtsi         |  10 +-
>>  arch/arm/dts/rk3399-ficus.dts                 |   4 +
>>  arch/arm/dts/rk3399-firefly-u-boot.dtsi       |   6 -
>>  arch/arm/dts/rk3399-firefly.dts               |  17 +-
>>  arch/arm/dts/rk3399-gru-bob.dts               |   8 +-
>>  arch/arm/dts/rk3399-gru-chromebook.dtsi       | 200 +++++++++++-
>>  arch/arm/dts/rk3399-gru-kevin.dts             |   3 +-
>>  arch/arm/dts/rk3399-gru-u-boot.dtsi           |  34 ++-
>>  arch/arm/dts/rk3399-gru.dtsi                  |  52 +++-
>>  arch/arm/dts/rk3399-khadas-edge-captain.dts   |   4 +
>>  arch/arm/dts/rk3399-khadas-edge-u-boot.dtsi   |   7 +-
>>  arch/arm/dts/rk3399-khadas-edge-v.dts         |   4 +
>>  arch/arm/dts/rk3399-khadas-edge.dtsi          |  10 +-
>>  arch/arm/dts/rk3399-leez-p710-u-boot.dtsi     |   6 -
>>  arch/arm/dts/rk3399-leez-p710.dts             |   8 +-
>>  arch/arm/dts/rk3399-nanopc-t4.dts             |   2 +-
>>  arch/arm/dts/rk3399-nanopi-m4-2gb.dts         |  55 +---
>>  arch/arm/dts/rk3399-nanopi-m4b.dts            |   2 +-
>>  arch/arm/dts/rk3399-nanopi-r4s.dts            |   4 +-
>>  arch/arm/dts/rk3399-nanopi4-u-boot.dtsi       |  18 +-
>>  arch/arm/dts/rk3399-nanopi4.dtsi              |   7 +-
>>  arch/arm/dts/rk3399-op1-opp.dtsi              |  31 +-
>>  arch/arm/dts/rk3399-opp.dtsi                  |   6 +-
>>  arch/arm/dts/rk3399-orangepi-u-boot.dtsi      |  12 +
>>  arch/arm/dts/rk3399-orangepi.dts              |  12 +-
>>  arch/arm/dts/rk3399-pinebook-pro-u-boot.dtsi  |  23 +-
>>  arch/arm/dts/rk3399-pinebook-pro.dts          |  24 +-
>>  arch/arm/dts/rk3399-pinephone-pro-u-boot.dtsi |  24 +-
>>  arch/arm/dts/rk3399-pinephone-pro.dts         | 147 +++++++++
>>  arch/arm/dts/rk3399-puma-haikou-u-boot.dtsi   |  27 +-
>>  arch/arm/dts/rk3399-puma-haikou.dts           |  42 ++-
>>  arch/arm/dts/rk3399-puma.dtsi                 |  17 +-
>>  arch/arm/dts/rk3399-roc-pc-u-boot.dtsi        |  45 +--
>>  arch/arm/dts/rk3399-roc-pc.dtsi               |  15 +-
>>  arch/arm/dts/rk3399-rock-4c-plus-u-boot.dtsi  |  20 ++
>>  arch/arm/dts/rk3399-rock-4c-plus.dts          |   1 +
>>  arch/arm/dts/rk3399-rock-4se-u-boot.dtsi      |  12 +
>>  arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi     |   6 -
>>  arch/arm/dts/rk3399-rock-pi-4.dtsi            |   4 +-
>>  arch/arm/dts/rk3399-rock-pi-4c-u-boot.dtsi    |   7 +
>>  arch/arm/dts/rk3399-rock-pi-4c.dts            |  10 +
>>  arch/arm/dts/rk3399-rock960-u-boot.dtsi       |  11 +-
>>  arch/arm/dts/rk3399-rock960.dtsi              |   5 +-
>>  arch/arm/dts/rk3399-rockpro64-u-boot.dtsi     |  22 +-
>>  arch/arm/dts/rk3399-rockpro64.dtsi            |  98 +++++-
>>  arch/arm/dts/rk3399-u-boot.dtsi               | 129 +++++---
>>  arch/arm/dts/rk3399.dtsi                      | 289 ++++++++++++++++--
>>  .../arm/dts/rk3399pro-rock-pi-n10-u-boot.dtsi |   6 -
>>  arch/arm/dts/rk3399pro-vmarc-som.dtsi         |  20 +-
>>  .../dts/rockchip-radxa-dalang-carrier.dtsi    |  21 ++
>>  arch/arm/mach-rockchip/Kconfig                |  38 ++-
>>  configs/chromebook_bob_defconfig              |   6 +-
>>  configs/chromebook_kevin_defconfig            |   6 +-
>>  configs/eaidk-610-rk3399_defconfig            |  13 +-
>>  configs/evb-rk3399_defconfig                  |  10 +-
>>  configs/ficus-rk3399_defconfig                |  38 +--
>>  configs/firefly-rk3399_defconfig              |  17 +-
>>  configs/khadas-edge-captain-rk3399_defconfig  |  35 ++-
>>  configs/khadas-edge-rk3399_defconfig          |  29 +-
>>  configs/khadas-edge-v-rk3399_defconfig        |  35 ++-
>>  configs/leez-rk3399_defconfig                 |  13 +-
>>  configs/nanopc-t4-rk3399_defconfig            |  18 +-
>>  configs/nanopi-m4-2gb-rk3399_defconfig        |  22 +-
>>  configs/nanopi-m4-rk3399_defconfig            |  22 +-
>>  configs/nanopi-m4b-rk3399_defconfig           |  22 +-
>>  configs/nanopi-neo4-rk3399_defconfig          |  22 +-
>>  configs/nanopi-r4s-rk3399_defconfig           |  16 +-
>>  configs/orangepi-rk3399_defconfig             |  14 +-
>>  configs/pinebook-pro-rk3399_defconfig         |  13 +-
>>  configs/pinephone-pro-rk3399_defconfig        |  13 +-
>>  configs/puma-rk3399_defconfig                 |   5 +-
>>  configs/roc-pc-mezzanine-rk3399_defconfig     |  15 +-
>>  configs/roc-pc-rk3399_defconfig               |  13 +-
>>  configs/rock-4c-plus-rk3399_defconfig         |  27 +-
>>  configs/rock-4se-rk3399_defconfig             |  28 +-
>>  configs/rock-pi-4-rk3399_defconfig            |  13 +-
>>  configs/rock-pi-4c-rk3399_defconfig           |  27 +-
>>  configs/rock-pi-n10-rk3399pro_defconfig       |  10 +-
>>  configs/rock960-rk3399_defconfig              |  18 +-
>>  configs/rockpro64-rk3399_defconfig            |  16 +-
>>  drivers/clk/rockchip/clk_rk3399.c             |  12 +-
>>  include/dt-bindings/clock/rk3399-cru.h        |  30 +-
>>  87 files changed, 1700 insertions(+), 531 deletions(-)
>>
>> --
>> 2.43.2
>>
Jonas Karlman April 1, 2024, 10:01 a.m. UTC | #3
On 2024-04-01 11:45, Jonas Karlman wrote:
> Hi Sumit,
> 
> On 2024-04-01 10:52, Sumit Garg wrote:
>> Hi Jonas,
>>
>> On Mon, 1 Apr 2024 at 01:59, Jonas Karlman <jonas@kwiboo.se> wrote:
>>>
>>> This series adds support for new clocks used in linux v6.8 device trees,
>>> enables use of FIT signature check for checksum validation and fixes
>>> loading FIT from SD-card when loading FIT from eMMC fails.
>>>
>>> After this series it should be possible to move RK3399 boards to use
>>> OF_UPSTREAM in a future patch once dts/upstream move to a v6.8+ tag.
>>>
>>
>> Thanks for putting this effort together. A switch to v6.8 tag for
>> OF_UPSTREAM will happen as part of patch [1]. So if you want to save
>> further effort then you can just rebase with a switch to OF_UPSTREAM
>> once that patch [1] lands in next.
> 
> Because this is a jump of device tree files from v5.14-rc1 to v6.8,
> reviewability and being able to cherry-pick these changes to my
> rk3xxx-2024.04 branch, I think it is much more appropriate to first sync
> everything to v6.8 and then in a separate series move to OF_UPSTREAM.
> Else it can be very hard to understand some of the changes that has been
> and was needed to be made to u-boot.dtsi files.

Also forgot to mention that these synced DT files still contains some
minor modification in #include dtsi paths of files that is shared
between rk3288 (armv7) and rk3399 (armv8), so a full sync of rk3288 to
linux v6.8 would be recommended before doing a full move to OF_UPSTREAM
of rk3399.

> 
> Reviewability is one of the shortcomings with a switch to OF_UPSTREAM.
> 
> Regards,
> Jonas
> 
>>
>> [1] https://lists.denx.de/pipermail/u-boot/2024-March/549611.html
>>
>> -Sumit
>>
>>> I have runtime tested this series on following devices:
>>> - 96boards Rock960
>>> - Khadas Edge Captain
>>> - Pine64 PineBook Pro
>>> - Pine64 RockPro64
>>> - Radxa ROCK 4C+
>>> - Radxa ROCK 4SE
>>> - Radxa ROCK Pi 4A
>>> - Radxa ROCK Pi 4B+
>>>
>>> This series depends on the following series:
>>> - Enable booting from SPI flash on ROCK Pi 4 [1]
>>> - rockchip: spl: Cache boot source id for later use [2]
>>>
>>> A copy of this series and all its depends can be found at [3]
>>>
>>> [1] https://patchwork.ozlabs.org/cover/1912469/
>>> [2] https://patchwork.ozlabs.org/cover/1915071/
>>> [3] https://github.com/Kwiboo/u-boot-rockchip/commits/rk3399-dt-sync-v1
>>>
>>> Jonas Karlman (31):
>>>   rockchip: rk3399-gru: Fix max SPL size on bob and kevin
>>>   rockchip: rk3399-ficus: Enable TPL and use common bss and stack addr
>>>   rockchip: rk3399: Sort imply statements alphabetically
>>>   rockchip: rk3399: Enable ARMv8 crypto and FIT checksum validation
>>>   rockchip: rk3399: Enable random generator on all boards
>>>   rockchip: rk3399: Imply support for GbE PHY
>>>   rockchip: rk3399: Enable DT overlay support on all boards
>>>   rockchip: rk3399: Remove use of xPL_MISC_DRIVERS options
>>>   rockchip: rk3399: Add a default spl-boot-order prop
>>>   rockchip: rk3399: Fix loading FIT from SD-card when booting from eMMC
>>>   clk: rockchip: rk3399: Rename SCLK_DDRCLK to SCLK_DDRC
>>>   clk: rockchip: rk3399: Add dummy support for ACLK_VDU clock
>>>   clk: rockchip: rk3399: Add dummy support for SCLK_PCIEPHY_REF clock
>>>   clk: rockchip: rk3399: Add SCLK_USB3OTGx_REF support
>>>   rockchip: rk3399: Sync soc device tree from linux v6.8
>>>   rockchip: rk3399-gru: Sync device tree from linux v6.8
>>>   rockchip: rk3399-puma: Sync DT from linux v6.8
>>>   rockchip: rk3399-rock-pi-n10: Sync device tree from linux v6.8
>>>   rockchip: rk3399-eaidk-610: Sync device tree from linux v6.8
>>>   rockchip: rk3399-leez: Sync device tree from linux v6.8
>>>   rockchip: rk3399-evb: Sync device tree from linux v6.8
>>>   rockchip: rk3399-firefly: Sync device tree from linux v6.8
>>>   rockchip: rk3399-orangepi: Sync device tree from linux v6.8
>>>   rockchip: rk3399-roc-pc: Sync device tree from linux v6.8
>>>   rockchip: rk3399-nanopi-4: Sync device tree from linux v6.8
>>>   rockchip: rk3399-rock960: Sync device tree from linux v6.8
>>>   rockchip: rk3399-khadas: Sync device tree from linux v6.8
>>>   rockchip: rk3399-rock-pi-4: Sync device tree from linux v6.8
>>>   rockchip: rk3399-rockpro64: Sync device tree from linux v6.8
>>>   rockchip: rk3399-pinebook-pro: Sync device tree from linux v6.8
>>>   rockchip: rk3399-pinephone-pro: Sync device tree from linux v6.8
>>>
>>>  arch/arm/dts/rk3288-vmarc-som.dtsi            |  48 +++
>>>  arch/arm/dts/rk3399-eaidk-610-u-boot.dtsi     |   1 -
>>>  arch/arm/dts/rk3399-eaidk-610.dts             |   3 +-
>>>  arch/arm/dts/rk3399-evb-u-boot.dtsi           |  13 +-
>>>  arch/arm/dts/rk3399-evb.dts                   |   3 +-
>>>  arch/arm/dts/rk3399-ficus-u-boot.dtsi         |  10 +-
>>>  arch/arm/dts/rk3399-ficus.dts                 |   4 +
>>>  arch/arm/dts/rk3399-firefly-u-boot.dtsi       |   6 -
>>>  arch/arm/dts/rk3399-firefly.dts               |  17 +-
>>>  arch/arm/dts/rk3399-gru-bob.dts               |   8 +-
>>>  arch/arm/dts/rk3399-gru-chromebook.dtsi       | 200 +++++++++++-
>>>  arch/arm/dts/rk3399-gru-kevin.dts             |   3 +-
>>>  arch/arm/dts/rk3399-gru-u-boot.dtsi           |  34 ++-
>>>  arch/arm/dts/rk3399-gru.dtsi                  |  52 +++-
>>>  arch/arm/dts/rk3399-khadas-edge-captain.dts   |   4 +
>>>  arch/arm/dts/rk3399-khadas-edge-u-boot.dtsi   |   7 +-
>>>  arch/arm/dts/rk3399-khadas-edge-v.dts         |   4 +
>>>  arch/arm/dts/rk3399-khadas-edge.dtsi          |  10 +-
>>>  arch/arm/dts/rk3399-leez-p710-u-boot.dtsi     |   6 -
>>>  arch/arm/dts/rk3399-leez-p710.dts             |   8 +-
>>>  arch/arm/dts/rk3399-nanopc-t4.dts             |   2 +-
>>>  arch/arm/dts/rk3399-nanopi-m4-2gb.dts         |  55 +---
>>>  arch/arm/dts/rk3399-nanopi-m4b.dts            |   2 +-
>>>  arch/arm/dts/rk3399-nanopi-r4s.dts            |   4 +-
>>>  arch/arm/dts/rk3399-nanopi4-u-boot.dtsi       |  18 +-
>>>  arch/arm/dts/rk3399-nanopi4.dtsi              |   7 +-
>>>  arch/arm/dts/rk3399-op1-opp.dtsi              |  31 +-
>>>  arch/arm/dts/rk3399-opp.dtsi                  |   6 +-
>>>  arch/arm/dts/rk3399-orangepi-u-boot.dtsi      |  12 +
>>>  arch/arm/dts/rk3399-orangepi.dts              |  12 +-
>>>  arch/arm/dts/rk3399-pinebook-pro-u-boot.dtsi  |  23 +-
>>>  arch/arm/dts/rk3399-pinebook-pro.dts          |  24 +-
>>>  arch/arm/dts/rk3399-pinephone-pro-u-boot.dtsi |  24 +-
>>>  arch/arm/dts/rk3399-pinephone-pro.dts         | 147 +++++++++
>>>  arch/arm/dts/rk3399-puma-haikou-u-boot.dtsi   |  27 +-
>>>  arch/arm/dts/rk3399-puma-haikou.dts           |  42 ++-
>>>  arch/arm/dts/rk3399-puma.dtsi                 |  17 +-
>>>  arch/arm/dts/rk3399-roc-pc-u-boot.dtsi        |  45 +--
>>>  arch/arm/dts/rk3399-roc-pc.dtsi               |  15 +-
>>>  arch/arm/dts/rk3399-rock-4c-plus-u-boot.dtsi  |  20 ++
>>>  arch/arm/dts/rk3399-rock-4c-plus.dts          |   1 +
>>>  arch/arm/dts/rk3399-rock-4se-u-boot.dtsi      |  12 +
>>>  arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi     |   6 -
>>>  arch/arm/dts/rk3399-rock-pi-4.dtsi            |   4 +-
>>>  arch/arm/dts/rk3399-rock-pi-4c-u-boot.dtsi    |   7 +
>>>  arch/arm/dts/rk3399-rock-pi-4c.dts            |  10 +
>>>  arch/arm/dts/rk3399-rock960-u-boot.dtsi       |  11 +-
>>>  arch/arm/dts/rk3399-rock960.dtsi              |   5 +-
>>>  arch/arm/dts/rk3399-rockpro64-u-boot.dtsi     |  22 +-
>>>  arch/arm/dts/rk3399-rockpro64.dtsi            |  98 +++++-
>>>  arch/arm/dts/rk3399-u-boot.dtsi               | 129 +++++---
>>>  arch/arm/dts/rk3399.dtsi                      | 289 ++++++++++++++++--
>>>  .../arm/dts/rk3399pro-rock-pi-n10-u-boot.dtsi |   6 -
>>>  arch/arm/dts/rk3399pro-vmarc-som.dtsi         |  20 +-
>>>  .../dts/rockchip-radxa-dalang-carrier.dtsi    |  21 ++
>>>  arch/arm/mach-rockchip/Kconfig                |  38 ++-
>>>  configs/chromebook_bob_defconfig              |   6 +-
>>>  configs/chromebook_kevin_defconfig            |   6 +-
>>>  configs/eaidk-610-rk3399_defconfig            |  13 +-
>>>  configs/evb-rk3399_defconfig                  |  10 +-
>>>  configs/ficus-rk3399_defconfig                |  38 +--
>>>  configs/firefly-rk3399_defconfig              |  17 +-
>>>  configs/khadas-edge-captain-rk3399_defconfig  |  35 ++-
>>>  configs/khadas-edge-rk3399_defconfig          |  29 +-
>>>  configs/khadas-edge-v-rk3399_defconfig        |  35 ++-
>>>  configs/leez-rk3399_defconfig                 |  13 +-
>>>  configs/nanopc-t4-rk3399_defconfig            |  18 +-
>>>  configs/nanopi-m4-2gb-rk3399_defconfig        |  22 +-
>>>  configs/nanopi-m4-rk3399_defconfig            |  22 +-
>>>  configs/nanopi-m4b-rk3399_defconfig           |  22 +-
>>>  configs/nanopi-neo4-rk3399_defconfig          |  22 +-
>>>  configs/nanopi-r4s-rk3399_defconfig           |  16 +-
>>>  configs/orangepi-rk3399_defconfig             |  14 +-
>>>  configs/pinebook-pro-rk3399_defconfig         |  13 +-
>>>  configs/pinephone-pro-rk3399_defconfig        |  13 +-
>>>  configs/puma-rk3399_defconfig                 |   5 +-
>>>  configs/roc-pc-mezzanine-rk3399_defconfig     |  15 +-
>>>  configs/roc-pc-rk3399_defconfig               |  13 +-
>>>  configs/rock-4c-plus-rk3399_defconfig         |  27 +-
>>>  configs/rock-4se-rk3399_defconfig             |  28 +-
>>>  configs/rock-pi-4-rk3399_defconfig            |  13 +-
>>>  configs/rock-pi-4c-rk3399_defconfig           |  27 +-
>>>  configs/rock-pi-n10-rk3399pro_defconfig       |  10 +-
>>>  configs/rock960-rk3399_defconfig              |  18 +-
>>>  configs/rockpro64-rk3399_defconfig            |  16 +-
>>>  drivers/clk/rockchip/clk_rk3399.c             |  12 +-
>>>  include/dt-bindings/clock/rk3399-cru.h        |  30 +-
>>>  87 files changed, 1700 insertions(+), 531 deletions(-)
>>>
>>> --
>>> 2.43.2
>>>
>
Sumit Garg April 1, 2024, 10:08 a.m. UTC | #4
On Mon, 1 Apr 2024 at 15:15, Jonas Karlman <jonas@kwiboo.se> wrote:
>
> Hi Sumit,
>
> On 2024-04-01 10:52, Sumit Garg wrote:
> > Hi Jonas,
> >
> > On Mon, 1 Apr 2024 at 01:59, Jonas Karlman <jonas@kwiboo.se> wrote:
> >>
> >> This series adds support for new clocks used in linux v6.8 device trees,
> >> enables use of FIT signature check for checksum validation and fixes
> >> loading FIT from SD-card when loading FIT from eMMC fails.
> >>
> >> After this series it should be possible to move RK3399 boards to use
> >> OF_UPSTREAM in a future patch once dts/upstream move to a v6.8+ tag.
> >>
> >
> > Thanks for putting this effort together. A switch to v6.8 tag for
> > OF_UPSTREAM will happen as part of patch [1]. So if you want to save
> > further effort then you can just rebase with a switch to OF_UPSTREAM
> > once that patch [1] lands in next.
>
> Because this is a jump of device tree files from v5.14-rc1 to v6.8,
> reviewability and being able to cherry-pick these changes to my
> rk3xxx-2024.04 branch, I think it is much more appropriate to first sync
> everything to v6.8 and then in a separate series move to OF_UPSTREAM.
> Else it can be very hard to understand some of the changes that has been
> and was needed to be made to u-boot.dtsi files.

That's fair given it's a long pending DT sync.

>
> Reviewability is one of the shortcomings with a switch to OF_UPSTREAM.

I suppose the reasoning behind this thinking can be that people are
used to reviewing DTs alongside driver changes. However, these patches
aren't actual DT changes but rather DT imports which IMHO is a
distraction for the reviewer. The actual DT can be looked into
dts/upstream/ directory while reviewing the changes.

-Sumit

>
> Regards,
> Jonas
>
> >
> > [1] https://lists.denx.de/pipermail/u-boot/2024-March/549611.html
> >
> > -Sumit
> >
> >> I have runtime tested this series on following devices:
> >> - 96boards Rock960
> >> - Khadas Edge Captain
> >> - Pine64 PineBook Pro
> >> - Pine64 RockPro64
> >> - Radxa ROCK 4C+
> >> - Radxa ROCK 4SE
> >> - Radxa ROCK Pi 4A
> >> - Radxa ROCK Pi 4B+
> >>
> >> This series depends on the following series:
> >> - Enable booting from SPI flash on ROCK Pi 4 [1]
> >> - rockchip: spl: Cache boot source id for later use [2]
> >>
> >> A copy of this series and all its depends can be found at [3]
> >>
> >> [1] https://patchwork.ozlabs.org/cover/1912469/
> >> [2] https://patchwork.ozlabs.org/cover/1915071/
> >> [3] https://github.com/Kwiboo/u-boot-rockchip/commits/rk3399-dt-sync-v1
> >>
> >> Jonas Karlman (31):
> >>   rockchip: rk3399-gru: Fix max SPL size on bob and kevin
> >>   rockchip: rk3399-ficus: Enable TPL and use common bss and stack addr
> >>   rockchip: rk3399: Sort imply statements alphabetically
> >>   rockchip: rk3399: Enable ARMv8 crypto and FIT checksum validation
> >>   rockchip: rk3399: Enable random generator on all boards
> >>   rockchip: rk3399: Imply support for GbE PHY
> >>   rockchip: rk3399: Enable DT overlay support on all boards
> >>   rockchip: rk3399: Remove use of xPL_MISC_DRIVERS options
> >>   rockchip: rk3399: Add a default spl-boot-order prop
> >>   rockchip: rk3399: Fix loading FIT from SD-card when booting from eMMC
> >>   clk: rockchip: rk3399: Rename SCLK_DDRCLK to SCLK_DDRC
> >>   clk: rockchip: rk3399: Add dummy support for ACLK_VDU clock
> >>   clk: rockchip: rk3399: Add dummy support for SCLK_PCIEPHY_REF clock
> >>   clk: rockchip: rk3399: Add SCLK_USB3OTGx_REF support
> >>   rockchip: rk3399: Sync soc device tree from linux v6.8
> >>   rockchip: rk3399-gru: Sync device tree from linux v6.8
> >>   rockchip: rk3399-puma: Sync DT from linux v6.8
> >>   rockchip: rk3399-rock-pi-n10: Sync device tree from linux v6.8
> >>   rockchip: rk3399-eaidk-610: Sync device tree from linux v6.8
> >>   rockchip: rk3399-leez: Sync device tree from linux v6.8
> >>   rockchip: rk3399-evb: Sync device tree from linux v6.8
> >>   rockchip: rk3399-firefly: Sync device tree from linux v6.8
> >>   rockchip: rk3399-orangepi: Sync device tree from linux v6.8
> >>   rockchip: rk3399-roc-pc: Sync device tree from linux v6.8
> >>   rockchip: rk3399-nanopi-4: Sync device tree from linux v6.8
> >>   rockchip: rk3399-rock960: Sync device tree from linux v6.8
> >>   rockchip: rk3399-khadas: Sync device tree from linux v6.8
> >>   rockchip: rk3399-rock-pi-4: Sync device tree from linux v6.8
> >>   rockchip: rk3399-rockpro64: Sync device tree from linux v6.8
> >>   rockchip: rk3399-pinebook-pro: Sync device tree from linux v6.8
> >>   rockchip: rk3399-pinephone-pro: Sync device tree from linux v6.8
> >>
> >>  arch/arm/dts/rk3288-vmarc-som.dtsi            |  48 +++
> >>  arch/arm/dts/rk3399-eaidk-610-u-boot.dtsi     |   1 -
> >>  arch/arm/dts/rk3399-eaidk-610.dts             |   3 +-
> >>  arch/arm/dts/rk3399-evb-u-boot.dtsi           |  13 +-
> >>  arch/arm/dts/rk3399-evb.dts                   |   3 +-
> >>  arch/arm/dts/rk3399-ficus-u-boot.dtsi         |  10 +-
> >>  arch/arm/dts/rk3399-ficus.dts                 |   4 +
> >>  arch/arm/dts/rk3399-firefly-u-boot.dtsi       |   6 -
> >>  arch/arm/dts/rk3399-firefly.dts               |  17 +-
> >>  arch/arm/dts/rk3399-gru-bob.dts               |   8 +-
> >>  arch/arm/dts/rk3399-gru-chromebook.dtsi       | 200 +++++++++++-
> >>  arch/arm/dts/rk3399-gru-kevin.dts             |   3 +-
> >>  arch/arm/dts/rk3399-gru-u-boot.dtsi           |  34 ++-
> >>  arch/arm/dts/rk3399-gru.dtsi                  |  52 +++-
> >>  arch/arm/dts/rk3399-khadas-edge-captain.dts   |   4 +
> >>  arch/arm/dts/rk3399-khadas-edge-u-boot.dtsi   |   7 +-
> >>  arch/arm/dts/rk3399-khadas-edge-v.dts         |   4 +
> >>  arch/arm/dts/rk3399-khadas-edge.dtsi          |  10 +-
> >>  arch/arm/dts/rk3399-leez-p710-u-boot.dtsi     |   6 -
> >>  arch/arm/dts/rk3399-leez-p710.dts             |   8 +-
> >>  arch/arm/dts/rk3399-nanopc-t4.dts             |   2 +-
> >>  arch/arm/dts/rk3399-nanopi-m4-2gb.dts         |  55 +---
> >>  arch/arm/dts/rk3399-nanopi-m4b.dts            |   2 +-
> >>  arch/arm/dts/rk3399-nanopi-r4s.dts            |   4 +-
> >>  arch/arm/dts/rk3399-nanopi4-u-boot.dtsi       |  18 +-
> >>  arch/arm/dts/rk3399-nanopi4.dtsi              |   7 +-
> >>  arch/arm/dts/rk3399-op1-opp.dtsi              |  31 +-
> >>  arch/arm/dts/rk3399-opp.dtsi                  |   6 +-
> >>  arch/arm/dts/rk3399-orangepi-u-boot.dtsi      |  12 +
> >>  arch/arm/dts/rk3399-orangepi.dts              |  12 +-
> >>  arch/arm/dts/rk3399-pinebook-pro-u-boot.dtsi  |  23 +-
> >>  arch/arm/dts/rk3399-pinebook-pro.dts          |  24 +-
> >>  arch/arm/dts/rk3399-pinephone-pro-u-boot.dtsi |  24 +-
> >>  arch/arm/dts/rk3399-pinephone-pro.dts         | 147 +++++++++
> >>  arch/arm/dts/rk3399-puma-haikou-u-boot.dtsi   |  27 +-
> >>  arch/arm/dts/rk3399-puma-haikou.dts           |  42 ++-
> >>  arch/arm/dts/rk3399-puma.dtsi                 |  17 +-
> >>  arch/arm/dts/rk3399-roc-pc-u-boot.dtsi        |  45 +--
> >>  arch/arm/dts/rk3399-roc-pc.dtsi               |  15 +-
> >>  arch/arm/dts/rk3399-rock-4c-plus-u-boot.dtsi  |  20 ++
> >>  arch/arm/dts/rk3399-rock-4c-plus.dts          |   1 +
> >>  arch/arm/dts/rk3399-rock-4se-u-boot.dtsi      |  12 +
> >>  arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi     |   6 -
> >>  arch/arm/dts/rk3399-rock-pi-4.dtsi            |   4 +-
> >>  arch/arm/dts/rk3399-rock-pi-4c-u-boot.dtsi    |   7 +
> >>  arch/arm/dts/rk3399-rock-pi-4c.dts            |  10 +
> >>  arch/arm/dts/rk3399-rock960-u-boot.dtsi       |  11 +-
> >>  arch/arm/dts/rk3399-rock960.dtsi              |   5 +-
> >>  arch/arm/dts/rk3399-rockpro64-u-boot.dtsi     |  22 +-
> >>  arch/arm/dts/rk3399-rockpro64.dtsi            |  98 +++++-
> >>  arch/arm/dts/rk3399-u-boot.dtsi               | 129 +++++---
> >>  arch/arm/dts/rk3399.dtsi                      | 289 ++++++++++++++++--
> >>  .../arm/dts/rk3399pro-rock-pi-n10-u-boot.dtsi |   6 -
> >>  arch/arm/dts/rk3399pro-vmarc-som.dtsi         |  20 +-
> >>  .../dts/rockchip-radxa-dalang-carrier.dtsi    |  21 ++
> >>  arch/arm/mach-rockchip/Kconfig                |  38 ++-
> >>  configs/chromebook_bob_defconfig              |   6 +-
> >>  configs/chromebook_kevin_defconfig            |   6 +-
> >>  configs/eaidk-610-rk3399_defconfig            |  13 +-
> >>  configs/evb-rk3399_defconfig                  |  10 +-
> >>  configs/ficus-rk3399_defconfig                |  38 +--
> >>  configs/firefly-rk3399_defconfig              |  17 +-
> >>  configs/khadas-edge-captain-rk3399_defconfig  |  35 ++-
> >>  configs/khadas-edge-rk3399_defconfig          |  29 +-
> >>  configs/khadas-edge-v-rk3399_defconfig        |  35 ++-
> >>  configs/leez-rk3399_defconfig                 |  13 +-
> >>  configs/nanopc-t4-rk3399_defconfig            |  18 +-
> >>  configs/nanopi-m4-2gb-rk3399_defconfig        |  22 +-
> >>  configs/nanopi-m4-rk3399_defconfig            |  22 +-
> >>  configs/nanopi-m4b-rk3399_defconfig           |  22 +-
> >>  configs/nanopi-neo4-rk3399_defconfig          |  22 +-
> >>  configs/nanopi-r4s-rk3399_defconfig           |  16 +-
> >>  configs/orangepi-rk3399_defconfig             |  14 +-
> >>  configs/pinebook-pro-rk3399_defconfig         |  13 +-
> >>  configs/pinephone-pro-rk3399_defconfig        |  13 +-
> >>  configs/puma-rk3399_defconfig                 |   5 +-
> >>  configs/roc-pc-mezzanine-rk3399_defconfig     |  15 +-
> >>  configs/roc-pc-rk3399_defconfig               |  13 +-
> >>  configs/rock-4c-plus-rk3399_defconfig         |  27 +-
> >>  configs/rock-4se-rk3399_defconfig             |  28 +-
> >>  configs/rock-pi-4-rk3399_defconfig            |  13 +-
> >>  configs/rock-pi-4c-rk3399_defconfig           |  27 +-
> >>  configs/rock-pi-n10-rk3399pro_defconfig       |  10 +-
> >>  configs/rock960-rk3399_defconfig              |  18 +-
> >>  configs/rockpro64-rk3399_defconfig            |  16 +-
> >>  drivers/clk/rockchip/clk_rk3399.c             |  12 +-
> >>  include/dt-bindings/clock/rk3399-cru.h        |  30 +-
> >>  87 files changed, 1700 insertions(+), 531 deletions(-)
> >>
> >> --
> >> 2.43.2
> >>
>
Jonas Karlman April 1, 2024, 10:24 a.m. UTC | #5
On 2024-04-01 12:08, Sumit Garg wrote:
> On Mon, 1 Apr 2024 at 15:15, Jonas Karlman <jonas@kwiboo.se> wrote:
>>
>> Hi Sumit,
>>
>> On 2024-04-01 10:52, Sumit Garg wrote:
>>> Hi Jonas,
>>>
>>> On Mon, 1 Apr 2024 at 01:59, Jonas Karlman <jonas@kwiboo.se> wrote:
>>>>
>>>> This series adds support for new clocks used in linux v6.8 device trees,
>>>> enables use of FIT signature check for checksum validation and fixes
>>>> loading FIT from SD-card when loading FIT from eMMC fails.
>>>>
>>>> After this series it should be possible to move RK3399 boards to use
>>>> OF_UPSTREAM in a future patch once dts/upstream move to a v6.8+ tag.
>>>>
>>>
>>> Thanks for putting this effort together. A switch to v6.8 tag for
>>> OF_UPSTREAM will happen as part of patch [1]. So if you want to save
>>> further effort then you can just rebase with a switch to OF_UPSTREAM
>>> once that patch [1] lands in next.
>>
>> Because this is a jump of device tree files from v5.14-rc1 to v6.8,
>> reviewability and being able to cherry-pick these changes to my
>> rk3xxx-2024.04 branch, I think it is much more appropriate to first sync
>> everything to v6.8 and then in a separate series move to OF_UPSTREAM.
>> Else it can be very hard to understand some of the changes that has been
>> and was needed to be made to u-boot.dtsi files.
> 
> That's fair given it's a long pending DT sync.
> 
>>
>> Reviewability is one of the shortcomings with a switch to OF_UPSTREAM.
> 
> I suppose the reasoning behind this thinking can be that people are
> used to reviewing DTs alongside driver changes. However, these patches
> aren't actual DT changes but rather DT imports which IMHO is a
> distraction for the reviewer. The actual DT can be looked into
> dts/upstream/ directory while reviewing the changes.

Things like following was easier to spot when reviewing DT syncs:
- A property that U-Boot depends on gets removed, as in [1].
- Some DT changes can break changes that has been made to u-boot.dtsi
  files, e.g. a symbol to a node is no longer available in upstream but
  referenced in u-boot.dtsi files (happened in this series).
- Changes in DT may require a workaround in a u-boot.dtsi file.
- u-boot.dtsi contains workarounds that has not yet been upstream but
  can be removed in a future DT sync.
- Driver incompatibilities due to initial driver imported from vendor
  ended up not fully compatible with upstream linux driver / dt-binding.

[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=4d08b19629495b29601991d09d07865694c25199

Regards,
Jonas

> 
> -Sumit
> 
>>
>> Regards,
>> Jonas
>>
>>>
>>> [1] https://lists.denx.de/pipermail/u-boot/2024-March/549611.html
>>>
>>> -Sumit
>>>
>>>> I have runtime tested this series on following devices:
>>>> - 96boards Rock960
>>>> - Khadas Edge Captain
>>>> - Pine64 PineBook Pro
>>>> - Pine64 RockPro64
>>>> - Radxa ROCK 4C+
>>>> - Radxa ROCK 4SE
>>>> - Radxa ROCK Pi 4A
>>>> - Radxa ROCK Pi 4B+
>>>>
>>>> This series depends on the following series:
>>>> - Enable booting from SPI flash on ROCK Pi 4 [1]
>>>> - rockchip: spl: Cache boot source id for later use [2]
>>>>
>>>> A copy of this series and all its depends can be found at [3]
>>>>
>>>> [1] https://patchwork.ozlabs.org/cover/1912469/
>>>> [2] https://patchwork.ozlabs.org/cover/1915071/
>>>> [3] https://github.com/Kwiboo/u-boot-rockchip/commits/rk3399-dt-sync-v1
>>>>
Sumit Garg April 1, 2024, 10:53 a.m. UTC | #6
On Mon, 1 Apr 2024 at 15:31, Jonas Karlman <jonas@kwiboo.se> wrote:
>
> On 2024-04-01 11:45, Jonas Karlman wrote:
> > Hi Sumit,
> >
> > On 2024-04-01 10:52, Sumit Garg wrote:
> >> Hi Jonas,
> >>
> >> On Mon, 1 Apr 2024 at 01:59, Jonas Karlman <jonas@kwiboo.se> wrote:
> >>>
> >>> This series adds support for new clocks used in linux v6.8 device trees,
> >>> enables use of FIT signature check for checksum validation and fixes
> >>> loading FIT from SD-card when loading FIT from eMMC fails.
> >>>
> >>> After this series it should be possible to move RK3399 boards to use
> >>> OF_UPSTREAM in a future patch once dts/upstream move to a v6.8+ tag.
> >>>
> >>
> >> Thanks for putting this effort together. A switch to v6.8 tag for
> >> OF_UPSTREAM will happen as part of patch [1]. So if you want to save
> >> further effort then you can just rebase with a switch to OF_UPSTREAM
> >> once that patch [1] lands in next.
> >
> > Because this is a jump of device tree files from v5.14-rc1 to v6.8,
> > reviewability and being able to cherry-pick these changes to my
> > rk3xxx-2024.04 branch, I think it is much more appropriate to first sync
> > everything to v6.8 and then in a separate series move to OF_UPSTREAM.
> > Else it can be very hard to understand some of the changes that has been
> > and was needed to be made to u-boot.dtsi files.
>
> Also forgot to mention that these synced DT files still contains some
> minor modification in #include dtsi paths of files that is shared
> between rk3288 (armv7) and rk3399 (armv8),

I can only see rockchip-u-boot.dtsi being shared which should be
handled automatically. Is there anything else I am missing here?

-Sumit
Jonas Karlman April 1, 2024, 11:04 a.m. UTC | #7
On 2024-04-01 12:53, Sumit Garg wrote:
> On Mon, 1 Apr 2024 at 15:31, Jonas Karlman <jonas@kwiboo.se> wrote:
>>
>> On 2024-04-01 11:45, Jonas Karlman wrote:
>>> Hi Sumit,
>>>
>>> On 2024-04-01 10:52, Sumit Garg wrote:
>>>> Hi Jonas,
>>>>
>>>> On Mon, 1 Apr 2024 at 01:59, Jonas Karlman <jonas@kwiboo.se> wrote:
>>>>>
>>>>> This series adds support for new clocks used in linux v6.8 device trees,
>>>>> enables use of FIT signature check for checksum validation and fixes
>>>>> loading FIT from SD-card when loading FIT from eMMC fails.
>>>>>
>>>>> After this series it should be possible to move RK3399 boards to use
>>>>> OF_UPSTREAM in a future patch once dts/upstream move to a v6.8+ tag.
>>>>>
>>>>
>>>> Thanks for putting this effort together. A switch to v6.8 tag for
>>>> OF_UPSTREAM will happen as part of patch [1]. So if you want to save
>>>> further effort then you can just rebase with a switch to OF_UPSTREAM
>>>> once that patch [1] lands in next.
>>>
>>> Because this is a jump of device tree files from v5.14-rc1 to v6.8,
>>> reviewability and being able to cherry-pick these changes to my
>>> rk3xxx-2024.04 branch, I think it is much more appropriate to first sync
>>> everything to v6.8 and then in a separate series move to OF_UPSTREAM.
>>> Else it can be very hard to understand some of the changes that has been
>>> and was needed to be made to u-boot.dtsi files.
>>
>> Also forgot to mention that these synced DT files still contains some
>> minor modification in #include dtsi paths of files that is shared
>> between rk3288 (armv7) and rk3399 (armv8),
> 
> I can only see rockchip-u-boot.dtsi being shared which should be
> handled automatically. Is there anything else I am missing here?

The following is a diff of arch/arm/dts rk3399 DTs after this series
compared to fully synced v6.8.

Also the content of cros-ec-keyboard.dtsi was excluded in this sync
because it initially caused compile issues.

diff --git a/arch/arm/dts/rk3399-gru.dtsi b/arch/arm/dts/rk3399-gru.dtsi
index d90fe4d40d48..789fd0dcc88b 100644
--- a/arch/arm/dts/rk3399-gru.dtsi
+++ b/arch/arm/dts/rk3399-gru.dtsi
@@ -684,8 +684,8 @@ ap_i2c_audio: &i2c8 {
        status = "okay";
 };

-#include <cros-ec-keyboard.dtsi>
-#include <cros-ec-sbs.dtsi>
+#include <arm/cros-ec-keyboard.dtsi>
+#include <arm/cros-ec-sbs.dtsi>

 &pinctrl {
        /*
diff --git a/arch/arm/dts/rk3399pro-rock-pi-n10.dts b/arch/arm/dts/rk3399pro-rock-pi-n10.dts
index bf026786fa92..c58fb7658d7a 100644
--- a/arch/arm/dts/rk3399pro-rock-pi-n10.dts
+++ b/arch/arm/dts/rk3399pro-rock-pi-n10.dts
@@ -8,7 +8,7 @@
 /dts-v1/;
 #include "rk3399.dtsi"
 #include "rk3399-opp.dtsi"
-#include <rockchip-radxa-dalang-carrier.dtsi>
+#include <arm/rockchip/rockchip-radxa-dalang-carrier.dtsi>
 #include "rk3399pro-vmarc-som.dtsi"

 / {

Regards,
Jonas

> 
> -Sumit
Sumit Garg April 1, 2024, 11:15 a.m. UTC | #8
On Mon, 1 Apr 2024 at 15:54, Jonas Karlman <jonas@kwiboo.se> wrote:
>
> On 2024-04-01 12:08, Sumit Garg wrote:
> > On Mon, 1 Apr 2024 at 15:15, Jonas Karlman <jonas@kwiboo.se> wrote:
> >>
> >> Hi Sumit,
> >>
> >> On 2024-04-01 10:52, Sumit Garg wrote:
> >>> Hi Jonas,
> >>>
> >>> On Mon, 1 Apr 2024 at 01:59, Jonas Karlman <jonas@kwiboo.se> wrote:
> >>>>
> >>>> This series adds support for new clocks used in linux v6.8 device trees,
> >>>> enables use of FIT signature check for checksum validation and fixes
> >>>> loading FIT from SD-card when loading FIT from eMMC fails.
> >>>>
> >>>> After this series it should be possible to move RK3399 boards to use
> >>>> OF_UPSTREAM in a future patch once dts/upstream move to a v6.8+ tag.
> >>>>
> >>>
> >>> Thanks for putting this effort together. A switch to v6.8 tag for
> >>> OF_UPSTREAM will happen as part of patch [1]. So if you want to save
> >>> further effort then you can just rebase with a switch to OF_UPSTREAM
> >>> once that patch [1] lands in next.
> >>
> >> Because this is a jump of device tree files from v5.14-rc1 to v6.8,
> >> reviewability and being able to cherry-pick these changes to my
> >> rk3xxx-2024.04 branch, I think it is much more appropriate to first sync
> >> everything to v6.8 and then in a separate series move to OF_UPSTREAM.
> >> Else it can be very hard to understand some of the changes that has been
> >> and was needed to be made to u-boot.dtsi files.
> >
> > That's fair given it's a long pending DT sync.
> >
> >>
> >> Reviewability is one of the shortcomings with a switch to OF_UPSTREAM.
> >
> > I suppose the reasoning behind this thinking can be that people are
> > used to reviewing DTs alongside driver changes. However, these patches
> > aren't actual DT changes but rather DT imports which IMHO is a
> > distraction for the reviewer. The actual DT can be looked into
> > dts/upstream/ directory while reviewing the changes.
>
> Things like following was easier to spot when reviewing DT syncs:
> - A property that U-Boot depends on gets removed, as in [1].

That seems to be due to DT bindings compliance check where DT bindings
are the ABI. Although it is unfortunate due to dependency on legacy
DT, now we have the same dtbs_check in U-Boot too:

$ make <target>_defconfig
$ make -j`nproc` dtbs_check

This shall keep U-Boot in compliance with DT bindings and help avoid
such dependencies.

> - Some DT changes can break changes that has been made to u-boot.dtsi
>   files, e.g. a symbol to a node is no longer available in upstream but
>   referenced in u-boot.dtsi files (happened in this series).

Node names aren't a DT ABI so we should expect some changes there.

> - Changes in DT may require a workaround in a u-boot.dtsi file.
> - u-boot.dtsi contains workarounds that has not yet been upstream but
>   can be removed in a future DT sync.

Agree, we should try to minimize modifications via u-boot.dtsi
especially all the bootph* related properties should be posted
upstream.

> - Driver incompatibilities due to initial driver imported from vendor
>   ended up not fully compatible with upstream linux driver / dt-binding.

Given all the above and the big jump in DT sync for Rockchip
platforms, I am fine with the transition being step by step.

-Sumit

>
> [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=4d08b19629495b29601991d09d07865694c25199
>
Sumit Garg April 1, 2024, 11:33 a.m. UTC | #9
On Mon, 1 Apr 2024 at 16:34, Jonas Karlman <jonas@kwiboo.se> wrote:
>
> On 2024-04-01 12:53, Sumit Garg wrote:
> > On Mon, 1 Apr 2024 at 15:31, Jonas Karlman <jonas@kwiboo.se> wrote:
> >>
> >> On 2024-04-01 11:45, Jonas Karlman wrote:
> >>> Hi Sumit,
> >>>
> >>> On 2024-04-01 10:52, Sumit Garg wrote:
> >>>> Hi Jonas,
> >>>>
> >>>> On Mon, 1 Apr 2024 at 01:59, Jonas Karlman <jonas@kwiboo.se> wrote:
> >>>>>
> >>>>> This series adds support for new clocks used in linux v6.8 device trees,
> >>>>> enables use of FIT signature check for checksum validation and fixes
> >>>>> loading FIT from SD-card when loading FIT from eMMC fails.
> >>>>>
> >>>>> After this series it should be possible to move RK3399 boards to use
> >>>>> OF_UPSTREAM in a future patch once dts/upstream move to a v6.8+ tag.
> >>>>>
> >>>>
> >>>> Thanks for putting this effort together. A switch to v6.8 tag for
> >>>> OF_UPSTREAM will happen as part of patch [1]. So if you want to save
> >>>> further effort then you can just rebase with a switch to OF_UPSTREAM
> >>>> once that patch [1] lands in next.
> >>>
> >>> Because this is a jump of device tree files from v5.14-rc1 to v6.8,
> >>> reviewability and being able to cherry-pick these changes to my
> >>> rk3xxx-2024.04 branch, I think it is much more appropriate to first sync
> >>> everything to v6.8 and then in a separate series move to OF_UPSTREAM.
> >>> Else it can be very hard to understand some of the changes that has been
> >>> and was needed to be made to u-boot.dtsi files.
> >>
> >> Also forgot to mention that these synced DT files still contains some
> >> minor modification in #include dtsi paths of files that is shared
> >> between rk3288 (armv7) and rk3399 (armv8),
> >
> > I can only see rockchip-u-boot.dtsi being shared which should be
> > handled automatically. Is there anything else I am missing here?
>
> The following is a diff of arch/arm/dts rk3399 DTs after this series
> compared to fully synced v6.8.

This is due to the different DTS directory structure within U-Boot.
With OF_UPSTREAM, these modifications aren't required anymore.

>
> Also the content of cros-ec-keyboard.dtsi was excluded in this sync
> because it initially caused compile issues.

I suppose that's due to missing #include
<dt-bindings/input/cros-ec-keyboard.h> for cros-ec-keyboard.dtsi. Once
you enable OF_UPSTREAM then let me know if you encounter such issues.

-Sumit

>
> diff --git a/arch/arm/dts/rk3399-gru.dtsi b/arch/arm/dts/rk3399-gru.dtsi
> index d90fe4d40d48..789fd0dcc88b 100644
> --- a/arch/arm/dts/rk3399-gru.dtsi
> +++ b/arch/arm/dts/rk3399-gru.dtsi
> @@ -684,8 +684,8 @@ ap_i2c_audio: &i2c8 {
>         status = "okay";
>  };
>
> -#include <cros-ec-keyboard.dtsi>
> -#include <cros-ec-sbs.dtsi>
> +#include <arm/cros-ec-keyboard.dtsi>
> +#include <arm/cros-ec-sbs.dtsi>
>
>  &pinctrl {
>         /*
> diff --git a/arch/arm/dts/rk3399pro-rock-pi-n10.dts b/arch/arm/dts/rk3399pro-rock-pi-n10.dts
> index bf026786fa92..c58fb7658d7a 100644
> --- a/arch/arm/dts/rk3399pro-rock-pi-n10.dts
> +++ b/arch/arm/dts/rk3399pro-rock-pi-n10.dts
> @@ -8,7 +8,7 @@
>  /dts-v1/;
>  #include "rk3399.dtsi"
>  #include "rk3399-opp.dtsi"
> -#include <rockchip-radxa-dalang-carrier.dtsi>
> +#include <arm/rockchip/rockchip-radxa-dalang-carrier.dtsi>
>  #include "rk3399pro-vmarc-som.dtsi"
>
>  / {
>
> Regards,
> Jonas
>
> >
> > -Sumit
>
Quentin Schulz April 2, 2024, 3:16 p.m. UTC | #10
Hi Jonas,

On 3/31/24 22:28, Jonas Karlman wrote:
> This series adds support for new clocks used in linux v6.8 device trees,
> enables use of FIT signature check for checksum validation and fixes
> loading FIT from SD-card when loading FIT from eMMC fails.
> 
> After this series it should be possible to move RK3399 boards to use
> OF_UPSTREAM in a future patch once dts/upstream move to a v6.8+ tag.
> 
> I have runtime tested this series on following devices:
> - 96boards Rock960
> - Khadas Edge Captain
> - Pine64 PineBook Pro
> - Pine64 RockPro64
> - Radxa ROCK 4C+
> - Radxa ROCK 4SE
> - Radxa ROCK Pi 4A
> - Radxa ROCK Pi 4B+
> 
> This series depends on the following series:
> - Enable booting from SPI flash on ROCK Pi 4 [1]
> - rockchip: spl: Cache boot source id for later use [2]
> 
> A copy of this series and all its depends can be found at [3]
> 
> [1] https://patchwork.ozlabs.org/cover/1912469/
> [2] https://patchwork.ozlabs.org/cover/1915071/
> [3] https://github.com/Kwiboo/u-boot-rockchip/commits/rk3399-dt-sync-v1
> 

That's a patch series I warmly welcome, we've been long overdue an 
update of Rockchip's DTs in U-Boot.

Here's to hope we can migrate to use OF_UPSTREAM sooner rather than 
later and this is a very big step in that direction, so thank you.

Cheers,
Quentin
Peter Robinson April 3, 2024, 4:42 a.m. UTC | #11
Hi Jonas,

Overall this series looks good, and I'll be able to test it fro next
week when I'm back near devices.

> This series adds support for new clocks used in linux v6.8 device trees,
> enables use of FIT signature check for checksum validation and fixes
> loading FIT from SD-card when loading FIT from eMMC fails.

That's quite a lot for a single series, it can make it hard to review
and test all across a number of devices.

> After this series it should be possible to move RK3399 boards to use
> OF_UPSTREAM in a future patch once dts/upstream move to a v6.8+ tag.

This I like :)

I should be able to test this on, from mem, 6 rk3399 devices once I'm back home.

Peter

> I have runtime tested this series on following devices:
> - 96boards Rock960
> - Khadas Edge Captain
> - Pine64 PineBook Pro
> - Pine64 RockPro64
> - Radxa ROCK 4C+
> - Radxa ROCK 4SE
> - Radxa ROCK Pi 4A
> - Radxa ROCK Pi 4B+
>
> This series depends on the following series:
> - Enable booting from SPI flash on ROCK Pi 4 [1]
> - rockchip: spl: Cache boot source id for later use [2]
>
> A copy of this series and all its depends can be found at [3]
>
> [1] https://patchwork.ozlabs.org/cover/1912469/
> [2] https://patchwork.ozlabs.org/cover/1915071/
> [3] https://github.com/Kwiboo/u-boot-rockchip/commits/rk3399-dt-sync-v1
>
> Jonas Karlman (31):
>   rockchip: rk3399-gru: Fix max SPL size on bob and kevin
>   rockchip: rk3399-ficus: Enable TPL and use common bss and stack addr
>   rockchip: rk3399: Sort imply statements alphabetically
>   rockchip: rk3399: Enable ARMv8 crypto and FIT checksum validation
>   rockchip: rk3399: Enable random generator on all boards
>   rockchip: rk3399: Imply support for GbE PHY
>   rockchip: rk3399: Enable DT overlay support on all boards
>   rockchip: rk3399: Remove use of xPL_MISC_DRIVERS options
>   rockchip: rk3399: Add a default spl-boot-order prop
>   rockchip: rk3399: Fix loading FIT from SD-card when booting from eMMC
>   clk: rockchip: rk3399: Rename SCLK_DDRCLK to SCLK_DDRC
>   clk: rockchip: rk3399: Add dummy support for ACLK_VDU clock
>   clk: rockchip: rk3399: Add dummy support for SCLK_PCIEPHY_REF clock
>   clk: rockchip: rk3399: Add SCLK_USB3OTGx_REF support
>   rockchip: rk3399: Sync soc device tree from linux v6.8
>   rockchip: rk3399-gru: Sync device tree from linux v6.8
>   rockchip: rk3399-puma: Sync DT from linux v6.8
>   rockchip: rk3399-rock-pi-n10: Sync device tree from linux v6.8
>   rockchip: rk3399-eaidk-610: Sync device tree from linux v6.8
>   rockchip: rk3399-leez: Sync device tree from linux v6.8
>   rockchip: rk3399-evb: Sync device tree from linux v6.8
>   rockchip: rk3399-firefly: Sync device tree from linux v6.8
>   rockchip: rk3399-orangepi: Sync device tree from linux v6.8
>   rockchip: rk3399-roc-pc: Sync device tree from linux v6.8
>   rockchip: rk3399-nanopi-4: Sync device tree from linux v6.8
>   rockchip: rk3399-rock960: Sync device tree from linux v6.8
>   rockchip: rk3399-khadas: Sync device tree from linux v6.8
>   rockchip: rk3399-rock-pi-4: Sync device tree from linux v6.8
>   rockchip: rk3399-rockpro64: Sync device tree from linux v6.8
>   rockchip: rk3399-pinebook-pro: Sync device tree from linux v6.8
>   rockchip: rk3399-pinephone-pro: Sync device tree from linux v6.8
>
>  arch/arm/dts/rk3288-vmarc-som.dtsi            |  48 +++
>  arch/arm/dts/rk3399-eaidk-610-u-boot.dtsi     |   1 -
>  arch/arm/dts/rk3399-eaidk-610.dts             |   3 +-
>  arch/arm/dts/rk3399-evb-u-boot.dtsi           |  13 +-
>  arch/arm/dts/rk3399-evb.dts                   |   3 +-
>  arch/arm/dts/rk3399-ficus-u-boot.dtsi         |  10 +-
>  arch/arm/dts/rk3399-ficus.dts                 |   4 +
>  arch/arm/dts/rk3399-firefly-u-boot.dtsi       |   6 -
>  arch/arm/dts/rk3399-firefly.dts               |  17 +-
>  arch/arm/dts/rk3399-gru-bob.dts               |   8 +-
>  arch/arm/dts/rk3399-gru-chromebook.dtsi       | 200 +++++++++++-
>  arch/arm/dts/rk3399-gru-kevin.dts             |   3 +-
>  arch/arm/dts/rk3399-gru-u-boot.dtsi           |  34 ++-
>  arch/arm/dts/rk3399-gru.dtsi                  |  52 +++-
>  arch/arm/dts/rk3399-khadas-edge-captain.dts   |   4 +
>  arch/arm/dts/rk3399-khadas-edge-u-boot.dtsi   |   7 +-
>  arch/arm/dts/rk3399-khadas-edge-v.dts         |   4 +
>  arch/arm/dts/rk3399-khadas-edge.dtsi          |  10 +-
>  arch/arm/dts/rk3399-leez-p710-u-boot.dtsi     |   6 -
>  arch/arm/dts/rk3399-leez-p710.dts             |   8 +-
>  arch/arm/dts/rk3399-nanopc-t4.dts             |   2 +-
>  arch/arm/dts/rk3399-nanopi-m4-2gb.dts         |  55 +---
>  arch/arm/dts/rk3399-nanopi-m4b.dts            |   2 +-
>  arch/arm/dts/rk3399-nanopi-r4s.dts            |   4 +-
>  arch/arm/dts/rk3399-nanopi4-u-boot.dtsi       |  18 +-
>  arch/arm/dts/rk3399-nanopi4.dtsi              |   7 +-
>  arch/arm/dts/rk3399-op1-opp.dtsi              |  31 +-
>  arch/arm/dts/rk3399-opp.dtsi                  |   6 +-
>  arch/arm/dts/rk3399-orangepi-u-boot.dtsi      |  12 +
>  arch/arm/dts/rk3399-orangepi.dts              |  12 +-
>  arch/arm/dts/rk3399-pinebook-pro-u-boot.dtsi  |  23 +-
>  arch/arm/dts/rk3399-pinebook-pro.dts          |  24 +-
>  arch/arm/dts/rk3399-pinephone-pro-u-boot.dtsi |  24 +-
>  arch/arm/dts/rk3399-pinephone-pro.dts         | 147 +++++++++
>  arch/arm/dts/rk3399-puma-haikou-u-boot.dtsi   |  27 +-
>  arch/arm/dts/rk3399-puma-haikou.dts           |  42 ++-
>  arch/arm/dts/rk3399-puma.dtsi                 |  17 +-
>  arch/arm/dts/rk3399-roc-pc-u-boot.dtsi        |  45 +--
>  arch/arm/dts/rk3399-roc-pc.dtsi               |  15 +-
>  arch/arm/dts/rk3399-rock-4c-plus-u-boot.dtsi  |  20 ++
>  arch/arm/dts/rk3399-rock-4c-plus.dts          |   1 +
>  arch/arm/dts/rk3399-rock-4se-u-boot.dtsi      |  12 +
>  arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi     |   6 -
>  arch/arm/dts/rk3399-rock-pi-4.dtsi            |   4 +-
>  arch/arm/dts/rk3399-rock-pi-4c-u-boot.dtsi    |   7 +
>  arch/arm/dts/rk3399-rock-pi-4c.dts            |  10 +
>  arch/arm/dts/rk3399-rock960-u-boot.dtsi       |  11 +-
>  arch/arm/dts/rk3399-rock960.dtsi              |   5 +-
>  arch/arm/dts/rk3399-rockpro64-u-boot.dtsi     |  22 +-
>  arch/arm/dts/rk3399-rockpro64.dtsi            |  98 +++++-
>  arch/arm/dts/rk3399-u-boot.dtsi               | 129 +++++---
>  arch/arm/dts/rk3399.dtsi                      | 289 ++++++++++++++++--
>  .../arm/dts/rk3399pro-rock-pi-n10-u-boot.dtsi |   6 -
>  arch/arm/dts/rk3399pro-vmarc-som.dtsi         |  20 +-
>  .../dts/rockchip-radxa-dalang-carrier.dtsi    |  21 ++
>  arch/arm/mach-rockchip/Kconfig                |  38 ++-
>  configs/chromebook_bob_defconfig              |   6 +-
>  configs/chromebook_kevin_defconfig            |   6 +-
>  configs/eaidk-610-rk3399_defconfig            |  13 +-
>  configs/evb-rk3399_defconfig                  |  10 +-
>  configs/ficus-rk3399_defconfig                |  38 +--
>  configs/firefly-rk3399_defconfig              |  17 +-
>  configs/khadas-edge-captain-rk3399_defconfig  |  35 ++-
>  configs/khadas-edge-rk3399_defconfig          |  29 +-
>  configs/khadas-edge-v-rk3399_defconfig        |  35 ++-
>  configs/leez-rk3399_defconfig                 |  13 +-
>  configs/nanopc-t4-rk3399_defconfig            |  18 +-
>  configs/nanopi-m4-2gb-rk3399_defconfig        |  22 +-
>  configs/nanopi-m4-rk3399_defconfig            |  22 +-
>  configs/nanopi-m4b-rk3399_defconfig           |  22 +-
>  configs/nanopi-neo4-rk3399_defconfig          |  22 +-
>  configs/nanopi-r4s-rk3399_defconfig           |  16 +-
>  configs/orangepi-rk3399_defconfig             |  14 +-
>  configs/pinebook-pro-rk3399_defconfig         |  13 +-
>  configs/pinephone-pro-rk3399_defconfig        |  13 +-
>  configs/puma-rk3399_defconfig                 |   5 +-
>  configs/roc-pc-mezzanine-rk3399_defconfig     |  15 +-
>  configs/roc-pc-rk3399_defconfig               |  13 +-
>  configs/rock-4c-plus-rk3399_defconfig         |  27 +-
>  configs/rock-4se-rk3399_defconfig             |  28 +-
>  configs/rock-pi-4-rk3399_defconfig            |  13 +-
>  configs/rock-pi-4c-rk3399_defconfig           |  27 +-
>  configs/rock-pi-n10-rk3399pro_defconfig       |  10 +-
>  configs/rock960-rk3399_defconfig              |  18 +-
>  configs/rockpro64-rk3399_defconfig            |  16 +-
>  drivers/clk/rockchip/clk_rk3399.c             |  12 +-
>  include/dt-bindings/clock/rk3399-cru.h        |  30 +-
>  87 files changed, 1700 insertions(+), 531 deletions(-)
>
> --
> 2.43.2
>
Kever Yang April 23, 2024, 11:27 a.m. UTC | #12
Hi Jonas,


On 2024/4/1 04:28, Jonas Karlman wrote:
> This series adds support for new clocks used in linux v6.8 device trees,
> enables use of FIT signature check for checksum validation and fixes
> loading FIT from SD-card when loading FIT from eMMC fails.
>
> After this series it should be possible to move RK3399 boards to use
> OF_UPSTREAM in a future patch once dts/upstream move to a v6.8+ tag.
>
> I have runtime tested this series on following devices:
> - 96boards Rock960
> - Khadas Edge Captain
> - Pine64 PineBook Pro
> - Pine64 RockPro64
> - Radxa ROCK 4C+
> - Radxa ROCK 4SE
> - Radxa ROCK Pi 4A
> - Radxa ROCK Pi 4B+
>
> This series depends on the following series:
> - Enable booting from SPI flash on ROCK Pi 4 [1]
> - rockchip: spl: Cache boot source id for later use [2]

     This patch set not able to apply after this dependent patchset 
update to v2,

please help to send a new version.


Thanks,

- Kever

>
> A copy of this series and all its depends can be found at [3]
>
> [1] https://patchwork.ozlabs.org/cover/1912469/
> [2] https://patchwork.ozlabs.org/cover/1915071/
> [3] https://github.com/Kwiboo/u-boot-rockchip/commits/rk3399-dt-sync-v1
>
> Jonas Karlman (31):
>    rockchip: rk3399-gru: Fix max SPL size on bob and kevin
>    rockchip: rk3399-ficus: Enable TPL and use common bss and stack addr
>    rockchip: rk3399: Sort imply statements alphabetically
>    rockchip: rk3399: Enable ARMv8 crypto and FIT checksum validation
>    rockchip: rk3399: Enable random generator on all boards
>    rockchip: rk3399: Imply support for GbE PHY
>    rockchip: rk3399: Enable DT overlay support on all boards
>    rockchip: rk3399: Remove use of xPL_MISC_DRIVERS options
>    rockchip: rk3399: Add a default spl-boot-order prop
>    rockchip: rk3399: Fix loading FIT from SD-card when booting from eMMC
>    clk: rockchip: rk3399: Rename SCLK_DDRCLK to SCLK_DDRC
>    clk: rockchip: rk3399: Add dummy support for ACLK_VDU clock
>    clk: rockchip: rk3399: Add dummy support for SCLK_PCIEPHY_REF clock
>    clk: rockchip: rk3399: Add SCLK_USB3OTGx_REF support
>    rockchip: rk3399: Sync soc device tree from linux v6.8
>    rockchip: rk3399-gru: Sync device tree from linux v6.8
>    rockchip: rk3399-puma: Sync DT from linux v6.8
>    rockchip: rk3399-rock-pi-n10: Sync device tree from linux v6.8
>    rockchip: rk3399-eaidk-610: Sync device tree from linux v6.8
>    rockchip: rk3399-leez: Sync device tree from linux v6.8
>    rockchip: rk3399-evb: Sync device tree from linux v6.8
>    rockchip: rk3399-firefly: Sync device tree from linux v6.8
>    rockchip: rk3399-orangepi: Sync device tree from linux v6.8
>    rockchip: rk3399-roc-pc: Sync device tree from linux v6.8
>    rockchip: rk3399-nanopi-4: Sync device tree from linux v6.8
>    rockchip: rk3399-rock960: Sync device tree from linux v6.8
>    rockchip: rk3399-khadas: Sync device tree from linux v6.8
>    rockchip: rk3399-rock-pi-4: Sync device tree from linux v6.8
>    rockchip: rk3399-rockpro64: Sync device tree from linux v6.8
>    rockchip: rk3399-pinebook-pro: Sync device tree from linux v6.8
>    rockchip: rk3399-pinephone-pro: Sync device tree from linux v6.8
>
>   arch/arm/dts/rk3288-vmarc-som.dtsi            |  48 +++
>   arch/arm/dts/rk3399-eaidk-610-u-boot.dtsi     |   1 -
>   arch/arm/dts/rk3399-eaidk-610.dts             |   3 +-
>   arch/arm/dts/rk3399-evb-u-boot.dtsi           |  13 +-
>   arch/arm/dts/rk3399-evb.dts                   |   3 +-
>   arch/arm/dts/rk3399-ficus-u-boot.dtsi         |  10 +-
>   arch/arm/dts/rk3399-ficus.dts                 |   4 +
>   arch/arm/dts/rk3399-firefly-u-boot.dtsi       |   6 -
>   arch/arm/dts/rk3399-firefly.dts               |  17 +-
>   arch/arm/dts/rk3399-gru-bob.dts               |   8 +-
>   arch/arm/dts/rk3399-gru-chromebook.dtsi       | 200 +++++++++++-
>   arch/arm/dts/rk3399-gru-kevin.dts             |   3 +-
>   arch/arm/dts/rk3399-gru-u-boot.dtsi           |  34 ++-
>   arch/arm/dts/rk3399-gru.dtsi                  |  52 +++-
>   arch/arm/dts/rk3399-khadas-edge-captain.dts   |   4 +
>   arch/arm/dts/rk3399-khadas-edge-u-boot.dtsi   |   7 +-
>   arch/arm/dts/rk3399-khadas-edge-v.dts         |   4 +
>   arch/arm/dts/rk3399-khadas-edge.dtsi          |  10 +-
>   arch/arm/dts/rk3399-leez-p710-u-boot.dtsi     |   6 -
>   arch/arm/dts/rk3399-leez-p710.dts             |   8 +-
>   arch/arm/dts/rk3399-nanopc-t4.dts             |   2 +-
>   arch/arm/dts/rk3399-nanopi-m4-2gb.dts         |  55 +---
>   arch/arm/dts/rk3399-nanopi-m4b.dts            |   2 +-
>   arch/arm/dts/rk3399-nanopi-r4s.dts            |   4 +-
>   arch/arm/dts/rk3399-nanopi4-u-boot.dtsi       |  18 +-
>   arch/arm/dts/rk3399-nanopi4.dtsi              |   7 +-
>   arch/arm/dts/rk3399-op1-opp.dtsi              |  31 +-
>   arch/arm/dts/rk3399-opp.dtsi                  |   6 +-
>   arch/arm/dts/rk3399-orangepi-u-boot.dtsi      |  12 +
>   arch/arm/dts/rk3399-orangepi.dts              |  12 +-
>   arch/arm/dts/rk3399-pinebook-pro-u-boot.dtsi  |  23 +-
>   arch/arm/dts/rk3399-pinebook-pro.dts          |  24 +-
>   arch/arm/dts/rk3399-pinephone-pro-u-boot.dtsi |  24 +-
>   arch/arm/dts/rk3399-pinephone-pro.dts         | 147 +++++++++
>   arch/arm/dts/rk3399-puma-haikou-u-boot.dtsi   |  27 +-
>   arch/arm/dts/rk3399-puma-haikou.dts           |  42 ++-
>   arch/arm/dts/rk3399-puma.dtsi                 |  17 +-
>   arch/arm/dts/rk3399-roc-pc-u-boot.dtsi        |  45 +--
>   arch/arm/dts/rk3399-roc-pc.dtsi               |  15 +-
>   arch/arm/dts/rk3399-rock-4c-plus-u-boot.dtsi  |  20 ++
>   arch/arm/dts/rk3399-rock-4c-plus.dts          |   1 +
>   arch/arm/dts/rk3399-rock-4se-u-boot.dtsi      |  12 +
>   arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi     |   6 -
>   arch/arm/dts/rk3399-rock-pi-4.dtsi            |   4 +-
>   arch/arm/dts/rk3399-rock-pi-4c-u-boot.dtsi    |   7 +
>   arch/arm/dts/rk3399-rock-pi-4c.dts            |  10 +
>   arch/arm/dts/rk3399-rock960-u-boot.dtsi       |  11 +-
>   arch/arm/dts/rk3399-rock960.dtsi              |   5 +-
>   arch/arm/dts/rk3399-rockpro64-u-boot.dtsi     |  22 +-
>   arch/arm/dts/rk3399-rockpro64.dtsi            |  98 +++++-
>   arch/arm/dts/rk3399-u-boot.dtsi               | 129 +++++---
>   arch/arm/dts/rk3399.dtsi                      | 289 ++++++++++++++++--
>   .../arm/dts/rk3399pro-rock-pi-n10-u-boot.dtsi |   6 -
>   arch/arm/dts/rk3399pro-vmarc-som.dtsi         |  20 +-
>   .../dts/rockchip-radxa-dalang-carrier.dtsi    |  21 ++
>   arch/arm/mach-rockchip/Kconfig                |  38 ++-
>   configs/chromebook_bob_defconfig              |   6 +-
>   configs/chromebook_kevin_defconfig            |   6 +-
>   configs/eaidk-610-rk3399_defconfig            |  13 +-
>   configs/evb-rk3399_defconfig                  |  10 +-
>   configs/ficus-rk3399_defconfig                |  38 +--
>   configs/firefly-rk3399_defconfig              |  17 +-
>   configs/khadas-edge-captain-rk3399_defconfig  |  35 ++-
>   configs/khadas-edge-rk3399_defconfig          |  29 +-
>   configs/khadas-edge-v-rk3399_defconfig        |  35 ++-
>   configs/leez-rk3399_defconfig                 |  13 +-
>   configs/nanopc-t4-rk3399_defconfig            |  18 +-
>   configs/nanopi-m4-2gb-rk3399_defconfig        |  22 +-
>   configs/nanopi-m4-rk3399_defconfig            |  22 +-
>   configs/nanopi-m4b-rk3399_defconfig           |  22 +-
>   configs/nanopi-neo4-rk3399_defconfig          |  22 +-
>   configs/nanopi-r4s-rk3399_defconfig           |  16 +-
>   configs/orangepi-rk3399_defconfig             |  14 +-
>   configs/pinebook-pro-rk3399_defconfig         |  13 +-
>   configs/pinephone-pro-rk3399_defconfig        |  13 +-
>   configs/puma-rk3399_defconfig                 |   5 +-
>   configs/roc-pc-mezzanine-rk3399_defconfig     |  15 +-
>   configs/roc-pc-rk3399_defconfig               |  13 +-
>   configs/rock-4c-plus-rk3399_defconfig         |  27 +-
>   configs/rock-4se-rk3399_defconfig             |  28 +-
>   configs/rock-pi-4-rk3399_defconfig            |  13 +-
>   configs/rock-pi-4c-rk3399_defconfig           |  27 +-
>   configs/rock-pi-n10-rk3399pro_defconfig       |  10 +-
>   configs/rock960-rk3399_defconfig              |  18 +-
>   configs/rockpro64-rk3399_defconfig            |  16 +-
>   drivers/clk/rockchip/clk_rk3399.c             |  12 +-
>   include/dt-bindings/clock/rk3399-cru.h        |  30 +-
>   87 files changed, 1700 insertions(+), 531 deletions(-)
>
Jonas Karlman April 24, 2024, 9:21 a.m. UTC | #13
Hi Kever,

On 2024-04-23 13:27, Kever Yang wrote:
> Hi Jonas,
> 
> 
> On 2024/4/1 04:28, Jonas Karlman wrote:
>> This series adds support for new clocks used in linux v6.8 device trees,
>> enables use of FIT signature check for checksum validation and fixes
>> loading FIT from SD-card when loading FIT from eMMC fails.
>>
>> After this series it should be possible to move RK3399 boards to use
>> OF_UPSTREAM in a future patch once dts/upstream move to a v6.8+ tag.
>>
>> I have runtime tested this series on following devices:
>> - 96boards Rock960
>> - Khadas Edge Captain
>> - Pine64 PineBook Pro
>> - Pine64 RockPro64
>> - Radxa ROCK 4C+
>> - Radxa ROCK 4SE
>> - Radxa ROCK Pi 4A
>> - Radxa ROCK Pi 4B+
>>
>> This series depends on the following series:
>> - Enable booting from SPI flash on ROCK Pi 4 [1]
>> - rockchip: spl: Cache boot source id for later use [2]
> 
>      This patch set not able to apply after this dependent patchset 
> update to v2,
> 
> please help to send a new version.

Thanks, I will try to split this series in two parts and send a v2
in a day or two.

First part will focus on patches up to and including "rockchip: rk3399:
Fix loading FIT from SD-card when booting from eMMC". And second part
will focus on updating DTs from v5.x to v6.8, and any pre-requirement
for doing so.

Will also send a "third" part that moves the recently updated SoCs to
OF_UPSTREAM, i.e. rk3308, rk3328, rk3399, rk356x and possible rk3588.

Regards,
Jonas

> 
> 
> Thanks,
> 
> - Kever
> 
>>
>> A copy of this series and all its depends can be found at [3]
>>
>> [1] https://patchwork.ozlabs.org/cover/1912469/
>> [2] https://patchwork.ozlabs.org/cover/1915071/
>> [3] https://github.com/Kwiboo/u-boot-rockchip/commits/rk3399-dt-sync-v1
>>
>> Jonas Karlman (31):
>>    rockchip: rk3399-gru: Fix max SPL size on bob and kevin
>>    rockchip: rk3399-ficus: Enable TPL and use common bss and stack addr
>>    rockchip: rk3399: Sort imply statements alphabetically
>>    rockchip: rk3399: Enable ARMv8 crypto and FIT checksum validation
>>    rockchip: rk3399: Enable random generator on all boards
>>    rockchip: rk3399: Imply support for GbE PHY
>>    rockchip: rk3399: Enable DT overlay support on all boards
>>    rockchip: rk3399: Remove use of xPL_MISC_DRIVERS options
>>    rockchip: rk3399: Add a default spl-boot-order prop
>>    rockchip: rk3399: Fix loading FIT from SD-card when booting from eMMC
>>    clk: rockchip: rk3399: Rename SCLK_DDRCLK to SCLK_DDRC
>>    clk: rockchip: rk3399: Add dummy support for ACLK_VDU clock
>>    clk: rockchip: rk3399: Add dummy support for SCLK_PCIEPHY_REF clock
>>    clk: rockchip: rk3399: Add SCLK_USB3OTGx_REF support
>>    rockchip: rk3399: Sync soc device tree from linux v6.8
>>    rockchip: rk3399-gru: Sync device tree from linux v6.8
>>    rockchip: rk3399-puma: Sync DT from linux v6.8
>>    rockchip: rk3399-rock-pi-n10: Sync device tree from linux v6.8
>>    rockchip: rk3399-eaidk-610: Sync device tree from linux v6.8
>>    rockchip: rk3399-leez: Sync device tree from linux v6.8
>>    rockchip: rk3399-evb: Sync device tree from linux v6.8
>>    rockchip: rk3399-firefly: Sync device tree from linux v6.8
>>    rockchip: rk3399-orangepi: Sync device tree from linux v6.8
>>    rockchip: rk3399-roc-pc: Sync device tree from linux v6.8
>>    rockchip: rk3399-nanopi-4: Sync device tree from linux v6.8
>>    rockchip: rk3399-rock960: Sync device tree from linux v6.8
>>    rockchip: rk3399-khadas: Sync device tree from linux v6.8
>>    rockchip: rk3399-rock-pi-4: Sync device tree from linux v6.8
>>    rockchip: rk3399-rockpro64: Sync device tree from linux v6.8
>>    rockchip: rk3399-pinebook-pro: Sync device tree from linux v6.8
>>    rockchip: rk3399-pinephone-pro: Sync device tree from linux v6.8
>>
>>   arch/arm/dts/rk3288-vmarc-som.dtsi            |  48 +++
>>   arch/arm/dts/rk3399-eaidk-610-u-boot.dtsi     |   1 -
>>   arch/arm/dts/rk3399-eaidk-610.dts             |   3 +-
>>   arch/arm/dts/rk3399-evb-u-boot.dtsi           |  13 +-
>>   arch/arm/dts/rk3399-evb.dts                   |   3 +-
>>   arch/arm/dts/rk3399-ficus-u-boot.dtsi         |  10 +-
>>   arch/arm/dts/rk3399-ficus.dts                 |   4 +
>>   arch/arm/dts/rk3399-firefly-u-boot.dtsi       |   6 -
>>   arch/arm/dts/rk3399-firefly.dts               |  17 +-
>>   arch/arm/dts/rk3399-gru-bob.dts               |   8 +-
>>   arch/arm/dts/rk3399-gru-chromebook.dtsi       | 200 +++++++++++-
>>   arch/arm/dts/rk3399-gru-kevin.dts             |   3 +-
>>   arch/arm/dts/rk3399-gru-u-boot.dtsi           |  34 ++-
>>   arch/arm/dts/rk3399-gru.dtsi                  |  52 +++-
>>   arch/arm/dts/rk3399-khadas-edge-captain.dts   |   4 +
>>   arch/arm/dts/rk3399-khadas-edge-u-boot.dtsi   |   7 +-
>>   arch/arm/dts/rk3399-khadas-edge-v.dts         |   4 +
>>   arch/arm/dts/rk3399-khadas-edge.dtsi          |  10 +-
>>   arch/arm/dts/rk3399-leez-p710-u-boot.dtsi     |   6 -
>>   arch/arm/dts/rk3399-leez-p710.dts             |   8 +-
>>   arch/arm/dts/rk3399-nanopc-t4.dts             |   2 +-
>>   arch/arm/dts/rk3399-nanopi-m4-2gb.dts         |  55 +---
>>   arch/arm/dts/rk3399-nanopi-m4b.dts            |   2 +-
>>   arch/arm/dts/rk3399-nanopi-r4s.dts            |   4 +-
>>   arch/arm/dts/rk3399-nanopi4-u-boot.dtsi       |  18 +-
>>   arch/arm/dts/rk3399-nanopi4.dtsi              |   7 +-
>>   arch/arm/dts/rk3399-op1-opp.dtsi              |  31 +-
>>   arch/arm/dts/rk3399-opp.dtsi                  |   6 +-
>>   arch/arm/dts/rk3399-orangepi-u-boot.dtsi      |  12 +
>>   arch/arm/dts/rk3399-orangepi.dts              |  12 +-
>>   arch/arm/dts/rk3399-pinebook-pro-u-boot.dtsi  |  23 +-
>>   arch/arm/dts/rk3399-pinebook-pro.dts          |  24 +-
>>   arch/arm/dts/rk3399-pinephone-pro-u-boot.dtsi |  24 +-
>>   arch/arm/dts/rk3399-pinephone-pro.dts         | 147 +++++++++
>>   arch/arm/dts/rk3399-puma-haikou-u-boot.dtsi   |  27 +-
>>   arch/arm/dts/rk3399-puma-haikou.dts           |  42 ++-
>>   arch/arm/dts/rk3399-puma.dtsi                 |  17 +-
>>   arch/arm/dts/rk3399-roc-pc-u-boot.dtsi        |  45 +--
>>   arch/arm/dts/rk3399-roc-pc.dtsi               |  15 +-
>>   arch/arm/dts/rk3399-rock-4c-plus-u-boot.dtsi  |  20 ++
>>   arch/arm/dts/rk3399-rock-4c-plus.dts          |   1 +
>>   arch/arm/dts/rk3399-rock-4se-u-boot.dtsi      |  12 +
>>   arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi     |   6 -
>>   arch/arm/dts/rk3399-rock-pi-4.dtsi            |   4 +-
>>   arch/arm/dts/rk3399-rock-pi-4c-u-boot.dtsi    |   7 +
>>   arch/arm/dts/rk3399-rock-pi-4c.dts            |  10 +
>>   arch/arm/dts/rk3399-rock960-u-boot.dtsi       |  11 +-
>>   arch/arm/dts/rk3399-rock960.dtsi              |   5 +-
>>   arch/arm/dts/rk3399-rockpro64-u-boot.dtsi     |  22 +-
>>   arch/arm/dts/rk3399-rockpro64.dtsi            |  98 +++++-
>>   arch/arm/dts/rk3399-u-boot.dtsi               | 129 +++++---
>>   arch/arm/dts/rk3399.dtsi                      | 289 ++++++++++++++++--
>>   .../arm/dts/rk3399pro-rock-pi-n10-u-boot.dtsi |   6 -
>>   arch/arm/dts/rk3399pro-vmarc-som.dtsi         |  20 +-
>>   .../dts/rockchip-radxa-dalang-carrier.dtsi    |  21 ++
>>   arch/arm/mach-rockchip/Kconfig                |  38 ++-
>>   configs/chromebook_bob_defconfig              |   6 +-
>>   configs/chromebook_kevin_defconfig            |   6 +-
>>   configs/eaidk-610-rk3399_defconfig            |  13 +-
>>   configs/evb-rk3399_defconfig                  |  10 +-
>>   configs/ficus-rk3399_defconfig                |  38 +--
>>   configs/firefly-rk3399_defconfig              |  17 +-
>>   configs/khadas-edge-captain-rk3399_defconfig  |  35 ++-
>>   configs/khadas-edge-rk3399_defconfig          |  29 +-
>>   configs/khadas-edge-v-rk3399_defconfig        |  35 ++-
>>   configs/leez-rk3399_defconfig                 |  13 +-
>>   configs/nanopc-t4-rk3399_defconfig            |  18 +-
>>   configs/nanopi-m4-2gb-rk3399_defconfig        |  22 +-
>>   configs/nanopi-m4-rk3399_defconfig            |  22 +-
>>   configs/nanopi-m4b-rk3399_defconfig           |  22 +-
>>   configs/nanopi-neo4-rk3399_defconfig          |  22 +-
>>   configs/nanopi-r4s-rk3399_defconfig           |  16 +-
>>   configs/orangepi-rk3399_defconfig             |  14 +-
>>   configs/pinebook-pro-rk3399_defconfig         |  13 +-
>>   configs/pinephone-pro-rk3399_defconfig        |  13 +-
>>   configs/puma-rk3399_defconfig                 |   5 +-
>>   configs/roc-pc-mezzanine-rk3399_defconfig     |  15 +-
>>   configs/roc-pc-rk3399_defconfig               |  13 +-
>>   configs/rock-4c-plus-rk3399_defconfig         |  27 +-
>>   configs/rock-4se-rk3399_defconfig             |  28 +-
>>   configs/rock-pi-4-rk3399_defconfig            |  13 +-
>>   configs/rock-pi-4c-rk3399_defconfig           |  27 +-
>>   configs/rock-pi-n10-rk3399pro_defconfig       |  10 +-
>>   configs/rock960-rk3399_defconfig              |  18 +-
>>   configs/rockpro64-rk3399_defconfig            |  16 +-
>>   drivers/clk/rockchip/clk_rk3399.c             |  12 +-
>>   include/dt-bindings/clock/rk3399-cru.h        |  30 +-
>>   87 files changed, 1700 insertions(+), 531 deletions(-)
>>