Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: fec: Make the phy-reset-gpio polarity explicit

The GPIO polarity passed to phy-reset-gpio is ignored by the FEC
driver and it is assumed to be active low.

It can be active high only when the 'phy-reset-active-high' property
is present.

The current examples pass active high polarity and work fine, but
in order to improve the documentation make it explicit what the real
polarity is.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Fabio Estevam and committed by
David S. Miller
24fd3190 b9622ed4

+2 -2
+2 -2
Documentation/devicetree/bindings/net/fsl-fec.txt
··· 59 59 reg = <0x83fec000 0x4000>; 60 60 interrupts = <87>; 61 61 phy-mode = "mii"; 62 - phy-reset-gpios = <&gpio2 14 0>; /* GPIO2_14 */ 62 + phy-reset-gpios = <&gpio2 14 GPIO_ACTIVE_LOW>; /* GPIO2_14 */ 63 63 local-mac-address = [00 04 9F 01 1B B9]; 64 64 phy-supply = <&reg_fec_supply>; 65 65 }; ··· 71 71 reg = <0x83fec000 0x4000>; 72 72 interrupts = <87>; 73 73 phy-mode = "mii"; 74 - phy-reset-gpios = <&gpio2 14 0>; /* GPIO2_14 */ 74 + phy-reset-gpios = <&gpio2 14 GPIO_ACTIVE_LOW>; /* GPIO2_14 */ 75 75 local-mac-address = [00 04 9F 01 1B B9]; 76 76 phy-supply = <&reg_fec_supply>; 77 77 phy-handle = <&ethphy>;