1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/mtd/gpmi-nand.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Freescale General-Purpose Media Interface (GPMI)
10 - Han Xu <han.xu@nxp.com>
13 The GPMI nand controller provides an interface to control the NAND
14 flash chips. The device tree may optionally contain sub-nodes
15 describing partitions of the address space. See mtd.yaml for
25 - fsl,imx6sx-gpmi-nand
27 - fsl,imx8qxp-gpmi-nand
30 - fsl,imx8mm-gpmi-nand
31 - fsl,imx8mn-gpmi-nand
32 - const: fsl,imx7d-gpmi-nand
36 - description: Address and length of gpmi block.
37 - description: Address and length of bch block.
67 Protect this NAND flash with the minimum ECC strength required.
68 The required ECC strength is automatically discoverable for some
69 flash (e.g., according to the ONFI standard). However, note that
70 if this strength is not discoverable or this property is not enabled,
71 the software may chooses an implementation-defined ECC scheme.
73 fsl,no-blockmark-swap:
76 Don't swap the bad block marker from the OOB area with the byte in
77 the data area but rely on the flash based BBT for identifying bad blocks.
78 NOTE: this is only valid in conjunction with 'nand-on-flash-bbt'.
79 WARNING: on i.MX28 blockmark swapping cannot be disabled for the BootROM
80 in the FCB. Thus, partitions written from Linux with this feature turned
81 on may not be accessible by the BootROM code.
94 unevaluatedProperties: false
97 - $ref: nand-controller.yaml
104 - fsl,imx23-gpmi-nand
105 - fsl,imx28-gpmi-nand
110 - description: SoC gpmi io clock
120 - fsl,imx6q-gpmi-nand
121 - fsl,imx6sx-gpmi-nand
126 - description: SoC gpmi io clock
127 - description: SoC gpmi apb clock
128 - description: SoC gpmi bch clock
129 - description: SoC gpmi bch apb clock
130 - description: SoC per1 bch clock
136 - const: gpmi_bch_apb
143 const: fsl,imx7d-gpmi-nand
148 - description: SoC gpmi io clock
149 - description: SoC gpmi bch apb clock
153 - const: gpmi_bch_apb
160 - fsl,imx8qxp-gpmi-nand
165 - description: SoC gpmi io clock
166 - description: SoC gpmi apb clock
167 - description: SoC gpmi bch clock
168 - description: SoC gpmi bch apb clock
174 - const: gpmi_bch_apb
178 nand-controller@8000c000 {
179 #address-cells = <1>;
181 compatible = "fsl,imx28-gpmi-nand";
182 reg = <0x8000c000 0x2000>, <0x8000a000 0x2000>;
183 reg-names = "gpmi-nand", "bch";
185 interrupt-names = "bch";
187 clock-names = "gpmi_io";
188 dmas = <&dma_apbh 4>;