From: David Heidelberg <[email protected]> Drop the regulator-always-on workaround from vreg_l14a_1p8 (vddi) and vreg_l28a_3p0 (vpnl/vci) now that the LG SW43408 panel driver keeps vpnl paired with vddi, allowing both rails to power down on Pixel 3 when neither the panel nor the touchscreen requires vddi.
Define the supplies on Pixel 3 XL's framebuffer0 node so simpledrm keeps the panel powered once regulator late cleanup runs, while intentionally leaving them off Pixel 3's framebuffer0 node so simpledrm handover does not drop vpnl independently of vddi. Signed-off-by: David Heidelberg <[email protected]> --- arch/arm64/boot/dts/qcom/sdm845-google-blueline.dts | 2 ++ arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi | 10 ---------- arch/arm64/boot/dts/qcom/sdm845-google-crosshatch.dts | 3 +++ 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845-google-blueline.dts b/arch/arm64/boot/dts/qcom/sdm845-google-blueline.dts index a000c75494f1c..f916f4dbb89c5 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-google-blueline.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-google-blueline.dts @@ -14,16 +14,18 @@ &battery { voltage-min-design-microvolt = <3600000>; voltage-max-design-microvolt = <4400000>; }; &framebuffer0 { width = <1080>; height = <2160>; stride = <(1080 * 4)>; + + /* intentionally no supplies here, see the LG SW43408 driver */ }; &i2c2 { clock-frequency = <1000000>; status = "okay"; /* ST,FTS @ 49 */ diff --git a/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi index 3c9656b88b696..c025b2df4ea25 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi @@ -246,21 +246,16 @@ vreg_l13a_2p95: ldo13 { regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; }; vreg_l14a_1p8: ldo14 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; regulator-boot-on; - /* - * We can't properly bring the panel back if it gets turned off - * so keep it's regulators always on for now. - */ - regulator-always-on; }; vreg_l17a_1p3: ldo17 { regulator-min-microvolt = <1304000>; regulator-max-microvolt = <1304000>; regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; }; @@ -308,21 +303,16 @@ vreg_l26a_1p2: ldo26 { regulator-boot-on; }; vreg_l28a_3p0: ldo28 { regulator-min-microvolt = <2856000>; regulator-max-microvolt = <3008000>; regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; regulator-boot-on; - /* - * We can't properly bring the panel back if it gets turned off - * so keep it's regulators always on for now. - */ - regulator-always-on; }; }; regulators-1 { compatible = "qcom,pmi8998-rpmh-regulators"; qcom,pmic-id = "b"; vdd-bob-supply = <&vph_pwr>; diff --git a/arch/arm64/boot/dts/qcom/sdm845-google-crosshatch.dts b/arch/arm64/boot/dts/qcom/sdm845-google-crosshatch.dts index 2a81ca1d00b1b..7591c6ebb1cb9 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-google-crosshatch.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-google-crosshatch.dts @@ -19,16 +19,19 @@ &dispcc { /* Disable for now so simple-framebuffer continues working */ status = "disabled"; }; &framebuffer0 { width = <1440>; height = <2960>; stride = <(1440 * 4)>; + + vddi-supply = <&vreg_l14a_1p8>; + vci-supply = <&vreg_l28a_3p0>; }; &mdss { /* Disable for now so simple-framebuffer continues working */ status = "disabled"; }; &wifi { -- 2.55.0
