led-failsafe = &led_status_red;
led-running = &led_status_blue;
led-upgrade = &led_status_yellow;
+ label-mac-device = &gmac0;
};
chosen {
led_status_red: status_red {
label = "mir3p:red:status";
- gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
led_status_blue: status_blue {
label = "mir3p:blue:status";
- gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
led_status_yellow: status_yellow {
label = "mir3p:yellow:status";
- gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
};
wan_amber {
label = "mir3p:amber:wan";
- gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
+ linux,default-trigger = "dsa-0.0:04:1Gbps";
};
lan3_amber {
label = "mir3p:amber:lan3";
- gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
+ linux,default-trigger = "dsa-0.0:01:1Gbps";
};
lan2_amber {
label = "mir3p:amber:lan2";
- gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
+ linux,default-trigger = "dsa-0.0:02:1Gbps";
};
lan1_amber {
label = "mir3p:amber:lan1";
- gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
+ linux,default-trigger = "dsa-0.0:03:1Gbps";
};
};
reset {
label = "reset";
- gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
regulator-name = "usb_vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
- gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
+ gpio = <&gpio 12 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
};
};
};
-ðernet {
- mtd-mac-address = <&factory 0xe000>;
- mediatek,portmap = "llllw";
+&gmac0 {
+ mtd-mac-address = <&factory 0xe006>;
};
-&pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "jtag", "uart2", "uart3", "wdt";
- ralink,function = "gpio";
+&switch0 {
+ ports {
+ port@1 {
+ status = "okay";
+ label = "lan3";
};
+
+ port@2 {
+ status = "okay";
+ label = "lan2";
+ };
+
+ port@3 {
+ status = "okay";
+ label = "lan1";
+ };
+
+ port@4 {
+ status = "okay";
+ label = "wan";
+ mtd-mac-address = <&factory 0xe000>;
+ };
+ };
+};
+
+&state_default {
+ gpio {
+ groups = "jtag", "uart2", "uart3", "wdt";
+ function = "gpio";
};
};