ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / FONERA20N.dts
index be66cfa72c5a6bcd162ae804b59de74eb47f9dfb..68cd7f3743dbfe5961d63c1139fdb0624c085e5b 100644 (file)
@@ -66,8 +66,6 @@
 
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
 
                reset {
 };
 
 &esw {
+       #address-cells = <1>;
+       #size-cells = <0>;
+
        mediatek,portmap = <0x2f>;
 
        port@0 {
                compatible = "swconfig,port";
+               reg = <0>;
                swconfig,segment = "lan";
                swconfig,portmap = <0 4>;
        };
 
        port@1 {
                compatible = "swconfig,port";
+               reg = <1>;
                swconfig,segment = "lan";
                swconfig,portmap = <1 3>;
        };
 
        port@2 {
                compatible = "swconfig,port";
+               reg = <2>;
                swconfig,segment = "lan";
                swconfig,portmap = <2 2>;
        };
 
        port@3 {
                compatible = "swconfig,port";
+               reg = <3>;
                swconfig,segment = "lan";
                swconfig,portmap = <3 1>;
        };
 
        port@4 {
                compatible = "swconfig,port";
+               reg = <4>;
                swconfig,segment = "wan";
                swconfig,portmap = <4 0>;
        };