From: Shiji Yang Date: Thu, 19 Feb 2026 11:57:18 +0000 (+0800) Subject: ramips: dts: mt7621: add USB t-phy node X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fcbaaddf088a00f038fcb57c63cc3cdc2c2371a6;p=thirdparty%2Fopenwrt.git 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 Link: https://github.com/openwrt/openwrt/pull/22094 Signed-off-by: Hauke Mehrtens --- diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts/mt7621.dtsi index 450e8b0afc8..dd21f13a32a 100644 --- a/target/linux/ramips/dts/mt7621.dtsi +++ b/target/linux/ramips/dts/mt7621.dtsi @@ -3,6 +3,7 @@ #include #include #include +#include #include / { @@ -405,6 +406,10 @@ interrupt-parent = <&gic>; interrupts = ; + phys = <&u2port0 PHY_TYPE_USB2>, + <&u3port0 PHY_TYPE_USB3>, + <&u2port1 PHY_TYPE_USB2>; + vbus-supply = <®_vbus>; vusb33-supply = <®_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>; diff --git a/target/linux/ramips/dts/mt7621_ampedwireless_ally-00x19k.dts b/target/linux/ramips/dts/mt7621_ampedwireless_ally-00x19k.dts index 51d41c7fb40..e25444d7f0b 100644 --- a/target/linux/ramips/dts/mt7621_ampedwireless_ally-00x19k.dts +++ b/target/linux/ramips/dts/mt7621_ampedwireless_ally-00x19k.dts @@ -16,6 +16,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_arcadyan_we410443.dts b/target/linux/ramips/dts/mt7621_arcadyan_we410443.dts index 734a9ff490a..ad261d77efc 100644 --- a/target/linux/ramips/dts/mt7621_arcadyan_we410443.dts +++ b/target/linux/ramips/dts/mt7621_arcadyan_we410443.dts @@ -192,6 +192,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_arcadyan_we420223-99.dts b/target/linux/ramips/dts/mt7621_arcadyan_we420223-99.dts index 0b314cc38d0..04a5396b52c 100644 --- a/target/linux/ramips/dts/mt7621_arcadyan_we420223-99.dts +++ b/target/linux/ramips/dts/mt7621_arcadyan_we420223-99.dts @@ -184,6 +184,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_asus_rp-ac56.dts b/target/linux/ramips/dts/mt7621_asus_rp-ac56.dts index 617624f4c2e..3aaac5a0c89 100644 --- a/target/linux/ramips/dts/mt7621_asus_rp-ac56.dts +++ b/target/linux/ramips/dts/mt7621_asus_rp-ac56.dts @@ -232,6 +232,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_asus_rp-ac87.dts b/target/linux/ramips/dts/mt7621_asus_rp-ac87.dts index 02c19bd1c68..033e6a8b2d0 100644 --- a/target/linux/ramips/dts/mt7621_asus_rp-ac87.dts +++ b/target/linux/ramips/dts/mt7621_asus_rp-ac87.dts @@ -182,6 +182,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_buffalo_wsr-1166dhp.dts b/target/linux/ramips/dts/mt7621_buffalo_wsr-1166dhp.dts index 859d95b6a4b..b239bfe9693 100644 --- a/target/linux/ramips/dts/mt7621_buffalo_wsr-1166dhp.dts +++ b/target/linux/ramips/dts/mt7621_buffalo_wsr-1166dhp.dts @@ -232,6 +232,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts b/target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts index fe6fc6aab5c..54dfcf02368 100644 --- a/target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts +++ b/target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts @@ -258,6 +258,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhplx.dtsi b/target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhplx.dtsi index d3ca47f1704..1a26c21287c 100644 --- a/target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhplx.dtsi +++ b/target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhplx.dtsi @@ -172,6 +172,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts b/target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts index 9b95525020d..7540e926888 100644 --- a/target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts +++ b/target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts @@ -238,6 +238,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_edimax_re23s.dts b/target/linux/ramips/dts/mt7621_edimax_re23s.dts index 00a746f579b..295947f4b59 100644 --- a/target/linux/ramips/dts/mt7621_edimax_re23s.dts +++ b/target/linux/ramips/dts/mt7621_edimax_re23s.dts @@ -179,6 +179,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi b/target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi index 3a235070bf3..273b977be83 100644 --- a/target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi +++ b/target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi @@ -205,6 +205,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts b/target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts index 503ec40b50f..127e2ee749c 100644 --- a/target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts +++ b/target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts @@ -205,6 +205,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_elecom_wrc-2533ghbk.dtsi b/target/linux/ramips/dts/mt7621_elecom_wrc-2533ghbk.dtsi index 545a2031b8f..8df7335d619 100644 --- a/target/linux/ramips/dts/mt7621_elecom_wrc-2533ghbk.dtsi +++ b/target/linux/ramips/dts/mt7621_elecom_wrc-2533ghbk.dtsi @@ -198,6 +198,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_elecom_wrc-gs.dtsi b/target/linux/ramips/dts/mt7621_elecom_wrc-gs.dtsi index 4b61b9faf29..9b2f313e9f0 100644 --- a/target/linux/ramips/dts/mt7621_elecom_wrc-gs.dtsi +++ b/target/linux/ramips/dts/mt7621_elecom_wrc-gs.dtsi @@ -174,6 +174,10 @@ status = "okay"; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_elecom_wxc-x1800gsx.dtsi b/target/linux/ramips/dts/mt7621_elecom_wxc-x1800gsx.dtsi index 91cc3f99521..8d5077b0081 100644 --- a/target/linux/ramips/dts/mt7621_elecom_wxc-x1800gsx.dtsi +++ b/target/linux/ramips/dts/mt7621_elecom_wxc-x1800gsx.dtsi @@ -225,6 +225,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_h3c_tx180x.dtsi b/target/linux/ramips/dts/mt7621_h3c_tx180x.dtsi index 31347723cf2..13100cc12f9 100644 --- a/target/linux/ramips/dts/mt7621_h3c_tx180x.dtsi +++ b/target/linux/ramips/dts/mt7621_h3c_tx180x.dtsi @@ -189,6 +189,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_haier-sim_wr1800k.dtsi b/target/linux/ramips/dts/mt7621_haier-sim_wr1800k.dtsi index cb050c90d49..33dc9cbf1cf 100644 --- a/target/linux/ramips/dts/mt7621_haier-sim_wr1800k.dtsi +++ b/target/linux/ramips/dts/mt7621_haier-sim_wr1800k.dtsi @@ -173,6 +173,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts b/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts index ffafb031b5d..b2c772c0d49 100644 --- a/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts +++ b/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts @@ -232,6 +232,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_iodata_wn-deax1800gr.dts b/target/linux/ramips/dts/mt7621_iodata_wn-deax1800gr.dts index 86d8a93da61..f9313c620cc 100644 --- a/target/linux/ramips/dts/mt7621_iodata_wn-deax1800gr.dts +++ b/target/linux/ramips/dts/mt7621_iodata_wn-deax1800gr.dts @@ -229,6 +229,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_iodata_wn-dx1200gr.dts b/target/linux/ramips/dts/mt7621_iodata_wn-dx1200gr.dts index bcb7e576786..2e21808ee90 100644 --- a/target/linux/ramips/dts/mt7621_iodata_wn-dx1200gr.dts +++ b/target/linux/ramips/dts/mt7621_iodata_wn-dx1200gr.dts @@ -231,6 +231,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts b/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts index d6c3fcf42a8..dac78cebb3e 100644 --- a/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts +++ b/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts @@ -208,6 +208,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_iodata_wn-xx-xr.dtsi b/target/linux/ramips/dts/mt7621_iodata_wn-xx-xr.dtsi index 07187d8bfed..2df00a17457 100644 --- a/target/linux/ramips/dts/mt7621_iodata_wn-xx-xr.dtsi +++ b/target/linux/ramips/dts/mt7621_iodata_wn-xx-xr.dtsi @@ -200,6 +200,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_iodata_wnpr2600g.dts b/target/linux/ramips/dts/mt7621_iodata_wnpr2600g.dts index e322e4efdbb..d0eb0d51fca 100644 --- a/target/linux/ramips/dts/mt7621_iodata_wnpr2600g.dts +++ b/target/linux/ramips/dts/mt7621_iodata_wnpr2600g.dts @@ -212,6 +212,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_iptime_t5004.dts b/target/linux/ramips/dts/mt7621_iptime_t5004.dts index 19c72884b4e..f5b7967ac68 100644 --- a/target/linux/ramips/dts/mt7621_iptime_t5004.dts +++ b/target/linux/ramips/dts/mt7621_iptime_t5004.dts @@ -136,6 +136,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_jdcloud_re-cp-02.dts b/target/linux/ramips/dts/mt7621_jdcloud_re-cp-02.dts index cd429cbf4d6..9524472ff18 100644 --- a/target/linux/ramips/dts/mt7621_jdcloud_re-cp-02.dts +++ b/target/linux/ramips/dts/mt7621_jdcloud_re-cp-02.dts @@ -184,6 +184,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_keenetic_kn-3010.dts b/target/linux/ramips/dts/mt7621_keenetic_kn-3010.dts index 6ee20c29c5f..c83f160c4f1 100644 --- a/target/linux/ramips/dts/mt7621_keenetic_kn-3010.dts +++ b/target/linux/ramips/dts/mt7621_keenetic_kn-3010.dts @@ -95,6 +95,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_keenetic_kn-3510.dts b/target/linux/ramips/dts/mt7621_keenetic_kn-3510.dts index 5a647d75e82..f4aa2dd61bf 100644 --- a/target/linux/ramips/dts/mt7621_keenetic_kn-3510.dts +++ b/target/linux/ramips/dts/mt7621_keenetic_kn-3510.dts @@ -242,6 +242,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_linksys_e5600.dts b/target/linux/ramips/dts/mt7621_linksys_e5600.dts index d44565c60c2..823da45c16f 100644 --- a/target/linux/ramips/dts/mt7621_linksys_e5600.dts +++ b/target/linux/ramips/dts/mt7621_linksys_e5600.dts @@ -222,6 +222,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_linksys_re6500.dts b/target/linux/ramips/dts/mt7621_linksys_re6500.dts index 3eb5f1dc68a..606c0419c0a 100644 --- a/target/linux/ramips/dts/mt7621_linksys_re6500.dts +++ b/target/linux/ramips/dts/mt7621_linksys_re6500.dts @@ -173,6 +173,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_netgear_eax12.dts b/target/linux/ramips/dts/mt7621_netgear_eax12.dts index e467783ad1b..ea87b9ca8d6 100644 --- a/target/linux/ramips/dts/mt7621_netgear_eax12.dts +++ b/target/linux/ramips/dts/mt7621_netgear_eax12.dts @@ -203,6 +203,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_netgear_wac104.dts b/target/linux/ramips/dts/mt7621_netgear_wac104.dts index f8fe3fe9218..96d97394415 100644 --- a/target/linux/ramips/dts/mt7621_netgear_wac104.dts +++ b/target/linux/ramips/dts/mt7621_netgear_wac104.dts @@ -193,6 +193,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_netgear_wax202.dts b/target/linux/ramips/dts/mt7621_netgear_wax202.dts index 226c4615432..084c602b4af 100644 --- a/target/linux/ramips/dts/mt7621_netgear_wax202.dts +++ b/target/linux/ramips/dts/mt7621_netgear_wax202.dts @@ -269,6 +269,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_netgear_wax214v2.dts b/target/linux/ramips/dts/mt7621_netgear_wax214v2.dts index a9597119fa0..94539352dfb 100644 --- a/target/linux/ramips/dts/mt7621_netgear_wax214v2.dts +++ b/target/linux/ramips/dts/mt7621_netgear_wax214v2.dts @@ -223,6 +223,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_plasmacloud_pax1800-lite.dts b/target/linux/ramips/dts/mt7621_plasmacloud_pax1800-lite.dts index 6805a2938a1..01f0ca8e32c 100644 --- a/target/linux/ramips/dts/mt7621_plasmacloud_pax1800-lite.dts +++ b/target/linux/ramips/dts/mt7621_plasmacloud_pax1800-lite.dts @@ -2193,10 +2193,6 @@ }; }; -&xhci { - status = "okay"; -}; - ðernet { pinctrl-0 = <&mdio_pins>; }; diff --git a/target/linux/ramips/dts/mt7621_renkforce_ws-wn530hp3-a.dts b/target/linux/ramips/dts/mt7621_renkforce_ws-wn530hp3-a.dts index b567b14f8e9..2ec1955138f 100644 --- a/target/linux/ramips/dts/mt7621_renkforce_ws-wn530hp3-a.dts +++ b/target/linux/ramips/dts/mt7621_renkforce_ws-wn530hp3-a.dts @@ -165,6 +165,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi b/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi index 40433c1c43b..f0937dbe2ac 100644 --- a/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi +++ b/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi @@ -151,6 +151,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_ubnt_usw-flex.dts b/target/linux/ramips/dts/mt7621_ubnt_usw-flex.dts index f548f1f9b78..9d71732058f 100644 --- a/target/linux/ramips/dts/mt7621_ubnt_usw-flex.dts +++ b/target/linux/ramips/dts/mt7621_ubnt_usw-flex.dts @@ -167,6 +167,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_winstars_ws-wn583a6.dts b/target/linux/ramips/dts/mt7621_winstars_ws-wn583a6.dts index d40f56e1e9c..593823fa489 100644 --- a/target/linux/ramips/dts/mt7621_winstars_ws-wn583a6.dts +++ b/target/linux/ramips/dts/mt7621_winstars_ws-wn583a6.dts @@ -178,6 +178,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_wodesys_wd-r1802u.dts b/target/linux/ramips/dts/mt7621_wodesys_wd-r1802u.dts index f16d27e8d76..e067f523b3e 100644 --- a/target/linux/ramips/dts/mt7621_wodesys_wd-r1802u.dts +++ b/target/linux/ramips/dts/mt7621_wodesys_wd-r1802u.dts @@ -148,6 +148,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; }; diff --git a/target/linux/ramips/dts/mt7621_zyxel_wap6805.dts b/target/linux/ramips/dts/mt7621_zyxel_wap6805.dts index 40cdf7c6a96..9de7615db10 100644 --- a/target/linux/ramips/dts/mt7621_zyxel_wap6805.dts +++ b/target/linux/ramips/dts/mt7621_zyxel_wap6805.dts @@ -181,6 +181,10 @@ }; }; +&usb_phy { + status = "disabled"; +}; + &xhci { status = "disabled"; };