@@ -43,6 +43,22 @@
},
};
+static const struct resource mt6323_keys_resources[] = {
+ {
+ .start = MT6323_IRQ_STATUS_PWRKEY,
+ .end = MT6323_IRQ_STATUS_FCHRKEY,
+ .flags = IORESOURCE_IRQ,
+ },
+};
+
+static const struct resource mt6397_keys_resources[] = {
+ {
+ .start = MT6397_IRQ_PWRKEY,
+ .end = MT6397_IRQ_HOMEKEY,
+ .flags = IORESOURCE_IRQ,
+ },
+};
+
static const struct mfd_cell mt6323_devs[] = {
{
.name = "mt6323-regulator",
@@ -50,6 +66,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 +92,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)
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 | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-)