openwrt/target/linux/ramips
Michael Pratt 0976b6c426 ramips: mt7620: use DTS to set PHY base address for external PHYs
Set the PHY base address to 12 for mt7530 and 8 for others,
which is based on the default setting for some devices
from printing the register with the following command
after it is written to by uboot during the boot cycle.

`md 0x10117014 1`

PHY_BASE option only uses 5 bits of the register,
bits 16 to 20, so use 8-bit integer type.

Set the option using the DTS property mediatek,ephy-base
and create the gsw node if missing.

Also, added a kernel message to display the EPHY base address.

Note:
If anything is written to a PHY address that is greater than 1 hex char (greater than 0xf)
then there is adverse effects with Atheros switches.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
2021-06-23 14:22:18 +08:00
..
base-files/etc ramips: remove model name from LED labels 2020-10-02 14:51:57 +02:00
dts ramips: mt7620: use DTS to set PHY base address for external PHYs 2021-06-23 14:22:18 +08:00
files/drivers ramips: mt7620: use DTS to set PHY base address for external PHYs 2021-06-23 14:22:18 +08:00
image ramips: clean up dlink_dir-8xx-r1 recipe 2021-06-20 17:29:52 +02:00
mt76x8 ramips: fix Ethernet random MAC address for HILINK HLK-7628N 2021-06-09 22:18:37 +02:00
mt7620 ramips: add support for the Wavlink WL-WN579X3 2021-06-06 18:56:45 +02:00
mt7621 ramips: add support for TP-Link Archer C6 v3 2021-06-13 11:32:31 +02:00
patches-5.4 ramips: refresh at803x patch 2021-06-14 01:36:30 +02:00
patches-5.10 generic: backport at803x fixes 2021-06-08 00:38:28 +02:00
rt288x treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
rt305x treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
rt3883 treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +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