aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2018-07-21 18:20:59 +0200
committerMathias Kresin <dev@kresin.me>2018-08-04 08:39:35 +0200
commit6384e0d16a91cdfa1f7afc73268d9485dda8065b (patch)
treec93cf74a794cea8bee5d763c29b03a91068eec08 /target
parentf9b8328d794473fcd044197ec64abf87761793e4 (diff)
downloadupstream-6384e0d16a91cdfa1f7afc73268d9485dda8065b.tar.gz
upstream-6384e0d16a91cdfa1f7afc73268d9485dda8065b.tar.bz2
upstream-6384e0d16a91cdfa1f7afc73268d9485dda8065b.zip
ramips: fix hnat dtc warning
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>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ramips/dts/mt7621.dtsi22
1 files changed, 11 insertions, 11 deletions
diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts/mt7621.dtsi
index 3bef601aee..7c19ff4643 100644
--- a/target/linux/ramips/dts/mt7621.dtsi
+++ b/target/linux/ramips/dts/mt7621.dtsi
@@ -385,22 +385,12 @@
#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";
@@ -419,6 +409,16 @@
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 {