Commit dea9c730 authored by Marcin Niestroj's avatar Marcin Niestroj Committed by Lee Jones

mfd: tps65217: Add power button as subdevice

Add tps65217 power buttor subdevice with assigned IRQ resources.
Signed-off-by: default avatarMarcin Niestroj <m.niestroj@grinn-global.com>
Acked-by: default avatarTony Lindgren <tony@atomide.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 6556bdac
......@@ -38,6 +38,10 @@ static struct resource charger_resources[] = {
DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_USB, "USB"),
};
static struct resource pb_resources[] = {
DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_PB, "PB"),
};
struct tps65217_irq {
int mask;
int interrupt;
......@@ -122,6 +126,12 @@ static struct mfd_cell tps65217s[] = {
.resources = charger_resources,
.of_compatible = "ti,tps65217-charger",
},
{
.name = "tps65217-pwrbutton",
.num_resources = ARRAY_SIZE(pb_resources),
.resources = pb_resources,
.of_compatible = "ti,tps65217-pwrbutton",
},
};
static irqreturn_t tps65217_irq_thread(int irq, void *data)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment