|
@@ -3,6 +3,7 @@
|
|
|
#include "qcom-ipq4019.dtsi"
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
+#include <dt-bindings/leds/common.h>
|
|
|
#include <dt-bindings/soc/qcom,tcsr.h>
|
|
|
|
|
|
/ {
|
|
@@ -86,34 +87,40 @@
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
led-0 {
|
|
|
- label = "green:power";
|
|
|
+ function = LED_FUNCTION_POWER;
|
|
|
+ color = <LED_COLOR_ID_GREEN>;
|
|
|
gpios = <&tlmm 63 GPIO_ACTIVE_HIGH>;
|
|
|
default-state = "on";
|
|
|
};
|
|
|
|
|
|
led-1 {
|
|
|
- label = "red:power";
|
|
|
+ function = LED_FUNCTION_POWER;
|
|
|
+ color = <LED_COLOR_ID_RED>;
|
|
|
gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>;
|
|
|
panic-indicator;
|
|
|
};
|
|
|
|
|
|
led_status_green: led-2 {
|
|
|
- label = "green:status";
|
|
|
+ function = LED_FUNCTION_STATUS;
|
|
|
+ color = <LED_COLOR_ID_GREEN>;
|
|
|
gpios = <&tlmm 53 GPIO_ACTIVE_HIGH>;
|
|
|
};
|
|
|
|
|
|
led_status_red: led-3 {
|
|
|
- label = "red:status";
|
|
|
+ function = LED_FUNCTION_STATUS;
|
|
|
+ color = <LED_COLOR_ID_RED>;
|
|
|
gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
|
|
|
};
|
|
|
|
|
|
led_status_blue: led-4 {
|
|
|
- label = "blue:status";
|
|
|
+ function = LED_FUNCTION_STATUS;
|
|
|
+ color = <LED_COLOR_ID_BLUE>;
|
|
|
gpios = <&tlmm 57 GPIO_ACTIVE_HIGH>;
|
|
|
};
|
|
|
|
|
|
led_status_white: led-5 {
|
|
|
- label = "white:status";
|
|
|
+ function = LED_FUNCTION_STATUS;
|
|
|
+ color = <LED_COLOR_ID_WHITE>;
|
|
|
gpios = <&tlmm 60 GPIO_ACTIVE_HIGH>;
|
|
|
};
|
|
|
};
|