[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <izr7linltwo4kbpp4dtls7bahvk4a2hwtqaz3fyuktjuiudqly@ivulir54ktxk>
Date: Thu, 29 Aug 2024 13:19:24 +0300
From: Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
To: neil.armstrong@...aro.org
Cc: Vinod Koul <vkoul@...nel.org>,
Kishon Vijay Abraham I <kishon@...nel.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>,
Konrad Dybcio <konradybcio@...nel.org>, linux-phy@...ts.infradead.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-msm@...r.kernel.org
Subject: Re: [PATCH 2/2] phy: add NXP PTN3222 eUSB2 to USB2 redriver
On Thu, Aug 29, 2024 at 10:30:49AM GMT, neil.armstrong@...aro.org wrote:
> On 29/08/2024 10:21, Dmitry Baryshkov wrote:
> > The NXP PTN3222 is the single-port eUSB2 to USB2 redriver that performs
> > translation between eUSB2 and USB2 signalling schemes. It supports all
> > three data rates: Low Speed, Full Speed and High Speed.
> >
> > The reset state enables autonegotiation of the PHY role and of the data
> > rate, so no additional programming is required.
> >
> > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
> > ---
> > drivers/phy/Kconfig | 11 ++++
> > drivers/phy/Makefile | 1 +
> > drivers/phy/phy-nxp-ptn3222.c | 119 ++++++++++++++++++++++++++++++++++++++++++
> > 3 files changed, 131 insertions(+)
> > +
> > + ptn3222->supplies[0].supply = "vdd3v3";
> > + ptn3222->supplies[0].init_load_uA = 11000;
> > + ptn3222->supplies[1].supply = "vdd1v8";
> > + ptn3222->supplies[1].init_load_uA = 55000;
> > +
> > + ret = devm_regulator_bulk_get(dev,
> > + NUM_SUPPLIES,
> > + ptn3222->supplies);
>
> Suggestion only, you could switch to devm_regulator_bulk_get_const()
Good idea, I'll take a look.
>
> > + if (ret)
> > + return ret;
> > +
--
With best wishes
Dmitry
Powered by blists - more mailing lists