openwrt/target/linux/ramips
Chen Minqiang b40316c21a mt7620: gsw: make IntPHY and ExtPHY share mdio addr 4 possible
To share mdio addr for IntPHY and ExtPHY,
as described in the documentation (MT7620_ProgrammingGuide.pdf).
(refer: http://download.villagetelco.org/hardware/MT7620/MT7620_ProgrammingGuide.pdf)

when port4 setup to work as gmac mode, dts like:

&gsw {
    mediatek,port4 = "gmac";
};

we should set SYSCFG1.GE2_MODE==0x0 (RGMII).
but SYSCFG1.GE2_MODE may have been set to 3(RJ-45) by uboot/default
so we need to re-set it to 0x0

before this changes:
gsw: 4FE + 2GE may not work correctly and MDIO addr 4 cannot be used by ExtPHY

after this changes:
gsw: 4FE + 2GE works and MDIO addr 4 can be used by ExtPHY

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
(cherry picked from commit f6d81e2fa1)
2018-08-06 09:15:09 +02:00
..
base-files ramips: add switch port index for I-O DATA WN-GX300GR 2018-06-27 08:41:13 +02:00
dts ramips: TP-Link TL-WR902AC v3: add missing wps button 2018-07-12 18:27:36 +02:00
files-4.14/drivers mt7620: gsw: make IntPHY and ExtPHY share mdio addr 4 possible 2018-08-06 09:15:09 +02:00
image ramips: TP-Link TL-WR902AC v3: don't build factory image 2018-07-12 18:27:36 +02:00
mt76x8 kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
mt7620 kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
mt7621 ramips: Add support for Mikrotik RouterBOARD RBM33g 2018-06-21 06:55:10 +02:00
patches-4.14 kernel: bump 4.14 to 4.14.60 for 18.06 2018-08-06 07:30:41 +02:00
rt288x kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
rt305x ramips: add dwr-512 jboot firmware configuration 2018-04-08 09:51:06 +02:00
rt3883 kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
Makefile ramips: switch to linux 4.14 2018-04-06 18:07:43 +02:00
modules.mk ramips: rename pwm kernel module 2018-04-08 12:35:33 +02:00