Skip to content

Commit 6660a12

Browse files
committed
Merge tag 'riscv-dt-for-v6.13' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux into soc/dt
RISC-V Devicetrees for v6.13 StarFive: Support for the DeepComputing FML13V01, a Framework laptop compatible with a JH7110. This board is fairly different to the more standard SBCs offerings that the kernel already supports, so there's also some refactoring of jh7110-common.dtsi to move out nodes unused on the new board. Spacemit: A vendor prefix I grabbed from the basic support series, since its dependencies are not yet ready but peripheral drivers have started being merged. Signed-off-by: Conor Dooley <conor.dooley@microchip.com> * tag 'riscv-dt-for-v6.13' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux: riscv: dts: starfive: add DeepComputing FML13V01 board device tree dt-bindings: riscv: starfive: add deepcomputing,fml13v01 dt-bindings: vendor: add deepcomputing riscv: dts: starfive: jh7110-common: move usb0 config to board dts riscv: dts: starfive: jh7110-common: revised device node dt-bindings: vendor-prefixes: add spacemit Link: https://lore.kernel.org/r/20241108-washboard-material-6b9ff196063d@spud Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents 4c06765 + c8b72c3 commit 6660a12

8 files changed

Lines changed: 92 additions & 10 deletions

File tree

Documentation/devicetree/bindings/riscv/starfive.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ properties:
2626

2727
- items:
2828
- enum:
29+
- deepcomputing,fml13v01
2930
- milkv,mars
3031
- pine64,star64
3132
- starfive,visionfive-2-v1.2a

Documentation/devicetree/bindings/vendor-prefixes.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,8 @@ patternProperties:
358358
description: DataImage, Inc.
359359
"^davicom,.*":
360360
description: DAVICOM Semiconductor, Inc.
361+
"^deepcomputing,.*":
362+
description: DeepComputing (HK) Limited
361363
"^dell,.*":
362364
description: Dell Inc.
363365
"^delta,.*":
@@ -1390,6 +1392,8 @@ patternProperties:
13901392
description: Sophgo Technology Inc.
13911393
"^sourceparts,.*":
13921394
description: Source Parts Inc.
1395+
"^spacemit,.*":
1396+
description: SpacemiT (Hangzhou) Technology Co. Ltd
13931397
"^spansion,.*":
13941398
description: Spansion Inc.
13951399
"^sparkfun,.*":

arch/riscv/boot/dts/starfive/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ DTC_FLAGS_jh7110-starfive-visionfive-2-v1.3b := -@
88
dtb-$(CONFIG_ARCH_STARFIVE) += jh7100-beaglev-starlight.dtb
99
dtb-$(CONFIG_ARCH_STARFIVE) += jh7100-starfive-visionfive-v1.dtb
1010

11+
dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-deepcomputing-fml13v01.dtb
1112
dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-milkv-mars.dtb
1213
dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-pine64-star64.dtb
1314
dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-starfive-visionfive-2-v1.2a.dtb

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@
176176
&gmac0 {
177177
phy-handle = <&phy0>;
178178
phy-mode = "rgmii-id";
179-
status = "okay";
180179

181180
mdio {
182181
#address-cells = <1>;
@@ -196,7 +195,6 @@
196195
i2c-scl-falling-time-ns = <510>;
197196
pinctrl-names = "default";
198197
pinctrl-0 = <&i2c0_pins>;
199-
status = "okay";
200198
};
201199

202200
&i2c2 {
@@ -311,7 +309,6 @@
311309
&pwmdac {
312310
pinctrl-names = "default";
313311
pinctrl-0 = <&pwmdac_pins>;
314-
status = "okay";
315312
};
316313

317314
&qspi {
@@ -350,13 +347,11 @@
350347
&pwm {
351348
pinctrl-names = "default";
352349
pinctrl-0 = <&pwm_pins>;
353-
status = "okay";
354350
};
355351

356352
&spi0 {
357353
pinctrl-names = "default";
358354
pinctrl-0 = <&spi0_pins>;
359-
status = "okay";
360355

361356
spi_dev0: spi@0 {
362357
compatible = "rohm,dh2228fv";
@@ -642,11 +637,6 @@
642637
status = "okay";
643638
};
644639

645-
&usb0 {
646-
dr_mode = "peripheral";
647-
status = "okay";
648-
};
649-
650640
&U74_1 {
651641
cpu-supply = <&vdd_cpu>;
652642
};
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// SPDX-License-Identifier: GPL-2.0 OR MIT
2+
/*
3+
* Copyright (C) 2024 DeepComputing (HK) Limited
4+
*/
5+
6+
/dts-v1/;
7+
#include "jh7110-common.dtsi"
8+
9+
/ {
10+
model = "DeepComputing FML13V01";
11+
compatible = "deepcomputing,fml13v01", "starfive,jh7110";
12+
};
13+
14+
&usb0 {
15+
dr_mode = "host";
16+
status = "okay";
17+
};

arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
starfive,tx-use-rgmii-clk;
1616
assigned-clocks = <&aoncrg JH7110_AONCLK_GMAC0_TX>;
1717
assigned-clock-parents = <&aoncrg JH7110_AONCLK_GMAC0_RMII_RTX>;
18+
status = "okay";
19+
};
20+
21+
&i2c0 {
22+
status = "okay";
1823
};
1924

2025
&pcie0 {
@@ -35,3 +40,20 @@
3540
rx-internal-delay-ps = <1500>;
3641
tx-internal-delay-ps = <1500>;
3742
};
43+
44+
&pwm {
45+
status = "okay";
46+
};
47+
48+
&pwmdac {
49+
status = "okay";
50+
};
51+
52+
&spi0 {
53+
status = "okay";
54+
};
55+
56+
&usb0 {
57+
dr_mode = "peripheral";
58+
status = "okay";
59+
};

arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
starfive,tx-use-rgmii-clk;
1919
assigned-clocks = <&aoncrg JH7110_AONCLK_GMAC0_TX>;
2020
assigned-clock-parents = <&aoncrg JH7110_AONCLK_GMAC0_RMII_RTX>;
21+
status = "okay";
2122
};
2223

2324
&gmac1 {
@@ -39,6 +40,10 @@
3940
};
4041
};
4142

43+
&i2c0 {
44+
status = "okay";
45+
};
46+
4247
&pcie1 {
4348
status = "okay";
4449
};
@@ -63,3 +68,20 @@
6368
motorcomm,tx-clk-10-inverted;
6469
motorcomm,tx-clk-100-inverted;
6570
};
71+
72+
&pwm {
73+
status = "okay";
74+
};
75+
76+
&pwmdac {
77+
status = "okay";
78+
};
79+
80+
&spi0 {
81+
status = "okay";
82+
};
83+
84+
&usb0 {
85+
dr_mode = "peripheral";
86+
status = "okay";
87+
};

arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
};
1414
};
1515

16+
&gmac0 {
17+
status = "okay";
18+
};
19+
1620
&gmac1 {
1721
phy-handle = <&phy1>;
1822
phy-mode = "rgmii-id";
@@ -29,6 +33,10 @@
2933
};
3034
};
3135

36+
&i2c0 {
37+
status = "okay";
38+
};
39+
3240
&mmc0 {
3341
non-removable;
3442
};
@@ -40,3 +48,20 @@
4048
&pcie1 {
4149
status = "okay";
4250
};
51+
52+
&pwm {
53+
status = "okay";
54+
};
55+
56+
&pwmdac {
57+
status = "okay";
58+
};
59+
60+
&spi0 {
61+
status = "okay";
62+
};
63+
64+
&usb0 {
65+
dr_mode = "peripheral";
66+
status = "okay";
67+
};

0 commit comments

Comments
 (0)