aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@linaro.org>2022-02-07 22:16:05 -0600
committerBjorn Andersson <bjorn.andersson@linaro.org>2022-02-08 15:24:59 -0600
commita28106a2734f602d852a9269526f5880df352b51 (patch)
tree23a7682b0c31aabe8ca80fddece1210fcdec4819 /arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts
parentarm64: dts: qcom: sc7280: Add herobrine-r1 (diff)
downloadlinux-dev-a28106a2734f602d852a9269526f5880df352b51.tar.xz
linux-dev-a28106a2734f602d852a9269526f5880df352b51.zip
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: Bjorn Andersson <bjorn.andersson@linaro.org> Tested-by: Steev Klimaszewski <steev@kali.org> Link: https://lore.kernel.org/r/20220208041606.144039-1-bjorn.andersson@linaro.org
Diffstat (limited to 'arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts')
-rw-r--r--arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts
index 58845a14805f..55fb7302245b 100644
--- a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts
+++ b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts
@@ -59,6 +59,7 @@
panel {
compatible = "boe,nv133fhm-n61";
no-hpd;
+ backlight = <&backlight>;
ports {
port {
@@ -98,6 +99,12 @@
clock-frequency = <19200000>;
};
+
+ backlight: backlight {
+ compatible = "pwm-backlight";
+ pwms = <&sn65dsi86 1000000>;
+ enable-gpios = <&tlmm 11 GPIO_ACTIVE_HIGH>;
+ };
};
&adsp_pas {
@@ -419,6 +426,7 @@
clock-names = "refclk";
no-hpd;
+ #pwm-cells = <1>;
ports {
#address-cells = <1>;