public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v1 00/12] Support OF_UPSTREAM for StarFive JH7110
@ 2024-09-30 15:59 Hal Feng
  2024-09-30 15:59 ` [PATCH v1 01/12] Makefile: Add OF_UPSTREAM Makefile for RISC-V Hal Feng
                   ` (12 more replies)
  0 siblings, 13 replies; 16+ messages in thread
From: Hal Feng @ 2024-09-30 15:59 UTC (permalink / raw)
  To: Leo, Tom Rini, Sumit Garg, Rick Chen, Heinrich Schuchardt, H Bell,
	E Shattow, Nam Cao, Bo Gan
  Cc: Emil Renner Berthing, Minda Chen, Hal Feng, u-boot

This patchset add OF_STREAM support for StarFive JH7110 based boards.
All the JH7110 based boards can use the DT from upstreaming linux kernel.
The v1.3b board device tree is set as the default device tree.

This patchset should be applied after the DT from dts/upstream/ updating
to the latest version.

Hal Feng (12):
  Makefile: Add OF_UPSTREAM Makefile for RISC-V
  dts: starfive: Switch to using upstream DT
  riscv: dts: jh7110: Drop redundant devicetree files
  dt-bindings: Remove StarFive JH7110 clock and reset definitions
  riscv: dts: jh7110: Make u-boot device trees adapting to upstream DT
  clk: starfive: jh7110: Sync clock definitions with upstream
    dt-bindings
  pcie: starfive: Make the driver compatible with upstream DT
  riscv: dts: jh7110: Move common code to the new
    jh7110-common-u-boot.dtsi
  riscv: dts: jh7110: Add u-boot device tree for JH7110 based boards
  board: starfive: spl: Drop the unneeded DT modification code
  configs: visionfive2: Add OF_LIST for JH7110 based board DT
  doc: board: starfive: Update the building guide

 arch/riscv/cpu/jh7110/Kconfig                 |   1 +
 arch/riscv/dts/Makefile                       |   1 -
 ...-u-boot.dtsi => jh7110-common-u-boot.dtsi} |  41 +-
 arch/riscv/dts/jh7110-milkv-mars-u-boot.dtsi  |  11 +
 .../dts/jh7110-pine64-star64-u-boot.dtsi      |   6 +
 ...10-starfive-visionfive-2-v1.2a-u-boot.dtsi |   6 +
 ...10-starfive-visionfive-2-v1.3b-u-boot.dtsi |  14 +
 .../dts/jh7110-starfive-visionfive-2.dts      |  11 -
 .../dts/jh7110-starfive-visionfive-2.dtsi     | 380 ---------
 arch/riscv/dts/jh7110-u-boot.dtsi             |  36 +-
 arch/riscv/dts/jh7110.dtsi                    | 761 ------------------
 board/starfive/visionfive2/spl.c              | 358 --------
 configs/starfive_visionfive2_defconfig        |   3 +-
 doc/board/starfive/milk-v_mars.rst            |   2 +-
 doc/board/starfive/milk-v_mars_cm.rst         |   2 +-
 doc/board/starfive/pine64_star64.rst          |   2 +-
 doc/board/starfive/visionfive2.rst            |  11 +-
 drivers/clk/starfive/clk-jh7110-pll.c         |   6 +-
 drivers/clk/starfive/clk-jh7110.c             |  44 +-
 drivers/pci/pcie_starfive_jh7110.c            |  59 +-
 dts/upstream/src/riscv/Makefile               |  14 +
 .../dt-bindings/clock/starfive,jh7110-crg.h   | 258 ------
 .../dt-bindings/reset/starfive,jh7110-crg.h   | 183 -----
 23 files changed, 194 insertions(+), 2016 deletions(-)
 rename arch/riscv/dts/{jh7110-starfive-visionfive-2-u-boot.dtsi => jh7110-common-u-boot.dtsi} (56%)
 create mode 100644 arch/riscv/dts/jh7110-milkv-mars-u-boot.dtsi
 create mode 100644 arch/riscv/dts/jh7110-pine64-star64-u-boot.dtsi
 create mode 100644 arch/riscv/dts/jh7110-starfive-visionfive-2-v1.2a-u-boot.dtsi
 create mode 100644 arch/riscv/dts/jh7110-starfive-visionfive-2-v1.3b-u-boot.dtsi
 delete mode 100644 arch/riscv/dts/jh7110-starfive-visionfive-2.dts
 delete mode 100644 arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi
 delete mode 100644 arch/riscv/dts/jh7110.dtsi
 create mode 100644 dts/upstream/src/riscv/Makefile
 delete mode 100644 include/dt-bindings/clock/starfive,jh7110-crg.h
 delete mode 100644 include/dt-bindings/reset/starfive,jh7110-crg.h


base-commit: 56b47b8b6a09c777e74fe6c52512c832691169aa
-- 
2.43.2


^ permalink raw reply	[flat|nested] 16+ messages in thread
* RE: [PATCH v1 00/12] Support OF_UPSTREAM for StarFive JH7110
@ 2024-10-03 17:23 Hal Feng
  2024-10-05  4:59 ` E Shattow
  0 siblings, 1 reply; 16+ messages in thread
From: Hal Feng @ 2024-10-03 17:23 UTC (permalink / raw)
  To: Heinrich Schuchardt
  Cc: Emil Renner Berthing, Minda Chen, u-boot@lists.denx.de, Leo,
	Tom Rini, Sumit Garg, Rick Chen, H Bell, E Shattow, Nam Cao,
	Bo Gan

> On 01.10.24 01:56, Heinrich Schuchardt wrote:
> On 30.09.24 17:59, Hal Feng wrote:
> > This patchset add OF_STREAM support for StarFive JH7110 based boards.
> > All the JH7110 based boards can use the DT from upstreaming linux kernel.
> > The v1.3b board device tree is set as the default device tree.
> >
> > This patchset should be applied after the DT from dts/upstream/
> > updating to the latest version.
> 
> Hello Hal,
> 
> Thanks a lot for making the move to upstream device-trees for JH7110 based
> boards.
> 
> With the current patchset you suggest to specify the relevant device-tree
> when building, e.g.
> 
> make
> OPENSBI=$(opensbi_dir)/build/platform/generic/firmware/fw_dynamic.bin \
> DEVICE_TREE=starfive/jh7110-milkv-mars
> 
> Another approach would be to build all device-trees into U-Boot and use the
> EEPROM information to select the correct one at runtime.
> 
> This approach is selected by Wandboard defconfig and other boards by
> specifying CONFIG_MULTI_DTB_FIT and CONFIG_OF_LIST. The choice of the
> device-tree is made in board_fit_config_name_match().
> 
> The advantage from the standpoint of a Linux distro would be that one distro
> image can be provided that will run on all JH7110 boards.

That is a good idea. I will try to do this after my five-day vacation.
By the way, I wanna know whether jh7110-milkv-mars-cm.dts and
jh7110-milkv-mars-cm-lite.dts are in the process of upstreaming?
I don't see them in the kernel mainline.

Thanks for your suggestions.

Best regards,
Hal

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2024-10-05  4:59 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-30 15:59 [PATCH v1 00/12] Support OF_UPSTREAM for StarFive JH7110 Hal Feng
2024-09-30 15:59 ` [PATCH v1 01/12] Makefile: Add OF_UPSTREAM Makefile for RISC-V Hal Feng
2024-09-30 15:59 ` [PATCH v1 02/12] dts: starfive: Switch to using upstream DT Hal Feng
2024-09-30 15:59 ` [PATCH v1 03/12] riscv: dts: jh7110: Drop redundant devicetree files Hal Feng
2024-09-30 15:59 ` [PATCH v1 04/12] dt-bindings: Remove StarFive JH7110 clock and reset definitions Hal Feng
2024-09-30 15:59 ` [PATCH v1 05/12] riscv: dts: jh7110: Make u-boot device trees adapting to upstream DT Hal Feng
2024-09-30 15:59 ` [PATCH v1 06/12] clk: starfive: jh7110: Sync clock definitions with upstream dt-bindings Hal Feng
2024-09-30 15:59 ` [PATCH v1 07/12] pcie: starfive: Make the driver compatible with upstream DT Hal Feng
2024-09-30 15:59 ` [PATCH v1 08/12] riscv: dts: jh7110: Move common code to the new jh7110-common-u-boot.dtsi Hal Feng
2024-09-30 15:59 ` [PATCH v1 09/12] riscv: dts: jh7110: Add u-boot device tree for JH7110 based boards Hal Feng
2024-09-30 15:59 ` [PATCH v1 10/12] board: starfive: spl: Drop the unneeded DT modification code Hal Feng
2024-09-30 15:59 ` [PATCH v1 11/12] configs: visionfive2: Add OF_LIST for JH7110 based board DT Hal Feng
2024-09-30 15:59 ` [PATCH v1 12/12] doc: board: starfive: Update the building guide Hal Feng
2024-09-30 17:55 ` [PATCH v1 00/12] Support OF_UPSTREAM for StarFive JH7110 Heinrich Schuchardt
  -- strict thread matches above, loose matches on Subject: below --
2024-10-03 17:23 Hal Feng
2024-10-05  4:59 ` E Shattow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox