openwrt/target/linux/ramips
Pawel Dembicki a82fa5bcd4 ramips: mt7620: Enable PHY aneg of Lava LR-25G001
In 20b09a2125 Lava LR-25G001 router have problem with two inactive
ethernet ports. JBOOT bootloader didn't configure ethernet devices by default.
The same situation was there. It is required to enable all phy ports.
This is fragment of stock bootlog:

switch reg write_athr offset=90, value=2b0
switch reg write_athr offset=8c, value=2b0
switch reg write_athr offset=88, value=2b0
switch reg write_athr offset=84, value=2b0
switch reg write_athr offset=80, value=2b0

This patch adds proper registers configuration ar8337 initvals.
0x2b0 value causes force flow control configuration, 0x1200 was used
instead (flow control config auto-neg with phy). [1]

When switch is now ok, let's fix port numeration too.

Fixes: 20b09a2125 ("ramips: add support for Lava LR-25G001")

[1] https://github.com/openwrt/openwrt/pull/4806#issuecomment-982019858

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
2021-12-04 00:36:47 +01:00
..
base-files/etc ramips: remove model name from LED labels 2020-10-02 14:51:57 +02:00
dts ramips: mt7620: Enable PHY aneg of Lava LR-25G001 2021-12-04 00:36:47 +01:00
files/drivers treewide: backport support for nvmem on non platform devices 2021-08-05 01:46:26 +02:00
image ramips: use lzma-loader on D-Link DIR-615 H1 2021-11-20 21:08:25 +01:00
mt76x8 ramips: add support for Wavlink WL-WN576A2 2021-11-20 21:08:25 +01:00
mt7620 ramips: mt7620: Enable PHY aneg of Lava LR-25G001 2021-12-04 00:36:47 +01:00
mt7621 ramips: add support for Netgear R7450 2021-09-26 15:38:01 +02:00
patches-5.4 kernel: bump 5.4 to 5.4.162 2021-11-28 16:32:45 +01:00
patches-5.10 ramips: fix ralink_i2s_debugfs_remove declaration 2021-11-20 21:08:25 +01:00
rt288x ramips: fix missing NVMEM subsystem 2021-07-21 11:39:39 +02:00
rt305x ramips: fix missing NVMEM subsystem 2021-07-21 11:39:39 +02:00
rt3883 kernel: 5.10: packet mangling code only for ar8216 driver 2021-11-02 22:36:41 +01:00
Makefile ramips: 5.10: port and refresh patches, ralink drv 2021-03-06 11:24:12 +01:00
modules.mk ramips: rename mtk-hsdma to hsdma-mt7621 2021-03-04 23:43:02 -10:00