Re: [Freedreno] [PATCH RFC 5/6] ARM: dts: qcom: msm8974-hammerhead: add support for backlight

2019-05-06 Thread Linus Walleij
On Sun, May 5, 2019 at 3:04 PM Brian Masney  wrote:

> Add necessary device tree nodes for the main LCD backlight.
>
> Signed-off-by: Brian Masney 

Reviewed-by: Linus Walleij 

> This requires this series that I submitted to the LED / backlight
> subsystem:
> https://lore.kernel.org/lkml/20190424092505.6578-1-masn...@onstation.org/
> It's received 3 {Reviewed,Acked}-Bys, and has no outstanding change
> requests, so I expect it'll be merged soon.

If the DT bindings are ACKed and reviewed we can merge DTS
files using it IMO.

Yours,
Linus Walleij
___
Freedreno mailing list
Freedreno@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/freedreno

[Freedreno] [PATCH RFC 5/6] ARM: dts: qcom: msm8974-hammerhead: add support for backlight

2019-05-05 Thread Brian Masney
Add necessary device tree nodes for the main LCD backlight.

Signed-off-by: Brian Masney 
---
This requires this series that I submitted to the LED / backlight
subsystem:
https://lore.kernel.org/lkml/20190424092505.6578-1-masn...@onstation.org/
It's received 3 {Reviewed,Acked}-Bys, and has no outstanding change
requests, so I expect it'll be merged soon.

 .../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 b3b04736a159..b7cf4b1019e9 100644
--- a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
+++ b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
@@ -289,6 +289,16 @@
};
};
 
+   i2c11_pins: i2c11 {
+   mux {
+   pins = "gpio83", "gpio84";
+   function = "blsp_i2c11";
+
+   drive-strength = <2>;
+   bias-disable;
+   };
+   };
+
i2c12_pins: i2c12 {
mux {
pins = "gpio87", "gpio88";
@@ -369,6 +379,30 @@
};
};
 
+   i2c@f9967000 {
+   status = "ok";
+   pinctrl-names = "default";
+   pinctrl-0 = <_pins>;
+   clock-frequency = <355000>;
+   qcom,src-freq = <5000>;
+
+   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@f9968000 {
status = "ok";
pinctrl-names = "default";
-- 
2.20.1

___
Freedreno mailing list
Freedreno@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/freedreno