dts: phy: add GPIO number and active state used for phy reset
authorSagar Shrikant Kadam <sagar.kadam@sifive.com>
Tue, 10 Nov 2020 15:22:11 +0000 (07:22 -0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 14 Jan 2021 04:59:16 +0000 (20:59 -0800)
The GEMGXL_RST line on HiFive Unleashed is pulled low and is
using GPIO number 12. Add these reset-gpio details to dt-node
using which the linux phylib can reset the phy.

Signed-off-by: Sagar Shrikant Kadam <sagar.kadam@sifive.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts

index 60846e8..24d75a1 100644 (file)
@@ -90,6 +90,7 @@
        phy0: ethernet-phy@0 {
                compatible = "ethernet-phy-id0007.0771";
                reg = <0>;
+               reset-gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
        };
 };