Commit 05c65922 authored by Siddharth Manthan's avatar Siddharth Manthan Committed by Bjorn Andersson

arm64: dts: qcom: msm8916-samsung-fortuna: Add PWM backlight

Most of the Galaxy Grand Prime use backlight drivers controlled with PWM
signal.
To simplify the description, add the backlight with the necessary clk-pwm
to the common dtsi.
Signed-off-by: default avatarSiddharth Manthan <siddharth.manthan@gmail.com>
[Stephan: Move to fortuna-common and disable on rossa-common]
Signed-off-by: default avatarStephan Gerhold <stephan@gerhold.net>
[Raymond: Add the commit message]
Signed-off-by: default avatarRaymond Hackley <raymondhackley@protonmail.com>
Link: https://lore.kernel.org/r/20240404121703.17086-3-raymondhackley@protonmail.comSigned-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent f8dddefc
...@@ -26,6 +26,30 @@ tz-apps@85a00000 { ...@@ -26,6 +26,30 @@ tz-apps@85a00000 {
}; };
}; };
clk_pwm_backlight: backlight {
compatible = "pwm-backlight";
pwms = <&clk_pwm 0 100000>;
enable-gpios = <&tlmm 98 GPIO_ACTIVE_HIGH>;
brightness-levels = <0 255>;
num-interpolated-steps = <255>;
default-brightness-level = <128>;
pinctrl-0 = <&backlight_en_default>;
pinctrl-names = "default";
};
clk_pwm: pwm {
compatible = "clk-pwm";
#pwm-cells = <2>;
clocks = <&gcc GCC_GP2_CLK>;
pinctrl-0 = <&backlight_pwm_default>;
pinctrl-names = "default";
};
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
...@@ -199,6 +223,18 @@ &wcnss_mem { ...@@ -199,6 +223,18 @@ &wcnss_mem {
}; };
&tlmm { &tlmm {
backlight_en_default: backlight-en-default-state {
pins = "gpio98";
function = "gpio";
drive-strength = <2>;
bias-disable;
};
backlight_pwm_default: backlight-pwm-default-state {
pins = "gpio50";
function = "gcc_gp2_clk_a";
};
fg_alert_default: fg-alert-default-state { fg_alert_default: fg-alert-default-state {
pins = "gpio121"; pins = "gpio121";
function = "gpio"; function = "gpio";
......
...@@ -17,3 +17,12 @@ muic: extcon@14 { ...@@ -17,3 +17,12 @@ muic: extcon@14 {
pinctrl-names = "default"; pinctrl-names = "default";
}; };
}; };
/* On rossa backlight is controlled with MIPI DCS commands */
&clk_pwm {
status = "disabled";
};
&clk_pwm_backlight {
status = "disabled";
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment