[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20250827064010.55675-1-amadeus@jmu.edu.cn>
Date: Wed, 27 Aug 2025 14:40:10 +0800
From: Chukun Pan <amadeus@....edu.cn>
To: iuncuim@...il.com
Cc: andre.przywara@....com,
conor+dt@...nel.org,
devicetree@...r.kernel.org,
jernej.skrabec@...il.com,
kishon@...nel.org,
krzk+dt@...nel.org,
linux-arm-kernel@...ts.infradead.org,
linux-clk@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-phy@...ts.infradead.org,
linux-sunxi@...ts.linux.dev,
mturquette@...libre.com,
p.zabel@...gutronix.de,
robh@...nel.org,
samuel@...lland.org,
sboyd@...nel.org,
vkoul@...nel.org,
wens@...e.org,
Chukun Pan <amadeus@....edu.cn>
Subject: Re: [PATCH 4/7] phy: allwinner: a523: add USB3/PCIe PHY driver
Hi,
> --- a/drivers/phy/allwinner/Makefile
> +++ b/drivers/phy/allwinner/Makefile
> @@ -3,3 +3,4 @@ obj-$(CONFIG_PHY_SUN4I_USB) += phy-sun4i-usb.o
> obj-$(CONFIG_PHY_SUN6I_MIPI_DPHY) += phy-sun6i-mipi-dphy.o
> obj-$(CONFIG_PHY_SUN9I_USB) += phy-sun9i-usb.o
> obj-$(CONFIG_PHY_SUN50I_USB3) += phy-sun50i-usb3.o
> +obj-$(CONFIG_PHY_SUN55I_USB3_PCIE) += phy-sun55i-usb3-pcie.o
Would it be better to call it phy-sun55i-combophy ?
> --- /dev/null
> +++ b/drivers/phy/allwinner/phy-sun55i-usb3-pcie.c
> ...
> +static int sun55i_usb3_pcie_phy_init(struct phy *_phy)
> +{
> + struct sun55i_usb3_pcie_phy *phy = phy_get_drvdata(_phy);
> +
> + sun55i_usb3_phy_open(phy);
Maybe we need to add `case PHY_TYPE_USB3:`
And use <&combophy PHY_TYPE_USB3> in the DT
> +
> + return 0;
> +}
> ...
> +static const struct of_device_id sun55i_usb3_pcie_phy_of_match[] = {
> + { .compatible = "allwinner,sun55i-a523-usb3-pcie-phy" },
Would it be better to use "allwinner,sun55i-a523-combophy" as
the compatible?
> + { },
> +};
> +MODULE_DEVICE_TABLE(of, sun55i_usb3_pcie_phy_of_match);
Thanks,
Chukun
Powered by blists - more mailing lists