Skip to content

Commit a684cb4

Browse files
sremmind
authored andcommitted
arm64: dts: rockchip: add USB2 support for rk3588
This adds USB2 (EHCI & OHCI) ports including the related PHYs and GRF modules to the rk3588(s) device tree. Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com> Link: https://lore.kernel.org/r/20230712165106.65603-2-sebastian.reichel@collabora.com Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent 9b9fb10 commit a684cb4

1 file changed

Lines changed: 94 additions & 0 deletions

File tree

arch/arm64/boot/dts/rockchip/rk3588s.dtsi

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,50 @@
399399
};
400400
};
401401

402+
usb_host0_ehci: usb@fc800000 {
403+
compatible = "rockchip,rk3588-ehci", "generic-ehci";
404+
reg = <0x0 0xfc800000 0x0 0x40000>;
405+
interrupts = <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH 0>;
406+
clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST_ARB0>, <&cru ACLK_USB>, <&u2phy2>;
407+
phys = <&u2phy2_host>;
408+
phy-names = "usb";
409+
power-domains = <&power RK3588_PD_USB>;
410+
status = "disabled";
411+
};
412+
413+
usb_host0_ohci: usb@fc840000 {
414+
compatible = "rockchip,rk3588-ohci", "generic-ohci";
415+
reg = <0x0 0xfc840000 0x0 0x40000>;
416+
interrupts = <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH 0>;
417+
clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST_ARB0>, <&cru ACLK_USB>, <&u2phy2>;
418+
phys = <&u2phy2_host>;
419+
phy-names = "usb";
420+
power-domains = <&power RK3588_PD_USB>;
421+
status = "disabled";
422+
};
423+
424+
usb_host1_ehci: usb@fc880000 {
425+
compatible = "rockchip,rk3588-ehci", "generic-ehci";
426+
reg = <0x0 0xfc880000 0x0 0x40000>;
427+
interrupts = <GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH 0>;
428+
clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST_ARB1>, <&cru ACLK_USB>, <&u2phy3>;
429+
phys = <&u2phy3_host>;
430+
phy-names = "usb";
431+
power-domains = <&power RK3588_PD_USB>;
432+
status = "disabled";
433+
};
434+
435+
usb_host1_ohci: usb@fc8c0000 {
436+
compatible = "rockchip,rk3588-ohci", "generic-ohci";
437+
reg = <0x0 0xfc8c0000 0x0 0x40000>;
438+
interrupts = <GIC_SPI 219 IRQ_TYPE_LEVEL_HIGH 0>;
439+
clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST_ARB1>, <&cru ACLK_USB>, <&u2phy3>;
440+
phys = <&u2phy3_host>;
441+
phy-names = "usb";
442+
power-domains = <&power RK3588_PD_USB>;
443+
status = "disabled";
444+
};
445+
402446
sys_grf: syscon@fd58c000 {
403447
compatible = "rockchip,rk3588-sys-grf", "syscon";
404448
reg = <0x0 0xfd58c000 0x0 0x1000>;
@@ -419,6 +463,56 @@
419463
reg = <0x0 0xfd5c4000 0x0 0x100>;
420464
};
421465

466+
usb2phy2_grf: syscon@fd5d8000 {
467+
compatible = "rockchip,rk3588-usb2phy-grf", "syscon", "simple-mfd";
468+
reg = <0x0 0xfd5d8000 0x0 0x4000>;
469+
#address-cells = <1>;
470+
#size-cells = <1>;
471+
472+
u2phy2: usb2-phy@8000 {
473+
compatible = "rockchip,rk3588-usb2phy";
474+
reg = <0x8000 0x10>;
475+
interrupts = <GIC_SPI 391 IRQ_TYPE_LEVEL_HIGH 0>;
476+
resets = <&cru SRST_OTGPHY_U2_0>, <&cru SRST_P_USB2PHY_U2_0_GRF0>;
477+
reset-names = "phy", "apb";
478+
clocks = <&cru CLK_USB2PHY_HDPTXRXPHY_REF>;
479+
clock-names = "phyclk";
480+
clock-output-names = "usb480m_phy2";
481+
#clock-cells = <0>;
482+
status = "disabled";
483+
484+
u2phy2_host: host-port {
485+
#phy-cells = <0>;
486+
status = "disabled";
487+
};
488+
};
489+
};
490+
491+
usb2phy3_grf: syscon@fd5dc000 {
492+
compatible = "rockchip,rk3588-usb2phy-grf", "syscon", "simple-mfd";
493+
reg = <0x0 0xfd5dc000 0x0 0x4000>;
494+
#address-cells = <1>;
495+
#size-cells = <1>;
496+
497+
u2phy3: usb2-phy@c000 {
498+
compatible = "rockchip,rk3588-usb2phy";
499+
reg = <0xc000 0x10>;
500+
interrupts = <GIC_SPI 392 IRQ_TYPE_LEVEL_HIGH 0>;
501+
resets = <&cru SRST_OTGPHY_U2_1>, <&cru SRST_P_USB2PHY_U2_1_GRF0>;
502+
reset-names = "phy", "apb";
503+
clocks = <&cru CLK_USB2PHY_HDPTXRXPHY_REF>;
504+
clock-names = "phyclk";
505+
clock-output-names = "usb480m_phy3";
506+
#clock-cells = <0>;
507+
status = "disabled";
508+
509+
u2phy3_host: host-port {
510+
#phy-cells = <0>;
511+
status = "disabled";
512+
};
513+
};
514+
};
515+
422516
ioc: syscon@fd5f0000 {
423517
compatible = "rockchip,rk3588-ioc", "syscon";
424518
reg = <0x0 0xfd5f0000 0x0 0x10000>;

0 commit comments

Comments
 (0)