arm64: dts: qcom: sm8550-qrd: add notification RGB LED
authorNeil Armstrong <neil.armstrong@linaro.org>
Mon, 12 Jun 2023 15:22:50 +0000 (17:22 +0200)
committerBjorn Andersson <andersson@kernel.org>
Tue, 13 Jun 2023 18:01:49 +0000 (11:01 -0700)
The QRD features a notification LED connected to the pm8550.
Configure the RGB led controlled by the PMIC PWM controller.

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230525-topic-sm8550-upstream-pm8550-lpg-dt-v4-2-a288f24af81b@linaro.org
arch/arm64/boot/dts/qcom/sm8550-qrd.dts

index 8669d29..efff152 100644 (file)
        };
 };
 
+&pm8550_pwm {
+       status = "okay";
+
+       multi-led {
+               color = <LED_COLOR_ID_RGB>;
+               function = LED_FUNCTION_STATUS;
+
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               led@1 {
+                       reg = <1>;
+                       color = <LED_COLOR_ID_RED>;
+               };
+
+               led@2 {
+                       reg = <2>;
+                       color = <LED_COLOR_ID_GREEN>;
+               };
+
+               led@3 {
+                       reg = <3>;
+                       color = <LED_COLOR_ID_BLUE>;
+               };
+       };
+};
+
 &pm8550b_eusb2_repeater {
        vdd18-supply = <&vreg_l15b_1p8>;
        vdd3-supply = <&vreg_l5b_3p1>;