mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] phy: mediatek: allow building T-PHY driver for MT7621 MIPS SoC
@ 2026-02-19 12:53 Shiji Yang
  2026-02-23 13:47 ` AngeloGioacchino Del Regno
  0 siblings, 1 reply; 3+ messages in thread
From: Shiji Yang @ 2026-02-19 12:53 UTC (permalink / raw)
  To: linux-phy
  Cc: Chunfeng Yun, Vinod Koul, Neil Armstrong, Matthias Brugger,
	AngeloGioacchino Del Regno, linux-arm-kernel, linux-mediatek,
	linux-kernel, Shiji Yang

MT7621 also has compatible T-PHY which attached to the XHCI interface.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
---
 drivers/phy/mediatek/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/phy/mediatek/Kconfig b/drivers/phy/mediatek/Kconfig
index ba6461350..fa69df3f1 100644
--- a/drivers/phy/mediatek/Kconfig
+++ b/drivers/phy/mediatek/Kconfig
@@ -26,7 +26,7 @@ config PHY_MTK_XFI_TPHY
 
 config PHY_MTK_TPHY
 	tristate "MediaTek T-PHY Driver"
-	depends on ARCH_MEDIATEK || COMPILE_TEST
+	depends on ARCH_MEDIATEK || SOC_MT7621 || COMPILE_TEST
 	depends on OF && OF_ADDRESS
 	depends on HAS_IOMEM
 	select GENERIC_PHY
-- 
2.51.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] phy: mediatek: allow building T-PHY driver for MT7621 MIPS SoC
  2026-02-19 12:53 [PATCH] phy: mediatek: allow building T-PHY driver for MT7621 MIPS SoC Shiji Yang
@ 2026-02-23 13:47 ` AngeloGioacchino Del Regno
  2026-02-27 17:26   ` Vladimir Oltean
  0 siblings, 1 reply; 3+ messages in thread
From: AngeloGioacchino Del Regno @ 2026-02-23 13:47 UTC (permalink / raw)
  To: Shiji Yang, linux-phy
  Cc: Chunfeng Yun, Vinod Koul, Neil Armstrong, Matthias Brugger,
	linux-arm-kernel, linux-mediatek, linux-kernel

Il 19/02/26 13:53, Shiji Yang ha scritto:
> MT7621 also has compatible T-PHY which attached to the XHCI interface.
> 
> Signed-off-by: Shiji Yang <yangshiji66@outlook.com>

MT7621 seems to be a bit special among the mips/ralink platforms, so I agree.

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] phy: mediatek: allow building T-PHY driver for MT7621 MIPS SoC
  2026-02-23 13:47 ` AngeloGioacchino Del Regno
@ 2026-02-27 17:26   ` Vladimir Oltean
  0 siblings, 0 replies; 3+ messages in thread
From: Vladimir Oltean @ 2026-02-27 17:26 UTC (permalink / raw)
  To: Shiji Yang, AngeloGioacchino Del Regno
  Cc: linux-phy, Chunfeng Yun, Vinod Koul, Neil Armstrong,
	Matthias Brugger, linux-arm-kernel, linux-mediatek, linux-kernel

On Mon, Feb 23, 2026 at 02:47:09PM +0100, AngeloGioacchino Del Regno wrote:
> Il 19/02/26 13:53, Shiji Yang ha scritto:
> > MT7621 also has compatible T-PHY which attached to the XHCI interface.
> > 
> > Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
> 
> MT7621 seems to be a bit special among the mips/ralink platforms, so I agree.
> 
> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>

I wanted to see for myself, but I didn't find it.

arch/mips/boot/dts/ralink/mt7621.dtsi:

	usb: usb@1e1c0000 {
		compatible = "mediatek,mt8173-xhci", "mediatek,mtk-xhci";
		reg = <0x1e1c0000 0x1000
		       0x1e1d0700 0x0100>;
		reg-names = "mac", "ippc";

		#address-cells = <1>;
		#size-cells = <0>;

		clocks = <&sysc MT7621_CLK_XTAL>;
		clock-names = "sys_ck";

		interrupt-parent = <&gic>;
		interrupts = <GIC_SHARED 22 IRQ_TYPE_LEVEL_HIGH>;
	};

Shiji, did you also submit a device tree patch somewhere? Not that
you're required to, for this patch to be accepted. I'm just curious.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-02-27 17:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-19 12:53 [PATCH] phy: mediatek: allow building T-PHY driver for MT7621 MIPS SoC Shiji Yang
2026-02-23 13:47 ` AngeloGioacchino Del Regno
2026-02-27 17:26   ` Vladimir Oltean

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®