mfd: cpcap: Add minimal support
authorTony Lindgren <tony@atomide.com>
Fri, 6 Jan 2017 00:44:39 +0000 (16:44 -0800)
committerLee Jones <lee.jones@linaro.org>
Mon, 13 Feb 2017 09:29:44 +0000 (09:29 +0000)
commit56e1d40d3beab2f247d48574bf51fc5daeebc285
tree715145f623a24ff8d44d4f2ba91404164a422255
parent1cb8af8d631f66dde37a918bdd08a924ba3c7c03
mfd: cpcap: Add minimal support

Many Motorola phones like droid 4 are using a custom PMIC called CPCAP
or 6556002. We can support it's core features quite easily with regmap_spi
and regmap_irq.

The children of cpcap, such as regulators, ADC and USB, can be just regular
device drivers and defined in the dts file. They get probed as we call
of_platform_populate() at the end of our probe, and then the children
can just call dev_get_regmap(dev.parent, NULL) to get the regmap.

Cc: devicetree@vger.kernel.org
Cc: Marcel Partap <mpartap@gmx.net>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Michael Scott <michael.scott@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Documentation/devicetree/bindings/mfd/motorola-cpcap.txt [new file with mode: 0644]
drivers/mfd/Kconfig
drivers/mfd/Makefile
drivers/mfd/motorola-cpcap.c [new file with mode: 0644]
include/linux/mfd/motorola-cpcap.h [new file with mode: 0644]