Skip to content

Commit

Permalink
ARM: dts: msm8974-FP2: Add LPG node and RGB LED
Browse files Browse the repository at this point in the history
FP2 has a RGB LED connected to the TRILED and hence channels 7, 6 and
5 of the LPG. Add a node describing this.

Signed-off-by: Luca Weiss <[email protected]>
  • Loading branch information
z3ntu authored and minlexx committed Nov 7, 2022
1 parent e982ce1 commit cd3cce4
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions arch/arm/boot/dts/qcom-msm8974pro-fairphone-fp2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "qcom-pm8841.dtsi"
#include "qcom-pm8941.dtsi"
#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>

/ {
Expand Down Expand Up @@ -162,6 +163,35 @@
};
};

&pm8941_lpg {
status = "okay";

qcom,power-source = <1>;

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

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

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

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

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

&pronto {
status = "okay";

Expand Down

0 comments on commit cd3cce4

Please sign in to comment.