From: Philipp Zabel <p.zabel@pengutronix.de>
To: "Hongliang Yang (杨宏亮)" <hongliang.yang@cixtech.com>,
"Vinod Koul" <vkoul@kernel.org>,
"Neil Armstrong" <neil.armstrong@linaro.org>,
"Manivannan Sadhasivam" <mani@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Gary Yang (杨新伟)" <Gary.Yang@cixtech.com>,
"Fugang Duan (段富刚)" <fugang.duan@cixtech.com>
Cc: "linux-phy@lists.infradead.org" <linux-phy@lists.infradead.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
cix-kernel-upstream <cix-kernel-upstream@cixtech.com>,
Conor Dooley <conor@kernel.org>
Subject: Re: [PATCH v5 2/3] phy: cix: Add CIX Sky1 USB3 PHY driver
Date: Tue, 03 Nov 2026 09:44:51 +0100 [thread overview]
Message-ID: <b717872c0f75e16980675d17a5fbbca91b9c8a3a.camel@pengutronix.de> (raw)
In-Reply-To: <20261103074913.1971025-3-hongliang.yang@cixtech.com>
On Di, 2026-11-03 at 07:49 +0000, Hongliang Yang (杨宏亮) wrote:
> Add PHY driver for the USB3 PHY found on CIX Sky1 SoCs. The driver
> handles initialization, reset, and clock management for the
> multi-port USB3 PHY.
>
> Signed-off-by: Hongliang Yang <hongliang.yang@cixtech.com>
> Reviewed-by: Conor Dooley <conor@kernel.org>
> ---
> v4 -> v5:
> - Documented the origin of the PHY initialization sequence.
> - Return -ENODEV instead of -EINVAL when the OF match data is missing.
> - Use dev_err_probe() when creating the child PHYs.
> - Dropped the unused dev_set_drvdata() call.
> - Guarded against underflow in sky1_u3phy_exit().
> drivers/phy/Kconfig | 1 +
> drivers/phy/Makefile | 1 +
> drivers/phy/cix/Kconfig | 20 ++
> drivers/phy/cix/Makefile | 6 +
> drivers/phy/cix/phy-cix-usb3.c | 418 ++++++++++++++++++++++++++++++++
> drivers/phy/cix/phy-cix-usbdp.h | 289 ++++++++++++++++++++++
> 6 files changed, 735 insertions(+)
> create mode 100644 drivers/phy/cix/Kconfig
> create mode 100644 drivers/phy/cix/Makefile
> create mode 100644 drivers/phy/cix/phy-cix-usb3.c
> create mode 100644 drivers/phy/cix/phy-cix-usbdp.h
>
[...]
> diff --git a/drivers/phy/cix/phy-cix-usb3.c b/drivers/phy/cix/phy-cix-usb3.c
> new file mode 100644
> index 000000000000..4417506d4f6c
> --- /dev/null
> +++ b/drivers/phy/cix/phy-cix-usb3.c
> @@ -0,0 +1,418 @@
[...]
> +static int cix_u3phy_probe(struct platform_device *pdev)
> +{
> + struct cix_u3phy *u3phy;
> + struct device *dev = &pdev->dev;
> + struct phy_provider *phy_provider;
> + struct device_node *np = dev->of_node;
> + struct device_node *child_np;
> + struct phy *phy;
> + int ret;
> +
> + u3phy = devm_kzalloc(dev, sizeof(*u3phy), GFP_KERNEL);
> + if (!u3phy)
> + return -ENOMEM;
> + u3phy->dev = dev;
> + u3phy->cfg = device_get_match_data(dev);
> + if (!u3phy->cfg) {
> + dev_err(dev, "no OF data can be matched with %pOF node\n", np);
> + return -ENODEV;
> + }
> + u3phy->reset = devm_reset_control_get_exclusive(dev, "core");
> + if (IS_ERR(u3phy->reset)) {
> + dev_err(dev, "failed to get reset\n");
> + return PTR_ERR(u3phy->reset);
return dev_err_probe(dev, PTR_ERR(u3phy->reset), "...");
regards
Philipp
next prev parent reply other threads:[~2026-11-03 8:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-03 7:49 [PATCH v5 0/3] phy: Add CIX Sky1 USB3 PHY support Hongliang Yang (杨宏亮)
2026-11-03 7:49 ` [PATCH v5 1/3] dt-bindings: phy: Add CIX Sky1 USB3 PHY Hongliang Yang (杨宏亮)
2026-11-03 7:49 ` [PATCH v5 2/3] phy: cix: Add CIX Sky1 USB3 PHY driver Hongliang Yang (杨宏亮)
2026-11-03 8:44 ` Philipp Zabel [this message]
2026-11-03 7:49 ` [PATCH v5 3/3] arm64: dts: cix: Add USB3 PHY nodes for Sky1 Hongliang Yang (杨宏亮)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b717872c0f75e16980675d17a5fbbca91b9c8a3a.camel@pengutronix.de \
--to=p.zabel@pengutronix.de \
--cc=Gary.Yang@cixtech.com \
--cc=cix-kernel-upstream@cixtech.com \
--cc=conor+dt@kernel.org \
--cc=conor@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=fugang.duan@cixtech.com \
--cc=hongliang.yang@cixtech.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=mani@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=robh@kernel.org \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®