#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "zyxel,lte5398-m904", "mediatek,mt7621-soc";
compatible = "gpio-leds";
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
};
power_blue {
- label = "blue:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "usbport";
trigger-sources = <&ehci_port2>;
reg = <0x80000 0x80000>;
};
- factory: partition@100000 {
+ partition@100000 {
label = "Factory";
reg = <0x100000 0x40000>;
read-only;