Skip to content

Commit 0000099

Browse files
committed
Merge tag 'riscv-dt-for-v6.16' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux into soc/dt
RISC-V Devicetrees for v6.16 Starfive: All Starfive this time (again), enabling the usb3 port on the framework laptop mainboard, and a few cleanup patches that are syncing things with the dts used by U-Boot. Signed-off-by: Conor Dooley <[email protected]> * tag 'riscv-dt-for-v6.16' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux: riscv: dts: starfive: jh7110-common: bootph-pre-ram hinting needed by boot loader riscv: dts: starfive: jh7110-common: add eeprom node to i2c5 riscv: dts: starfive: jh7110-common: qspi flash setting read-delay 2 cycles max 100MHz riscv: dts: starfive: jh7110-common: add CPU BUS PERH QSPI clocks to syscrg riscv: dts: starfive: jh7110-common: use macros for MMC0 pins riscv: dts: starfive: fml13v01: enable USB 3.0 port Link: https://lore.kernel.org/r/20250516-gap-exploring-f8f516ab4e1c@spud Signed-off-by: Arnd Bergmann <[email protected]>
2 parents ced334a + d501087 commit 0000099

File tree

2 files changed

+57
-14
lines changed

2 files changed

+57
-14
lines changed

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

Lines changed: 38 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "jh7110.dtsi"
99
#include "jh7110-pinfunc.h"
1010
#include <dt-bindings/gpio/gpio.h>
11+
#include <dt-bindings/pinctrl/starfive,jh7110-pinctrl.h>
1112

1213
/ {
1314
aliases {
@@ -28,6 +29,7 @@
2829
memory@40000000 {
2930
device_type = "memory";
3031
reg = <0x0 0x40000000 0x1 0x0>;
32+
bootph-pre-ram;
3133
};
3234

3335
gpio-restart {
@@ -245,6 +247,13 @@
245247
};
246248
};
247249
};
250+
251+
eeprom@50 {
252+
compatible = "atmel,24c04";
253+
reg = <0x50>;
254+
bootph-pre-ram;
255+
pagesize = <16>;
256+
};
248257
};
249258

250259
&i2c6 {
@@ -262,6 +271,7 @@
262271
assigned-clocks = <&syscrg JH7110_SYSCLK_SDIO0_SDCARD>;
263272
assigned-clock-rates = <50000000>;
264273
bus-width = <8>;
274+
bootph-pre-ram;
265275
cap-mmc-highspeed;
266276
mmc-ddr-1_8v;
267277
mmc-hs200-1_8v;
@@ -279,6 +289,7 @@
279289
assigned-clocks = <&syscrg JH7110_SYSCLK_SDIO1_SDCARD>;
280290
assigned-clock-rates = <50000000>;
281291
bus-width = <4>;
292+
bootph-pre-ram;
282293
no-sdio;
283294
no-mmc;
284295
cd-gpios = <&sysgpio 41 GPIO_ACTIVE_LOW>;
@@ -317,8 +328,9 @@
317328
nor_flash: flash@0 {
318329
compatible = "jedec,spi-nor";
319330
reg = <0>;
320-
cdns,read-delay = <5>;
321-
spi-max-frequency = <12000000>;
331+
bootph-pre-ram;
332+
cdns,read-delay = <2>;
333+
spi-max-frequency = <100000000>;
322334
cdns,tshsl-ns = <1>;
323335
cdns,tsd2d-ns = <1>;
324336
cdns,tchsh-ns = <1>;
@@ -353,9 +365,17 @@
353365
};
354366

355367
&syscrg {
356-
assigned-clocks = <&syscrg JH7110_SYSCLK_CPU_CORE>,
368+
assigned-clocks = <&syscrg JH7110_SYSCLK_CPU_ROOT>,
369+
<&syscrg JH7110_SYSCLK_BUS_ROOT>,
370+
<&syscrg JH7110_SYSCLK_PERH_ROOT>,
371+
<&syscrg JH7110_SYSCLK_QSPI_REF>,
372+
<&syscrg JH7110_SYSCLK_CPU_CORE>,
357373
<&pllclk JH7110_PLLCLK_PLL0_OUT>;
358-
assigned-clock-rates = <500000000>, <1500000000>;
374+
assigned-clock-parents = <&pllclk JH7110_PLLCLK_PLL0_OUT>,
375+
<&pllclk JH7110_PLLCLK_PLL2_OUT>,
376+
<&pllclk JH7110_PLLCLK_PLL2_OUT>,
377+
<&syscrg JH7110_SYSCLK_QSPI_REF_SRC>;
378+
assigned-clock-rates = <0>, <0>, <0>, <0>, <500000000>, <1500000000>;
359379
};
360380

361381
&sysgpio {
@@ -388,6 +408,8 @@
388408
};
389409

390410
i2c5_pins: i2c5-0 {
411+
bootph-pre-ram;
412+
391413
i2c-pins {
392414
pinmux = <GPIOMUX(19, GPOUT_LOW,
393415
GPOEN_SYS_I2C5_CLK,
@@ -396,6 +418,7 @@
396418
GPOEN_SYS_I2C5_DATA,
397419
GPI_SYS_I2C5_DATA)>;
398420
bias-disable; /* external pull-up */
421+
bootph-pre-ram;
399422
input-enable;
400423
input-schmitt-enable;
401424
};
@@ -428,16 +451,16 @@
428451
};
429452

430453
mmc-pins {
431-
pinmux = <PINMUX(64, 0)>,
432-
<PINMUX(65, 0)>,
433-
<PINMUX(66, 0)>,
434-
<PINMUX(67, 0)>,
435-
<PINMUX(68, 0)>,
436-
<PINMUX(69, 0)>,
437-
<PINMUX(70, 0)>,
438-
<PINMUX(71, 0)>,
439-
<PINMUX(72, 0)>,
440-
<PINMUX(73, 0)>;
454+
pinmux = <PINMUX(PAD_SD0_CLK, 0)>,
455+
<PINMUX(PAD_SD0_CMD, 0)>,
456+
<PINMUX(PAD_SD0_DATA0, 0)>,
457+
<PINMUX(PAD_SD0_DATA1, 0)>,
458+
<PINMUX(PAD_SD0_DATA2, 0)>,
459+
<PINMUX(PAD_SD0_DATA3, 0)>,
460+
<PINMUX(PAD_SD0_DATA4, 0)>,
461+
<PINMUX(PAD_SD0_DATA5, 0)>,
462+
<PINMUX(PAD_SD0_DATA6, 0)>,
463+
<PINMUX(PAD_SD0_DATA7, 0)>;
441464
bias-pull-up;
442465
drive-strength = <12>;
443466
input-enable;
@@ -624,6 +647,7 @@
624647
};
625648

626649
&uart0 {
650+
bootph-pre-ram;
627651
pinctrl-names = "default";
628652
pinctrl-0 = <&uart0_pins>;
629653
status = "okay";

arch/riscv/boot/dts/starfive/jh7110-deepcomputing-fml13v01.dts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,28 @@
4343
slew-rate = <0>;
4444
};
4545
};
46+
47+
usb0_pins: usb0-0 {
48+
vbus-pins {
49+
pinmux = <GPIOMUX(25, GPOUT_SYS_USB_DRIVE_VBUS,
50+
GPOEN_ENABLE,
51+
GPI_NONE)>;
52+
bias-disable;
53+
input-disable;
54+
input-schmitt-disable;
55+
slew-rate = <0>;
56+
};
57+
};
4658
};
4759

4860
&usb0 {
4961
dr_mode = "host";
62+
pinctrl-names = "default";
63+
pinctrl-0 = <&usb0_pins>;
5064
status = "okay";
5165
};
66+
67+
&usb_cdns3 {
68+
phys = <&usbphy0>, <&pciephy0>;
69+
phy-names = "cdns3,usb2-phy", "cdns3,usb3-phy";
70+
};

0 commit comments

Comments
 (0)