Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1410497
| From | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] net: fec: dt: convert phy-reset-gpios to use GPIOD API |
| Date | 2016-05-31 19:50 +0200 |
| Message-ID | <rEVXI-5Js-23@gated-at.bofh.it> (permalink) |
| References | <rEVuG-5z8-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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 = <ðphy>;
...
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethphy: ethernet-phy@7 {
...
reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
};
};
};
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] net: fec: dt: convert phy-reset-gpios to use GPIOD API "George G. Davis" <george_davis@mentor.com> - 2016-05-31 19:20 +0200
Re: [PATCH] net: fec: dt: convert phy-reset-gpios to use GPIOD API Fabio Estevam <festevam@gmail.com> - 2016-05-31 19:30 +0200
Re: [PATCH] net: fec: dt: convert phy-reset-gpios to use GPIOD API Russell King - ARM Linux <linux@armlinux.org.uk> - 2016-05-31 20:30 +0200
Re: [PATCH] net: fec: dt: convert phy-reset-gpios to use GPIOD API "George G. Davis" <george_davis@mentor.com> - 2016-05-31 20:40 +0200
Re: [PATCH] net: fec: dt: convert phy-reset-gpios to use GPIOD API "George G. Davis" <george_davis@mentor.com> - 2016-05-31 20:30 +0200
Re: [PATCH] net: fec: dt: convert phy-reset-gpios to use GPIOD API Uwe Kleine-König <u.kleine-koenig@pengutronix.de> - 2016-05-31 19:50 +0200
csiph-web