ramips: dts: mt7621: add USB t-phy node

The USB t-phy driver includes some magic register init values. This
should be beneficial for the USB stability and performance.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/22094
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Shiji Yang 2026-02-19 19:57:18 +08:00 committed by Hauke Mehrtens
parent 45c818ff10
commit fcbaaddf08
41 changed files with 184 additions and 4 deletions

View File

@ -3,6 +3,7 @@
#include <dt-bindings/clock/mt7621-clk.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/mips-gic.h>
#include <dt-bindings/phy/phy.h>
#include <dt-bindings/reset/mt7621-reset.h>
/ {
@ -405,6 +406,10 @@
interrupt-parent = <&gic>;
interrupts = <GIC_SHARED 22 IRQ_TYPE_LEVEL_HIGH>;
phys = <&u2port0 PHY_TYPE_USB2>,
<&u3port0 PHY_TYPE_USB3>,
<&u2port1 PHY_TYPE_USB2>;
vbus-supply = <&reg_vbus>;
vusb33-supply = <&reg_vusb33>;
@ -428,6 +433,29 @@
};
};
usb_phy: t-phy@1e1d0000 {
compatible = "mediatek,generic-tphy-v1";
reg = <0x1e1d0000 0x0700>;
#address-cells = <1>;
#size-cells = <1>;
ranges;
u2port0: usb-phy@1e1d0800 {
reg = <0x1e1d0800 0x0100>;
#phy-cells = <1>;
};
u3port0: usb-phy@1e1d0900 {
reg = <0x1e1d0900 0x0700>;
#phy-cells = <1>;
};
u2port1: usb-phy@1e1d1000 {
reg = <0x1e1d1000 0x0100>;
#phy-cells = <1>;
};
};
gic: interrupt-controller@1fbc0000 {
compatible = "mti,gic";
reg = <0x1fbc0000 0x20000>;

View File

@ -16,6 +16,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -192,6 +192,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -184,6 +184,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -232,6 +232,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -182,6 +182,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -232,6 +232,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -258,6 +258,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -172,6 +172,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -238,6 +238,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -179,6 +179,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -205,6 +205,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -205,6 +205,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -198,6 +198,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -174,6 +174,10 @@
status = "okay";
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -225,6 +225,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -189,6 +189,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -173,6 +173,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -232,6 +232,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -229,6 +229,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -231,6 +231,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -208,6 +208,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -200,6 +200,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -212,6 +212,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -136,6 +136,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -184,6 +184,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -95,6 +95,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -242,6 +242,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -222,6 +222,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -173,6 +173,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -203,6 +203,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -193,6 +193,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -269,6 +269,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -223,6 +223,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -2193,10 +2193,6 @@
};
};
&xhci {
status = "okay";
};
&ethernet {
pinctrl-0 = <&mdio_pins>;
};

View File

@ -165,6 +165,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -151,6 +151,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -167,6 +167,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -178,6 +178,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -148,6 +148,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};

View File

@ -181,6 +181,10 @@
};
};
&usb_phy {
status = "disabled";
};
&xhci {
status = "disabled";
};