You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
5 years ago
..
Kconfig ath79: add new OF only target for QCA MIPS silicon 6 years ago
Makefile ath79: ag71xx: Make builtin switch driver a separated module 6 years ago
ag71xx.h ath79: ag71xx: add support for optional mdio reset 5 years ago
ag71xx_ar7240.c ath79: ag71xx: preserve port mirror flags during swconfig apply 5 years ago
ag71xx_debugfs.c ath79: add new OF only target for QCA MIPS silicon 6 years ago
ag71xx_ethtool.c ath79: add new OF only target for QCA MIPS silicon 6 years ago
ag71xx_gmac.c ath79: gmac: add parsers for rxd(v)- and tx(d|en)-delay for AR9344 6 years ago
ag71xx_main.c ath79: ag71xx: add support for optional mdio reset 5 years ago
ag71xx_mdio.c ath79: ag71xx-mdio: get reset control using devm api 5 years ago
ag71xx_phy.c ath79: add new OF only target for QCA MIPS silicon 6 years ago