[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190531094619.31704-5-masneyb@onstation.org>
Date: Fri, 31 May 2019 05:46:17 -0400
From: Brian Masney <masneyb@...tation.org>
To: robdclark@...il.com, sean@...rly.run,
dri-devel@...ts.freedesktop.org, linux-arm-msm@...r.kernel.org,
freedreno@...ts.freedesktop.org, airlied@...ux.ie, daniel@...ll.ch,
linux-kernel@...r.kernel.org, linus.walleij@...aro.org,
jonathan@...ek.ca, robh@...nel.org, jeffrey.l.hugo@...il.com
Subject: [PATCH v3 4/6] ARM: dts: qcom: msm8974-hammerhead: add support for backlight
Add necessary device tree nodes for the main LCD backlight.
Signed-off-by: Brian Masney <masneyb@...tation.org>
Reviewed-by: Linus Walleij <linus.walleij@...aro.org>
---
.../qcom-msm8974-lge-nexus5-hammerhead.dts | 34 +++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
index 1fd9f429f34a..51889d66b55a 100644
--- a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
+++ b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
@@ -290,6 +290,16 @@
};
};
+ i2c11_pins: i2c11 {
+ mux {
+ pins = "gpio83", "gpio84";
+ function = "blsp_i2c11";
+
+ drive-strength = <2>;
+ bias-disable;
+ };
+ };
+
i2c12_pins: i2c12 {
mux {
pins = "gpio87", "gpio88";
@@ -400,6 +410,30 @@
};
};
+ i2c@...67000 {
+ status = "ok";
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c11_pins>;
+ clock-frequency = <355000>;
+ qcom,src-freq = <50000000>;
+
+ led-controller@38 {
+ compatible = "ti,lm3630a";
+ status = "ok";
+ reg = <0x38>;
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ led@0 {
+ reg = <0>;
+ led-sources = <0 1>;
+ label = "lcd-backlight";
+ default-brightness = <200>;
+ };
+ };
+ };
+
i2c@...68000 {
status = "ok";
pinctrl-names = "default";
--
2.20.1
Powered by blists - more mailing lists