]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: imx53-cx9020: Fix the Ethernet PHY reset GPIO polarity
authorFabio Estevam <fabio.estevam@nxp.com>
Sat, 25 Nov 2017 22:51:07 +0000 (20:51 -0200)
committerShawn Guo <shawnguo@kernel.org>
Tue, 26 Dec 2017 08:15:44 +0000 (16:15 +0800)
As explained in Documentation/devicetree/bindings/net/fsl-fec.txt the
phy-reset-gpios is active high only if the 'phy-reset-active-high' is
present.

As 'phy-reset-active-high' is not used here, fix the device tree
description by passing GPIO_ACTIVE_LOW flag.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Tested-by: Patrick Bruenn <p.bruenn@beckhoff.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx53-cx9020.dts

index 4f54fd4418a33e05bafbbca05827ca554d9b8feb..5e67e43004e7ea49d14b11b0fd6aee0ecc37b901 100644 (file)
@@ -152,7 +152,7 @@ &fec {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_fec>;
        phy-mode = "rmii";
-       phy-reset-gpios = <&gpio7 6 GPIO_ACTIVE_HIGH>;
+       phy-reset-gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
        status = "okay";
 };