Re: [PATCH 25/28] arm64: dts: qcom: lemans: Fix swapped USB QMP PHY vdda-phy/vdda-pll supplies

[email protected]
Newsgroups org.kernel.vger.linux-devicetree
Message-ID <[email protected]>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The commit incorrectly swaps the `vdda-phy` and `vdda-pll` supplies for the USB QMP PHYs, violating the driver's load current expectations and risking PHY instability due to incorrect PMIC configuration.
--

--- Patch [25]: [PATCH 25/28] arm64: dts: qcom: lemans: Fix swapped USB QMP PHY vdda-phy/vdda-pll supplies ---
commit b0df92fb00420a27d33768ecf9f99505036be942
Author: Manivannan Sadhasivam <[email protected]>

arm64: dts: qcom: lemans: Fix swapped USB QMP PHY vdda-phy/vdda-pll supplies

This commit swaps the vdda-phy and vdda-pll supplies for the USB QMP PHYs
on the Le Mans boards. The change ensures the lower voltage is mapped to
vdda-phy and the higher voltage to vdda-pll.

> diff --git a/arch/arm64/boot/dts/qcom/lemans-evk.dts b/arch/arm64/boot/dts/qcom/lemans-evk.dts
> index 34dfc8d22b6a5..b835fce8b336f 100644
> --- a/arch/arm64/boot/dts/qcom/lemans-evk.dts
> +++ b/arch/arm64/boot/dts/qcom/lemans-evk.dts
> @@ -1008,8 +1008,8 @@ &usb_0_hsphy {
>  };
>  
>  &usb_0_qmpphy {
> -	vdda-phy-supply = <&vreg_l1c>;
> -	vdda-pll-supply = <&vreg_l7a>;
> +	vdda-phy-supply = <&vreg_l7a>;
> +	vdda-pll-supply = <&vreg_l1c>;

[Severity: High]
Does swapping these supplies in the DT without updating the phy-qcom-qmp-usb
driver violate the driver's load current expectations?

The phy-qcom-qmp-usb driver fetches the regulators by name (vdda-phy and
vdda-pll) and applies hardcoded init_load_uA values (21.8mA and 36.0mA,
respectively).

Because the DT names are swapped by this change, the 0.8V regulator is
incorrectly provisioned with the 1.2V rail's load request (21.8mA) instead
of its required 36.0mA.

Could this under-provisioning cause the RPMh PMIC to place the LDO in Low
Power Mode (LPM), leading to voltage droop and USB link failures when the
hardware draws its required current?

>  
>  	status = "okay";
>  };

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=25
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.