From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Subject: Re: [PATCH] net: fec: dt: convert phy-reset-gpios to use GPIOD API Date: Tue, 31 May 2016 19:47:48 +0200 Message-ID: <20160531174748.GI26768@pengutronix.de> References: <1464715071-56012-1-git-send-email-george_davis@mentor.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from metis.ext.4.pengutronix.de ([92.198.50.35]:50806 "EHLO metis.ext.4.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755398AbcEaRrx (ORCPT ); Tue, 31 May 2016 13:47:53 -0400 Content-Disposition: inline In-Reply-To: <1464715071-56012-1-git-send-email-george_davis@mentor.com> Sender: linux-gpio-owner@vger.kernel.org List-Id: linux-gpio@vger.kernel.org To: "George G. Davis" Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org, Mark Rutland , Alexandre Courbot , Fugang Duan , Pawel Moll , Ian Campbell , Linus Walleij , Russell King , Rob Herring , Sascha Hauer , Kumar Gala , Shawn Guo Hello George, On Tue, May 31, 2016 at 01:17:51PM -0400, George G. Davis wrote: > Convert the i.MX FEC driver and DT files to use the GPIOD API > which automatically handles GPIO polarity. additionally to what Fabio said, there is also a nicer approach in the making. The resulting dts would look as follows: &fec { phy-handle =3D <ðphy>; ... mdio { #address-cells =3D <1>; #size-cells =3D <0>; ethphy: ethernet-phy@7 { ... reset-gpios =3D <&gpio1 25 GPIO_ACTIVE_LOW>; }; }; }; Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig = | Industrial Linux Solutions | http://www.pengutronix.de/= | -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html