Re: [PATCH V1 4/4] phy: qcom-qmp-ufs: read max-microamp values from device tree

From: Nitin Rawat
Date: Mon Aug 11 2025 - 15:50:00 EST




On 8/9/2025 1:00 PM, Dmitry Baryshkov wrote:
On Wed, Aug 06, 2025 at 09:13:40PM +0530, Nitin Rawat wrote:
Add support in QMP PHY driver to read optional vdda-phy-max-microamp
and vdda-pll-max-microamp properties from the device tree.

These properties define the expected maximum current (in microamps) for
each supply. The driver uses this information to configure regulators
more accurately and ensure they operate in the correct mode based on
client load requirements.

What defines those load values? Are they actually dependent on the
platform? On the SoC? On the board design? On the UFS gear?

Hi Dmitry,

These load values are defined at the SoC level, although they may vary depending on the UFS gear. However, the peak value per power grid is determined by the maximum gear supported by the controller.

In summary, the value is SoC-specific and does not depend on board-level variations. Based on this, I'm comfortable hardcoding per-compatible data directly in the driver instead of relying on the device tree.

Thanks,
Nitin




If the property is not present, the driver defaults load to
`QMP_VREG_UNUSED`.

Signed-off-by: Nitin Rawat <quic_nitirawa@xxxxxxxxxxx>
---
drivers/phy/qualcomm/phy-qcom-qmp-ufs.c | 22 +++++++++++++++++++---
1 file changed, 19 insertions(+), 3 deletions(-)