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
..
2019-01-28 18:17:32 +01:00
2019-01-28 18:17:32 +01:00
2019-01-28 18:17:32 +01:00
2019-01-27 00:16:13 +01:00
2018-11-05 16:00:00 +01:00
2019-01-28 18:17:32 +01:00
2019-02-14 16:45:01 +01:00
2019-03-02 12:59:47 +01:00
2019-02-25 17:33:16 +01:00
2019-02-22 10:53:42 +01:00
2019-01-28 18:17:32 +01:00
2019-01-13 16:31:40 +01:00
2018-08-20 13:03:23 +02:00
2019-02-14 16:45:01 +01:00
2019-02-08 17:27:47 +01:00
2019-01-12 19:40:13 +01:00
2018-10-09 14:29:55 +02:00
2018-10-19 10:01:57 +02:00
2019-01-07 17:09:06 +01:00
2018-12-10 11:48:44 +01:00
2018-08-20 13:03:23 +02:00
2018-12-26 17:32:48 +01:00