From: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
To: lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
chenjh-TNX95d0MmH7DzftRWevZcw@public.gmane.org
Subject: [PATCH v9 RESEND 9/9] mfd: rk808: Add RK805 power key support
Date: Mon, 21 Aug 2017 03:28:42 +0200 [thread overview]
Message-ID: <20170821012842.17875-10-heiko@sntech.de> (raw)
In-Reply-To: <20170821012842.17875-1-heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
From: Joseph Chen <chenjh-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
Signed-off-by: Joseph Chen <chenjh-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
Acked-for-MFD-by: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Signed-off-by: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
---
drivers/mfd/rk808.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c
index c803d2d5dfb7..216fbf6adec9 100644
--- a/drivers/mfd/rk808.c
+++ b/drivers/mfd/rk808.c
@@ -94,6 +94,19 @@ static struct resource rtc_resources[] = {
}
};
+static struct resource rk805_key_resources[] = {
+ {
+ .start = RK805_IRQ_PWRON_FALL,
+ .end = RK805_IRQ_PWRON_FALL,
+ .flags = IORESOURCE_IRQ,
+ },
+ {
+ .start = RK805_IRQ_PWRON_RISE,
+ .end = RK805_IRQ_PWRON_RISE,
+ .flags = IORESOURCE_IRQ,
+ }
+};
+
static const struct mfd_cell rk805s[] = {
{ .name = "rk808-clkout", },
{ .name = "rk808-regulator", },
@@ -103,6 +116,10 @@ static const struct mfd_cell rk805s[] = {
.num_resources = ARRAY_SIZE(rtc_resources),
.resources = &rtc_resources[0],
},
+ { .name = "rk805-pwrkey",
+ .num_resources = ARRAY_SIZE(rk805_key_resources),
+ .resources = &rk805_key_resources[0],
+ },
};
static const struct mfd_cell rk808s[] = {
--
2.14.1
next prev parent reply other threads:[~2017-08-21 1:28 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-21 1:28 [PATCH v9 RESEND 0/9] mfd: rk808: Add RK805 support Heiko Stuebner
2017-08-21 1:28 ` [PATCH v9 RESEND 1/9] mfd: rk808: fix up the chip id get failed Heiko Stuebner
2017-08-21 8:14 ` Lee Jones
[not found] ` <20170821012842.17875-1-heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
2017-08-21 1:28 ` [PATCH v9 RESEND 2/9] mfd: rk808: add rk805 regs addr and ID Heiko Stuebner
2017-08-21 8:15 ` Lee Jones
2017-08-21 1:28 ` [PATCH v9 RESEND 4/9] mfd: dt-bindings: Add RK805 device tree bindings document Heiko Stuebner
2017-08-21 8:15 ` Lee Jones
2017-08-21 1:28 ` [PATCH v9 RESEND 5/9] mfd: rk808: Add RK805 support Heiko Stuebner
2017-08-21 8:16 ` Lee Jones
2017-08-21 1:28 ` Heiko Stuebner [this message]
2017-08-21 8:16 ` [PATCH v9 RESEND 9/9] mfd: rk808: Add RK805 power key support Lee Jones
2017-08-21 1:28 ` [PATCH v9 RESEND 3/9] regulator: rk808: Add regulator driver for RK805 Heiko Stuebner
2017-08-21 8:15 ` Lee Jones
2017-08-21 1:28 ` [PATCH v9 RESEND 6/9] pinctrl: dt-bindings: add bindings for Rockchip RK805 PMIC Heiko Stuebner
2017-08-21 8:16 ` Lee Jones
2017-08-21 1:28 ` [PATCH v9 RESEND 7/9] pinctrl: Add pinctrl driver for the " Heiko Stuebner
[not found] ` <20170821012842.17875-8-heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
2017-08-21 8:16 ` Lee Jones
2017-08-21 1:28 ` [PATCH v9 RESEND 8/9] mfd: rk808: Add RK805 pinctrl support Heiko Stuebner
2017-08-21 8:16 ` Lee Jones
2017-08-21 8:25 ` [GIT PULL] Immutable branch between MFD, Pinctrl and Regulator due for the v4.14 merge window 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=20170821012842.17875-10-heiko@sntech.de \
--to=heiko-4mtyjxux2i+zqb+pc5nmwq@public.gmane.org \
--cc=chenjh-TNX95d0MmH7DzftRWevZcw@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
/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).