Re: [PATCH 2/2] arm64: dts: qcom: msm8939-longcheer-l9100: Enable RGB LED

2023-10-18 Thread Konrad Dybcio




On 10/13/23 22:51, André Apitzsch wrote:

l9100 uses KTD2026 LED driver. Add it to the device tree.

Signed-off-by: André Apitzsch 
---

Reviewed-by: Konrad Dybcio 

Konrad


[PATCH 2/2] arm64: dts: qcom: msm8939-longcheer-l9100: Enable RGB LED

2023-10-13 Thread André Apitzsch
l9100 uses KTD2026 LED driver. Add it to the device tree.

Signed-off-by: André Apitzsch 
---
 .../boot/dts/qcom/msm8939-longcheer-l9100.dts  | 51 ++
 1 file changed, 51 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts 
b/arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts
index 6802714fda3f..4eb33e36a8eb 100644
--- a/arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts
+++ b/arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts
@@ -8,6 +8,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 
 / {
@@ -120,6 +121,46 @@ usb_id: usb-id {
 
 };
 
+_i2c2 {
+   status = "okay";
+
+   led-controller@30 {
+   compatible = "kinetic,ktd2026";
+   reg = <0x30>;
+   #address-cells = <1>;
+   #size-cells = <0>;
+
+   vin-supply = <_l17>;
+   vio-supply = <_l6>;
+
+   pinctrl-0 = <_led_default>;
+   pinctrl-names = "default";
+
+   multi-led {
+   color = ;
+   function = LED_FUNCTION_STATUS;
+
+   #address-cells = <1>;
+   #size-cells = <0>;
+
+   led@0 {
+   reg = <0>;
+   color = ;
+   };
+
+   led@1 {
+   reg = <1>;
+   color = ;
+   };
+
+   led@2 {
+   reg = <2>;
+   color = ;
+   };
+   };
+   };
+};
+
 _i2c3 {
status = "okay";
 
@@ -184,6 +225,16 @@ _uart2 {
status = "okay";
 };
 
+_gpios {
+   status_led_default: status-led-default-state {
+   pins = "gpio3";
+   function = PMIC_GPIO_FUNC_NORMAL;
+   power-source = ;
+   bias-disable;
+   output-high;
+   };
+};
+
 _mpps {
pwm_out: mpp4-state {
pins = "mpp4";

-- 
2.42.0