Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1719778
| From | Chen Zhong <chen.zhong@mediatek.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v3 5/5] mfd: mt6397: Add PMIC keys support to MT6397 driver |
| Date | 2017-08-25 08:40 +0200 |
| Message-ID | <uigrE-xp-23@gated-at.bofh.it> (permalink) |
| References | <uigrD-xp-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This patch adds compatible strings and interrupts for pmic keys
which serves as child device of MFD.
Signed-off-by: Chen Zhong <chen.zhong@mediatek.com>
---
drivers/mfd/mt6397-core.c | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/drivers/mfd/mt6397-core.c b/drivers/mfd/mt6397-core.c
index 6546d7f..77b64bd 100644
--- a/drivers/mfd/mt6397-core.c
+++ b/drivers/mfd/mt6397-core.c
@@ -43,6 +43,16 @@
},
};
+static const struct resource mt6323_keys_resources[] = {
+ DEFINE_RES_IRQ(MT6323_IRQ_STATUS_PWRKEY),
+ DEFINE_RES_IRQ(MT6323_IRQ_STATUS_FCHRKEY),
+};
+
+static const struct resource mt6397_keys_resources[] = {
+ DEFINE_RES_IRQ(MT6397_IRQ_PWRKEY),
+ DEFINE_RES_IRQ(MT6397_IRQ_HOMEKEY),
+};
+
static const struct mfd_cell mt6323_devs[] = {
{
.name = "mt6323-regulator",
@@ -50,6 +60,11 @@
}, {
.name = "mt6323-led",
.of_compatible = "mediatek,mt6323-led"
+ }, {
+ .name = "mtk-pmic-keys",
+ .num_resources = ARRAY_SIZE(mt6323_keys_resources),
+ .resources = mt6323_keys_resources,
+ .of_compatible = "mediatek,mt6323-keys"
},
};
@@ -71,7 +86,12 @@
}, {
.name = "mt6397-pinctrl",
.of_compatible = "mediatek,mt6397-pinctrl",
- },
+ }, {
+ .name = "mtk-pmic-keys",
+ .num_resources = ARRAY_SIZE(mt6397_keys_resources),
+ .resources = mt6397_keys_resources,
+ .of_compatible = "mediatek,mt6397-keys"
+ }
};
static void mt6397_irq_lock(struct irq_data *data)
--
1.7.9.5
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v3 0/5] Add MediaTek PMIC keys support Chen Zhong <chen.zhong@mediatek.com> - 2017-08-25 08:40 +0200
[PATCH v3 3/5] dt-bindings: mfd: Add bindings for the keys as subnode of PMIC Chen Zhong <chen.zhong@mediatek.com> - 2017-08-25 08:40 +0200
Re: [PATCH v3 3/5] dt-bindings: mfd: Add bindings for the keys as subnode of PMIC Lee Jones <lee.jones@linaro.org> - 2017-09-05 09:40 +0200
[PATCH v3 1/5] mfd: mt6397: create irq mappings in mfd core driver Chen Zhong <chen.zhong@mediatek.com> - 2017-08-25 08:40 +0200
Re: [PATCH v3 1/5] mfd: mt6397: create irq mappings in mfd core driver Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-08-25 10:50 +0200
[PATCH v3 5/5] mfd: mt6397: Add PMIC keys support to MT6397 driver Chen Zhong <chen.zhong@mediatek.com> - 2017-08-25 08:40 +0200
Re: [PATCH v3 5/5] mfd: mt6397: Add PMIC keys support to MT6397 driver Lee Jones <lee.jones@linaro.org> - 2017-09-05 09:40 +0200
[PATCH v3 2/5] dt-bindings: input: Add document bindings for mtk-pmic-keys Chen Zhong <chen.zhong@mediatek.com> - 2017-08-25 08:40 +0200
Re: [PATCH v3 2/5] dt-bindings: input: Add document bindings for mtk-pmic-keys Rob Herring <robh@kernel.org> - 2017-08-31 22:00 +0200
Re: [PATCH v3 2/5] dt-bindings: input: Add document bindings for mtk-pmic-keys Chen Zhong <chen.zhong@mediatek.com> - 2017-09-01 04:10 +0200
Re: [PATCH v3 2/5] dt-bindings: input: Add document bindings for mtk-pmic-keys Chen Zhong <chen.zhong@mediatek.com> - 2017-09-02 04:20 +0200
Re: [PATCH v3 2/5] dt-bindings: input: Add document bindings for mtk-pmic-keys Rob Herring <robh@kernel.org> - 2017-09-05 18:10 +0200
Re: [PATCH v3 2/5] dt-bindings: input: Add document bindings for mtk-pmic-keys Chen Zhong <chen.zhong@mediatek.com> - 2017-09-07 05:10 +0200
Re: [PATCH v3 0/5] Add MediaTek PMIC keys support Chen Zhong <chen.zhong@mediatek.com> - 2017-08-26 04:40 +0200
csiph-web