1 Device tree bindings for GPMC connected NANDs
3 GPMC connected NAND (found on OMAP boards) are represented as child nodes of
4 the GPMC controller with a name of "nand".
6 All timing relevant properties as well as generic gpmc child properties are
7 explained in a separate documents - please refer to
8 Documentation/devicetree/bindings/bus/ti-gpmc.txt
10 For NAND specific properties such as ECC modes or bus width, please refer to
11 Documentation/devicetree/bindings/mtd/nand.txt
16 - reg: The CS line the peripheral is connected to
20 - nand-bus-width: Set this numeric value to 16 if the hardware
21 is wired that way. If not specified, a bus
22 width of 8 is assumed.
24 - ti,nand-ecc-opt: A string setting the ECC layout to use. One of:
26 "sw" Software method (default)
28 "hw-romcode" gpmc hamming mode method & romcode layout
29 "bch4" 4-bit BCH ecc code
30 "bch8" 8-bit BCH ecc code
32 For inline partiton table parsing (optional):
34 - #address-cells: should be set to 1
35 - #size-cells: should be set to 1
37 Example for an AM33xx board:
40 compatible = "ti,am3352-gpmc";
42 reg = <0x50000000 0x1000000>;
45 gpmc,num-waitpins = <2>;
48 ranges = <0 0 0x08000000 0x2000>; /* CS0: NAND */
51 reg = <0 0 0>; /* CS0, offset 0 */
52 nand-bus-width = <16>;
53 ti,nand-ecc-opt = "bch8";
57 gpmc,cs-rd-off = <44>;
58 gpmc,cs-wr-off = <44>;
60 gpmc,adv-rd-off = <34>;
61 gpmc,adv-wr-off = <44>;
67 gpmc,wr-access = <40>;
68 gpmc,wr-data-mux-bus = <0>;
73 /* partitions go here */