aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts
diff options
context:
space:
mode:
authorRoman Yeryomin <roman@advem.lv>2018-11-18 15:46:58 +0200
committerJohn Crispin <john@phrozen.org>2018-11-26 09:58:17 +0100
commitae2b43b873fb5e2326509af2807f75fde27e92b0 (patch)
treed7600fd6439bc78dea42f0592e45e1c63b59ba2d /target/linux/ramips/dts
parente42327aa890e64f8bf5e620c2b2a1fd609ce20fb (diff)
downloadupstream-ae2b43b873fb5e2326509af2807f75fde27e92b0.tar.gz
upstream-ae2b43b873fb5e2326509af2807f75fde27e92b0.tar.bz2
upstream-ae2b43b873fb5e2326509af2807f75fde27e92b0.zip
ramips: fix ethernet for f5d8235-v2 board
Belkin F5D8235 v2 has two ethernet switches on board. One internal rt3052 and rtl8366rb on rgmii interface. Looks like internal switch settings were lost in translation to device tree infrastructure. Signed-off-by: Roman Yeryomin <roman@advem.lv>
Diffstat (limited to 'target/linux/ramips/dts')
-rw-r--r--target/linux/ramips/dts/F5D8235_V2.dts13
1 files changed, 12 insertions, 1 deletions
diff --git a/target/linux/ramips/dts/F5D8235_V2.dts b/target/linux/ramips/dts/F5D8235_V2.dts
index a3a1255941..1a86557ca4 100644
--- a/target/linux/ramips/dts/F5D8235_V2.dts
+++ b/target/linux/ramips/dts/F5D8235_V2.dts
@@ -111,7 +111,7 @@
&pinctrl {
state_default: pinctrl0 {
gpio {
- ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
+ ralink,group = "spi", "i2c", "jtag", "mdio", "uartf";
ralink,function = "gpio";
};
};
@@ -119,10 +119,21 @@
&ethernet {
mtd-mac-address = <&uboot 0x40004>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&rgmii_pins>;
};
&esw {
+ ralink,rgmii = <1>;
mediatek,portmap = <0x3f>;
+ ralink,fct2 = <0x0002500c>;
+ /*
+ * ext phy base addr 31, rx/tx clock skew 0,
+ * turbo mii off, rgmi 3.3v off, port 5 polling off
+ * port5: enabled, gige, full-duplex, rx/tx-flow-control
+ * port6: enabled, gige, full-duplex, rx/tx-flow-control
+ */
+ ralink,fpa2 = <0x1f003fff>;
};
&wmac {