All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v6 0/7] Add FU740 chip and HiFive Unmatched board support
@ 2021-04-08 13:40 Green Wan
  2021-04-08 13:40 ` [PATCH v6 1/7] riscv: dts: add fu740 support Green Wan
                   ` (6 more replies)
  0 siblings, 7 replies; 15+ messages in thread
From: Green Wan @ 2021-04-08 13:40 UTC (permalink / raw)
  To: u-boot

This patch set is to add SiFive fu740 chip and HiFive Unmatched board
support. Patches are split into several parts:

  - [PATCH 1/7] dts for fu740
  - [PATCH 2/7] support for fu740 cpu
  - [PATCH 3/7] support for fu740 clk driver
  - [PATCH 4/7] rename and support for fu740 ram driver
  - [PATCH 5/7] add pcie driver
  - [PATCH 6/7] add unmatched board
  - [PATCH 7/7] add fu740 support to macb driver

Description

  - For fu740 cpu support, reuse most of fu540 cpu.
  - For prci driver, add one abstract layer to separate fu540 and
    fu740. Move orignal fu540 code to separate files.
  - For pcie driver, it depends on gpio, prci, clk and reset drivers
    to do init&reset works.
  - Align with Linux DT file.

Tests and patch checks

  - Able to boot both unmatched and unleashed boards.
  - PCIe tests
    . M.2 NVMe SSD
    . e1000 compatibale ethernet adapter (ping&tftpboot)
    . pci-to-usb adapter(usb mass storage)
  - checkpatch is performed. To keep code derived from other boards
    the same, ignore some warnings/errors in [PATCH 7/8].

Changlogs
  - V6
    . Remove redundant DT string for 1.2GHz CPU clock and squash to
      [1/7]
  - V5
    . Fix unleashed build error in patch [6/8]
    . Append one more set for 1.2GHz CPU speed
    . Add "#include <asm/global_data.h>" back to sifive_ddr.c
    . Add Reviewed-by to [4/8] and [7/8]
  - V4
    . fixed incorrect file name in ./board/sifive/unmatched/Makefile
    . fixed link in doc/board/sifive/index.rst, passed 'make htmldocs'
  - V3
    . Rebase to unleashed rename v2 patch
    . Rename
      doc/board/sifive/unmatched.rst
      board/sifive/unmatched/unmatched.c
    . Fix tail whitespace
    . Add 'git mv' info to ram driver and merge patch back to one
    . Add comment to macb driver for PLL hardware quirk
    . Add reviewed-by to patch [6/7] 
    . Add 'gpio-poweroff' node for upcoming opensbi integration
  - V2
    . Rebase to unleashed rename patch
    . remove unnessaary fu540 changes
    . split ram driver patch into 2 to keep 'git mv' info
    . use a shorter name for unmatched support
    . Remove redundant&incorrect temperature-sensor in DT
    . Remove unnecessary USB EHCI & OHCI from defconfig
    . Revised fu740 doc
    . Fixed year of copyright
    . Add reviewed-by received in v1 patch

David Abdurachmanov (1):
  drivers: net: macb: add fu740 support

Green Wan (6):
  riscv: dts: add fu740 support
  riscv: cpu: fu740: Add support for cpu fu740
  drivers: clk: add fu740 support
  drivers: ram: sifive: rename fu540_ddr and add fu740 support
  drivers: pci: add pcie support for fu740
  board: sifive: add HiFive Unmatched board support

 arch/riscv/Kconfig                            |    5 +
 arch/riscv/cpu/fu740/Kconfig                  |   37 +
 arch/riscv/cpu/fu740/Makefile                 |   12 +
 arch/riscv/cpu/fu740/cache.c                  |   55 +
 arch/riscv/cpu/fu740/cpu.c                    |   22 +
 arch/riscv/cpu/fu740/dram.c                   |   38 +
 arch/riscv/cpu/fu740/spl.c                    |   23 +
 arch/riscv/dts/Makefile                       |    1 +
 arch/riscv/dts/fu740-c000-u-boot.dtsi         |  105 ++
 arch/riscv/dts/fu740-c000.dtsi                |  329 ++++
 .../dts/fu740-hifive-unmatched-a00-ddr.dtsi   | 1489 +++++++++++++++++
 .../dts/hifive-unmatched-a00-u-boot.dtsi      |   40 +
 arch/riscv/dts/hifive-unmatched-a00.dts       |  259 +++
 arch/riscv/include/asm/arch-fu740/cache.h     |   14 +
 arch/riscv/include/asm/arch-fu740/clk.h       |   14 +
 arch/riscv/include/asm/arch-fu740/gpio.h      |   38 +
 arch/riscv/include/asm/arch-fu740/reset.h     |   13 +
 arch/riscv/include/asm/arch-fu740/spl.h       |   14 +
 arch/riscv/lib/sifive_clint.c                 |    1 -
 board/sifive/unleashed/Kconfig                |    1 +
 board/sifive/unmatched/Kconfig                |   50 +
 board/sifive/unmatched/MAINTAINERS            |    9 +
 board/sifive/unmatched/Makefile               |    9 +
 board/sifive/unmatched/spl.c                  |   85 +
 board/sifive/unmatched/unmatched.c            |   24 +
 common/spl/Kconfig                            |    4 +-
 configs/sifive_unleashed_defconfig            |    1 +
 configs/sifive_unmatched_defconfig            |   53 +
 doc/board/sifive/index.rst                    |    1 +
 doc/board/sifive/unmatched.rst                |  536 ++++++
 drivers/clk/sifive/Kconfig                    |    8 +-
 drivers/clk/sifive/Makefile                   |    4 +-
 drivers/clk/sifive/fu540-prci.c               |  769 +--------
 drivers/clk/sifive/fu540-prci.h               |   22 +
 drivers/clk/sifive/fu740-prci.c               |  158 ++
 drivers/clk/sifive/fu740-prci.h               |   22 +
 drivers/clk/sifive/sifive-prci.c              |  733 ++++++++
 drivers/clk/sifive/sifive-prci.h              |  323 ++++
 drivers/net/macb.c                            |   13 +-
 drivers/pci/Kconfig                           |    9 +
 drivers/pci/Makefile                          |    1 +
 drivers/pci/pcie_sifive.c                     |  797 +++++++++
 drivers/pci/pcie_sifive.h                     |  374 +++++
 drivers/ram/sifive/Kconfig                    |    8 +-
 drivers/ram/sifive/Makefile                   |    2 +-
 .../ram/sifive/{fu540_ddr.c => sifive_ddr.c}  |   89 +-
 drivers/reset/Kconfig                         |    2 +-
 include/configs/sifive-unmatched.h            |   85 +
 include/dt-bindings/clock/sifive-fu740-prci.h |   25 +
 include/dt-bindings/reset/sifive-fu740-prci.h |   19 +
 50 files changed, 5938 insertions(+), 807 deletions(-)
 create mode 100644 arch/riscv/cpu/fu740/Kconfig
 create mode 100644 arch/riscv/cpu/fu740/Makefile
 create mode 100644 arch/riscv/cpu/fu740/cache.c
 create mode 100644 arch/riscv/cpu/fu740/cpu.c
 create mode 100644 arch/riscv/cpu/fu740/dram.c
 create mode 100644 arch/riscv/cpu/fu740/spl.c
 create mode 100644 arch/riscv/dts/fu740-c000-u-boot.dtsi
 create mode 100644 arch/riscv/dts/fu740-c000.dtsi
 create mode 100644 arch/riscv/dts/fu740-hifive-unmatched-a00-ddr.dtsi
 create mode 100644 arch/riscv/dts/hifive-unmatched-a00-u-boot.dtsi
 create mode 100644 arch/riscv/dts/hifive-unmatched-a00.dts
 create mode 100644 arch/riscv/include/asm/arch-fu740/cache.h
 create mode 100644 arch/riscv/include/asm/arch-fu740/clk.h
 create mode 100644 arch/riscv/include/asm/arch-fu740/gpio.h
 create mode 100644 arch/riscv/include/asm/arch-fu740/reset.h
 create mode 100644 arch/riscv/include/asm/arch-fu740/spl.h
 create mode 100644 board/sifive/unmatched/Kconfig
 create mode 100644 board/sifive/unmatched/MAINTAINERS
 create mode 100644 board/sifive/unmatched/Makefile
 create mode 100644 board/sifive/unmatched/spl.c
 create mode 100644 board/sifive/unmatched/unmatched.c
 create mode 100644 configs/sifive_unmatched_defconfig
 create mode 100644 doc/board/sifive/unmatched.rst
 create mode 100644 drivers/clk/sifive/fu540-prci.h
 create mode 100644 drivers/clk/sifive/fu740-prci.c
 create mode 100644 drivers/clk/sifive/fu740-prci.h
 create mode 100644 drivers/clk/sifive/sifive-prci.c
 create mode 100644 drivers/clk/sifive/sifive-prci.h
 create mode 100644 drivers/pci/pcie_sifive.c
 create mode 100644 drivers/pci/pcie_sifive.h
 rename drivers/ram/sifive/{fu540_ddr.c => sifive_ddr.c} (81%)
 create mode 100644 include/configs/sifive-unmatched.h
 create mode 100644 include/dt-bindings/clock/sifive-fu740-prci.h
 create mode 100644 include/dt-bindings/reset/sifive-fu740-prci.h

-- 
2.31.0

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

end of thread, other threads:[~2021-05-03  5:35 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-08 13:40 [PATCH v6 0/7] Add FU740 chip and HiFive Unmatched board support Green Wan
2021-04-08 13:40 ` [PATCH v6 1/7] riscv: dts: add fu740 support Green Wan
     [not found]   ` <752D002CFF5D0F4FA35C0100F1D73F3FE5E96768@ATCPCS12.andestech.com>
2021-04-15  5:25     ` Rick Chen
2021-04-15  8:59       ` Green Wan
2021-04-16  7:11         ` Rick Chen
2021-04-16  8:20           ` Green Wan
2021-04-08 13:40 ` [PATCH v6 2/7] riscv: cpu: fu740: Add support for cpu fu740 Green Wan
     [not found]   ` <752D002CFF5D0F4FA35C0100F1D73F3FE5E97817@ATCPCS12.andestech.com>
2021-05-03  5:35     ` Rick Chen
2021-04-08 13:40 ` [PATCH v6 3/7] drivers: clk: add fu740 support Green Wan
2021-04-08 13:40 ` [PATCH v6 4/7] drivers: ram: sifive: rename fu540_ddr and " Green Wan
2021-04-08 13:40 ` [PATCH v6 5/7] drivers: pci: add pcie support for fu740 Green Wan
2021-04-16  3:15   ` Bin Meng
2021-04-16  3:22     ` Green Wan
2021-04-08 13:40 ` [PATCH v6 6/7] board: sifive: add HiFive Unmatched board support Green Wan
2021-04-08 13:40 ` [PATCH v6 7/7] drivers: net: macb: add fu740 support Green Wan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.