-/dts-v1/;
-
#include "bcm6358.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Comtrend CT-6373";
compatible = "gpio-leds";
power_green {
- label = "CT6373-1:green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 0>;
default-state = "on";
};
usb_green {
- label = "CT6373-1:green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 3 1>;
};
wlan_green {
- label = "CT6373-1:green:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 9 1>;
};
};
};
&leds {
- status = "ok";
+ status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_serial_led>;
led@0 {
reg = <0>;
active-low;
- label = "CT6373-1:green:adsl";
+ label = "green:adsl";
};
led@1 {
reg = <1>;
active-low;
- label = "CT6373-1:green:line";
+ label = "green:line";
};
led@2 {
reg = <2>;
active-low;
- label = "CT6373-1:green:fxs1";
+ label = "green:fxs1";
};
led@3 {
reg = <3>;
active-low;
- label = "CT6373-1:green:fxs2";
+ label = "green:fxs2";
};
};
&pflash {
- status = "ok";
+ status = "okay";
partitions {
compatible = "fixed-partitions";
};
&uart0 {
- status = "ok";
+ status = "okay";
};