ARM: dts: zynq: Use gpio constants for the Zybo Z7 board
authorLuis Araneda <luaraneda@gmail.com>
Thu, 12 Jul 2018 05:50:47 +0000 (01:50 -0400)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 19 Jul 2018 08:08:51 +0000 (10:08 +0200)
Include GPIO dt-bindings and use GPIO_ACTIVE_* constants
to improve readability

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/boot/dts/zynq-zybo-z7.dts

index ea67afbe8335f49a0273b522005ba16bab5eece5..7f19b767e991d199385c3a02c298cbb815602fdf 100644 (file)
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0+
 /dts-v1/;
 #include "zynq-7000.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 
 / {
        model = "Digilent Zybo Z7 board";
@@ -24,7 +25,7 @@
        usb_phy0: phy0 {
                #phy-cells = <0>;
                compatible = "usb-nop-xceiv";
-               reset-gpios = <&gpio0 46 1>;
+               reset-gpios = <&gpio0 46 GPIO_ACTIVE_LOW>;
        };
 };