mtd: gpio-nand: add device tree bindings
authorJamie Iles <jamie@jamieiles.com>
Sun, 18 Dec 2011 10:00:49 +0000 (10:00 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 9 Jan 2012 18:23:58 +0000 (18:23 +0000)
commit775c32208708de3e2e2379c85e429ab11957f864
tree1b40ad4ce02cdea3ae988c9ce8fe4e14986ec875
parentf98872fc14ecb96f796443911b6bc4767e58e885
mtd: gpio-nand: add device tree bindings

Add device tree bindings so that the gpio-nand driver may be
instantiated from the device tree.  This also allows the partitions
to be specified in the device tree.

v7: - restore runtime device tree/non device tree detection
v6: - convert to mtd_device_parse_register()
v5: - fold dt config helpers into a single gpio_nand_of_get_config()
v4: - get io sync address from gpio-control-nand,io-sync-reg
  property rather than a resource
- clarified a few details in the binding
v3: - remove redundant cast and a couple of whitespace/naming
  changes
v2: - add CONFIG_OF guards for non-dt platforms
- compatible becomes gpio-control-nand
- clarify some binding details

Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Documentation/devicetree/bindings/mtd/gpio-control-nand.txt [new file with mode: 0644]
drivers/mtd/nand/gpio.c