|
|
@@ -4,6 +4,7 @@
|
|
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
+#include <dt-bindings/leds/common.h>
|
|
|
|
|
|
/ {
|
|
|
compatible = "yuncore,ax820", "mediatek,mt7621-soc";
|
|
|
@@ -47,6 +48,18 @@
|
|
|
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
|
|
|
linux,default-trigger = "phy1radio";
|
|
|
};
|
|
|
+
|
|
|
+ wan {
|
|
|
+ color = <LED_COLOR_ID_GREEN>;
|
|
|
+ function = LED_FUNCTION_WAN;
|
|
|
+ gpios = <&switch0 0 GPIO_ACTIVE_LOW>;
|
|
|
+ };
|
|
|
+
|
|
|
+ lan {
|
|
|
+ color = <LED_COLOR_ID_GREEN>;
|
|
|
+ function = LED_FUNCTION_LAN;
|
|
|
+ gpios = <&switch0 3 GPIO_ACTIVE_LOW>;
|
|
|
+ };
|
|
|
};
|
|
|
|
|
|
watchdog {
|
|
|
@@ -147,6 +160,9 @@
|
|
|
};
|
|
|
|
|
|
&switch0 {
|
|
|
+ gpio-controller;
|
|
|
+ #gpio-cells = <2>;
|
|
|
+
|
|
|
ports {
|
|
|
port@1 {
|
|
|
status = "okay";
|