arm64: dts: qcom: x1e: mark l12b and l15b always-on
cover arm64: dts: qcom: x1e: mark l12b and l15b always-on
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(-)
Signature · 1 line
2.45.3
PATCH 1/8 arm64: dts: qcom: x1e80100-crd: mark l12b and l15b always-on
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.
--- arch/arm64/boot/dts/qcom/x1e80100-crd.dts | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/x1e80100-crd.dts +2 -0
@@ -437,6 +437,7 @@ vreg_l12b_1p2: ldo12 { regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + regulator-always-on; }; vreg_l13b_3p0: ldo13 {
@@ -458,6 +459,7 @@ vreg_l15b_1p8: ldo15 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + regulator-always-on; }; vreg_l16b_2p9: ldo16 {
Signature · 1 line
2.45.3
PATCH 2/8 arm64: dts: qcom: x1e78100-t14s: mark l12b and l15b always-on
In reply to Johan HovoldThe 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.
--- arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts +2 -0
@@ -344,6 +344,7 @@ vreg_l12b_1p2: ldo12 { regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + regulator-always-on; }; vreg_l13b_3p0: ldo13 {
@@ -365,6 +366,7 @@ vreg_l15b_1p8: ldo15 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + regulator-always-on; }; vreg_l17b_2p5: ldo17 {
Signature · 1 line
2.45.3
PATCH 3/8 arm64: dts: qcom: x1e001de-devkit: mark l12b and l15b always-on
In reply to Johan HovoldThe 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.
--- arch/arm64/boot/dts/qcom/x1e001de-devkit.dts | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/x1e001de-devkit.dts +2 -0
@@ -507,6 +507,7 @@ vreg_l12b_1p2: ldo12 { regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + regulator-always-on; }; vreg_l13b_3p0: ldo13 {
@@ -528,6 +529,7 @@ vreg_l15b_1p8: ldo15 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + regulator-always-on; }; vreg_l16b_2p9: ldo16 {
Signature · 1 line
2.45.3
PATCH 4/8 arm64: dts: qcom: x1e80100-dell-xps13-9345: mark l12b and l15b always-on
In reply to Johan HovoldThe 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 these supplies currently have no consumers described in mainline.
--- arch/arm64/boot/dts/qcom/x1e80100-dell-xps13-9345.dts | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/x1e80100-dell-xps13-9345.dts +2 -0
@@ -359,6 +359,7 @@ vreg_l12b_1p2: ldo12 { regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + regulator-always-on; }; vreg_l13b_3p0: ldo13 {
@@ -380,6 +381,7 @@ vreg_l15b_1p8: ldo15 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + regulator-always-on; }; vreg_l17b_2p5: ldo17 {
Signature · 1 line
2.45.3
PATCH 5/8 arm64: dts: qcom: x1e80100-hp-x14: mark l12b and l15b always-on
In reply to Johan HovoldThe 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.
--- arch/arm64/boot/dts/qcom/x1e80100-hp-omnibook-x14.dts | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/x1e80100-hp-omnibook-x14.dts +2 -0
@@ -633,6 +633,7 @@ vreg_l12b_1p2: ldo12 { regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + regulator-always-on; }; vreg_l13b_3p0: ldo13 {
@@ -654,6 +655,7 @@ vreg_l15b_1p8: ldo15 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + regulator-always-on; }; vreg_l16b_2p9: ldo16 {
Signature · 1 line
2.45.3
PATCH 6/8 arm64: dts: qcom: x1e80100-yoga-slim7x: mark l12b and l15b always-on
In reply to Johan HovoldThe 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.
--- arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts +2 -1
@@ -290,6 +290,7 @@ vreg_l12b_1p2: ldo12 { regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + regulator-always-on; }; vreg_l14b_3p0: ldo14 {
@@ -304,8 +305,8 @@ vreg_l15b_1p8: ldo15 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + regulator-always-on; }; - }; regulators-1 {
Signature · 1 line
2.45.3
PATCH 7/8 arm64: dts: qcom: x1e80100-qcp: mark l12b and l15b always-on
In reply to Johan HovoldThe 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.
--- arch/arm64/boot/dts/qcom/x1e80100-qcp.dts | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/x1e80100-qcp.dts +2 -0
@@ -437,6 +437,7 @@ vreg_l12b_1p2: ldo12 { regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + regulator-always-on; }; vreg_l13b_3p0: ldo13 {
@@ -458,6 +459,7 @@ vreg_l15b_1p8: ldo15 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + regulator-always-on; }; vreg_l16b_2p9: ldo16 {
Signature · 1 line
2.45.3
PATCH 8/8 arm64: dts: qcom: x1e78100-t14s: fix missing HID supplies
In reply to Johan HovoldAdd the missing HID supplies to avoid relying on other consumers to keep them on.
This also avoids the following warnings on boot:
i2c_hid_of 0-0010: supply vdd not found, using dummy regulator i2c_hid_of 0-0010: supply vddl not found, using dummy regulator i2c_hid_of 1-0015: supply vdd not found, using dummy regulator i2c_hid_of 1-002c: supply vdd not found, using dummy regulator i2c_hid_of 1-0015: supply vddl not found, using dummy regulator i2c_hid_of 1-002c: supply vddl not found, using dummy regulator i2c_hid_of 1-003a: supply vdd not found, using dummy regulator i2c_hid_of 1-003a: supply vddl not found, using dummy regulator
Note that VCC3B is also used for things like the modem which are not yet described so mark the regulator as always-on for now.
--- .../qcom/x1e78100-lenovo-thinkpad-t14s.dts | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+)
arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts +43 -0
@@ -9,6 +9,7 @@ #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/input/gpio-keys.h> #include <dt-bindings/input/input.h> +#include <dt-bindings/pinctrl/qcom,pmic-gpio.h> #include <dt-bindings/regulator/qcom,rpmh-regulator.h> #include "x1e80100.dtsi"
@@ -153,6 +154,23 @@ vreg_edp_3p3: regulator-edp-3p3 { regulator-boot-on; }; + vreg_misc_3p3: regulator-misc-3p3 { + compatible = "regulator-fixed"; + + regulator-name = "VCC3B"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + gpio = <&pm8550ve_8_gpios 6 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 = <&misc_3p3_reg_en>; + pinctrl-names = "default"; + + regulator-boot-on; + regulator-always-on; + }; + vreg_nvme: regulator-nvme { compatible = "regulator-fixed";
@@ -580,6 +598,9 @@ touchpad@15 { hid-descr-addr = <0x1>; interrupts-extended = <&tlmm 3 IRQ_TYPE_LEVEL_LOW>; + vdd-supply = <&vreg_misc_3p3>; + vddl-supply = <&vreg_l12b_1p2>; + wakeup-source; };
@@ -591,6 +612,9 @@ touchpad@2c { hid-descr-addr = <0x20>; interrupts-extended = <&tlmm 3 IRQ_TYPE_LEVEL_LOW>; + vdd-supply = <&vreg_misc_3p3>; + vddl-supply = <&vreg_l12b_1p2>; + wakeup-source; };
@@ -602,6 +626,9 @@ keyboard@3a { hid-descr-addr = <0x1>; interrupts-extended = <&tlmm 67 IRQ_TYPE_LEVEL_LOW>; + vdd-supply = <&vreg_misc_3p3>; + vddl-supply = <&vreg_l15b_1p8>; + pinctrl-0 = <&kybd_default>; pinctrl-names = "default";
@@ -670,6 +697,9 @@ touchscreen@10 { hid-descr-addr = <0x1>; interrupts-extended = <&tlmm 51 IRQ_TYPE_LEVEL_LOW>; + vdd-supply = <&vreg_misc_3p3>; + vddl-supply = <&vreg_l15b_1p8>; + pinctrl-0 = <&ts0_default>; pinctrl-names = "default"; };
@@ -779,6 +809,19 @@ &pcie6a_phy { status = "okay"; }; +&pm8550ve_8_gpios { + misc_3p3_reg_en: misc-3p3-reg-en-state { + pins = "gpio6"; + function = "normal"; + bias-disable; + drive-push-pull; + input-disable; + output-enable; + power-source = <1>; /* 1.8 V */ + qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>; + }; +}; + &pmc8380_3_gpios { edp_bl_en: edp-bl-en-state { pins = "gpio4";
Signature · 1 line
2.45.3
Re: [PATCH 4/8] arm64: dts: qcom: x1e80100-dell-xps13-9345: mark l12b and l15b always-on
In reply to Johan HovoldQuoted 3 lines · Johan Hovold
The l12b and l15b supplies are used by components that are not (fully) described (and some never will be) and must never be disabled.
Out of curiosity, what are these components?
Quoted 11 lines
Mark the regulators as always-on to prevent them from being disabled, for example, when consumers probe defer or suspend.
Note that these supplies currently have no consumers described in mainline.
Fixes f5b788d0e8cd ("arm64: dts: qcom: Add support for X1-based Dell XPS 13 9345")Cc [email protected] # 6.13Cc Aleksandrs Vinarskis <[email protected]>Signed-off-by Johan Hovold <[email protected]>
Quoted 27 lines
--- arch/arm64/boot/dts/qcom/x1e80100-dell-xps13-9345.dts | 2 ++ 1 file changed, 2 insertions(+)arch/arm64/boot/dts/qcom/x1e80100-dell-xps13-9345.dts +2
-1@@ -359,6 +359,7 @@ vreg_l12b_1p2: ldo12 { regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + regulator-always-on; }; vreg_l13b_3p0: ldo13 {@@ -380,6 +381,7 @@ vreg_l15b_1p8: ldo15 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + regulator-always-on; }; vreg_l17b_2p5: ldo17 { --2.45.3
Re: [PATCH 4/8] arm64: dts: qcom: x1e80100-dell-xps13-9345: mark l12b and l15b always-on
Quoted 6 lines · Aleksandrs Vinarskis
Quoted 3 lines · Johan Hovold
The l12b and l15b supplies are used by components that are not (fully) described (and some never will be) and must never be disabled.
Out of curiosity, what are these components?
Mainly dumb onboard electronic components, it seems like
Konrad
Quoted 10 lines · Johan Hovold
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.
Quoted 6 lines
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
Konrad
Quoted 11 lines · Konrad Dybcio
Quoted 10 lines · Johan Hovold
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.
Quoted 7 lines
Quoted 4 lines
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.
Quoted 1 line
Reviewed-by Konrad Dybcio <[email protected]>
Thanks for reviewing.
Johan
Re: [PATCH 4/8] arm64: dts: qcom: x1e80100-dell-xps13-9345: mark l12b and l15b always-on
In reply to Aleksandrs VinarskisQuoted 6 lines · Aleksandrs Vinarskis
Quoted 3 lines · Johan Hovold
The l12b and l15b supplies are used by components that are not (fully) described (and some never will be) and must never be disabled.
Out of curiosity, what are these components?
A host of things, including pull-ups, level shifters, regulators for (partially) described devices, but also things like the speakers and wlan.
Quoted 5 lines
Quoted 5 lines
Mark the regulators as always-on to prevent them from being disabled, for example, when consumers probe defer or suspend.
Note that these supplies currently have no consumers described in mainline.
Johan
Quoted 11 lines · Johan Hovold
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: 55e52d055393f11ba0193975d3db87af36f4b273Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>