From: Sebastien Jan <sjan@baylibre.com>
To: Samuel Ortiz <sameo@linux.intel.com>,
Lee Jones <lee.jones@linaro.org>, Mark Brown <broonie@kernel.org>
Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org,
patches@opensource.wolfsonmicro.com,
Sebastien Jan <sjan@baylibre.com>
Subject: [PATCH v2] mfd: arizona: Add DT binding for irq-gpios property
Date: Tue, 3 Nov 2015 15:10:06 +0100 [thread overview]
Message-ID: <1446559806-3315-1-git-send-email-sjan@baylibre.com> (raw)
Signed-off-by: Sebastien Jan <sjan@baylibre.com>
---
Documentation/devicetree/bindings/mfd/arizona.txt | 2 ++
drivers/mfd/arizona-core.c | 5 +++++
2 files changed, 7 insertions(+)
diff --git a/Documentation/devicetree/bindings/mfd/arizona.txt b/Documentation/devicetree/bindings/mfd/arizona.txt
index a8fee60..f9405ad 100644
--- a/Documentation/devicetree/bindings/mfd/arizona.txt
+++ b/Documentation/devicetree/bindings/mfd/arizona.txt
@@ -46,6 +46,8 @@ Optional properties:
- wlf,reset : GPIO specifier for the GPIO controlling /RESET
- wlf,ldoena : GPIO specifier for the GPIO controlling LDOENA
+ - irq-gpios : GPIO specifier for the GPIO connected to /IRQ
+
- wlf,gpio-defaults : A list of GPIO configuration register values. Defines
for the appropriate values can found in <dt-bindings/mfd/arizona.txt>. If
absent, no configuration of these registers is performed. If any entry has
diff --git a/drivers/mfd/arizona-core.c b/drivers/mfd/arizona-core.c
index 44cfdbb..2046617 100644
--- a/drivers/mfd/arizona-core.c
+++ b/drivers/mfd/arizona-core.c
@@ -814,6 +814,11 @@ static int arizona_of_get_core_pdata(struct arizona *arizona)
count++;
}
+ arizona->pdata.irq_gpio = of_get_named_gpio(arizona->dev->of_node,
+ "irq-gpios", 0);
+ if (arizona->pdata.irq_gpio < 0)
+ arizona->pdata.irq_gpio = 0;
+
return 0;
}
--
1.9.1
next reply other threads:[~2015-11-03 14:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-03 14:10 Sebastien Jan [this message]
[not found] ` <1446559806-3315-1-git-send-email-sjan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
2015-11-03 15:04 ` [PATCH v2] mfd: arizona: Add DT binding for irq-gpios property Mark Brown
2015-11-03 16:52 ` Charles Keepax
2015-11-05 6:08 ` Sebastien Jan
[not found] ` <563AF241.5030404-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
2015-11-06 9:49 ` Lee Jones
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=1446559806-3315-1-git-send-email-sjan@baylibre.com \
--to=sjan@baylibre.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=lee.jones@linaro.org \
--cc=patches@opensource.wolfsonmicro.com \
--cc=sameo@linux.intel.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;
as well as URLs for NNTP newsgroup(s).