From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Burton Subject: [PATCH v6 6/6] MIPS: Boston: Adjust DT for pch_gbe PHY support Date: Thu, 10 May 2018 16:16:57 -0700 Message-ID: <20180510231657.28503-7-paul.burton@mips.com> References: <20180510231657.28503-1-paul.burton@mips.com> Mime-Version: 1.0 Content-Type: text/plain Cc: , "David S . Miller" , Andrew Lunn , Paul Burton To: Return-path: Received: from 9pmail.ess.barracuda.com ([64.235.150.225]:34310 "EHLO 9pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751169AbeEJXmL (ORCPT ); Thu, 10 May 2018 19:42:11 -0400 In-Reply-To: <20180510231657.28503-1-paul.burton@mips.com> Sender: netdev-owner@vger.kernel.org List-ID: The pch_gbe driver support for PHY reset GPIOs is now provided by the standard phylib infrastructure, using a standard PHY binding. Adjust the Boston devicetree to make use of the standard PHY binding. This is possible because we bundle the DT along with the kernel binary into a Flattened Image Tree, so the DT and kernel are always shipped together for the Boston platform. Signed-off-by: Paul Burton Cc: Andrew Lunn Cc: David S. Miller Cc: linux-mips@linux-mips.org Cc: netdev@vger.kernel.org --- Changes in v6: - New patch. Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/mips/boot/dts/img/boston.dts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/arch/mips/boot/dts/img/boston.dts b/arch/mips/boot/dts/img/boston.dts index 65af3f6ba81c..cb55f7ba20c3 100644 --- a/arch/mips/boot/dts/img/boston.dts +++ b/arch/mips/boot/dts/img/boston.dts @@ -144,8 +144,17 @@ eg20t_mac@2,0,1 { compatible = "pci8086,8802"; reg = <0x00020100 0 0 0 0>; - phy-reset-gpios = <&eg20t_gpio 6 - GPIO_ACTIVE_LOW>; + + #address-cells = <1>; + #size-cells = <0>; + + ethernet-phy@0 { + compatible = "ethernet-phy-id001c.c915"; + reg = <0>; + reset-gpios = <&eg20t_gpio 6 GPIO_ACTIVE_LOW>; + reset-assert-us = <25000>; + reset-deassert-us = <25000>; + }; }; eg20t_gpio: eg20t_gpio@2,0,2 { -- 2.17.0