arm64: dts: qcom: qrb2210-rb1: Add GPIO LEDs
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Wed, 6 Sep 2023 09:24:58 +0000 (11:24 +0200)
committerBjorn Andersson <andersson@kernel.org>
Wed, 20 Sep 2023 01:05:03 +0000 (18:05 -0700)
Add the three LEDs (blue/yellow/green) connected to TLMM GPIOs.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230906-topic-rb1_features_sans_icc-v1-4-e92ce6fbde16@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/qrb2210-rb1.dts

index 5f7619518debd0c279dcf6a9307d04fd1f235507..fd45f58e254d92788c52951839f9ebf9c13bf2b9 100644 (file)
@@ -5,6 +5,7 @@
 
 /dts-v1/;
 
+#include <dt-bindings/leds/common.h>
 #include "qcm2290.dtsi"
 #include "pm2250.dtsi"
 
                };
        };
 
+       leds {
+               compatible = "gpio-leds";
+
+               led-bt {
+                       label = "blue:bt";
+                       function = LED_FUNCTION_BLUETOOTH;
+                       color = <LED_COLOR_ID_BLUE>;
+                       gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
+                       linux,default-trigger = "bluetooth-power";
+                       default-state = "off";
+               };
+
+               led-user0 {
+                       label = "green:user0";
+                       function = LED_FUNCTION_INDICATOR;
+                       color = <LED_COLOR_ID_GREEN>;
+                       gpios = <&tlmm 52 GPIO_ACTIVE_HIGH>;
+                       linux,default-trigger = "none";
+                       default-state = "off";
+                       panic-indicator;
+               };
+
+               led-wlan {
+                       label = "yellow:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_YELLOW>;
+                       gpios = <&tlmm 47 GPIO_ACTIVE_HIGH>;
+                       linux,default-trigger = "phy0tx";
+                       default-state = "off";
+               };
+       };
+
        vreg_hdmi_out_1p2: regulator-hdmi-out-1p2 {
                compatible = "regulator-fixed";
                regulator-name = "VREG_HDMI_OUT_1P2";