]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: sm6115-pro1x: Enable RGB LED
authorDang Huynh <danct12@riseup.net>
Wed, 31 Jul 2024 06:18:50 +0000 (13:18 +0700)
committerBjorn Andersson <andersson@kernel.org>
Thu, 1 Aug 2024 02:42:00 +0000 (21:42 -0500)
This device has an RGB LED. It is used for notifications.

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Dang Huynh <danct12@riseup.net>
Link: https://lore.kernel.org/r/20240731-qx1050-feature-expansion-v3-9-b945527fa5d2@riseup.net
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sm6115-fxtec-pro1x.dts

index d045969a9b78932aa25bdb35fd79cd5732ffa787..9713e8d0380ebe0f33c70f192f29ef646aeaf2a5 100644 (file)
        };
 };
 
+&pmi632_lpg {
+       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>;
+               };
+       };
+};
+
 &pmi632_typec {
        status = "okay";