ipq806x: dts: ea8500: fix gpio based switch reset wip/ipq806x-ea8500-gpio-switch-reset-fix
authorPetr Štetiar <ynezz@true.cz>
Mon, 27 May 2019 10:27:37 +0000 (12:27 +0200)
committerPetr Štetiar <ynezz@true.cz>
Fri, 31 May 2019 07:12:33 +0000 (09:12 +0200)
commit2f04da3a87150551e7e317a797102b72fe670b09
treee77a15cff12f67c8772a22e8d137016fed41896d
parenta00563b8a8f47c667ec4e09c9d4eb6d0bc2d8836
ipq806x: dts: ea8500: fix gpio based switch reset

Linksys EA8500 uses designated GPIO to reset the switch and if the
switch isn't reset properly before first access, it can lead to unusable
switch after soft reboot of the device:

 libphy: GPIO Bitbanged MDIO: probed
 mdio_bus gpio-0: MDIO device at address 0 is missing.
 mdio_bus gpio-0: MDIO device at address 4 is missing.

Working case:

 libphy: GPIO Bitbanged MDIO: probed
 switch0: Atheros AR8337 rev. 2 switch registered on gpio-0

So this patch sets reset GPIO to active low for 15ms as datasheet says,
that chip reset is active low and active low duration must be greater
than 10ms.

Tested-by: Your Real Name <424778940z@gmail.com>
Reported-by: Your Real Name <424778940z@gmail.com>
Ref: https://github.com/openwrt/openwrt/pull/2047
Ref: https://bugs.openwrt.org/index.php?do=details&task_id=2168
Signed-off-by: Petr Štetiar <ynezz@true.cz>
target/linux/ipq806x/files-4.14/arch/arm/boot/dts/qcom-ipq8064-ea8500.dts