]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: dts: renesas: ulcb: Add EthernetAVB PHY reset
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 4 Dec 2017 10:34:52 +0000 (11:34 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 11 Dec 2017 07:03:24 +0000 (08:03 +0100)
Describe the GPIO used to reset the Ethernet PHY for EthernetAVB.
This allows the driver to reset the PHY during probe and after system
resume.

On ULCB, the enable pin of the regulator providing PHY power is always
pulled high, but the driver may still need to reset the PHY if this
wasn't done by the bootloader before.

Inspired by patches in the BSP for the individual Salvator-X/XS boards
by Kazuya Mizuguchi.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm64/boot/dts/renesas/ulcb.dtsi

index 0d85b315ce711c8f0d896d7861204036ce9b0ec3..be91016e0b48f19644c32182eab720730cb7efa9 100644 (file)
@@ -154,6 +154,7 @@ phy0: ethernet-phy@0 {
                reg = <0>;
                interrupt-parent = <&gpio2>;
                interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
+               reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
        };
 };