From: Joseph Chen <chenjh@rock-chips.com>
To: gnurou@gmail.com, linus.walleij@linaro.org, dmitry.torokhov@gmail.com
Cc: linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
huangtao@rock-chips.com, tony.xie@rock-chips.com,
zhangqing@rock-chips.com, wdc@rock-chips.com,
devicetree@vger.kernel.org, w.egorov@phytec.de,
lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org,
mark.rutland@arm.com, linux-gpio@vger.kernel.org,
linux-input@vger.kernel.org, Joseph Chen <chenjh@rock-chips.com>
Subject: [PATCH v8 11/12] mfd: rk808: Add RK805 power key support
Date: Thu, 3 Aug 2017 20:26:10 +0800 [thread overview]
Message-ID: <1501763170-20636-1-git-send-email-chenjh@rock-chips.com> (raw)
In-Reply-To: <1501762841-20262-1-git-send-email-chenjh@rock-chips.com>
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
---
drivers/mfd/rk808.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c
index db90471..6d9f96b 100644
--- a/drivers/mfd/rk808.c
+++ b/drivers/mfd/rk808.c
@@ -94,6 +94,19 @@ static bool rk808_is_volatile_reg(struct device *dev, unsigned int reg)
}
};
+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 bool rk808_is_volatile_reg(struct device *dev, unsigned int reg)
.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[] = {
--
1.9.1
next prev parent reply other threads:[~2017-08-03 12:26 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-03 12:20 [PATCH v8 00/12] rk808: Add RK805 support Joseph Chen
2017-08-03 12:20 ` [PATCH v8 01/12] mfd: rk808: fix up the chip id get failed Joseph Chen
2017-08-08 10:45 ` Lee Jones
2017-08-03 12:20 ` [PATCH v8 02/12] mfd: rk808: add rk805 regs addr and ID Joseph Chen
2017-08-08 10:39 ` Lee Jones
2017-08-03 12:20 ` [PATCH v8 03/12] regulator: rk808: Add regulator driver for RK805 Joseph Chen
2017-08-03 12:20 ` [PATCH v8 04/12] mfd: rk808: Add RK805 support Joseph Chen
2017-08-08 10:48 ` Lee Jones
2017-08-03 12:24 ` [PATCH v8 05/12] clk: Kconfig: Name RK805 in Kconfig for COMMON_CLK_RK808 Joseph Chen
2017-08-03 12:24 ` [PATCH v8 06/12] rtc: Kconfig: Name RK805 in Kconfig for RTC_DRV_RK808 Joseph Chen
2017-08-03 12:25 ` [PATCH v8 07/12] mfd: dt-bindings: Add RK805 device tree bindings document Joseph Chen
2017-08-08 10:48 ` Lee Jones
2017-08-03 12:25 ` [PATCH v8 08/12] pinctrl: Add pinctrl driver for the RK805 PMIC Joseph Chen
2017-08-07 12:49 ` Linus Walleij
2017-08-03 12:25 ` [PATCH v8 09/12] Input: Add power key driver for Rockchip " Joseph Chen
2017-08-03 12:25 ` [PATCH v8 10/12] mfd: rk808: Add RK805 pinctrl support Joseph Chen
2017-08-08 10:49 ` Lee Jones
2017-08-03 12:26 ` Joseph Chen [this message]
2017-08-08 10:50 ` [PATCH v8 11/12] mfd: rk808: Add RK805 power key support Lee Jones
2017-08-03 12:26 ` [PATCH v8 12/12] pinctrl: dt-bindings: add bindings for Rockchip RK805 PMIC Joseph Chen
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=1501763170-20636-1-git-send-email-chenjh@rock-chips.com \
--to=chenjh@rock-chips.com \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=gnurou@gmail.com \
--cc=huangtao@rock-chips.com \
--cc=lgirdwood@gmail.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
--cc=tony.xie@rock-chips.com \
--cc=w.egorov@phytec.de \
--cc=wdc@rock-chips.com \
--cc=zhangqing@rock-chips.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).