Neil Armstrong | 6685924 | 2016-10-20 10:49:01 +0200 | [diff] [blame] | 1 | * Oxford Semiconductor OXNAS NAND Controller |
| 2 | |
| 3 | Please refer to nand.txt for generic information regarding MTD NAND bindings. |
| 4 | |
| 5 | Required properties: |
| 6 | - compatible: "oxsemi,ox820-nand" |
| 7 | - reg: Base address and length for NAND mapped memory. |
| 8 | |
| 9 | Optional Properties: |
| 10 | - clocks: phandle to the NAND gate clock if needed. |
| 11 | - resets: phandle to the NAND reset control if needed. |
| 12 | |
| 13 | Example: |
| 14 | |
| 15 | nandc: nand-controller@41000000 { |
| 16 | compatible = "oxsemi,ox820-nand"; |
| 17 | reg = <0x41000000 0x100000>; |
| 18 | clocks = <&stdclk CLK_820_NAND>; |
| 19 | resets = <&reset RESET_NAND>; |
| 20 | #address-cells = <1>; |
| 21 | #size-cells = <0>; |
| 22 | |
| 23 | nand@0 { |
| 24 | reg = <0>; |
| 25 | #address-cells = <1>; |
| 26 | #size-cells = <1>; |
| 27 | nand-ecc-mode = "soft"; |
| 28 | nand-ecc-algo = "hamming"; |
| 29 | |
| 30 | partition@0 { |
| 31 | label = "boot"; |
| 32 | reg = <0x00000000 0x00e00000>; |
| 33 | read-only; |
| 34 | }; |
| 35 | |
| 36 | partition@e00000 { |
| 37 | label = "ubi"; |
| 38 | reg = <0x00e00000 0x07200000>; |
| 39 | }; |
| 40 | }; |
| 41 | }; |