ramips: DTS rework
[openwrt/openwrt.git] / target / linux / ramips / dts / FONERA20N.dts
index f5578eef4da25b7165c0f2d575fa8c90731c59f0..b7eb91ea7bc47f7a357c1f0d4930db822c09b15d 100644 (file)
@@ -6,15 +6,6 @@
        compatible = "FONERA20N", "ralink,rt3052-soc";
        model = "La Fonera 2.0N";
 
-       pinctrl {
-               state_default: pinctrl0 {
-                       gpio {
-                               ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf";
-                               ralink,function = "gpio";
-                       };
-               };
-       };
-
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
                        linux,input-type = <5>; /* EV_SW */
                };
        };
+};
 
-       ethernet@10100000 {
-               mtd-mac-address = <&factory 0x28>;
+&pinctrl {
+       state_default: pinctrl0 {
+               gpio {
+                       ralink,group = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf";
+                       ralink,function = "gpio";
+               };
        };
+};
 
-       esw@10110000 {
-               mediatek,portmap = <0x2f>;
-
-               port@0 {
-                       compatible = "swconfig,port";
-                       swconfig,segment = "lan";
-                       swconfig,portmap = <0 4>;
-               };
+&ethernet {
+       mtd-mac-address = <&factory 0x28>;
+};
 
-               port@1 {
-                       compatible = "swconfig,port";
-                       swconfig,segment = "lan";
-                       swconfig,portmap = <1 3>;
-               };
+&esw {
+       mediatek,portmap = <0x2f>;
 
-               port@2 {
-                       compatible = "swconfig,port";
-                       swconfig,segment = "lan";
-                       swconfig,portmap = <2 2>;
-               };
+       port@0 {
+               compatible = "swconfig,port";
+               swconfig,segment = "lan";
+               swconfig,portmap = <0 4>;
+       };
 
-               port@3 {
-                       compatible = "swconfig,port";
-                       swconfig,segment = "lan";
-                       swconfig,portmap = <3 1>;
-               };
+       port@1 {
+               compatible = "swconfig,port";
+               swconfig,segment = "lan";
+               swconfig,portmap = <1 3>;
+       };
 
-               port@4 {
-                       compatible = "swconfig,port";
-                       swconfig,segment = "wan";
-                       swconfig,portmap = <4 0>;
-               };
+       port@2 {
+               compatible = "swconfig,port";
+               swconfig,segment = "lan";
+               swconfig,portmap = <2 2>;
        };
 
-       wmac@10180000 {
-               ralink,mtd-eeprom = <&factory 0>;
+       port@3 {
+               compatible = "swconfig,port";
+               swconfig,segment = "lan";
+               swconfig,portmap = <3 1>;
        };
 
-       otg@101c0000 {
-               status = "okay";
+       port@4 {
+               compatible = "swconfig,port";
+               swconfig,segment = "wan";
+               swconfig,portmap = <4 0>;
        };
 };
+
+&wmac {
+       ralink,mtd-eeprom = <&factory 0>;
+};
+
+&otg {
+       status = "okay";
+};