aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7620n.dtsi
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2018-03-13 20:06:37 +0100
committerMathias Kresin <dev@kresin.me>2018-03-13 20:18:15 +0100
commitd482356322c9910541a3118d049718b384a252bd (patch)
treeb6842e6d0a56238f64b8ecb3c39811dcf2047bd8 /target/linux/ramips/dts/mt7620n.dtsi
parente83bc5e3c7531fe1a4ac090d49235274ba04b417 (diff)
downloadupstream-d482356322c9910541a3118d049718b384a252bd.tar.gz
upstream-d482356322c9910541a3118d049718b384a252bd.tar.bz2
upstream-d482356322c9910541a3118d049718b384a252bd.zip
ramips: mt7620n: add mdio node and disable port4 by default
Revert the changes I applied to aa5014dd1a58 ("ramips: mt7620n: enable port 4 as EPHY by default"). The driver expects a node mdio-bus to be present, regardless of the actual node status. If the node is missing the driver fails to load with mtk_soc_eth 10100000.ethernet: no mdio-bus child node found Disable port4 by default again. If the port is enabled but not present, a "invalid port id 4" warning is shown during boot. Fixes: FS#1428 Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/dts/mt7620n.dtsi')
-rw-r--r--target/linux/ramips/dts/mt7620n.dtsi9
1 files changed, 8 insertions, 1 deletions
diff --git a/target/linux/ramips/dts/mt7620n.dtsi b/target/linux/ramips/dts/mt7620n.dtsi
index 26c7d91e33..ebaa094600 100644
--- a/target/linux/ramips/dts/mt7620n.dtsi
+++ b/target/linux/ramips/dts/mt7620n.dtsi
@@ -293,11 +293,18 @@
mediatek,switch = <&gsw>;
+ mdio-bus {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ status = "disabled";
+ };
+
port@4 {
compatible = "mediatek,mt7620a-gsw-port", "mediatek,eth-port";
reg = <4>;
- status = "okay";
+ status = "disabled";
};
};