dt-bindings: fec: Make the phy-reset-gpio polarity explicit
authorFabio Estevam <fabio.estevam@nxp.com>
Fri, 8 Dec 2017 14:11:33 +0000 (12:11 -0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Dec 2017 16:26:59 +0000 (11:26 -0500)
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>
Documentation/devicetree/bindings/net/fsl-fec.txt

index f0dc94409107130d1279c2144c50eec7be122633..2d41fb96ce0a2b66acf309071f1534c6437f52cf 100644 (file)
@@ -59,7 +59,7 @@ ethernet@83fec000 {
        reg = <0x83fec000 0x4000>;
        interrupts = <87>;
        phy-mode = "mii";
-       phy-reset-gpios = <&gpio2 14 0>; /* GPIO2_14 */
+       phy-reset-gpios = <&gpio2 14 GPIO_ACTIVE_LOW>; /* GPIO2_14 */
        local-mac-address = [00 04 9F 01 1B B9];
        phy-supply = <&reg_fec_supply>;
 };
@@ -71,7 +71,7 @@ ethernet@83fec000 {
        reg = <0x83fec000 0x4000>;
        interrupts = <87>;
        phy-mode = "mii";
-       phy-reset-gpios = <&gpio2 14 0>; /* GPIO2_14 */
+       phy-reset-gpios = <&gpio2 14 GPIO_ACTIVE_LOW>; /* GPIO2_14 */
        local-mac-address = [00 04 9F 01 1B B9];
        phy-supply = <&reg_fec_supply>;
        phy-handle = <&ethphy>;