Skip to content

Commit ecd2dc2

Browse files
committed
Merge tag 'riscv-dt-for-v6.6-pt2' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux into soc/dt
RISC-V Devicetrees for v6.6 Part 2 T-Head: Add a second minimal devicetree for the second board using the th1520 SoC, the BeagleV Ahead. As with the Lichee Pi 4a, this is sufficient only for booting to a console, with work on the mmc, clocks and ethernet sides of things under way. A relicense to a dual licence for the existing devicetree files is also done, for good measure. RISC-V Devicetrees for v6.6-pt2 StarFive: Fix the sort order of some nodes that I resolved incorrectly during a merge conflict. Signed-off-by: Conor Dooley <conor.dooley@microchip.com> * tag 'riscv-dt-for-v6.6-pt2' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux: riscv: dts: change TH1520 files to dual license riscv: dts: thead: add BeagleV Ahead board device tree dt-bindings: riscv: Add BeagleV Ahead board compatibles riscv: dts: starfive: fix jh7110 qspi sort order Link: https://lore.kernel.org/r/20230819-unwieldy-railing-9bba2b176aa7@spud Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents 6522fbd + a3ce3ff commit ecd2dc2

File tree

7 files changed

+88
-23
lines changed

7 files changed

+88
-23
lines changed

Documentation/devicetree/bindings/riscv/thead.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ properties:
1717
const: '/'
1818
compatible:
1919
oneOf:
20+
- description: BeagleV Ahead single board computer
21+
items:
22+
- const: beagle,beaglev-ahead
23+
- const: thead,th1520
2024
- description: Sipeed Lichee Pi 4A board for the Sipeed Lichee Module 4A
2125
items:
2226
- enum:

arch/riscv/boot/dts/starfive/jh7110.dtsi

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -676,25 +676,6 @@
676676
status = "disabled";
677677
};
678678

679-
qspi: spi@13010000 {
680-
compatible = "starfive,jh7110-qspi", "cdns,qspi-nor";
681-
reg = <0x0 0x13010000 0x0 0x10000>,
682-
<0x0 0x21000000 0x0 0x400000>;
683-
interrupts = <25>;
684-
clocks = <&syscrg JH7110_SYSCLK_QSPI_REF>,
685-
<&syscrg JH7110_SYSCLK_QSPI_AHB>,
686-
<&syscrg JH7110_SYSCLK_QSPI_APB>;
687-
clock-names = "ref", "ahb", "apb";
688-
resets = <&syscrg JH7110_SYSRST_QSPI_APB>,
689-
<&syscrg JH7110_SYSRST_QSPI_AHB>,
690-
<&syscrg JH7110_SYSRST_QSPI_REF>;
691-
reset-names = "qspi", "qspi-ocp", "rstc_ref";
692-
cdns,fifo-depth = <256>;
693-
cdns,fifo-width = <4>;
694-
cdns,trigger-address = <0x0>;
695-
status = "disabled";
696-
};
697-
698679
spi3: spi@12070000 {
699680
compatible = "arm,pl022", "arm,primecell";
700681
reg = <0x0 0x12070000 0x0 0x10000>;
@@ -767,6 +748,25 @@
767748
#thermal-sensor-cells = <0>;
768749
};
769750

751+
qspi: spi@13010000 {
752+
compatible = "starfive,jh7110-qspi", "cdns,qspi-nor";
753+
reg = <0x0 0x13010000 0x0 0x10000>,
754+
<0x0 0x21000000 0x0 0x400000>;
755+
interrupts = <25>;
756+
clocks = <&syscrg JH7110_SYSCLK_QSPI_REF>,
757+
<&syscrg JH7110_SYSCLK_QSPI_AHB>,
758+
<&syscrg JH7110_SYSCLK_QSPI_APB>;
759+
clock-names = "ref", "ahb", "apb";
760+
resets = <&syscrg JH7110_SYSRST_QSPI_APB>,
761+
<&syscrg JH7110_SYSRST_QSPI_AHB>,
762+
<&syscrg JH7110_SYSRST_QSPI_REF>;
763+
reset-names = "qspi", "qspi-ocp", "rstc_ref";
764+
cdns,fifo-depth = <256>;
765+
cdns,fifo-width = <4>;
766+
cdns,trigger-address = <0x0>;
767+
status = "disabled";
768+
};
769+
770770
syscrg: clock-controller@13020000 {
771771
compatible = "starfive,jh7110-syscrg";
772772
reg = <0x0 0x13020000 0x0 0x10000>;

arch/riscv/boot/dts/thead/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
dtb-$(CONFIG_ARCH_THEAD) += th1520-lichee-pi-4a.dtb
2+
dtb-$(CONFIG_ARCH_THEAD) += th1520-lichee-pi-4a.dtb th1520-beaglev-ahead.dtb
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2+
/*
3+
* Copyright (C) 2023 Jisheng Zhang <jszhang@kernel.org>
4+
* Copyright (C) 2023 Drew Fustini <dfustini@baylibre.com>
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include "th1520.dtsi"
10+
11+
/ {
12+
model = "BeagleV Ahead";
13+
compatible = "beagle,beaglev-ahead", "thead,th1520";
14+
15+
aliases {
16+
gpio0 = &gpio0;
17+
gpio1 = &gpio1;
18+
gpio2 = &gpio2;
19+
gpio3 = &gpio3;
20+
serial0 = &uart0;
21+
serial1 = &uart1;
22+
serial2 = &uart2;
23+
serial3 = &uart3;
24+
serial4 = &uart4;
25+
serial5 = &uart5;
26+
};
27+
28+
chosen {
29+
stdout-path = "serial0:115200n8";
30+
};
31+
32+
memory@0 {
33+
device_type = "memory";
34+
reg = <0x0 0x00000000 0x1 0x00000000>;
35+
36+
};
37+
};
38+
39+
&osc {
40+
clock-frequency = <24000000>;
41+
};
42+
43+
&osc_32k {
44+
clock-frequency = <32768>;
45+
};
46+
47+
&apb_clk {
48+
clock-frequency = <62500000>;
49+
};
50+
51+
&uart_sclk {
52+
clock-frequency = <100000000>;
53+
};
54+
55+
&dmac0 {
56+
status = "okay";
57+
};
58+
59+
&uart0 {
60+
status = "okay";
61+
};

arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-License-Identifier: GPL-2.0
1+
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
22
/*
33
* Copyright (C) 2023 Jisheng Zhang <jszhang@kernel.org>
44
*/

arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-License-Identifier: GPL-2.0
1+
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
22
/*
33
* Copyright (C) 2023 Jisheng Zhang <jszhang@kernel.org>
44
*/

arch/riscv/boot/dts/thead/th1520.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-License-Identifier: GPL-2.0
1+
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
22
/*
33
* Copyright (C) 2021 Alibaba Group Holding Limited.
44
* Copyright (C) 2023 Jisheng Zhang <jszhang@kernel.org>

0 commit comments

Comments
 (0)