ARM: dts: msm: add backlight properties for eDP

Add properties for eDP backlight and remove pwm-backlight.

Change-Id: Ia438ae7c187c1b374a076eb607d5470d3131cfa7
This commit is contained in:
Nilesh Laad 2023-06-13 16:21:42 +05:30
commit 7f2c7d7ec7

View file

@ -21,6 +21,11 @@
qcom,edp-backlight-en-gpio = <&pm8350c_gpios 7 0>;
qcom,edp-default-panel = <&edp_panel_1080p_video>;
qcom,panel-notifier-support;
qcom,edp-bl-min-level = <1>;
qcom,edp-bl-max-level = <4095>;
qcom,edp-brightness-max-level = <255>;
qcom,bl-pmic-pwm-period-usecs = <100>;
pwms = <&pm8350c_pwm_2 0 65535>;
};
&mdss_mdp {
@ -46,15 +51,6 @@
};
&pm8350c_gpios {
pmic_edp_bl_en: pmic-edp-bl-en-state {
pins = "gpio7";
function = "normal";
bias-disable;
qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
/* Force backlight to be disabled to match state at boot. */
output-low;
};
pmic_edp_bl_pwm: pmic-edp-bl-pwm-state {
pins = "gpio8";
function = "func1";
@ -69,24 +65,6 @@
status = "ok"
};
&soc {
edp_panel_bl_reg: edp_panel_bl_reg {
compatible = "qcom,stub-regulator";
regulator-name = "edp_panel_bl_reg";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};
pm8350c_pwm_backlight: backlight {
compatible = "pwm-backlight";
power-supply = <&edp_panel_bl_reg>;
enable-gpios = <&pm8350c_gpios 7 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&pmic_edp_bl_en>;
pwms = <&pm8350c_pwm_2 0 65535 0>;
};
};
&pcie0 {
status = "ok"
};