ARM: dts: qcom: msm8974-sony: Enable LPG

Both Castor and Honami has RGB LEDs driven by the PM8941 LPG, define
these.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Link: https://lore.kernel.org/r/20220713212309.130230-3-bjorn.andersson@linaro.org
This commit is contained in:
Bjorn Andersson 2022-07-13 14:23:09 -07:00
parent 5edd7d3e15
commit 27f5947894
2 changed files with 60 additions and 0 deletions

View File

@ -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>
/ {
@ -172,6 +173,35 @@ gpio_keys_pin_a: gpio-keys-active-state {
};
};
&pm8941_lpg {
status = "okay";
qcom,power-source = <1>;
rgb-led {
color = <LED_COLOR_ID_RGB>;
function = LED_FUNCTION_STATUS;
#address-cells = <1>;
#size-cells = <0>;
led@5 {
reg = <5>;
color = <LED_COLOR_ID_BLUE>;
};
led@6 {
reg = <6>;
color = <LED_COLOR_ID_GREEN>;
};
led@7 {
reg = <7>;
color = <LED_COLOR_ID_RED>;
};
};
};
&pm8941_wled {
status = "okay";

View File

@ -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>
/ {
@ -288,6 +289,35 @@ lcd_dcdc_en_pin_a: lcd-dcdc-en-active-state {
};
&pm8941_lpg {
status = "okay";
qcom,power-source = <1>;
rgb-led {
color = <LED_COLOR_ID_RGB>;
function = LED_FUNCTION_STATUS;
#address-cells = <1>;
#size-cells = <0>;
led@5 {
reg = <5>;
color = <LED_COLOR_ID_BLUE>;
};
led@6 {
reg = <6>;
color = <LED_COLOR_ID_GREEN>;
};
led@7 {
reg = <7>;
color = <LED_COLOR_ID_RED>;
};
};
};
&rpm_requests {
pm8941-regulators {
compatible = "qcom,rpm-pm8941-regulators";