openwrt/target/linux/ath79
Petr Štetiar 368b6d1a52 ath79: gmac: ar934x: Add parser for mii-gmac0-slave
While converting Nanostation M XW from current ar71xx code to ath79 I've
hit one issue, where the ethernet networking wasn't working, so I was
checking every bit in the networking setup path between ar71xx and
ath79.

I've came to the following code in ar71xx/mach-ubnt-xm.c:

 static void __init ubnt_xw_init(void) {
 	...
 	ath79_setup_ar934x_eth_cfg(AR934X_ETH_CFG_MII_GMAC0 |
                                   AR934X_ETH_CFG_MII_GMAC0_SLAVE);
 	...
 }

Where this code is setting AR934X_ETH_CFG_MII_GMAC0_SLAVE bit in
AR934X_GMAC_REG_ETH_CFG register, but I couldn't find a way of setting
this bit from DTS, so this patch adds `mii-gmac0-slave` DTS property
which allows setting of this bit in `gmac-config`, which is then used in
Nanostation M XW DTS.

Tested-by: Joe Ayers <ae6xe@arrl.net>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2019-03-05 03:15:52 +01:00
..
base-files ath79: speed up ath9k-eeprom extraction 2019-03-02 12:59:48 +01:00
dts ath79: qca955x: assert mdio/gmac reset together 2019-03-05 03:02:34 +01:00
files ath79: gmac: ar934x: Add parser for mii-gmac0-slave 2019-03-05 03:15:52 +01:00
generic ath79: add support for devolo WiFi pro 1200e 2018-12-27 14:06:38 +01:00
image ath79: add support for TP-Link Archer C5 v1 2019-02-28 11:32:55 +01:00
nand treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
patches-4.14 kernel: bump 4.14 to 4.14.95 2019-01-24 10:10:45 +01:00
tiny treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
config-4.14 ath79: add support for D-Link DIR-859 A1 2018-12-30 20:08:13 +01:00
Makefile ath79: Remove source-only flag 2018-11-26 12:24:54 +01:00
modules.mk ath79: add new OF only target for QCA MIPS silicon 2018-05-07 08:06:51 +02:00