Skip to content

Commit 9b418a3

Browse files
committed
Merge tag 'anlogic-initial-6.19-v2' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux into soc/newsoc
Initial Anlogic Platform Support Add bindings for the serial and timer peripherals, and a basic soc dtsi for the Anlogic dr1v90 SoC. The Milianke MLKPAI FS01 is the first board for this SoC. Add myself as maintainer for this platform for the time being. Signed-off-by: Conor Dooley <conor.dooley@microchip.com> * tag 'anlogic-initial-6.19-v2' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux: MAINTAINERS: Setup support for Anlogic tree riscv: defconfig: Enable Anlogic SoC riscv: dts: anlogic: Add Milianke MLKPAI FS01 board riscv: dts: Add initial Anlogic DR1V90 SoC device tree riscv: Add Anlogic SoC famly Kconfig support dt-bindings: serial: snps-dw-apb-uart: Add Anlogic DR1V90 uart dt-bindings: timer: Add Anlogic DR1V90 ACLINT MTIMER dt-bindings: riscv: Add Anlogic DR1V90 dt-bindings: riscv: Add Nuclei UX900 compatibles dt-bindings: vendor-prefixes: Add Anlogic, Milianke and Nuclei
2 parents c5dc31b + d5c3f49 commit 9b418a3

12 files changed

Lines changed: 191 additions & 6 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/riscv/anlogic.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Anlogic SoC-based boards
8+
9+
maintainers:
10+
- Junhui Liu <junhui.liu@pigmoral.tech>
11+
12+
description:
13+
Anlogic SoC-based boards
14+
15+
properties:
16+
$nodename:
17+
const: '/'
18+
compatible:
19+
oneOf:
20+
- items:
21+
- enum:
22+
- milianke,mlkpai-fs01
23+
- const: anlogic,dr1v90
24+
25+
additionalProperties: true
26+
27+
...

Documentation/devicetree/bindings/riscv/cpus.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ properties:
4848
- amd,mbv64
4949
- andestech,ax45mp
5050
- canaan,k210
51+
- nuclei,ux900
5152
- sifive,bullet0
5253
- sifive,e5
5354
- sifive,e7

Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ properties:
5151
- const: renesas,rzn1-uart
5252
- items:
5353
- enum:
54+
- anlogic,dr1v90-uart
5455
- brcm,bcm11351-dw-apb-uart
5556
- brcm,bcm21664-dw-apb-uart
5657
- rockchip,px30-uart

Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,23 @@
44
$id: http://devicetree.org/schemas/timer/thead,c900-aclint-mtimer.yaml#
55
$schema: http://devicetree.org/meta-schemas/core.yaml#
66

7-
title: Sophgo CLINT Timer
7+
title: ACLINT Machine-level Timer Device
88

99
maintainers:
1010
- Inochi Amaoto <inochiama@outlook.com>
1111

1212
properties:
1313
compatible:
14-
items:
15-
- enum:
16-
- sophgo,sg2042-aclint-mtimer
17-
- sophgo,sg2044-aclint-mtimer
18-
- const: thead,c900-aclint-mtimer
14+
oneOf:
15+
- items:
16+
- enum:
17+
- sophgo,sg2042-aclint-mtimer
18+
- sophgo,sg2044-aclint-mtimer
19+
- const: thead,c900-aclint-mtimer
20+
- items:
21+
- enum:
22+
- anlogic,dr1v90-aclint-mtimer
23+
- const: nuclei,ux900-aclint-mtimer
1924

2025
reg:
2126
items:

Documentation/devicetree/bindings/vendor-prefixes.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ patternProperties:
132132
description: Anbernic
133133
"^andestech,.*":
134134
description: Andes Technology Corporation
135+
"^anlogic,.*":
136+
description: Shanghai Anlogic Infotech Co., Ltd.
135137
"^anvo,.*":
136138
description: Anvo-Systems Dresden GmbH
137139
"^aoly,.*":
@@ -1025,6 +1027,8 @@ patternProperties:
10251027
description: MikroElektronika d.o.o.
10261028
"^mikrotik,.*":
10271029
description: MikroTik
1030+
"^milianke,.*":
1031+
description: Changzhou Milianke Electronic Technology Co., Ltd
10281032
"^milkv,.*":
10291033
description: MilkV Technology Co., Ltd
10301034
"^miniand,.*":
@@ -1142,6 +1146,8 @@ patternProperties:
11421146
description: Novatek
11431147
"^novtech,.*":
11441148
description: NovTech, Inc.
1149+
"^nuclei,.*":
1150+
description: Nuclei System Technology
11451151
"^numonyx,.*":
11461152
description: Numonyx (deprecated, use micron)
11471153
deprecated: true

MAINTAINERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22089,6 +22089,14 @@ F: Documentation/devicetree/bindings/riscv/andes.yaml
2208922089
F: Documentation/devicetree/bindings/timer/andestech,plmt0.yaml
2209022090
F: arch/riscv/boot/dts/andes/
2209122091

22092+
RISC-V ANLOGIC SoC SUPPORT
22093+
M: Conor Dooley <conor@kernel.org>
22094+
T: git https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux.git/
22095+
L: linux-riscv@lists.infradead.org
22096+
S: Odd Fixes
22097+
F: Documentation/devicetree/bindings/riscv/anlogic.yaml
22098+
F: arch/riscv/boot/dts/anlogic/
22099+
2209222100
RISC-V ARCHITECTURE
2209322101
M: Paul Walmsley <pjw@kernel.org>
2209422102
M: Palmer Dabbelt <palmer@dabbelt.com>

arch/riscv/Kconfig.socs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ config ARCH_ANDES
77
help
88
This enables support for Andes SoC platform hardware.
99

10+
config ARCH_ANLOGIC
11+
bool "Anlogic SoCs"
12+
help
13+
This enables support for Anlogic SoC platform hardware.
14+
1015
config ARCH_ESWIN
1116
bool "ESWIN SoCs"
1217
help

arch/riscv/boot/dts/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22
subdir-y += allwinner
33
subdir-y += andes
4+
subdir-y += anlogic
45
subdir-y += canaan
56
subdir-y += eswin
67
subdir-y += microchip
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_ANLOGIC) += dr1v90-mlkpai-fs01.dtb
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 OR MIT
2+
/*
3+
* Copyright (C) 2025 Junhui Liu <junhui.liu@pigmoral.tech>
4+
*/
5+
6+
#include "dr1v90.dtsi"
7+
8+
/ {
9+
model = "Milianke MLKPAI-FS01";
10+
compatible = "milianke,mlkpai-fs01", "anlogic,dr1v90";
11+
12+
aliases {
13+
serial0 = &uart1;
14+
};
15+
16+
chosen {
17+
stdout-path = "serial0:115200n8";
18+
};
19+
20+
memory@0 {
21+
device_type = "memory";
22+
reg = <0x0 0x0 0x0 0x20000000>;
23+
};
24+
};
25+
26+
&uart1 {
27+
status = "okay";
28+
};

0 commit comments

Comments
 (0)