Chuanhong Guo cea3e9e438 ath79: ag71xx: add support for optional mdio reset
On ar933x and later chips, there are separated mac/mdio resets, but
resetting the entire gmac block with register values requires both
mac_reset and mdio_reset to be asserted together.

Add support for optional mdio reset so that we can do a full reset
if needed.

This patch also replaced deprecated devm_reset_control_get for
mac reset.

To use this feature, the following is needed:
 1. drop "simple-mfd" compatible to register mdio0 after gmac init
    so that mdio registers aren't reset after initialization.
 2. move mdio reset from mdio-bus to its parent eth node.

NOTE: This can't be applied on gmac1 with builtin switch since we
haven't add a feature to defer probe if phy connection failed.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2019-03-05 03:02:34 +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