Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1716060

[PATCH v9 RESEND 9/9] mfd: rk808: Add RK805 power key support

From Heiko Stuebner <heiko@sntech.de>
Newsgroups linux.kernel
Subject [PATCH v9 RESEND 9/9] mfd: rk808: Add RK805 power key support
Date 2017-08-21 03:40 +0200
Message-ID <ugJR7-69i-7@gated-at.bofh.it> (permalink)
References <ugJHs-66r-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Joseph Chen <chenjh@rock-chips.com>

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Acked-for-MFD-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
---
 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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v9 RESEND 0/9] mfd: rk808: Add RK805 support Heiko Stuebner <heiko@sntech.de> - 2017-08-21 03:30 +0200
  [PATCH v9 RESEND 8/9] mfd: rk808: Add RK805 pinctrl support Heiko Stuebner <heiko@sntech.de> - 2017-08-21 03:30 +0200
  [PATCH v9 RESEND 1/9] mfd: rk808: fix up the chip id get failed Heiko Stuebner <heiko@sntech.de> - 2017-08-21 03:30 +0200
  [PATCH v9 RESEND 6/9] pinctrl: dt-bindings: add bindings for Rockchip RK805 PMIC Heiko Stuebner <heiko@sntech.de> - 2017-08-21 03:30 +0200
    Re: [PATCH v9 RESEND 6/9] pinctrl: dt-bindings: add bindings for  Rockchip RK805 PMIC Lee Jones <lee.jones@linaro.org> - 2017-08-21 10:20 +0200
  [PATCH v9 RESEND 3/9] regulator: rk808: Add regulator driver for RK805 Heiko Stuebner <heiko@sntech.de> - 2017-08-21 03:30 +0200
  [PATCH v9 RESEND 2/9] mfd: rk808: add rk805 regs addr and ID Heiko Stuebner <heiko@sntech.de> - 2017-08-21 03:40 +0200
  [PATCH v9 RESEND 9/9] mfd: rk808: Add RK805 power key support Heiko Stuebner <heiko@sntech.de> - 2017-08-21 03:40 +0200
    Re: [PATCH v9 RESEND 9/9] mfd: rk808: Add RK805 power key support Lee Jones <lee.jones@linaro.org> - 2017-08-21 10:20 +0200
  [PATCH v9 RESEND 7/9] pinctrl: Add pinctrl driver for the RK805 PMIC Heiko Stuebner <heiko@sntech.de> - 2017-08-21 03:40 +0200
    Re: [PATCH v9 RESEND 7/9] pinctrl: Add pinctrl driver for the RK805  PMIC Lee Jones <lee.jones@linaro.org> - 2017-08-21 10:20 +0200
  [PATCH v9 RESEND 4/9] mfd: dt-bindings: Add RK805 device tree bindings document Heiko Stuebner <heiko@sntech.de> - 2017-08-21 03:40 +0200
    Re: [PATCH v9 RESEND 4/9] mfd: dt-bindings: Add RK805 device tree  bindings document Lee Jones <lee.jones@linaro.org> - 2017-08-21 10:20 +0200
  [PATCH v9 RESEND 5/9] mfd: rk808: Add RK805 support Heiko Stuebner <heiko@sntech.de> - 2017-08-21 03:40 +0200
    Re: [PATCH v9 RESEND 5/9] mfd: rk808: Add RK805 support Lee Jones <lee.jones@linaro.org> - 2017-08-21 10:20 +0200
  [GIT PULL] Immutable branch between MFD, Pinctrl and Regulator due  for the v4.14 merge window Lee Jones <lee.jones@linaro.org> - 2017-08-21 10:30 +0200

csiph-web