ramips: fix hnat dtc warning
authorMathias Kresin <dev@kresin.me>
Sat, 21 Jul 2018 16:20:59 +0000 (18:20 +0200)
committerMathias Kresin <dev@kresin.me>
Sat, 4 Aug 2018 06:39:35 +0000 (08:39 +0200)
The hardware NAT node has the same reg/unit as the ethernet node. One
of them need to be a child of the other.

Make the hardware NAT node a child of the ethernet node since the it
"reference" the netdev in its properties.

Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/ramips/dts/mt7621.dtsi

index 3bef601aee019fb2cd238dd384d99246b87dc5a5..7c19ff4643b748f9c3a989c0639a4efbe5234163 100644 (file)
                #size-cells = <1>;
        };
 
-       hnat: hnat@1e100000 {
-               compatible = "mediatek,mt7623-hnat";
-               reg = <0x1e100000 0x10000>;
-               mtketh-ppd = "eth0";
-               mtketh-lan = "eth0";
-               mtketh-wan = "eth0";
-               resets = <&rstctrl 0>;
-               reset-names = "mtketh";
-       };
-
        ethernet: ethernet@1e100000 {
                compatible = "mediatek,mt7621-eth";
                reg = <0x1e100000 0x10000>;
 
                #address-cells = <1>;
-               #size-cells = <0>;
+               #size-cells = <1>;
 
                resets = <&rstctrl 6 &rstctrl 23>;
                reset-names = "fe", "eth";
                                phy-mode = "rgmii";
                        };
                };
+
+               hnat: hnat@0 {
+                       compatible = "mediatek,mt7623-hnat";
+                       reg = <0 0x10000>;
+                       mtketh-ppd = "eth0";
+                       mtketh-lan = "eth0";
+                       mtketh-wan = "eth0";
+                       resets = <&rstctrl 0>;
+                       reset-names = "mtketh";
+               };
        };
 
        gsw: gsw@1e110000 {