aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/apm821xx
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2019-04-14 17:23:38 +0200
committerPetr Štetiar <ynezz@true.cz>2019-05-20 21:19:48 +0200
commit00d14635db0746093797283d0ed9ff937b5d4191 (patch)
tree1f424a8350521000fb2c406aaae4ff29b9583f3f /target/linux/apm821xx
parent6648e9458f2f47cdbe16bd9537f08048a0a252fd (diff)
downloadupstream-00d14635db0746093797283d0ed9ff937b5d4191.tar.gz
upstream-00d14635db0746093797283d0ed9ff937b5d4191.tar.bz2
upstream-00d14635db0746093797283d0ed9ff937b5d4191.zip
apm821xx: set mib-poll-interval on emac0 attached ar83xx switch
Commit "generic: ar8216: add mib_poll_interval switch attribute" sets mib-poll-interval as disabled by default (was set to 2s), so it makes switch LEDs trigger disfunctional on devices which don't have mib-poll-interval set. So this patch sets mib-poll-interval to 500ms on devices which have ar83xx switch connected to emac0, as the same value was set for built in switches in 443fc9ac35 ("ath79: use ar8216 for builtin switch"). Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'target/linux/apm821xx')
-rw-r--r--target/linux/apm821xx/dts/meraki-mx60.dts2
-rw-r--r--target/linux/apm821xx/dts/netgear-wndr4700.dts2
2 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/apm821xx/dts/meraki-mx60.dts b/target/linux/apm821xx/dts/meraki-mx60.dts
index fc3213e92c..638bfe5c16 100644
--- a/target/linux/apm821xx/dts/meraki-mx60.dts
+++ b/target/linux/apm821xx/dts/meraki-mx60.dts
@@ -100,6 +100,8 @@
phy0: ethernet-phy@0 {
compatible = "ethernet-phy-id004d.d034";
reg = <0>;
+ qca,mib-poll-interval = <500>;
+
qca,ar8327-initvals = <
0x0010 0x40000000
0x0624 0x007f7f7f
diff --git a/target/linux/apm821xx/dts/netgear-wndr4700.dts b/target/linux/apm821xx/dts/netgear-wndr4700.dts
index 14f6762110..0f1e97a921 100644
--- a/target/linux/apm821xx/dts/netgear-wndr4700.dts
+++ b/target/linux/apm821xx/dts/netgear-wndr4700.dts
@@ -293,6 +293,8 @@
phy0: ethernet-phy@0 {
device_type = "ethernet-phy";
reg = <0>;
+ qca,mib-poll-interval = <500>;
+
qca,ar8327-initvals = <
0x0010 0x40000000
0x0624 0x007f7f7f