NAND Controller Common Properties
Schema identifier ($id): "http://devicetree.org/schemas/mtd/nand-controller.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Miquel Raynal <miquel.raynal@bootlin.com>", "Richard Weinberger <richard@nod.at>"
The NAND controller should be represented with its own DT node, and all NAND chips attached to this controller should be defined as children nodes of the NAND controller. This representation should be enforced even for simple controllers supporting only one chip.
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^nand-controller(@.*)?"
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
ranges — not listed as required here #
true — No constraints added by this property rule.
cs-gpios — not listed as required here #
Array of chip-select available to the controller. The first entries are a 1:1 mapping of the available chip-select on the NAND controller (even if they are not used). As many additional chip-select as needed may follow and should be phandles of GPIO lines. 'reg' entries of the NAND chip subnodes become indexes of this array when this property is present.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
Properties matching a name pattern (patternProperties) #
^nand@[a-f0-9]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): raw-nand-chip.yaml#
Required in this object (required): "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Examples (examples) #
nand-controller {
#address-cells = <1>;
#size-cells = <0>;
cs-gpios = <0>, <&gpioA 1>; /* A single native CS is available */
/* controller specific properties */
nand@0 {
reg = <0>; /* Native CS */
/* NAND chip specific properties */
};
nand@1 {
reg = <1>; /* GPIO CS */
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 51: This is a generic file other binding inherit from and extend