1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/mtd/ti,gpmc-nand.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Texas Instruments GPMC NAND Flash controller.
10 - Tony Lindgren <tony@atomide.com>
11 - Roger Quadros <rogerq@kernel.org>
14 GPMC NAND controller/Flash is represented as a child of the
29 - description: Interrupt for fifoevent
30 - description: Interrupt for termcount
32 "#address-cells": true
37 description: Desired ECC algorithm
38 $ref: /schemas/types.yaml#/definitions/string
39 enum: [sw, ham1, bch4, bch8, bch16]
42 description: Data transfer method between controller and chip.
43 $ref: /schemas/types.yaml#/definitions/string
44 enum: [prefetch-polled, polled, prefetch-dma, prefetch-irq]
45 default: prefetch-polled
49 phandle to the ELM (Error Location Module).
50 $ref: /schemas/types.yaml#/definitions/phandle
54 Bus width to the NAND chip
55 $ref: /schemas/types.yaml#/definitions/uint32
61 GPIO connection to R/B signal from NAND chip
66 $ref: /schemas/mtd/partitions/partition.yaml
69 - $ref: /schemas/memory-controllers/ti,gpmc-child.yaml
76 unevaluatedProperties: false
80 #include <dt-bindings/interrupt-controller/arm-gic.h>
81 #include <dt-bindings/gpio/gpio.h>
83 gpmc: memory-controller@50000000 {
84 compatible = "ti,am3352-gpmc";
89 reg = <0x50000000 0x2000>;
90 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
92 gpmc,num-waitpins = <2>;
96 #interrupt-cells = <2>;
100 ranges = <0 0 0x08000000 0x01000000>; /* CS0 space. Min partition = 16MB */
102 compatible = "ti,omap2-nand";
103 reg = <0 0 4>; /* device IO registers */
104 interrupt-parent = <&gpmc>;
105 interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
106 <1 IRQ_TYPE_NONE>; /* termcount */
107 ti,nand-xfer-type = "prefetch-dma";
108 ti,nand-ecc-opt = "bch16";
110 #address-cells = <1>;
113 /* NAND generic properties */
114 nand-bus-width = <8>;
115 rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
118 gpmc,device-width = <1>;
122 reg = <0x00000000 0x00040000>;
125 label = "NAND.SPL.backup1";
126 reg = <0x00040000 0x00040000>;