[ramips] add sample swconfig portmap
[openwrt.git] / target / linux / ramips / dts / FONERA20N.dts
index 8de1625..817e527 100644 (file)
@@ -3,8 +3,6 @@
 /include/ "rt3050.dtsi"
 
 / {
-       #address-cells = <1>;
-       #size-cells = <1>;
        compatible = "FONERA20N", "ralink,rt3052-soc";
        model = "La Fonera 2.0N";
 
        esw@10110000 {
                status = "okay";
                ralink,portmap = <0x2f>;
+
+               port@0 {
+                       conpatible = "swconfig,port";
+                       swconfig,segment = "lan";
+                       swconfig,portmap = <0 4>;
+               };
+               port@1 {
+                       conpatible = "swconfig,port";
+                       swconfig,segment = "lan";
+                       swconfig,portmap = <1 3>;
+               };
+               port@2 {
+                       conpatible = "swconfig,port";
+                       swconfig,segment = "lan";
+                       swconfig,portmap = <2 2>;
+               };
+               port@3 {
+                       conpatible = "swconfig,port";
+                       swconfig,segment = "lan";
+                       swconfig,portmap = <3 1>;
+               };
+               port@4 {
+                       conpatible = "swconfig,port";
+                       swconfig,segment = "lan";
+                       swconfig,portmap = <4 0>;
+               };
        };
 
        wmac@10180000 {