@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -99,7 +100,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt5350.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -100,7 +101,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -111,7 +112,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -100,7 +101,7 @@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt5350.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -89,7 +90,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -106,7 +107,7 @@
&esw {
status = "okay";
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -94,7 +95,7 @@
};
&esw {
- mediatek,portmap = <0x3f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -94,7 +95,7 @@
};
&esw {
- mediatek,portmap = <0x3f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3352.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
/ {
compatible = "ALL5002", "ralink,rt3352-soc";
@@ -95,7 +96,7 @@
};
&esw {
- mediatek,portmap = <0x3f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt5350.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
/ {
compatible = "ALL5003", "ralink,rt5350-soc";
@@ -95,7 +96,7 @@
};
&esw {
- mediatek,portmap = <0x3f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -87,7 +88,7 @@
};
&esw {
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -76,7 +77,7 @@
};
&esw {
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,4 +1,5 @@
#include "rt5350.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
/ {
compatible = "AWM002", "ralink,rt5350-soc";
@@ -64,7 +65,7 @@
};
&esw {
- mediatek,portmap = <0x3f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLL>;
};
&ehci {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -120,7 +121,7 @@
ðernet {
pinctrl-names = "default";
mtd-mac-address = <&rom 0xf100>;
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&ehci {
@@ -3,6 +3,7 @@
#include <dt-bindings/gpio/gpio.h>
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
/ {
compatible = "ralink,mt7620a-soc";
@@ -151,7 +152,7 @@
ðernet {
pinctrl-names = "default";
mtd-mac-address = <&rom 0xf100>;
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&ehci {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
@@ -161,7 +162,7 @@
ðernet {
mtd-mac-address = <&rom 0xf100>;
- mediatek,portmap = <0x3f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLL>;
};
&ehci {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -77,7 +78,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -65,7 +66,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -82,7 +83,7 @@
};
&esw {
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
/ {
compatible = "CARAMBOLA", "ralink,rt3050-soc";
@@ -63,7 +64,7 @@
};
&esw {
- mediatek,portmap = <0x3f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -123,7 +124,7 @@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&gsw {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -82,7 +83,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -34,6 +34,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
@@ -136,7 +137,7 @@
ðernet {
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -115,7 +116,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -83,7 +84,7 @@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&gsw {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -103,7 +104,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt5350.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -91,7 +92,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -103,7 +104,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt5350.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -91,7 +92,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
mediatek,led_polarity = <0x17>;
};
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt5350.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -113,7 +114,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
mediatek,led_polarity = <0x17>;
};
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -103,7 +104,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt5350.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -92,7 +93,7 @@
&esw {
status = "okay";
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
mediatek,led_polarity = <0x17>;
};
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -90,7 +91,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3352.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -116,7 +117,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -108,7 +109,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3352.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -95,7 +96,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -117,7 +118,7 @@
ðernet {
mtd-mac-address = <&factory 0x28>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&gsw {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt5350.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
@@ -131,7 +132,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
ðernet {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -88,7 +89,7 @@
};
&esw {
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
/ {
compatible = "F5D8235_V2", "ralink,rt3052-soc";
@@ -106,7 +107,7 @@
};
&esw {
- mediatek,portmap = <0x3f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -94,7 +95,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
port@0 {
compatible = "swconfig,port";
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -133,7 +134,7 @@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4000>;
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -122,7 +123,7 @@
ðernet {
mtd-mac-address = <&factory 0x4000>;
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -128,7 +129,7 @@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4000>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "HC5XXX.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
/ {
compatible = "HC5861", "ralink,mt7620a-soc";
@@ -58,7 +59,7 @@
mtd-mac-address = <&factory 0x4>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
port@4 {
status = "okay";
@@ -1,4 +1,5 @@
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -110,7 +111,7 @@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&sdhci {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -120,7 +121,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -104,7 +105,7 @@
};
&esw {
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -82,7 +83,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&otg {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -80,7 +81,7 @@
};
&esw {
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -75,7 +76,7 @@
};
&esw {
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -121,7 +122,7 @@
};
&esw {
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt5350.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -95,7 +96,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&ehci {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt5350.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -87,7 +88,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
mediatek,led_polarity = <1>;
};
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt5350.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -80,7 +81,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
mediatek,led_polarity = <1>;
};
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt5350.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -80,7 +81,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
mediatek,led_polarity = <1>;
};
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7628an.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
/ {
compatible = "mercury,mac1200rv2", "mediatek,mt7628an-soc";
@@ -72,7 +73,7 @@
ðernet {
pinctrl-names = "default";
mtd-mac-address = <&factory 0xd>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt5350.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -107,7 +108,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -82,7 +83,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -119,7 +120,7 @@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x28>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620n.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -104,7 +105,7 @@
ðernet {
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620n.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -104,7 +105,7 @@
ðernet {
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -100,7 +101,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt5350.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -106,7 +107,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -104,8 +105,8 @@
&esw {
status = "okay";
- #mediatek,portmap = <0x3e>;
- mediatek,portmap = <0x2f>;
+ #mediatek,portmap = <VLAN_CONFIG_WLLLL>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -76,7 +77,7 @@
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
port@4 {
status = "okay";
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
/ {
compatible = "ralink,mt7620a-eval-board", "ralink,mt7620a-soc";
@@ -55,7 +56,7 @@
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
port@5 {
status = "okay";
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -71,7 +72,7 @@
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&gsw {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -70,7 +71,7 @@
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
port@4 {
status = "okay";
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -103,7 +104,7 @@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&gsw {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -123,7 +124,7 @@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -128,7 +129,7 @@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -105,7 +106,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
/ {
compatible = "MZK-WDPR", "ralink,rt3052-soc";
@@ -74,7 +75,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -91,7 +92,7 @@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -132,7 +133,7 @@
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
port@4 {
status = "okay";
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -88,7 +89,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3352.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -102,7 +103,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt5350.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
/ {
compatible = "NCS601W", "ralink,rt5350-soc";
@@ -56,7 +57,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -96,7 +97,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -95,7 +96,7 @@
ðernet {
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&gsw {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -92,7 +93,7 @@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&pcie {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -98,7 +99,7 @@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x28>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&pcie {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -81,7 +82,7 @@
};
&esw {
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -78,7 +79,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,4 +1,5 @@
#include "rt5350.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -47,7 +48,7 @@
};
&esw {
- mediatek,portmap = <0x3f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -77,7 +78,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -74,7 +75,7 @@
};
&esw {
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -88,7 +89,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620n.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -110,7 +111,7 @@
ðernet {
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt5350.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
/ {
compatible = "RT5350F-OLINUXINO-EVB", "ralink,rt5350-soc";
@@ -82,7 +83,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
mediatek,led_polarity = <0x17>;
};
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt5350.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
/ {
compatible = "RT5350F-OLINUXINO", "ralink,rt5350-soc";
@@ -60,7 +61,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
mediatek,led_polarity = <0x17>;
};
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -80,7 +81,7 @@
};
&esw {
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -83,7 +84,7 @@
};
&esw {
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -112,7 +113,7 @@
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
port@4 {
status = "okay";
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -103,7 +104,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -81,7 +82,7 @@
};
*/
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
/* FIXME: no partitions defined */
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -84,7 +85,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -108,7 +109,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -82,7 +83,7 @@
};
&esw {
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -92,7 +93,7 @@
};
&esw {
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7628an.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
@@ -85,7 +86,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
mediatek,portdisable = <0x27>;
};
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -88,7 +89,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -137,7 +138,7 @@
ðernet {
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&gsw {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -133,7 +134,7 @@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&gsw {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -78,7 +79,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
/* FIXME: no partitions defined */
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt5350.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
/ {
compatible = "WIZARD8800", "ralink,rt5350-soc";
@@ -64,7 +65,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&ehci {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -91,7 +92,7 @@
};
&esw {
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -96,7 +97,7 @@
};
&esw {
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -113,7 +114,7 @@
};
&esw {
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -104,7 +105,7 @@
&esw {
ralink,rgmii = <1>;
- mediatek,portmap = <0x3f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLL>;
ralink,fct2 = <0x0002500c>;
/*
* ext phy base addr 31, rx/tx clock skew 0,
@@ -3,6 +3,7 @@
#include <dt-bindings/gpio/gpio.h>
#include "mt7628an.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
/ {
compatible = "wavlink,wl-wn575a3", "mediatek,mt7628an-soc";
@@ -125,5 +126,5 @@
ðernet {
mtd-mac-address = <&factory 0x2e>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620n.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -88,7 +89,7 @@
ðernet {
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -99,7 +100,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -99,7 +100,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -103,7 +104,7 @@
};
&esw {
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620n.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -109,7 +110,7 @@
ðernet {
mtd-mac-address = <&factory 0x2e>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620n.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
/ {
compatible = "wrtnode", "ralink,mt7620n-soc";
@@ -73,7 +74,7 @@
ðernet {
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,4 +1,5 @@
#include "mt7628an.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -75,7 +76,7 @@
ðernet {
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&sdhci {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620n.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -84,7 +85,7 @@
ðernet {
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620n.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -84,7 +85,7 @@
ðernet {
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt5350.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -119,7 +120,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
mediatek,led_polarity = <1>;
};
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt5350.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -80,7 +81,7 @@
};
&esw {
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
mediatek,led_polarity = <1>;
};
@@ -1,6 +1,7 @@
/dts-v1/;
#include "rt3050.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -82,7 +83,7 @@
};
&esw {
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "Y1.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
/ {
compatible = "lenovo,Y1", "ralink,mt7620a-soc";
@@ -45,5 +46,5 @@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
@@ -1,6 +1,7 @@
/dts-v1/;
#include "Y1.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
/ {
compatible = "lenovo,Y1S", "ralink,mt7620a-soc";
@@ -72,7 +73,7 @@
mtd-mac-address = <&factory 0x4>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
port@4 {
status = "okay";
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -105,7 +106,7 @@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -109,7 +110,7 @@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620n.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -102,7 +103,7 @@
ðernet {
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620n.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -102,7 +103,7 @@
ðernet {
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -102,7 +103,7 @@
ðernet {
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620n.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -94,7 +95,7 @@
ðernet {
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x2f>;
+ mediatek,portmap = <VLAN_CONFIG_LLLLW>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620a.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/input/input.h>
@@ -92,7 +93,7 @@
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620n.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
@@ -115,7 +116,7 @@
ðernet {
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
@@ -1,6 +1,7 @@
/dts-v1/;
#include "mt7620n.dtsi"
+#include <dt-bindings/net/mtk-soc-eth.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
@@ -115,7 +116,7 @@
ðernet {
mtd-mac-address = <&factory 0x4>;
- mediatek,portmap = <0x3e>;
+ mediatek,portmap = <VLAN_CONFIG_WLLLL>;
};
&wmac {
new file mode 100644
@@ -0,0 +1,25 @@
+/*
+ * Device Tree constants for MediaTek SoC's Ethernet switch
+ *
+ * Author: Daniel Golle <daniel@makrotopia.org>
+ *
+ * Copyright: (C) 2017 Daniel Golle
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ */
+
+#ifndef _DT_BINDINGS_MTK_SOC_ETH_H
+#define _DT_BINDINGS_MTK_SOC_ETH_H
+
+#define VLAN_CONFIG_LLLLL 0x3f
+#define VLAN_CONFIG_LLLLW 0x2f
+#define VLAN_CONFIG_WLLLL 0x3e
+
+#endif
Add new dt-bindings precompiler include to replace numerical default VLAN assignments with more meaningful descriptive values, such that 0x3f -> VLAN_CONFIG_LLLLL 0x2f -> VLAN_CONFIG_LLLLW 0x3e -> VLAN_CONFIG_WLLLL In that we we get the best of both worlds: the usability of having strings and all the freedom and simplicity of having just an 8-bit field. Signed-off-by: Daniel Golle <daniel@makrotopia.org> --- (consider the previous PATCH RFC as 1/2 extended by this one) target/linux/ramips/dts/3G-6200N.dts | 3 ++- target/linux/ramips/dts/3G150B.dts | 3 ++- target/linux/ramips/dts/3G300M.dts | 3 ++- target/linux/ramips/dts/AI-BR100.dts | 3 ++- target/linux/ramips/dts/AIR3GII.dts | 3 ++- target/linux/ramips/dts/ALL0239-3G.dts | 3 ++- target/linux/ramips/dts/ALL0256N-4M.dts | 3 ++- target/linux/ramips/dts/ALL0256N-8M.dts | 3 ++- target/linux/ramips/dts/ALL5002.dts | 3 ++- target/linux/ramips/dts/ALL5003.dts | 3 ++- target/linux/ramips/dts/ATP-52B.dts | 3 ++- target/linux/ramips/dts/AWAPN2403.dts | 3 ++- target/linux/ramips/dts/AWM002.dtsi | 3 ++- target/linux/ramips/dts/ArcherC20i.dts | 3 ++- target/linux/ramips/dts/ArcherC50.dts | 3 ++- target/linux/ramips/dts/ArcherMR200.dts | 3 ++- target/linux/ramips/dts/BC2.dts | 3 ++- target/linux/ramips/dts/BR-6425.dts | 3 ++- target/linux/ramips/dts/BROADWAY.dts | 3 ++- target/linux/ramips/dts/CARAMBOLA.dts | 3 ++- target/linux/ramips/dts/CS-QR10.dts | 3 ++- target/linux/ramips/dts/D105.dts | 3 ++- target/linux/ramips/dts/D240.dts | 3 ++- target/linux/ramips/dts/DAP-1350.dts | 3 ++- target/linux/ramips/dts/DB-WRT01.dts | 3 ++- target/linux/ramips/dts/DCS-930.dts | 3 ++- target/linux/ramips/dts/DCS-930L-B1.dts | 3 ++- target/linux/ramips/dts/DIR-300-B1.dts | 3 ++- target/linux/ramips/dts/DIR-300-B7.dts | 3 ++- target/linux/ramips/dts/DIR-320-B1.dts | 3 ++- target/linux/ramips/dts/DIR-600-B1.dts | 3 ++- target/linux/ramips/dts/DIR-610-A1.dts | 3 ++- target/linux/ramips/dts/DIR-615-D.dts | 3 ++- target/linux/ramips/dts/DIR-615-H1.dts | 3 ++- target/linux/ramips/dts/DIR-620-A1.dts | 3 ++- target/linux/ramips/dts/DIR-620-D1.dts | 3 ++- target/linux/ramips/dts/DIR-810L.dts | 3 ++- target/linux/ramips/dts/DWR-512-B.dts | 3 ++- target/linux/ramips/dts/ESR-9753.dts | 3 ++- target/linux/ramips/dts/F5D8235_V2.dts | 3 ++- target/linux/ramips/dts/FONERA20N.dts | 3 ++- target/linux/ramips/dts/GL-MT300A.dts | 3 ++- target/linux/ramips/dts/GL-MT300N.dts | 3 ++- target/linux/ramips/dts/GL-MT750.dts | 3 ++- target/linux/ramips/dts/HC5861.dts | 3 ++- target/linux/ramips/dts/HC5XXX.dtsi | 3 ++- target/linux/ramips/dts/HG255D.dts | 3 ++- target/linux/ramips/dts/HW550-3G.dts | 3 ++- target/linux/ramips/dts/IP2202.dts | 3 ++- target/linux/ramips/dts/JHR-N805R.dts | 3 ++- target/linux/ramips/dts/JHR-N825R.dts | 3 ++- target/linux/ramips/dts/JHR-N926R.dts | 3 ++- target/linux/ramips/dts/M2M.dts | 3 ++- target/linux/ramips/dts/M3.dts | 3 ++- target/linux/ramips/dts/M4-4M.dts | 3 ++- target/linux/ramips/dts/M4-8M.dts | 3 ++- target/linux/ramips/dts/MAC1200RV2.dts | 3 ++- target/linux/ramips/dts/MINIEMBPLUG.dts | 3 ++- target/linux/ramips/dts/MINIEMBWIFI.dts | 3 ++- target/linux/ramips/dts/MIWIFI-MINI.dts | 3 ++- target/linux/ramips/dts/MLW221.dts | 3 ++- target/linux/ramips/dts/MLWG2.dts | 3 ++- target/linux/ramips/dts/MOFI3500-3GN.dts | 3 ++- target/linux/ramips/dts/MPRA1.dts | 3 ++- target/linux/ramips/dts/MR-102N.dts | 5 +++-- target/linux/ramips/dts/MT7620a.dts | 3 ++- target/linux/ramips/dts/MT7620a_MT7530.dts | 3 ++- target/linux/ramips/dts/MT7620a_MT7610e.dts | 3 ++- target/linux/ramips/dts/MT7620a_V22SG.dts | 3 ++- target/linux/ramips/dts/MZK-750DHP.dts | 3 ++- target/linux/ramips/dts/MZK-EX300NP.dts | 3 ++- target/linux/ramips/dts/MZK-EX750NP.dts | 3 ++- target/linux/ramips/dts/MZK-W300NH2.dts | 3 ++- target/linux/ramips/dts/MZK-WDPR.dts | 3 ++- target/linux/ramips/dts/MicroWRT.dts | 3 ++- target/linux/ramips/dts/NA930.dts | 3 ++- target/linux/ramips/dts/NBG-419N.dts | 3 ++- target/linux/ramips/dts/NBG-419N2.dts | 3 ++- target/linux/ramips/dts/NCS601W.dts | 3 ++- target/linux/ramips/dts/NW718.dts | 3 ++- target/linux/ramips/dts/OY-0001.dts | 3 ++- target/linux/ramips/dts/PSG1208.dts | 3 ++- target/linux/ramips/dts/PSG1218.dts | 3 ++- target/linux/ramips/dts/PSR-680W.dts | 3 ++- target/linux/ramips/dts/PWH2004.dts | 3 ++- target/linux/ramips/dts/PX-4885.dtsi | 3 ++- target/linux/ramips/dts/RT-G32-B1.dts | 3 ++- target/linux/ramips/dts/RT-N10-PLUS.dts | 3 ++- target/linux/ramips/dts/RT-N13U.dts | 3 ++- target/linux/ramips/dts/RT-N14U.dts | 3 ++- target/linux/ramips/dts/RT5350F-OLINUXINO-EVB.dts | 3 ++- target/linux/ramips/dts/RT5350F-OLINUXINO.dts | 3 ++- target/linux/ramips/dts/RUT5XX.dts | 3 ++- target/linux/ramips/dts/SL-R7205.dts | 3 ++- target/linux/ramips/dts/TINY-AC.dts | 3 ++- target/linux/ramips/dts/UR-326N4G.dts | 3 ++- target/linux/ramips/dts/UR-336UN.dts | 3 ++- target/linux/ramips/dts/V22RW-2X2.dts | 3 ++- target/linux/ramips/dts/W150M.dts | 3 ++- target/linux/ramips/dts/W306R_V20.dts | 3 ++- target/linux/ramips/dts/W502U.dts | 3 ++- target/linux/ramips/dts/WCR-1166DS.dts | 3 ++- target/linux/ramips/dts/WCR150GN.dts | 3 ++- target/linux/ramips/dts/WHR-300HP2.dts | 3 ++- target/linux/ramips/dts/WHR-600D.dts | 3 ++- target/linux/ramips/dts/WHR-G300N.dts | 3 ++- target/linux/ramips/dts/WIZARD8800.dts | 3 ++- target/linux/ramips/dts/WL-330N.dts | 3 ++- target/linux/ramips/dts/WL-330N3G.dts | 3 ++- target/linux/ramips/dts/WL-341V3.dts | 3 ++- target/linux/ramips/dts/WL-351.dts | 3 ++- target/linux/ramips/dts/WL-WN575A3.dts | 3 ++- target/linux/ramips/dts/WMR-300.dts | 3 ++- target/linux/ramips/dts/WR512-3GN-4M.dts | 3 ++- target/linux/ramips/dts/WR512-3GN-8M.dts | 3 ++- target/linux/ramips/dts/WR6202.dts | 3 ++- target/linux/ramips/dts/WRH-300CR.dts | 3 ++- target/linux/ramips/dts/WRTNODE.dts | 3 ++- target/linux/ramips/dts/WRTNODE2.dtsi | 3 ++- target/linux/ramips/dts/WT3020-4M.dts | 3 ++- target/linux/ramips/dts/WT3020-8M.dts | 3 ++- target/linux/ramips/dts/X5.dts | 3 ++- target/linux/ramips/dts/X8.dts | 3 ++- target/linux/ramips/dts/XDXRN502J.dts | 3 ++- target/linux/ramips/dts/Y1.dts | 3 ++- target/linux/ramips/dts/Y1S.dts | 3 ++- target/linux/ramips/dts/YOUKU-YK1.dts | 3 ++- target/linux/ramips/dts/ZBT-APE522II.dts | 3 ++- target/linux/ramips/dts/ZBT-CPE102.dts | 3 ++- target/linux/ramips/dts/ZBT-WA05.dts | 3 ++- target/linux/ramips/dts/ZBT-WE826.dts | 3 ++- target/linux/ramips/dts/ZBT-WR8305RT.dts | 3 ++- target/linux/ramips/dts/ZTE-Q7.dts | 3 ++- target/linux/ramips/dts/kn_rc.dts | 3 ++- target/linux/ramips/dts/kn_rf.dts | 3 ++- .../include/dt-bindings/net/mtk-soc-eth.h | 25 ++++++++++++++++++++++ 136 files changed, 296 insertions(+), 136 deletions(-) create mode 100644 target/linux/ramips/files-4.9/include/dt-bindings/net/mtk-soc-eth.h