Skip to content

Commit 0bcf3ac

Browse files
committed
Merge tag 'spacemit-dt-for-6.14-1' of https://github.com/spacemit-com/linux into soc/newsoc
RISC-V SpacemiT DT changes for 6.14 This adds support for the SpacemiT K1 SoC and the Banana Pi F3 board using it: - basic device tree support - pinctrl dt node info - update MAINTAINERS info * tag 'spacemit-dt-for-6.14-1' of https://github.com/spacemit-com/linux: riscv: dts: spacemit: move aliases to board dts riscv: dts: spacemit: add pinctrl property to uart0 in BPI-F3 riscv: defconfig: enable SpacemiT SoC riscv: dts: spacemit: add Banana Pi BPI-F3 board device tree riscv: dts: add initial SpacemiT K1 SoC device tree riscv: add SpacemiT SoC family Kconfig support dt-bindings: serial: 8250: Add SpacemiT K1 uart compatible dt-bindings: interrupt-controller: Add SpacemiT K1 PLIC dt-bindings: timer: Add SpacemiT K1 CLINT dt-bindings: riscv: add SpacemiT K1 bindings dt-bindings: riscv: Add SpacemiT X60 compatibles MAINTAINERS: setup support for SpacemiT SoC tree Link: https://wiki.banana-pi.org/Banana_Pi_BPI-F3 Link: https://www.spacemit.com/en/key-stone-k1/ Link: https://lore.kernel.org/r/20250117004911-GYA25021@gentoo Signed-off-by: Arnd Bergmann <[email protected]>
2 parents d4c0d16 + 3d72d60 commit 0bcf3ac

File tree

13 files changed

+550
-1
lines changed

13 files changed

+550
-1
lines changed

Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ properties:
5959
- enum:
6060
- canaan,k210-plic
6161
- sifive,fu540-c000-plic
62+
- spacemit,k1-plic
6263
- starfive,jh7100-plic
6364
- starfive,jh7110-plic
6465
- const: sifive,plic-1.0.0

Documentation/devicetree/bindings/riscv/cpus.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ properties:
4646
- sifive,u7
4747
- sifive,u74
4848
- sifive,u74-mc
49+
- spacemit,x60
4950
- thead,c906
5051
- thead,c908
5152
- thead,c910
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/riscv/spacemit.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: SpacemiT SoC-based boards
8+
9+
maintainers:
10+
- Yangyu Chen <[email protected]>
11+
- Yixun Lan <[email protected]>
12+
13+
description:
14+
SpacemiT SoC-based boards
15+
16+
properties:
17+
$nodename:
18+
const: '/'
19+
compatible:
20+
oneOf:
21+
- items:
22+
- enum:
23+
- bananapi,bpi-f3
24+
- const: spacemit,k1
25+
26+
additionalProperties: true
27+
28+
...

Documentation/devicetree/bindings/serial/8250.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ properties:
111111
- mediatek,mt7623-btif
112112
- const: mediatek,mtk-btif
113113
- items:
114-
- const: mrvl,mmp-uart
114+
- enum:
115+
- mrvl,mmp-uart
116+
- spacemit,k1-uart
115117
- const: intel,xscale-uart
116118
- items:
117119
- enum:

Documentation/devicetree/bindings/timer/sifive,clint.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ properties:
3131
- enum:
3232
- canaan,k210-clint # Canaan Kendryte K210
3333
- sifive,fu540-c000-clint # SiFive FU540
34+
- spacemit,k1-clint # SpacemiT K1
3435
- starfive,jh7100-clint # StarFive JH7100
3536
- starfive,jh7110-clint # StarFive JH7110
3637
- starfive,jh8100-clint # StarFive JH8100

MAINTAINERS

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20188,6 +20188,15 @@ F: drivers/perf/riscv_pmu.c
2018820188
F: drivers/perf/riscv_pmu_legacy.c
2018920189
F: drivers/perf/riscv_pmu_sbi.c
2019020190

20191+
RISC-V SPACEMIT SoC Support
20192+
M: Yixun Lan <[email protected]>
20193+
20194+
S: Maintained
20195+
T: git https://github.com/spacemit-com/linux
20196+
F: arch/riscv/boot/dts/spacemit/
20197+
N: spacemit
20198+
K: spacemit
20199+
2019120200
RISC-V THEAD SoC SUPPORT
2019220201
M: Drew Fustini <[email protected]>
2019320202
M: Guo Ren <[email protected]>

arch/riscv/Kconfig.socs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ config ARCH_SOPHGO
2424
help
2525
This enables support for Sophgo SoC platform hardware.
2626

27+
config ARCH_SPACEMIT
28+
bool "SpacemiT SoCs"
29+
help
30+
This enables support for SpacemiT SoC platform hardware.
31+
2732
config ARCH_STARFIVE
2833
def_bool SOC_STARFIVE
2934

arch/riscv/boot/dts/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ subdir-y += microchip
55
subdir-y += renesas
66
subdir-y += sifive
77
subdir-y += sophgo
8+
subdir-y += spacemit
89
subdir-y += starfive
910
subdir-y += thead
1011

arch/riscv/boot/dts/spacemit/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
dtb-$(CONFIG_ARCH_SPACEMIT) += k1-bananapi-f3.dtb
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// SPDX-License-Identifier: GPL-2.0 OR MIT
2+
/*
3+
* Copyright (C) 2024 Yangyu Chen <[email protected]>
4+
*/
5+
6+
#include "k1.dtsi"
7+
#include "k1-pinctrl.dtsi"
8+
9+
/ {
10+
model = "Banana Pi BPI-F3";
11+
compatible = "bananapi,bpi-f3", "spacemit,k1";
12+
13+
aliases {
14+
serial0 = &uart0;
15+
};
16+
17+
chosen {
18+
stdout-path = "serial0";
19+
};
20+
};
21+
22+
&uart0 {
23+
pinctrl-names = "default";
24+
pinctrl-0 = <&uart0_2_cfg>;
25+
status = "okay";
26+
};

0 commit comments

Comments
 (0)