]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ramips: dts: mt7621: add USB t-phy node
authorShiji Yang <yangshiji66@outlook.com>
Thu, 19 Feb 2026 11:57:18 +0000 (19:57 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 5 Apr 2026 23:05:51 +0000 (01:05 +0200)
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>
41 files changed:
target/linux/ramips/dts/mt7621.dtsi
target/linux/ramips/dts/mt7621_ampedwireless_ally-00x19k.dts
target/linux/ramips/dts/mt7621_arcadyan_we410443.dts
target/linux/ramips/dts/mt7621_arcadyan_we420223-99.dts
target/linux/ramips/dts/mt7621_asus_rp-ac56.dts
target/linux/ramips/dts/mt7621_asus_rp-ac87.dts
target/linux/ramips/dts/mt7621_buffalo_wsr-1166dhp.dts
target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts
target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhplx.dtsi
target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts
target/linux/ramips/dts/mt7621_edimax_re23s.dts
target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi
target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts
target/linux/ramips/dts/mt7621_elecom_wrc-2533ghbk.dtsi
target/linux/ramips/dts/mt7621_elecom_wrc-gs.dtsi
target/linux/ramips/dts/mt7621_elecom_wxc-x1800gsx.dtsi
target/linux/ramips/dts/mt7621_h3c_tx180x.dtsi
target/linux/ramips/dts/mt7621_haier-sim_wr1800k.dtsi
target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts
target/linux/ramips/dts/mt7621_iodata_wn-deax1800gr.dts
target/linux/ramips/dts/mt7621_iodata_wn-dx1200gr.dts
target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts
target/linux/ramips/dts/mt7621_iodata_wn-xx-xr.dtsi
target/linux/ramips/dts/mt7621_iodata_wnpr2600g.dts
target/linux/ramips/dts/mt7621_iptime_t5004.dts
target/linux/ramips/dts/mt7621_jdcloud_re-cp-02.dts
target/linux/ramips/dts/mt7621_keenetic_kn-3010.dts
target/linux/ramips/dts/mt7621_keenetic_kn-3510.dts
target/linux/ramips/dts/mt7621_linksys_e5600.dts
target/linux/ramips/dts/mt7621_linksys_re6500.dts
target/linux/ramips/dts/mt7621_netgear_eax12.dts
target/linux/ramips/dts/mt7621_netgear_wac104.dts
target/linux/ramips/dts/mt7621_netgear_wax202.dts
target/linux/ramips/dts/mt7621_netgear_wax214v2.dts
target/linux/ramips/dts/mt7621_plasmacloud_pax1800-lite.dts
target/linux/ramips/dts/mt7621_renkforce_ws-wn530hp3-a.dts
target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi
target/linux/ramips/dts/mt7621_ubnt_usw-flex.dts
target/linux/ramips/dts/mt7621_winstars_ws-wn583a6.dts
target/linux/ramips/dts/mt7621_wodesys_wd-r1802u.dts
target/linux/ramips/dts/mt7621_zyxel_wap6805.dts

index 450e8b0afc8aa2926aead4bf5ece84f0c47f7bb1..dd21f13a32a48f61fc619d4b0b2cb4f34c7236d5 100644 (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>
 
 / {
                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>;
 
                };
        };
 
+       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>;
index 51d41c7fb4081ae971f8a560eb3de1e6544504e1..e25444d7f0b8a8188569a8b131963246e85c403b 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index 734a9ff490a07cbb01dd69428540fe6db7465e98..ad261d77efcd8057d6e69ff9de2f2309b3e39579 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index 0b314cc38d0b4824c4c6a20bf18b9bcacedec587..04a5396b52c7d18705a18eef83a80d59c4585126 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index 617624f4c2e77b5616fc9571c73fbcc6688098b8..3aaac5a0c891efd386e27d036ba868ea5251d220 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index 02c19bd1c68eef6e7c851dd57fffecf8b221ddf6..033e6a8b2d07f8d6263a27e07905b5484be539d3 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index 859d95b6a4b62f62fa4aec62e5370a7d882701c5..b239bfe969318d5e733e44dad68a5570579f8558 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index fe6fc6aab5c778a0f41c324d188270f6e954f331..54dfcf0236822c8fe465732afa24483ac5092142 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index d3ca47f17049f64f08fe45a1c7979315cacf7cad..1a26c21287c15f32b4b36b7fa42aded0855410d6 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index 9b95525020d65b4faa4ac888da9b67e3d53b5ecc..7540e9268883cee7263333189dbcfebca343300d 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index 00a746f579bb1d16e1aac775eee86aa85c308f99..295947f4b59f2366ea9e8e93069184ac9ff1912c 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index 3a235070bf36815c9a6a67bb16edbc6338f0a5dc..273b977be83a50e2b47363b189cc8ce61a80f1ed 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index 503ec40b50fa556f201e6910fd7c63d1259cba85..127e2ee749c71ac6d87918c5b5143dfac6756840 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index 545a2031b8f725de34851953222139c0ba7bbe1f..8df7335d61936fd55ca4ea9ccb7cb99793b74728 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index 4b61b9faf29f7927433ecd93cd14cbf32a79e144..9b2f313e9f02a6a7dfcd4e497660de46739561d5 100644 (file)
        status = "okay";
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index 91cc3f995215b1fb3d900a8f7b0fdd16c39be55b..8d5077b0081221202280e9a517f8900b93e24912 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index 31347723cf25dd96106a97705178588fb72fba3e..13100cc12f966ea1ca999751ac0df5757155f95e 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index cb050c90d49ece706268715b4f69adb5f53f39c2..33dc9cbf1cf6a0e61ef9c6295b30a345d789ee77 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index ffafb031b5d9c1a2fbef27650c5b14c9777d727a..b2c772c0d497347e0b6ef5ce9bf2f236e0c93e8c 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index 86d8a93da614fe37986923b81d2d9a455cbbf1b9..f9313c620ccbed549f0a416801e405592be60b5b 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index bcb7e576786d0ead738d87e43a20a9fcca2205a6..2e21808ee90378c5fe44da71604025c3a0ccfe6f 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index d6c3fcf42a88d2b5128381d042a8ac3b5d729e46..dac78cebb3ec1d7391424218c6ef65ff5cfa6dcd 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index 07187d8bfed21335aa71d6af13d2355a9b51e354..2df00a17457ad837c002364c57e56a4a4c147692 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index e322e4efdbb3878759c4373b90170b827b267e47..d0eb0d51fca3a2ca60cf97bd6fec4665e733190d 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index 19c72884b4e2b402cf11190861b6acb203083eef..f5b7967ac683cb4f827379f12275dbbc55c24766 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index cd429cbf4d6aeac372d5d4a96ca796b7aee99dec..9524472ff181f0d15203abec881eacfefd3c7c00 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index 6ee20c29c5fb0abfc7ad9eba4ffc65fc92aecb10..c83f160c4f120e5b6313375efaa5121d33507054 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index 5a647d75e82d7314ce4d73b2be42b076035aec94..f4aa2dd61bf6eb5f3a6a7a64aca1153f2411bc70 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index d44565c60c2c38911bdc68e66e9dd9269a1a4398..823da45c16fc4e4ce3e19dc24407d8927d031b8f 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index 3eb5f1dc68a6f22f30bd6079ebc21dc2e251f5f7..606c0419c0a830543458b5653f9ee806a0bcea94 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index e467783ad1bd79a29d61dbbb742509985b59e520..ea87b9ca8d6d2d273c69b98cb0b2c00d796cf4de 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index f8fe3fe921815acd2e4f967b436d2d40e5722dea..96d97394415cd2b5705aa47535e2da231e0ff6ae 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index 226c46154326a79597aed3c5d410e6d22fcaaba1..084c602b4af698e3b79669f9e12775da4b2f2077 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index a9597119fa0bc7a49de2954d1695c950e75e0345..94539352dfb5e3fb41f18ea2a1b09d5b3543146d 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index 6805a2938a17a643b2d2fb7b65329a868f3327cb..01f0ca8e32c34154e88f43849cf645ff5641c7df 100644 (file)
        };
 };
 
-&xhci {
-       status = "okay";
-};
-
 &ethernet {
        pinctrl-0 = <&mdio_pins>;
 };
index b567b14f8e9403415284b02f4825930bc01fed6a..2ec1955138faa5858ebb75f4cf1c01c2e0afb6ed 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index 40433c1c43b23d84728e2693fdfb42d92ca6151e..f0937dbe2acb49fbfc00d2d8aad4834e0fde7642 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index f548f1f9b786eaa352735a2c3b05d8906b7bf652..9d71732058f5876273e94ca86aa948690714e5aa 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index d40f56e1e9c092934f89393186408cb650ebea5a..593823fa4892a6a8bee74e8aab396caec0bd6dfc 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index f16d27e8d76fd6fb1182779592dcfdb70b17b201..e067f523b3e78fb51b60d1c930655b4ca5a9b854 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };
index 40cdf7c6a96ab5c339bb6a8461c9253183314ea4..9de7615db104f2e7367d3ebf18f04c9a0154ef18 100644 (file)
        };
 };
 
+&usb_phy {
+       status = "disabled";
+};
+
 &xhci {
        status = "disabled";
 };