arm64: dts: qcom: sc8180x-lenovo-flex-5g: Describe the display power net

Describe and wire up the power supplies for the eDP panel and its
backlight. Previously, this was only working because of settings
inherited from the bootloader.

Fixes: 20dea72a39 ("arm64: dts: qcom: sc8180x: Introduce Lenovo Flex 5G")
Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260616-topic-8180_disp_power-v2-4-167785993231@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
Konrad Dybcio 2026-06-16 11:08:52 +02:00 committed by Bjorn Andersson
parent 0b1c6d2a65
commit d5f5c08985

View File

@ -26,6 +26,7 @@ backlight: backlight {
compatible = "pwm-backlight";
pwms = <&pmc8180c_lpg 4 1000000>;
enable-gpios = <&pmc8180c_gpios 8 GPIO_ACTIVE_HIGH>;
power-supply = <&vled_bl_pw>;
pinctrl-0 = <&bl_pwm_default>;
pinctrl-names = "default";
@ -157,6 +158,38 @@ cdsp_mem: cdsp-region@98900000 {
};
};
vled_bl_pw: regulator-vled-bl-pw {
compatible = "regulator-fixed";
regulator-name = "VLED_BL_PW";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&pmc8180_2_gpios 1 GPIO_ACTIVE_HIGH>;
enable-active-high;
pinctrl-0 = <&bl_pwr_en>;
pinctrl-names = "default";
regulator-boot-on;
};
vreg_lcm_3v3: regulator-edp-3p3 {
compatible = "regulator-fixed";
regulator-name = "VREG_LCM_3V3";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&tlmm 130 GPIO_ACTIVE_HIGH>;
enable-active-high;
pinctrl-0 = <&lcm_3v3_en>;
pinctrl-names = "default";
regulator-boot-on;
};
vreg_s4a_1p8: regulator-pm8150-s4 {
compatible = "regulator-fixed";
regulator-name = "vreg_s4a_1p8";
@ -438,6 +471,7 @@ &mdss_edp {
aux-bus {
panel {
compatible = "edp-panel";
power-supply = <&vreg_lcm_3v3>;
no-hpd;
backlight = <&backlight>;
@ -472,6 +506,13 @@ &pcie3_phy {
status = "okay";
};
&pmc8180_2_gpios {
bl_pwr_en: bl-pwr-en-state {
pins = "gpio1";
function = "normal";
};
};
&pmc8180_pwrkey {
status = "okay";
};
@ -765,6 +806,12 @@ ts_int_default: ts-int-default-state {
drive-strength = <2>;
};
lcm_3v3_en: lcm-3v3-en-state {
pins = "gpio130";
function = "gpio";
bias-disable;
};
usbprim_sbu_default: usbprim-sbu-state {
oe-n-pins {
pins = "gpio152";