From: Sagar Shrikant Kadam Date: Tue, 10 Nov 2020 15:22:11 +0000 (-0800) Subject: dts: phy: add GPIO number and active state used for phy reset X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~363^2~2238 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=a416b33e8b7809470b6f3fa6e93d08767b83fafd;p=linux.git dts: phy: add GPIO number and active state used for phy reset [ Upstream commit a0fa9d727043da2238432471e85de0bdb8a8df65 ] 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 Signed-off-by: Palmer Dabbelt Signed-off-by: Sasha Levin --- diff --git a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts index 60846e88ae4b..24d75a146e02 100644 --- a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts +++ b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts @@ -90,6 +90,7 @@ phy0: ethernet-phy@0 { compatible = "ethernet-phy-id0007.0771"; reg = <0>; + reset-gpios = <&gpio 12 GPIO_ACTIVE_LOW>; }; };