Skip to content

Commit

Permalink
arm64: dts: qcom: msm8939-longcheer-l9100: Enable RGB LED
Browse files Browse the repository at this point in the history
l9100 uses KTD2026 LED driver. Add it to the device tree.

Signed-off-by: André Apitzsch <git@apitzsch.eu>
  • Loading branch information
André Apitzsch authored and a-andre committed Oct 13, 2023
1 parent 0352630 commit 6562ea0
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include <dt-bindings/pinctrl/qcom,pmic-mpp.h>

/ {
Expand Down Expand Up @@ -121,6 +122,46 @@

};

&blsp_i2c2 {
status = "okay";

led-controller@30 {
compatible = "kinetic,ktd2026";
reg = <0x30>;
#address-cells = <1>;
#size-cells = <0>;

vin-supply = <&pm8916_l17>;
vio-supply = <&pm8916_l6>;

pinctrl-0 = <&status_led_default>;
pinctrl-names = "default";

multi-led {
color = <LED_COLOR_ID_RGB>;
function = LED_FUNCTION_STATUS;

#address-cells = <1>;
#size-cells = <0>;

led@0 {
reg = <0>;
color = <LED_COLOR_ID_RED>;
};

led@1 {
reg = <1>;
color = <LED_COLOR_ID_GREEN>;
};

led@2 {
reg = <2>;
color = <LED_COLOR_ID_BLUE>;
};
};
};
};

&blsp_i2c3 {
status = "okay";

Expand Down Expand Up @@ -353,6 +394,16 @@
status = "okay";
};

&pm8916_gpios {
status_led_default: status-led-default-state {
pins = "gpio3";
function = PMIC_GPIO_FUNC_NORMAL;
power-source = <PM8916_GPIO_VPH>;
bias-disable;
output-high;
};
};

&tlmm {
button_backlight_default: button-backlight-default-state {
pins = "gpio17";
Expand Down

0 comments on commit 6562ea0

Please sign in to comment.