[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <gvwdeswdx5rhdepxrgomtbeenh4o6zyi5banvp3y5gz2dkvopb@7pd6qmq4ypvg>
Date: Mon, 11 Aug 2025 10:25:36 -0500
From: Bjorn Andersson <andersson@...nel.org>
To: Nitin Rawat <quic_nitirawa@...cinc.com>
Cc: vkoul@...nel.org, kishon@...nel.org, mani@...nel.org,
conor+dt@...nel.org, bvanassche@....org, neil.armstrong@...aro.org,
dmitry.baryshkov@....qualcomm.com, konradybcio@...nel.org, krzk+dt@...nel.org,
linux-arm-msm@...r.kernel.org, linux-phy@...ts.infradead.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org
Subject: Re: [PATCH V1 2/4] arm64: dts: qcom: sm8750: add max-microamp for
UFS PHY and PLL supplies
On Wed, Aug 06, 2025 at 09:13:38PM +0530, Nitin Rawat wrote:
> Add `vdda-phy-max-microamp` and `vdda-pll-max-microamp` properties to
> the UFS PHY node in the device tree.
>
> These properties define the maximum current (in microamps) expected
> from the PHY and PLL regulators. This allows the PHY driver to
> configure regulator load accurately and ensure proper regulator
> mode based on load requirements.
>
But doesn't this imply that these values are fixed for a given SoC?
Perhaps even for a given generation of the PHY/process?
Is there any case where these values need to be tweaked on a per-board
basis?
If not, I think these should be constants in the driver.
Regards,
Bjorn
> Signed-off-by: Nitin Rawat <quic_nitirawa@...cinc.com>
> ---
> arch/arm64/boot/dts/qcom/sm8750-mtp.dts | 2 ++
> arch/arm64/boot/dts/qcom/sm8750-qrd.dts | 2 ++
> 2 files changed, 4 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/sm8750-mtp.dts b/arch/arm64/boot/dts/qcom/sm8750-mtp.dts
> index 75cfbb510be5..2ae5915fe38d 100644
> --- a/arch/arm64/boot/dts/qcom/sm8750-mtp.dts
> +++ b/arch/arm64/boot/dts/qcom/sm8750-mtp.dts
> @@ -1032,7 +1032,9 @@ wcd_default: wcd-reset-n-active-state {
>
> &ufs_mem_phy {
> vdda-phy-supply = <&vreg_l1j_0p91>;
> + vdda-phy-max-microamp = <213000>;
> vdda-pll-supply = <&vreg_l3g_1p2>;
> + vdda-pll-max-microamp = <18300>;
>
> status = "okay";
> };
> diff --git a/arch/arm64/boot/dts/qcom/sm8750-qrd.dts b/arch/arm64/boot/dts/qcom/sm8750-qrd.dts
> index 13c7b9664c89..e9a41d34e2d6 100644
> --- a/arch/arm64/boot/dts/qcom/sm8750-qrd.dts
> +++ b/arch/arm64/boot/dts/qcom/sm8750-qrd.dts
> @@ -1039,7 +1039,9 @@ &uart7 {
>
> &ufs_mem_phy {
> vdda-phy-supply = <&vreg_l1j_0p91>;
> + vdda-phy-max-microamp = <213000>;
> vdda-pll-supply = <&vreg_l3g_1p2>;
> + vdda-pll-max-microamp = <18300>;
>
> status = "okay";
> };
> --
> 2.48.1
>
Powered by blists - more mailing lists