Skip to content

Commit 2400b24

Browse files
frank-wAngeloGioacchino Del Regno
authored andcommitted
arm64: dts: mediatek: mt7988: Add xsphy for ssusb0/pcie2
First usb and third pcie controller on mt7988 need a xs-phy to work properly. Signed-off-by: Frank Wunderlich <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: AngeloGioacchino Del Regno <[email protected]>
1 parent 97ba5f5 commit 2400b24

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

arch/arm64/boot/dts/mediatek/mt7988a.dtsi

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,8 @@
334334
<&infracfg CLK_INFRA_133M_USB_HCK>,
335335
<&infracfg CLK_INFRA_USB_XHCI>;
336336
clock-names = "sys_ck", "ref_ck", "mcu_ck", "dma_ck", "xhci_ck";
337+
phys = <&xphyu2port0 PHY_TYPE_USB2>,
338+
<&xphyu3port0 PHY_TYPE_USB3>;
337339
status = "disabled";
338340
};
339341

@@ -398,6 +400,9 @@
398400
pinctrl-0 = <&pcie2_pins>;
399401
status = "disabled";
400402

403+
phys = <&xphyu3port0 PHY_TYPE_PCIE>;
404+
phy-names = "pcie-phy";
405+
401406
#interrupt-cells = <1>;
402407
interrupt-map-mask = <0 0 0 0x7>;
403408
interrupt-map = <0 0 0 1 &pcie_intc2 0>,
@@ -548,6 +553,37 @@
548553
};
549554
};
550555

556+
557+
topmisc: system-controller@11d10084 {
558+
compatible = "mediatek,mt7988-topmisc",
559+
"syscon";
560+
reg = <0 0x11d10084 0 0xff80>;
561+
};
562+
563+
xs-phy@11e10000 {
564+
compatible = "mediatek,mt7988-xsphy",
565+
"mediatek,xsphy";
566+
#address-cells = <2>;
567+
#size-cells = <2>;
568+
ranges;
569+
status = "disabled";
570+
571+
xphyu2port0: usb-phy@11e10000 {
572+
reg = <0 0x11e10000 0 0x400>;
573+
clocks = <&infracfg CLK_INFRA_USB_UTMI>;
574+
clock-names = "ref";
575+
#phy-cells = <1>;
576+
};
577+
578+
xphyu3port0: usb-phy@11e13000 {
579+
reg = <0 0x11e13400 0 0x500>;
580+
clocks = <&infracfg CLK_INFRA_USB_PIPE>;
581+
clock-names = "ref";
582+
#phy-cells = <1>;
583+
mediatek,syscon-type = <&topmisc 0x194 0>;
584+
};
585+
};
586+
551587
clock-controller@11f40000 {
552588
compatible = "mediatek,mt7988-xfi-pll";
553589
reg = <0 0x11f40000 0 0x1000>;

0 commit comments

Comments
 (0)