mfd: vexpress: Define the device as MFD cells
authorPawel Moll <pawel.moll@arm.com>
Wed, 23 Apr 2014 09:49:31 +0000 (10:49 +0100)
committerPawel Moll <pawel.moll@arm.com>
Thu, 15 May 2014 16:02:19 +0000 (17:02 +0100)
commit974cc7b93441a0e78f030495436d1be7eb7c208d
treebc59d8bdfbb3c8bc25282495a40247eef810a415
parent29f9b6cf7bff6a118130163c848811e14f8022da
mfd: vexpress: Define the device as MFD cells

This patch - finally, after over 6 months! :-( - addresses
Samuel's request to split the vexpress-sysreg driver into
smaller portions and define the device in a form of MFD
cells:

* LEDs code has been completely removed and replaced with
  "gpio-leds" nodes in the tree (referencing dedicated
  GPIO subnodes in sysreg - bindings documentation updated);
  this also better fits the reality as some variants of the
  motherboard don't have all the LEDs populated

* syscfg bridge code has been extracted into a separate
  driver (placed in drivers/misc for no better place)

* all the ID & MISC registers are defined as sysconf
  making them available for other drivers should they need
  to use them (and also to the user via /sys/kernel/debug/regmap
  which can be helpful in platform debugging)

Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
12 files changed:
Documentation/devicetree/bindings/arm/vexpress-sysreg.txt
arch/arm/boot/dts/vexpress-v2m-rs1.dtsi
arch/arm/boot/dts/vexpress-v2m.dtsi
arch/arm/mach-vexpress/ct-ca9x4.c
arch/arm/mach-vexpress/v2m.c
drivers/mfd/Kconfig
drivers/mfd/Makefile
drivers/mfd/vexpress-sysreg.c
drivers/misc/Kconfig
drivers/misc/Makefile
drivers/misc/vexpress-syscfg.c [new file with mode: 0644]
include/linux/vexpress.h