[PATCH 0/8] arm64: dts: qcom: x1e: mark l12b and l15b always-on

Johan Hovold posted 8 patches 9 months, 3 weeks ago
There is a newer version of this series
arch/arm64/boot/dts/qcom/x1e001de-devkit.dts  |  2 +
.../qcom/x1e78100-lenovo-thinkpad-t14s.dts    | 45 +++++++++++++++++++
arch/arm64/boot/dts/qcom/x1e80100-crd.dts     |  2 +
.../dts/qcom/x1e80100-dell-xps13-9345.dts     |  2 +
.../dts/qcom/x1e80100-hp-omnibook-x14.dts     |  2 +
.../dts/qcom/x1e80100-lenovo-yoga-slim7x.dts  |  3 +-
arch/arm64/boot/dts/qcom/x1e80100-qcp.dts     |  2 +
7 files changed, 57 insertions(+), 1 deletion(-)
[PATCH 0/8] arm64: dts: qcom: x1e: mark l12b and l15b always-on
Posted by Johan Hovold 9 months, 3 weeks ago
The l12b and l15b supplies are used by components that are not (fully)
described (and some never will be) and must never be disabled.

Mark the regulators as always-on to prevent them from being disabled,
for example, when consumers probe defer or suspend.

Note that there are likely votes from other processors for these rpmh
regulators (at least for l15b) but the OS should not rely on that in any
case.

Included is also a patch that adds the missing HID supplies for the
T14s. It was a corresponding change for the CRD that made me look into
this to make sure these supplies were not disabled during suspend or on
probe deferrals.

Johan


Johan Hovold (8):
  arm64: dts: qcom: x1e80100-crd: mark l12b and l15b always-on
  arm64: dts: qcom: x1e78100-t14s: mark l12b and l15b always-on
  arm64: dts: qcom: x1e001de-devkit: mark l12b and l15b always-on
  arm64: dts: qcom: x1e80100-dell-xps13-9345: mark l12b and l15b
    always-on
  arm64: dts: qcom: x1e80100-hp-x14: mark l12b and l15b always-on
  arm64: dts: qcom: x1e80100-yoga-slim7x: mark l12b and l15b always-on
  arm64: dts: qcom: x1e80100-qcp: mark l12b and l15b always-on
  arm64: dts: qcom: x1e78100-t14s: fix missing HID supplies

 arch/arm64/boot/dts/qcom/x1e001de-devkit.dts  |  2 +
 .../qcom/x1e78100-lenovo-thinkpad-t14s.dts    | 45 +++++++++++++++++++
 arch/arm64/boot/dts/qcom/x1e80100-crd.dts     |  2 +
 .../dts/qcom/x1e80100-dell-xps13-9345.dts     |  2 +
 .../dts/qcom/x1e80100-hp-omnibook-x14.dts     |  2 +
 .../dts/qcom/x1e80100-lenovo-yoga-slim7x.dts  |  3 +-
 arch/arm64/boot/dts/qcom/x1e80100-qcp.dts     |  2 +
 7 files changed, 57 insertions(+), 1 deletion(-)

-- 
2.45.3
Re: [PATCH 0/8] arm64: dts: qcom: x1e: mark l12b and l15b always-on
Posted by Konrad Dybcio 9 months, 2 weeks ago
On 27.02.2025 9:13 AM, Johan Hovold wrote:
> The l12b and l15b supplies are used by components that are not (fully)
> described (and some never will be) and must never be disabled.
> 
> Mark the regulators as always-on to prevent them from being disabled,
> for example, when consumers probe defer or suspend.
> 
> Note that there are likely votes from other processors for these rpmh
> regulators (at least for l15b) but the OS should not rely on that in any
> case.
> 
> Included is also a patch that adds the missing HID supplies for the
> T14s. It was a corresponding change for the CRD that made me look into
> this to make sure these supplies were not disabled during suspend or on
> probe deferrals.
> 
> Johan

This looks good, too bad SL7 was left out :( I'll take care of that
myself

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad
Re: [PATCH 0/8] arm64: dts: qcom: x1e: mark l12b and l15b always-on
Posted by Johan Hovold 9 months, 2 weeks ago
On Tue, Mar 04, 2025 at 06:07:32PM +0100, Konrad Dybcio wrote:
> On 27.02.2025 9:13 AM, Johan Hovold wrote:
> > The l12b and l15b supplies are used by components that are not (fully)
> > described (and some never will be) and must never be disabled.
> > 
> > Mark the regulators as always-on to prevent them from being disabled,
> > for example, when consumers probe defer or suspend.
> > 
> > Note that there are likely votes from other processors for these rpmh
> > regulators (at least for l15b) but the OS should not rely on that in any
> > case.
> > 
> > Included is also a patch that adds the missing HID supplies for the
> > T14s. It was a corresponding change for the CRD that made me look into
> > this to make sure these supplies were not disabled during suspend or on
> > probe deferrals.

> This looks good, too bad SL7 was left out :( I'll take care of that
> myself

Thanks for catching that. It seems my grep pattern was too specific
given that you had dropped the voltages from the SL7 regulator labels
whereas every other X1 board copy-pasted the CRD which had them:

	vreg_l12b_1p2: ldo12 {

	vreg_l12b: ldo12 {

Like you, I'd prefer if they were not there (especially since they are
not even correct with 3 V rails having "2p9" suffixes), but I see now
that this pattern have been used also for some older Qualcomm machines.

Perhaps we can drop them throughout, at least for X1, for consistency.

> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Thanks for reviewing.

Johan
Re: [PATCH 0/8] arm64: dts: qcom: x1e: mark l12b and l15b always-on
Posted by Bjorn Andersson 9 months, 1 week ago
On Thu, 27 Feb 2025 09:13:49 +0100, Johan Hovold wrote:
> The l12b and l15b supplies are used by components that are not (fully)
> described (and some never will be) and must never be disabled.
> 
> Mark the regulators as always-on to prevent them from being disabled,
> for example, when consumers probe defer or suspend.
> 
> Note that there are likely votes from other processors for these rpmh
> regulators (at least for l15b) but the OS should not rely on that in any
> case.
> 
> [...]

Applied, thanks!

[1/8] arm64: dts: qcom: x1e80100-crd: mark l12b and l15b always-on
      commit: abf89bc4bb09c16a53d693b09ea85225cf57ff39
[2/8] arm64: dts: qcom: x1e78100-t14s: mark l12b and l15b always-on
      commit: 673fa129e558c5f1196adb27d97ac90ddfe4f19c
[3/8] arm64: dts: qcom: x1e001de-devkit: mark l12b and l15b always-on
      commit: 7d328cc134f7db1e062f616a30cffe96fbc43abb
[4/8] arm64: dts: qcom: x1e80100-dell-xps13-9345: mark l12b and l15b always-on
      commit: 63169c07d74031c5e10a9f91229dabade880cf0f
[5/8] arm64: dts: qcom: x1e80100-hp-x14: mark l12b and l15b always-on
      commit: 3ab4e212a41c46668adf93c8d10d0d3d6de8f0e4
[6/8] arm64: dts: qcom: x1e80100-yoga-slim7x: mark l12b and l15b always-on
      commit: f43a71dc6d8d8378af587675eec77c06e0298c79
[7/8] arm64: dts: qcom: x1e80100-qcp: mark l12b and l15b always-on
      commit: ff6ba96378367133b66587bd3ee9f068a39ff3a9
[8/8] arm64: dts: qcom: x1e78100-t14s: fix missing HID supplies
      commit: 55e52d055393f11ba0193975d3db87af36f4b273

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>