const char *segment;
int size, phys;
- if (of_device_is_compatible(port, "swconfig,port"))
+ if (!of_device_is_compatible(port, "swconfig,port"))
continue;
if (of_property_read_string(port, "swconfig,segment", &segment))
ralink,portmap = <0x2f>;
port@0 {
- conpatible = "swconfig,port";
+ compatible = "swconfig,port";
swconfig,segment = "lan";
swconfig,portmap = <0 4>;
};
port@1 {
- conpatible = "swconfig,port";
+ compatible = "swconfig,port";
swconfig,segment = "lan";
swconfig,portmap = <1 3>;
};
port@2 {
- conpatible = "swconfig,port";
+ compatible = "swconfig,port";
swconfig,segment = "lan";
swconfig,portmap = <2 2>;
};
port@3 {
- conpatible = "swconfig,port";
+ compatible = "swconfig,port";
swconfig,segment = "lan";
swconfig,portmap = <3 1>;
};
port@4 {
- conpatible = "swconfig,port";
- swconfig,segment = "lan";
+ compatible = "swconfig,port";
+ swconfig,segment = "wan";
swconfig,portmap = <4 0>;
};
};