Daniel Mack | 1e7ba63 | 2012-07-22 19:51:02 +0200 | [diff] [blame] | 1 | PXA3xx NAND DT bindings |
| 2 | |
| 3 | Required properties: |
| 4 | |
Ezequiel Garcia | ad58b2d | 2013-11-07 12:17:09 -0300 | [diff] [blame] | 5 | - compatible: Should be set to one of the following: |
| 6 | marvell,pxa3xx-nand |
| 7 | marvell,armada370-nand |
Daniel Mack | 1e7ba63 | 2012-07-22 19:51:02 +0200 | [diff] [blame] | 8 | - reg: The register base for the controller |
| 9 | - interrupts: The interrupt to map |
| 10 | - #address-cells: Set to <1> if the node includes partitions |
| 11 | |
| 12 | Optional properties: |
| 13 | |
Robert Jarzmik | 9d6f85d | 2015-08-30 21:44:12 +0200 | [diff] [blame] | 14 | - dmas: dma data channel, see dma.txt binding doc |
Daniel Mack | 1e7ba63 | 2012-07-22 19:51:02 +0200 | [diff] [blame] | 15 | - marvell,nand-enable-arbiter: Set to enable the bus arbiter |
| 16 | - marvell,nand-keep-config: Set to keep the NAND controller config as set |
| 17 | by the bootloader |
Brian Norris | 0542e135 | 2015-02-28 01:25:17 -0800 | [diff] [blame] | 18 | - num-cs: Number of chipselect lines to use |
Ezequiel Garcia | 776f265 | 2013-11-14 18:25:28 -0300 | [diff] [blame] | 19 | - nand-on-flash-bbt: boolean to enable on flash bbt option if |
| 20 | not present false |
Ezequiel Garcia | fe4fd75 | 2014-05-14 14:58:09 -0300 | [diff] [blame] | 21 | - nand-ecc-strength: number of bits to correct per ECC step |
| 22 | - nand-ecc-step-size: number of data bytes covered by a single ECC step |
| 23 | |
| 24 | The following ECC strength and step size are currently supported: |
| 25 | |
| 26 | - nand-ecc-strength = <1>, nand-ecc-step-size = <512> |
| 27 | - nand-ecc-strength = <4>, nand-ecc-step-size = <512> |
| 28 | - nand-ecc-strength = <8>, nand-ecc-step-size = <512> |
Daniel Mack | 1e7ba63 | 2012-07-22 19:51:02 +0200 | [diff] [blame] | 29 | |
| 30 | Example: |
| 31 | |
| 32 | nand0: nand@43100000 { |
| 33 | compatible = "marvell,pxa3xx-nand"; |
| 34 | reg = <0x43100000 90>; |
| 35 | interrupts = <45>; |
Robert Jarzmik | 9d6f85d | 2015-08-30 21:44:12 +0200 | [diff] [blame] | 36 | dmas = <&pdma 97 0>; |
| 37 | dma-names = "data"; |
Daniel Mack | 1e7ba63 | 2012-07-22 19:51:02 +0200 | [diff] [blame] | 38 | #address-cells = <1>; |
| 39 | |
| 40 | marvell,nand-enable-arbiter; |
| 41 | marvell,nand-keep-config; |
| 42 | num-cs = <1>; |
| 43 | |
| 44 | /* partitions (optional) */ |
| 45 | }; |
| 46 | |