aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorINAGAKI Hiroshi <musashino.open@gmail.com>2018-11-15 01:42:25 +0900
committerMathias Kresin <dev@kresin.me>2018-12-06 17:44:14 +0100
commite0c55760e6edaa43631245dbfd52986138c353c4 (patch)
tree10cab717f1623f26632b72b279ce58e383d5173e /target
parent6e626477d576d5746cc6d073632aed27e8a59ed6 (diff)
downloadupstream-e0c55760e6edaa43631245dbfd52986138c353c4.tar.gz
upstream-e0c55760e6edaa43631245dbfd52986138c353c4.tar.bz2
upstream-e0c55760e6edaa43631245dbfd52986138c353c4.zip
ath79: fix ethernet configurations for I-O DATA ETG3-R
This commit fixes several issues in eth0 on ETG3-R, and solve slowdown in NA(P)T speed. - add gmac-config with correct configurations - fix pll-data value And I added ref clock-frequency. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ath79/dts/ar9342_iodata_etg3-r.dts14
1 files changed, 13 insertions, 1 deletions
diff --git a/target/linux/ath79/dts/ar9342_iodata_etg3-r.dts b/target/linux/ath79/dts/ar9342_iodata_etg3-r.dts
index a2d442a5dc..f857a8eae1 100644
--- a/target/linux/ath79/dts/ar9342_iodata_etg3-r.dts
+++ b/target/linux/ath79/dts/ar9342_iodata_etg3-r.dts
@@ -46,6 +46,10 @@
};
};
+&ref {
+ clock-frequency = <40000000>;
+};
+
&spi {
num-cs = <1>;
status = "okay";
@@ -119,10 +123,18 @@
&eth0 {
status = "okay";
- pll-data = <0x06000000 0x00000101 0x00001616>;
+ pll-data = <0x0e000000 0x00000101 0x00001616>;
phy-mode = "rgmii";
phy-handle = <&phy0>;
+
+ gmac-config {
+ device = <&gmac>;
+
+ rgmii-gmac0 = <1>;
+ rxd-delay = <3>;
+ rxdv-delay = <3>;
+ };
};
&uart {