Commit a28106a2 authored by Bjorn Andersson's avatar Bjorn Andersson

arm64: dts: qcom: c630: Add backlight controller

The Lenovo Yoga C630 uses the PWM controller in the TI SN65DSI86 bridge
chip to provide a signal for the backlight control and has TLMM GPIO 11
attached to some regulator that drives the backlight.

Unfortunately the regulator attached to this gpio is also powering the
camera, so turning off backlight result in the detachment of the camera
as well.
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Tested-by: default avatarSteev Klimaszewski <steev@kali.org>
Link: https://lore.kernel.org/r/20220208041606.144039-1-bjorn.andersson@linaro.org
parent 116f7cc4
......@@ -59,6 +59,7 @@ mode {
panel {
compatible = "boe,nv133fhm-n61";
no-hpd;
backlight = <&backlight>;
ports {
port {
......@@ -98,6 +99,12 @@ sn65dsi86_refclk: sn65dsi86-refclk {
clock-frequency = <19200000>;
};
backlight: backlight {
compatible = "pwm-backlight";
pwms = <&sn65dsi86 1000000>;
enable-gpios = <&tlmm 11 GPIO_ACTIVE_HIGH>;
};
};
&adsp_pas {
......@@ -419,6 +426,7 @@ sn65dsi86: bridge@2c {
clock-names = "refclk";
no-hpd;
#pwm-cells = <1>;
ports {
#address-cells = <1>;
......
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