openwrt-mirror/target/linux
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
..
apm821xx apm821xx: move CONFIG_REGULATOR to target config 2021-06-13 11:32:49 +02:00
arc770 treewide: do not quote compatible in shell scripts 2021-06-06 19:17:47 +02:00
archs38 treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
armvirt treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
at91 kernel: move some drm symbols to generic config 2021-06-13 23:30:10 +02:00
ath25 kernel: Activate FORTIFY_SOURCE for MIPS kernel 5.4 2021-04-30 23:51:19 +02:00
ath79 kernel: Backport patch to automatically bring up DSA master when opening user port 2021-06-22 23:23:00 +02:00
bcm27xx kernel: bump 5.4 to 5.4.121 2021-05-23 15:09:06 +02:00
bcm47xx bcm47xx: make WGT634U NVRAM patch apply again 2021-03-12 21:09:11 +01:00
bcm53xx kernel: bump 5.4 to 5.4.118 2021-05-23 15:09:06 +02:00
bcm63xx bcm63xx: drop USB LEDs for Technicolor TG582N / ADB P.DG A4001N 2021-06-05 23:39:14 +02:00
bcm4908 bcm4908: fix Ethernet broken state after interface restart 2021-06-22 08:06:13 +02:00
bmips bmips: remove duplicated brcmnand patch 2021-05-17 12:25:34 +02:00
gemini base-files: generate network config with "device" options 2021-05-27 10:58:49 +02:00
generic kernel: Backport patch to automatically bring up DSA master when opening user port 2021-06-22 23:23:00 +02:00
imx6 imx6: image: drop BOOT_SCRIPT and fix DEVICE_NAME 2021-05-26 14:12:46 +02:00
ipq40xx ipq40xx: add uboot-envtools to default packages 2021-06-06 00:26:13 +02:00
ipq806x ipq806x: fix LAN and WAN port assignments on TP-Link AD7200 2021-06-06 00:26:13 +02:00
ipq807x treewide: remove redundant ubifs kconfig symbols 2021-04-21 10:31:07 +01:00
kirkwood treewide: do not quote compatible in shell scripts 2021-06-06 19:17:47 +02:00
lantiq treewide: remove "+" sign for increment with macaddr_add 2021-06-05 23:54:37 +02:00
layerscape generic: backport at803x fixes 2021-06-08 00:38:28 +02:00
malta treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
mediatek kernel: bump 5.4 to 5.4.124 2021-06-06 00:25:25 +02:00
mpc85xx treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
mvebu mvebu: armada-37xx: remove ethernet alias patch 2021-06-06 00:26:13 +02:00
mxs treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
octeon octeon: use shared function for platform_copy_config() 2021-05-17 01:01:32 +02:00
octeontx treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
omap kernel: move some drm symbols to generic config 2021-06-13 23:30:10 +02:00
oxnas treewide: remove redundant ubifs kconfig symbols 2021-04-21 10:31:07 +01:00
pistachio treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
ramips ramips: mt7620: use DTS to set PHY base address for external PHYs 2021-06-23 14:22:18 +08:00
realtek realtek: Fix failsafe mode 2021-06-22 23:23:00 +02:00
rockchip kernel: bump 5.10 to 5.10.43 2021-06-14 01:36:36 +02:00
sunxi linux-firmware: update to version 20210315 and trim down broadcom FW 2021-06-06 00:26:13 +02:00
tegra kernel: move some drm symbols to generic config 2021-06-13 23:30:10 +02:00
uml treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
x86 x86: add upgrade support to diag.sh 2021-06-10 10:34:44 +02:00
zynq kernel: move some drm symbols to generic config 2021-06-13 23:30:10 +02:00
Makefile target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00