Skip to content

Commit 79384a0

Browse files
committed
Merge tag 'riscv-dt-for-v6.7' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux into soc/dt
RISC-V Devicetrees for v6.7 StarFive: Things are a bit slower for StarFive this window, there's only the addition of audio related DT nodes to speak of here. Generic: The SiFive, StarFive and Microchip devicetrees have had my replacement ISA extension detection properties added. Unfortunately, the old "riscv,isa" property never defined exactly what the extensions it contained meant, and people were want to fill it in incorrectly (and call upstream kernel devs idiots for not doing the same). The new properties have explicit definitions and hopefully will stand up better to some of the variation from RVI. Sophgo: Two new SoCs, one is probably the first of several with up/down tuned variants, that have a pair of T-Head c906 cores and appear aimed at the IP camera, smart <insert whatever> etc markets. They are intended to run in AMP mode, with an RTOS on the less powerful core. The other is far more interesting to kernel developers however, the 64-core SG2042, with more recent c920 cores from T-Head at 2 GHz. For both, support is at a very basic stage - some of the same developers are working on them as other T-Head powered SoCs, but hopefully things will move beyond a basic console boot. The goal is for Chen Wang to take over maintaining the Sophgo support once they have some more experience with the process. Signed-off-by: Conor Dooley <conor.dooley@microchip.com> * tag 'riscv-dt-for-v6.7' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux: (22 commits) riscv: dts: starfive: convert isa detection to new properties riscv: dts: sifive: convert isa detection to new properties riscv: dts: microchip: convert isa detection to new properties riscv: dts: sophgo: add Milk-V Duo board device tree riscv: dts: sophgo: add initial CV1800B SoC device tree dt-bindings: riscv: Add Milk-V Duo board compatibles dt-bindings: timer: Add SOPHGO CV1800B clint dt-bindings: interrupt-controller: Add SOPHGO CV1800B plic riscv: defconfig: enable SOPHGO SoC riscv: dts: sophgo: add Milk-V Pioneer board device tree riscv: dts: add initial Sophgo SG2042 SoC device tree dt-bindings: interrupt-controller: Add Sophgo sg2042 CLINT mswi dt-bindings: timer: Add Sophgo sg2042 CLINT timer dt-bindings: interrupt-controller: Add Sophgo SG2042 PLIC dt-bindings: riscv: Add T-HEAD C920 compatibles dt-bindings: riscv: add sophgo sg2042 bindings dt-bindings: vendor-prefixes: add milkv/sophgo riscv: Add SOPHGO SOC family Kconfig support riscv: dts: starfive: add assigned-clock* to limit frquency riscv: dts: starfive: Add JH7110 PWM-DAC support ... Link: https://lore.kernel.org/r/20231016-filing-payroll-7aca51b8f1a3@spud Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents 7115816 + 81b5948 commit 79384a0

24 files changed

Lines changed: 2906 additions & 3 deletions

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ properties:
6565
- items:
6666
- enum:
6767
- allwinner,sun20i-d1-plic
68+
- sophgo,cv1800b-plic
69+
- sophgo,sg2042-plic
6870
- thead,th1520-plic
6971
- const: thead,c900-plic
7072
- items:
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/interrupt-controller/thead,c900-aclint-mswi.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Sophgo sg2042 CLINT Machine-level Software Interrupt Device
8+
9+
maintainers:
10+
- Inochi Amaoto <inochiama@outlook.com>
11+
12+
properties:
13+
compatible:
14+
items:
15+
- enum:
16+
- sophgo,sg2042-aclint-mswi
17+
- const: thead,c900-aclint-mswi
18+
19+
reg:
20+
maxItems: 1
21+
22+
interrupts-extended:
23+
minItems: 1
24+
maxItems: 4095
25+
26+
additionalProperties: false
27+
28+
required:
29+
- compatible
30+
- reg
31+
- interrupts-extended
32+
33+
examples:
34+
- |
35+
interrupt-controller@94000000 {
36+
compatible = "sophgo,sg2042-aclint-mswi", "thead,c900-aclint-mswi";
37+
interrupts-extended = <&cpu1intc 3>,
38+
<&cpu2intc 3>,
39+
<&cpu3intc 3>,
40+
<&cpu4intc 3>;
41+
reg = <0x94000000 0x00010000>;
42+
};
43+
...

Documentation/devicetree/bindings/riscv/cpus.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ properties:
4747
- sifive,u74-mc
4848
- thead,c906
4949
- thead,c910
50+
- thead,c920
5051
- const: riscv
5152
- items:
5253
- enum:
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/riscv/sophgo.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Sophgo SoC-based boards
8+
9+
maintainers:
10+
- Chao Wei <chao.wei@sophgo.com>
11+
- Chen Wang <unicorn_wang@outlook.com>
12+
13+
description:
14+
Sophgo SoC-based boards
15+
16+
properties:
17+
$nodename:
18+
const: '/'
19+
compatible:
20+
oneOf:
21+
- items:
22+
- enum:
23+
- milkv,duo
24+
- const: sophgo,cv1800b
25+
- items:
26+
- enum:
27+
- milkv,pioneer
28+
- const: sophgo,sg2042
29+
30+
additionalProperties: true
31+
32+
...

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ properties:
3737
- items:
3838
- enum:
3939
- allwinner,sun20i-d1-clint
40+
- sophgo,cv1800b-clint
4041
- thead,th1520-clint
4142
- const: thead,c900-clint
4243
- items:
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/timer/thead,c900-aclint-mtimer.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Sophgo CLINT Timer
8+
9+
maintainers:
10+
- Inochi Amaoto <inochiama@outlook.com>
11+
12+
properties:
13+
compatible:
14+
items:
15+
- enum:
16+
- sophgo,sg2042-aclint-mtimer
17+
- const: thead,c900-aclint-mtimer
18+
19+
reg:
20+
maxItems: 1
21+
22+
interrupts-extended:
23+
minItems: 1
24+
maxItems: 4095
25+
26+
additionalProperties: false
27+
28+
required:
29+
- compatible
30+
- reg
31+
- interrupts-extended
32+
33+
examples:
34+
- |
35+
timer@ac000000 {
36+
compatible = "sophgo,sg2042-aclint-mtimer", "thead,c900-aclint-mtimer";
37+
interrupts-extended = <&cpu1intc 7>,
38+
<&cpu2intc 7>,
39+
<&cpu3intc 7>,
40+
<&cpu4intc 7>;
41+
reg = <0xac000000 0x00010000>;
42+
};
43+
...

Documentation/devicetree/bindings/vendor-prefixes.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -877,6 +877,8 @@ patternProperties:
877877
description: MikroElektronika d.o.o.
878878
"^mikrotik,.*":
879879
description: MikroTik
880+
"^milkv,.*":
881+
description: MilkV Technology Co., Ltd
880882
"^miniand,.*":
881883
description: Miniand Tech
882884
"^minix,.*":
@@ -1287,6 +1289,8 @@ patternProperties:
12871289
description: Solomon Systech Limited
12881290
"^sony,.*":
12891291
description: Sony Corporation
1292+
"^sophgo,.*":
1293+
description: Sophgo Technology Inc.
12901294
"^sourceparts,.*":
12911295
description: Source Parts Inc.
12921296
"^spansion,.*":

MAINTAINERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20063,6 +20063,13 @@ F: drivers/char/sonypi.c
2006320063
F: drivers/platform/x86/sony-laptop.c
2006420064
F: include/linux/sony-laptop.h
2006520065

20066+
SOPHGO DEVICETREES
20067+
M: Chao Wei <chao.wei@sophgo.com>
20068+
M: Chen Wang <unicorn_wang@outlook.com>
20069+
S: Maintained
20070+
F: arch/riscv/boot/dts/sophgo/
20071+
F: Documentation/devicetree/bindings/riscv/sophgo.yaml
20072+
2006620073
SOUND
2006720074
M: Jaroslav Kysela <perex@perex.cz>
2006820075
M: Takashi Iwai <tiwai@suse.com>

arch/riscv/Kconfig.socs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ config SOC_SIFIVE
2222
help
2323
This enables support for SiFive SoC platform hardware.
2424

25+
config ARCH_SOPHGO
26+
bool "Sophgo SoCs"
27+
help
28+
This enables support for Sophgo SoC platform hardware.
29+
2530
config ARCH_STARFIVE
2631
def_bool SOC_STARFIVE
2732

arch/riscv/boot/dts/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ subdir-y += canaan
44
subdir-y += microchip
55
subdir-y += renesas
66
subdir-y += sifive
7+
subdir-y += sophgo
78
subdir-y += starfive
89
subdir-y += thead
910

0 commit comments

Comments
 (0)