Skip to content

riscv: add initial support for SpacemiT K1

Yixun Lan linux-devicetree linux-riscv linux-serial lkml 4 versions – Applied

Status from this message: Thanks, Applied to SpacemiT's SoC tree:

Get series with b4
b4 am [email protected] change-id 20240626-k1-01-basic-dt-1aa31eeebcd2

Versions newest first

  1. v5 Latest10 patches 10 repliesApplied 10/10
  2. v410 patches 6 repliesSuperseded
  3. v311 patches 21 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v210 patches21 repliesSuperseded

Changes in v5 from the cover letter

- fix cache-sets in dts
- collect Rob's Ack
- rebase to 6.11-rc1
- Link to v4: https://lore.kernel.org/r/[email protected]

Patches in v5 All 10 applied

#Subject and filesSizeRepliesApplied
1/10dt-bindings: vendor-prefixes: add spacemitDocumentation/devicetree/bindings/vendor-prefixes.yaml+2 -00 repliesApplied
2/10dt-bindings: riscv: Add SpacemiT X60 compatiblesDocumentation/devicetree/bindings/riscv/cpus.yaml+1 -00 repliesApplied
3/10dt-bindings: riscv: add SpacemiT K1 bindingsDocumentation/devicetree/bindings/riscv/spacemit.yaml+28 -00 repliesApplied
4/10dt-bindings: timer: Add SpacemiT K1 CLINTDocumentation/devicetree/bindings/timer/sifive,clint.yaml+1 -00 repliesApplied
5/10dt-bindings: interrupt-controller: Add SpacemiT K1 PLICDocumentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml+1 -00 repliesApplied
6/10dt-bindings: serial: 8250: Add SpacemiT K1 uart compatibleDocumentation/devicetree/bindings/serial/8250.yaml+3 -10 repliesApplied
7/10riscv: add SpacemiT SoC family Kconfig supportarch/riscv/Kconfig.socs+5 -00 repliesApplied
8/10riscv: dts: add initial SpacemiT K1 SoC device treearch/riscv/boot/dts/spacemit/k1.dtsi+459 -01 replyApplied
9/10riscv: dts: spacemit: add Banana Pi BPI-F3 board device treearch/riscv/boot/dts/Makefile arch/riscv/boot/dts/spacemit/Makefile arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts+22 -01 replyApplied
10/10riscv: defconfig: enable SpacemiT SoCarch/riscv/configs/defconfig+1 -00 repliesApplied

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchConor DooleyMatthias BruggerRob Herring (Arm)Jesse TaubePalmer Dabbelt
SeriesA-b
1/10A-b
2/10A-b
3/10R-b A-b
4/10A-b
5/10A-b
6/10A-b
7/10R-b
8/10A-b
9/10A-b
10/10R-b T-b

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

Read the v5 thread

Cover letter [PATCH v5 00/10] riscv: add initial support for SpacemiT K1

SpacemiT K1 is an ideal chip for some new extension such as RISC-V Vector 1.0 and Zicond evaluation now. Add initial support for it to allow more people to participate in building drivers to mainline for it.

This kernel has been tested upon Banana Pi BPI-F3 board on vendor U-Boot bootflow generated by Armbian SDK[1] and patched OpenSBI[2] to enable Zicboz, which does not in the vendor dts on its U-Boot. Then successfully booted to busybox on initrd with this log[3].

As previous discussion in patch v1[4], maintainer expect more basic drivers ready before really merging it, which would be fine. For other follow-up patches, that are clk, pinctrl/gpio, reset.. My current goal would target at a headless system including SD card, emmc, and ethernet.

In this series, the uart node has no 'fifo-size', 'tx-threshold' property populated, will add them once this patch is resolved, see thread [5]

P.S: talked to Yangyu, I will help and take care of this patch series, thanks

---
Changes in v5:
- fix cache-sets in dts
- collect Rob's Ack
- rebase to 6.11-rc1
- Link to v4: https://lore.kernel.org/r/[email protected]

Changes in v4:
- add i/d-cache, l2-cache info
- squash uart1 dts node
- update tags
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- fix dt_binding_check error
- fix plic compatible
- fix uart node name
- add uart1 dts node
- collect tags
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- fix timebase-frequency according to current setting
- add other uart dt nodes, fix input frequency
- introduce new uart compatible for K1 SoC
- add 'k1' prefix to bananapi-f3.dts
- fix k1-clint compatible
- fix some typos
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Yangyu Chen (9):
dt-bindings: vendor-prefixes: add spacemit
dt-bindings: riscv: Add SpacemiT X60 compatibles
dt-bindings: riscv: add SpacemiT K1 bindings
dt-bindings: timer: Add SpacemiT K1 CLINT
dt-bindings: interrupt-controller: Add SpacemiT K1 PLIC
riscv: add SpacemiT SoC family Kconfig support
riscv: dts: add initial SpacemiT K1 SoC device tree
riscv: dts: spacemit: add Banana Pi BPI-F3 board device tree
riscv: defconfig: enable SpacemiT SoC

Yixun Lan (1):
dt-bindings: serial: 8250: Add SpacemiT K1 uart compatible

 .../interrupt-controller/sifive,plic-1.0.0.yaml    |   1 +
 Documentation/devicetree/bindings/riscv/cpus.yaml  |   1 +
 .../devicetree/bindings/riscv/spacemit.yaml        |  28 ++
 Documentation/devicetree/bindings/serial/8250.yaml |   4 +-
 .../devicetree/bindings/timer/sifive,clint.yaml    |   1 +
 .../devicetree/bindings/vendor-prefixes.yaml       |   2 +
 arch/riscv/Kconfig.socs                            |   5 +
 arch/riscv/boot/dts/Makefile                       |   1 +
 arch/riscv/boot/dts/spacemit/Makefile              |   2 +
 arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts    |  19 +
 arch/riscv/boot/dts/spacemit/k1.dtsi               | 459 +++++++++++++++++++++
 arch/riscv/configs/defconfig                       |   1 +
 12 files changed, 523 insertions(+), 1 deletion(-)

---
base-commit: 8400291e289ee6b2bf9779ff1c83a291501f017b
change-id: 20240626-k1-01-basic-dt-1aa31eeebcd2

Best regards,

Signature · 1 line
Yixun Lan <[email protected]>