NAND Chip Common Properties

Schema identifier ($id): "http://devicetree.org/schemas/mtd/nand-chip.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Miquel Raynal <miquel.raynal@bootlin.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): mtd.yaml#

This file covers the generic description of a NAND chip. It implies that the bus interface should not be taken into account: both raw NAND devices and SPI-NAND devices are concerned by this description.

Properties and child nodes (properties) #

reg — required here #

Contains the chip-select IDs.

nand-ecc-engine — not listed as required here #

A phandle on the hardware ECC engine if any. There are basically three possibilities: 1/ The ECC engine is part of the NAND controller, in this case the phandle should reference the parent node. 2/ The ECC engine is part of the NAND part (on-die), in this case the phandle should reference the node itself. 3/ The ECC engine is external, in this case the phandle should reference the specific ECC engine node.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

nand-use-soft-ecc-engine — not listed as required here #

Use a software ECC engine.

Value type (type): "boolean"

nand-no-ecc-engine — not listed as required here #

Do not use any ECC correction.

Value type (type): "boolean"

nand-ecc-algo — not listed as required here #

Desired ECC algorithm.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

Allowed values (enum): "hamming", "bch", "rs"

nand-ecc-strength — not listed as required here #

Maximum number of bits that can be corrected per ECC step.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 1

nand-ecc-step-size — not listed as required here #

Number of data bytes covered by a single ECC step.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 1

secure-regions — not listed as required here #

Regions in the NAND chip which are protected using a secure element like Trustzone. This property contains the start address and size of the secure regions present.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint64-matrix

Required in this object (required): "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 73: This file can be referenced by more specific devices (like spi-nands)

Edit this page