From: <patrice.chotard@st.com>
To: <linux-kernel@vger.kernel.org>,
Linus Walleij <linus.walleij@linaro.org>,
<srinivas.kandagatla@linaro.com>,
<linux-arm-kernel@lists.infradead.org>
Cc: <kernel@stlinux.com>, <patrice.chotard@st.com>
Subject: [PATCH 3/4] ARM: dts: STiH418-B2199: Update gpio specifier
Date: Wed, 10 Aug 2016 15:13:00 +0200 [thread overview]
Message-ID: <1470834781-23232-4-git-send-email-patrice.chotard@st.com> (raw)
In-Reply-To: <1470834781-23232-1-git-send-email-patrice.chotard@st.com>
From: Patrice Chotard <patrice.chotard@st.com>
- Remove useless gpio-cells
- Update second parameter by using GPIO_ACTIVE_HIGH/LOW
instead of hardcoded value
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
---
arch/arm/boot/dts/stih418-b2199.dts | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/arch/arm/boot/dts/stih418-b2199.dts b/arch/arm/boot/dts/stih418-b2199.dts
index 772d2bb..24e98a9 100644
--- a/arch/arm/boot/dts/stih418-b2199.dts
+++ b/arch/arm/boot/dts/stih418-b2199.dts
@@ -8,6 +8,7 @@
*/
/dts-v1/;
#include "stih418.dtsi"
+#include <dt-bindings/gpio/gpio.h>
/ {
model = "STiH418 B2199";
compatible = "st,stih418-b2199", "st,stih418";
@@ -35,14 +36,12 @@
leds {
compatible = "gpio-leds";
red {
- #gpio-cells = <2>;
label = "Front Panel LED";
- gpios = <&pio4 1 0>;
+ gpios = <&pio4 1 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat";
};
green {
- #gpio-cells = <2>;
- gpios = <&pio1 3 0>;
+ gpios = <&pio1 3 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
};
--
1.9.1
next prev parent reply other threads:[~2016-08-10 18:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-10 13:12 [PATCH 0/4] STi: Allow to use gpio specifier's second parameter patrice.chotard
2016-08-10 13:12 ` [PATCH 1/4] pinctrl: st: Use second parameter to gpio specifier patrice.chotard
2016-08-11 14:07 ` Linus Walleij
2016-08-10 13:12 ` [PATCH 2/4] ARM: dts: STiH407-pinctrl: Update gpio-cells to 2 patrice.chotard
2016-08-11 14:08 ` Linus Walleij
2016-08-10 13:13 ` patrice.chotard [this message]
2016-08-11 14:09 ` [PATCH 3/4] ARM: dts: STiH418-B2199: Update gpio specifier Linus Walleij
2016-08-10 13:13 ` [PATCH 4/4] ARM: dts: STiH41x-b2020: " patrice.chotard
2016-08-11 14:09 ` Linus Walleij
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=1470834781-23232-4-git-send-email-patrice.chotard@st.com \
--to=patrice.chotard@st.com \
--cc=kernel@stlinux.com \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=srinivas.kandagatla@linaro.com \
/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
all inboxes | Powered by JetHome®