This patch contains a hack to get the DMA resources of the device when probed from a devicetree node. This can be removed once a generic DMA controller framework lands. A mtd_part_parser_data is passed mtd_device_parse_register which contains a reference to the device node, so MTD partitions can be added as children. Signed-off-by: Daniel Mack <zonque@gmail.com> Cc: David Woodhouse <dwmw2@infradead.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>tirimbino
parent
9020b7cc27
commit
1e7ba630d4
@ -0,0 +1,31 @@ |
||||
PXA3xx NAND DT bindings |
||||
|
||||
Required properties: |
||||
|
||||
- compatible: Should be "marvell,pxa3xx-nand" |
||||
- reg: The register base for the controller |
||||
- interrupts: The interrupt to map |
||||
- #address-cells: Set to <1> if the node includes partitions |
||||
|
||||
Optional properties: |
||||
|
||||
- marvell,nand-enable-arbiter: Set to enable the bus arbiter |
||||
- marvell,nand-keep-config: Set to keep the NAND controller config as set |
||||
by the bootloader |
||||
- num-cs: Number of chipselect lines to usw |
||||
|
||||
Example: |
||||
|
||||
nand0: nand@43100000 { |
||||
compatible = "marvell,pxa3xx-nand"; |
||||
reg = <0x43100000 90>; |
||||
interrupts = <45>; |
||||
#address-cells = <1>; |
||||
|
||||
marvell,nand-enable-arbiter; |
||||
marvell,nand-keep-config; |
||||
num-cs = <1>; |
||||
|
||||
/* partitions (optional) */ |
||||
}; |
||||
|
Loading…
Reference in new issue