public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jagan Teki <jagannadh.teki@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/5] arm64: dts: sun50i: h5: orangepi-pc2: Use GPIO flag binding macro
Date: Fri, 26 May 2017 01:05:09 +0530	[thread overview]
Message-ID: <1495740911-9455-4-git-send-email-jteki@openedev.com> (raw)
In-Reply-To: <1495740911-9455-1-git-send-email-jteki@openedev.com>

From: Jagan Teki <jagan@amarulasolutions.com>

Instead of defining numerical value on GPIO flag
better to use existing binding macro.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
 arch/arm/dts/sun50i-h5-orangepi-pc2.dts | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/arm/dts/sun50i-h5-orangepi-pc2.dts b/arch/arm/dts/sun50i-h5-orangepi-pc2.dts
index 81594e6..780d59a 100644
--- a/arch/arm/dts/sun50i-h5-orangepi-pc2.dts
+++ b/arch/arm/dts/sun50i-h5-orangepi-pc2.dts
@@ -44,6 +44,8 @@
 
 #include "sun50i-h5.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+
 / {
 	model = "OrangePi PC 2";
 	compatible = "xunlong,orangepi-pc-2", "allwinner,sun50i-h5";
@@ -79,7 +81,7 @@
 	pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin>;
 	vmmc-supply = <&reg_vcc3v3>;
 	bus-width = <4>;
-	cd-gpios = <&pio 5 6 0>;
+	cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>;
 	cd-inverted;
 	status = "okay";
 };
-- 
2.7.4

  parent reply	other threads:[~2017-05-25 19:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-25 19:35 [U-Boot] [PATCH 0/5] sun50i: a64/h5: Add orangepi boards Jagan Teki
2017-05-25 19:35 ` [U-Boot] [PATCH 1/5] sun50i: a64: Add initial Orangepi Win/WinPlus support Jagan Teki
2017-05-25 22:54   ` André Przywara
2017-05-25 19:35 ` [U-Boot] [PATCH 2/5] arm64: dts: sun50i: Add sun50i-h5.dtsi Jagan Teki
2017-05-25 23:01   ` André Przywara
2017-05-25 19:35 ` Jagan Teki [this message]
2017-05-25 19:35 ` [U-Boot] [PATCH 4/5] sun50i: h5: Add initial Orangepi Prime support Jagan Teki
2017-05-25 19:35 ` [U-Boot] [PATCH 5/5] sun50i: h5: Add initial Orangepi Zero Plus 2 support Jagan Teki
2017-05-25 23:08   ` André Przywara
2017-06-02 18:00 ` [U-Boot] [PATCH 0/5] sun50i: a64/h5: Add orangepi boards Jagan Teki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1495740911-9455-4-git-send-email-jteki@openedev.com \
    --to=jagannadh.teki@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox