Freescale General-Purpose Media Interface (GPMI)
Schema identifier ($id): "http://devicetree.org/schemas/mtd/gpmi-nand.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Han Xu <han.xu@nxp.com>"
The GPMI nand controller provides an interface to control the NAND flash chips. The device tree may optionally contain sub-nodes describing partitions of the address space. See mtd.yaml for more detail.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"fsl,imx23-gpmi-nand","fsl,imx28-gpmi-nand","fsl,imx6q-gpmi-nand","fsl,imx6sx-gpmi-nand","fsl,imx7d-gpmi-nand","fsl,imx8qxp-gpmi-nand"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx8mm-gpmi-nand","fsl,imx8mn-gpmi-nand","fsl,imx8mp-gpmi-nand","fsl,imx8mq-gpmi-nand"Item 2
Exact value (
const):"fsl,imx7d-gpmi-nand"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx8dxl-gpmi-nand","fsl,imx8qm-gpmi-nand"Item 2
Exact value (
const):"fsl,imx8qxp-gpmi-nand"
reg — required here #
Array item rules (items) #
Item 1
Address and length of gpmi block.
Item 2
Address and length of bch block.
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"gpmi-nand"
Item 2
Exact value (
const):"bch"
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-names — required here #
Exact value (const): "bch"
dmas — required here #
Maximum number of items (maxItems): 1
dma-names — required here #
Exact value (const): "rx-tx"
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 5
clock-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 5
fsl,use-minimum-ecc — not listed as required here #
Value type (type): "boolean"
Protect this NAND flash with the minimum ECC strength required. The required ECC strength is automatically discoverable for some flash (e.g., according to the ONFI standard). However, note that if this strength is not discoverable or this property is not enabled, the software may chooses an implementation-defined ECC scheme.
fsl,no-blockmark-swap — not listed as required here #
Value type (type): "boolean"
Don't swap the bad block marker from the OOB area with the byte in the data area but rely on the flash based BBT for identifying bad blocks. NOTE: this is only valid in conjunction with 'nand-on-flash-bbt'. WARNING: on i.MX28 blockmark swapping cannot be disabled for the BootROM in the FCB. Thus, partitions written from Linux with this feature turned on may not be accessible by the BootROM code.
Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "interrupt-names", "clocks", "clock-names", "dmas", "dma-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):nand-controller.yaml
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"fsl,imx23-gpmi-nand","fsl,imx28-gpmi-nand"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
SoC gpmi io clock
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"gpmi_io"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"fsl,imx6q-gpmi-nand","fsl,imx6sx-gpmi-nand"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
SoC gpmi io clock
Item 2
SoC gpmi apb clock
Item 3
SoC gpmi bch clock
Item 4
SoC gpmi bch apb clock
Item 5
SoC per1 bch clock
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"gpmi_io"Item 2
Exact value (
const):"gpmi_apb"Item 3
Exact value (
const):"gpmi_bch"Item 4
Exact value (
const):"gpmi_bch_apb"Item 5
Exact value (
const):"per1_bch"
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"fsl,imx7d-gpmi-nand"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
SoC gpmi io clock
Item 2
SoC gpmi bch apb clock
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"gpmi_io"Item 2
Exact value (
const):"gpmi_bch_apb"
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
SoC gpmi io clock
Item 2
SoC gpmi apb clock
Item 3
SoC gpmi bch clock
Item 4
SoC gpmi bch apb clock
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"gpmi_io"Item 2
Exact value (
const):"gpmi_apb"Item 3
Exact value (
const):"gpmi_bch"Item 4
Exact value (
const):"gpmi_bch_apb"
Examples (examples) #
nand-controller@8000c000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,imx28-gpmi-nand";
reg = <0x8000c000 0x2000>, <0x8000a000 0x2000>;
reg-names = "gpmi-nand", "bch";
interrupts = <41>;
interrupt-names = "bch";
clocks = <&clks 50>;
clock-names = "gpmi_io";
dmas = <&dma_apbh 4>;
dma-names = "rx-tx";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)