Skip to content

Commit e126aa3

Browse files
mindachen1987ConchuOD
authored andcommitted
riscv: dts: starfive: Add USB dts node for JH7110
Add USB wrapper layer and Cadence USB3 controller dts configuration for StarFive JH7110 SoC and VisionFive2 Board. Signed-off-by: Minda Chen <[email protected]> Signed-off-by: Conor Dooley <[email protected]>
1 parent c2a1008 commit e126aa3

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,11 @@
273273
status = "okay";
274274
};
275275

276+
&usb0 {
277+
dr_mode = "peripheral";
278+
status = "okay";
279+
};
280+
276281
&U74_1 {
277282
cpu-supply = <&vdd_cpu>;
278283
};

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,38 @@
446446
status = "disabled";
447447
};
448448

449+
usb0: usb@10100000 {
450+
compatible = "starfive,jh7110-usb";
451+
ranges = <0x0 0x0 0x10100000 0x100000>;
452+
#address-cells = <1>;
453+
#size-cells = <1>;
454+
starfive,stg-syscon = <&stg_syscon 0x4>;
455+
clocks = <&stgcrg JH7110_STGCLK_USB0_LPM>,
456+
<&stgcrg JH7110_STGCLK_USB0_STB>,
457+
<&stgcrg JH7110_STGCLK_USB0_APB>,
458+
<&stgcrg JH7110_STGCLK_USB0_AXI>,
459+
<&stgcrg JH7110_STGCLK_USB0_UTMI_APB>;
460+
clock-names = "lpm", "stb", "apb", "axi", "utmi_apb";
461+
resets = <&stgcrg JH7110_STGRST_USB0_PWRUP>,
462+
<&stgcrg JH7110_STGRST_USB0_APB>,
463+
<&stgcrg JH7110_STGRST_USB0_AXI>,
464+
<&stgcrg JH7110_STGRST_USB0_UTMI_APB>;
465+
reset-names = "pwrup", "apb", "axi", "utmi_apb";
466+
status = "disabled";
467+
468+
usb_cdns3: usb@0 {
469+
compatible = "cdns,usb3";
470+
reg = <0x0 0x10000>,
471+
<0x10000 0x10000>,
472+
<0x20000 0x10000>;
473+
reg-names = "otg", "xhci", "dev";
474+
interrupts = <100>, <108>, <110>;
475+
interrupt-names = "host", "peripheral", "otg";
476+
phys = <&usbphy0>;
477+
phy-names = "cdns3,usb2-phy";
478+
};
479+
};
480+
449481
usbphy0: phy@10200000 {
450482
compatible = "starfive,jh7110-usb-phy";
451483
reg = <0x0 0x10200000 0x0 0x10000>;

0 commit comments

Comments
 (0)