Mtd bindings
Single-page view · as markdown
ARM Firmware Suite (AFS) Partitions
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings / partitions
Schema identifier ($id): "http://devicetree.org/schemas/mtd/partitions/arm,arm-firmware-suite.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
The ARM Firmware Suite is a flash partitioning system found on the ARM reference designs: Integrator AP, Integrator CP, Versatile AB, Versatile PB, the RealView family, Versatile Express and Juno.
Properties and child nodes (properties) #
compatible — not listed as required here #
Exact value (const): "arm,arm-firmware-suite"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
partitions {
compatible = "arm,arm-firmware-suite";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Broadcom BCM4908 partitioning
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings / partitions
Schema identifier ($id): "http://devicetree.org/schemas/mtd/partitions/brcm,bcm4908-partitions.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Broadcom BCM4908 CFE bootloader supports two firmware partitions. One is used for regular booting, the other is treated as fallback.
This binding allows defining all fixed partitions and marking those containing firmware. System can use that information e.g. for booting or flashing purposes.
Maintainers (maintainers): "Rafał Miłecki <rafal@milecki.pl>"
Properties and child nodes (properties) #
compatible — not listed as required here #
Exact value (const): "brcm,bcm4908-partitions"
#address-cells — required here #
#size-cells — required here #
Properties matching a name pattern (patternProperties) #
^partition@[0-9a-f]+$ — name matches this regular expression #
Shared schema rule ($ref): partition.yaml#/$defs/partition-node
Required in this object (required): "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
partitions {
compatible = "brcm,bcm4908-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "cferom";
reg = <0x0 0x100000>;
};
partition@100000 {
compatible = "brcm,bcm4908-firmware";
reg = <0x100000 0xf00000>;
};
partition@1000000 {
compatible = "brcm,bcm4908-firmware";
reg = <0x1000000 0xf00000>;
};
partition@1f00000 {
label = "calibration";
reg = <0x1f00000 0x100000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Broadcom BCM47xx Partitions
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings / partitions
Schema identifier ($id): "http://devicetree.org/schemas/mtd/partitions/brcm,bcm947xx-cfe-partitions.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Broadcom is one of hardware manufacturers providing SoCs (BCM47xx) used in home routers. Their BCM947xx boards using CFE bootloader have several partitions without any on-flash partition table. On some devices their sizes and/or meanings can also vary so fixed partitioning can't be used.
Discovering partitions on these devices is possible thanks to having a special header and/or magic signature at the beginning of each of them. They are also block aligned which is important for determinig a size.
Most of partitions use ASCII text based magic for determining a type. More complex partitions (like TRX with its HDR0 magic) may include extra header containing some details, including a length.
A list of supported partitions includes: 1) Bootloader with Broadcom's CFE (Common Firmware Environment) 2) NVRAM with configuration/calibration data 3) Device manufacturer's data with some default values (e.g. SSIDs) 4) TRX firmware container which can hold up to 4 subpartitions 5) Backup TRX firmware used after failed upgrade
As mentioned earlier, role of some partitions may depend on extra configuration. For example both: main firmware and backup firmware use the same TRX format with the same header. To distinguish currently used firmware a CFE's environment variable "bootpartition" is used.
Maintainers (maintainers): "Rafał Miłecki <rafal@milecki.pl>"
Properties and child nodes (properties) #
compatible — not listed as required here #
Exact value (const): "brcm,bcm947xx-cfe-partitions"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
partitions {
compatible = "brcm,bcm947xx-cfe-partitions";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Broadcom TRX Container Partition
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings / partitions
Schema identifier ($id): "http://devicetree.org/schemas/mtd/partitions/brcm,trx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Hauke Mehrtens <hauke@hauke-m.de>", "Rafał Miłecki <rafal@milecki.pl>"
TRX is Broadcom's official firmware format for the BCM947xx boards. It's used by most of the vendors building devices based on Broadcom's BCM47xx SoCs and is supported by the CFE bootloader.
Design of the TRX format is very minimalistic. Its header contains identification fields, CRC32 checksum and the locations of embedded partitions. Its purpose is to store a few partitions in a format that can be distributed as a standalone file and written in a flash memory.
Container can hold up to 4 partitions. The first partition has to contain a device executable binary (e.g. a kernel) as it's what the CFE bootloader starts executing. Other partitions can be used for operating system purposes. This is useful for systems that keep kernel and rootfs separated.
TRX doesn't enforce any strict partition boundaries or size limits. All partitions have to be less than the 4GiB max size limit.
There are two existing/known TRX variants:
1) v1 which contains 3 partitions
2) v2 which contains 4 partitions
There aren't separated compatible bindings for them as version can be trivially detected by a software parsing TRX header.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"linksys,ns-firmware"Item 2
Exact value (
const):"brcm,trx"
Rule 2
Exact value (
const):"brcm,trx"
brcm,trx-magic — not listed as required here #
TRX magic, if it is different from the default magic.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 810697800
Required in this object (required): "compatible"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):partition.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
flash {
partitions {
compatible = "brcm,trx";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Fixed partitions
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings / partitions
Schema identifier ($id): "http://devicetree.org/schemas/mtd/partitions/fixed-partitions.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
This binding can be used on platforms which have strong conventions about which portions of a flash are used for what purposes, but which don't use an on-flash partition table such as RedBoot.
The partition table should be a node named "partitions". Partitions are then defined as subnodes.
Maintainers (maintainers): "Rafał Miłecki <rafal@milecki.pl>"
Properties and child nodes (properties) #
compatible — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"fixed-partitions"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"sercomm,sc-partitions"Item 2
Exact value (
const):"fixed-partitions"
#address-cells — required here #
#size-cells — required here #
Properties matching a name pattern (patternProperties) #
@[0-9a-f]+$ — name matches this regular expression #
Shared schema rule ($ref): partition.yaml#/$defs/partition-node
Required in this object (required): "#address-cells", "#size-cells"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):partition.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x0000000 0x100000>;
read-only;
};
uimage@100000 {
reg = <0x0100000 0x200000>;
compression = "lzma";
};
};
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <2>;
/* a 4 GiB partition */
partition@0 {
label = "filesystem";
reg = <0x00000000 0x1 0x00000000>;
linux,rootfs;
};
};
partitions {
compatible = "fixed-partitions";
#address-cells = <2>;
#size-cells = <2>;
/* an 8 GiB partition */
partition@0 {
label = "filesystem #1";
reg = <0x0 0x00000000 0x2 0x00000000>;
};
/* a 4 GiB partition */
partition@200000000 {
label = "filesystem #2";
reg = <0x2 0x00000000 0x1 0x00000000>;
};
};
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "bootloader";
reg = <0x000000 0x100000>;
read-only;
};
firmware@100000 {
compatible = "brcm,trx";
label = "firmware";
reg = <0x100000 0xe00000>;
};
calibration@f00000 {
compatible = "fixed-partitions";
label = "calibration";
reg = <0xf00000 0x100000>;
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "wifi0";
reg = <0x000000 0x080000>;
};
partition@80000 {
label = "wifi1";
reg = <0x080000 0x080000>;
};
};
};
partitions {
compatible = "sercomm,sc-partitions", "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x0 0x100000>;
sercomm,scpart-id = <0>;
read-only;
};
partition@100000 {
label = "dynamic partition map";
reg = <0x100000 0x100000>;
sercomm,scpart-id = <1>;
};
partition@200000 {
label = "Factory";
reg = <0x200000 0x100000>;
sercomm,scpart-id = <2>;
read-only;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Line 42: fixed-partitions can be nested
Linksys Northstar partitioning
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings / partitions
Schema identifier ($id): "http://devicetree.org/schemas/mtd/partitions/linksys,ns-partitions.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Linksys devices based on Broadcom Northstar architecture often use two firmware partitions. One is used for regular booting, the other is treated as fallback.
This binding allows defining all fixed partitions and marking those containing firmware. System can use that information e.g. for booting or flashing purposes.
Maintainers (maintainers): "Rafał Miłecki <rafal@milecki.pl>"
Properties and child nodes (properties) #
compatible — not listed as required here #
Exact value (const): "linksys,ns-partitions"
#address-cells — required here #
#size-cells — required here #
Properties matching a name pattern (patternProperties) #
^partition@[0-9a-f]+$ — name matches this regular expression #
Shared schema rule ($ref): partition.yaml#/$defs/partition-node
Required in this object (required): "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
partitions {
compatible = "linksys,ns-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "boot";
reg = <0x0 0x100000>;
read-only;
};
partition@100000 {
label = "nvram";
reg = <0x100000 0x100000>;
};
partition@200000 {
compatible = "linksys,ns-firmware", "brcm,trx";
reg = <0x200000 0xf00000>;
};
partition@1100000 {
compatible = "linksys,ns-firmware", "brcm,trx";
reg = <0x1100000 0xf00000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Unsorted Block Images
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings / partitions
Schema identifier ($id): "http://devicetree.org/schemas/mtd/partitions/linux,ubi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
UBI ("Unsorted Block Images") is a volume management system for raw flash devices which manages multiple logical volumes on a single physical flash device and spreads the I/O load (i.e wear-leveling) across the whole flash chip.
Maintainers (maintainers): "Daniel Golle <daniel@makrotopia.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):partition.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "linux,ubi"
volumes — not listed as required here #
Value type (type): "object"
UBI Volumes
Properties matching a name pattern (patternProperties) #
^ubi-volume-.*$ — name matches this regular expression
Shared schema rule ($ref): /schemas/mtd/partitions/ubi-volume.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
reg = <0x0 0x100000>;
label = "bootloader";
read-only;
};
partition@100000 {
reg = <0x100000 0x1ff00000>;
label = "ubi";
compatible = "linux,ubi";
volumes {
ubi-volume-caldata {
volid = <2>;
volname = "rf";
nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;
eeprom@0 {
reg = <0x0 0x1000>;
};
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Nvmem cells
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings / partitions
Schema identifier ($id): "http://devicetree.org/schemas/mtd/partitions/nvmem-cells.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Any partition containing the compatible "nvmem-cells" will register as a nvmem provider. Each direct subnodes represents a nvmem cell following the nvmem binding. Nvmem binding to declare nvmem-cells can be found in: Documentation/devicetree/bindings/nvmem/nvmem.yaml
Maintainers (maintainers): "Ansuel Smith <ansuelsmth@gmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/mtd/partitions/partition.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/nvmem/nvmem.yaml#
Rule 3 #
Shared schema rule (
$ref):/schemas/nvmem/nvmem-deprecated-cells.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "nvmem-cells"
Required in this object (required): "compatible"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
/* ... */
};
art: art@1200000 {
compatible = "nvmem-cells";
reg = <0x1200000 0x0140000>;
label = "art";
read-only;
#address-cells = <1>;
#size-cells = <1>;
macaddr_gmac1: macaddr_gmac1@0 {
reg = <0x0 0x6>;
};
macaddr_gmac2: macaddr_gmac2@6 {
reg = <0x6 0x6>;
};
pre_cal_24g: pre_cal_24g@1000 {
reg = <0x1000 0x2f20>;
};
pre_cal_5g: pre_cal_5g@5000{
reg = <0x5000 0x2f20>;
};
};
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "bootloader";
reg = <0x000000 0x100000>;
read-only;
};
firmware@100000 {
compatible = "brcm,trx";
label = "firmware";
reg = <0x100000 0xe00000>;
};
calibration@f00000 {
compatible = "nvmem-cells";
label = "calibration";
reg = <0xf00000 0x100000>;
#address-cells = <1>;
#size-cells = <1>;
wifi0@0 {
reg = <0x000000 0x080000>;
};
wifi1@80000 {
reg = <0x080000 0x080000>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Partition
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings / partitions
Schema identifier ($id): "http://devicetree.org/schemas/mtd/partitions/partition.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
This binding describes a single flash partition. Each partition must have its relative offset and size specified. Depending on partition function extra properties can be used.
A partition may be dynamically allocated by a specific parser at runtime. In this specific case, a specific suffix is required to the node name. Everything after 'partition-' will be used as the partition name to compare with the one dynamically allocated by the specific parser. If the partition contains invalid char a label can be provided that will be used instead of the node name to make the comparison. This is used to assign an OF node to the dynamiccally allocated partition so that subsystem like NVMEM can provide an OF node and declare NVMEM cells. The OF node will be assigned only if the partition label declared match the one assigned by the parser at runtime.
Maintainers (maintainers): "Rafał Miłecki <rafal@milecki.pl>"
Properties and child nodes (properties) #
reg — not listed as required here #
partition's offset and size within the flash
Maximum number of items (maxItems): 1
label — not listed as required here #
The label / name for this partition. If omitted, the label is taken from the node name (excluding the unit address).
read-only — not listed as required here #
This parameter, if present, is a hint that this partition should only be mounted read-only. This is usually used for flash partitions containing early-boot firmware images or data which should not be clobbered.
Value type (type): "boolean"
lock — not listed as required here #
Do not unlock the partition at initialization time (not supported on all devices)
Value type (type): "boolean"
slc-mode — not listed as required here #
This parameter, if present, allows one to emulate SLC mode on a partition attached to an MLC NAND thus making this partition immune to paired-pages corruptions
Value type (type): "boolean"
linux,rootfs — not listed as required here #
Marks partition that contains root filesystem to mount and boot user space from
Value type (type): "boolean"
align — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 2
Maximum value (maximum): 2147483648
Multiple of (multipleOf): 2
This sets the alignment of the entry in bytes. The entry offset is adjusted so that the entry starts on an aligned boundary within the containing section or image. For example ‘align = <16>’ means that the entry will start on a 16-byte boundary. This may mean that padding is added before the entry. The padding is part of the containing section but is not included in the entry, meaning that an empty space may be created before the entry starts. Alignment must be a power of 2. If ‘align’ is not provided, no alignment is performed.
align-size — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 2
Maximum value (maximum): 2147483648
Multiple of (multipleOf): 2
This sets the alignment of the entry size in bytes. It must be a power of 2. For example, to ensure that the size of an entry is a multiple of 64 bytes, set this to 64. While this does not affect the content of the entry itself (the padding is performed only when its parent section is assembled), the end result is that the entry ends with the padding bytes, so may grow. If ‘align-size’ is not provided, no alignment is performed.
align-end — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 2
Maximum value (maximum): 2147483648
Multiple of (multipleOf): 2
This sets the alignment (in bytes) of the end of an entry with respect to the containing section. It must be a power of 2. Some entries require that they end on an alignment boundary, regardless of where they start. This does not move the start of the entry, so the content of the entry will still start at the beginning. But there may be padding at the end. While this does not affect the content of the entry itself (the padding is performed only when its parent section is assembled), the end result is that the entry ends with the padding bytes, so may grow. If ‘align-end’ is not provided, no alignment is performed.
compression — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Compression algorithm used to store the data in this partition, chosen from a list of well-known algorithms.
The contents are compressed using this algorithm.
Allowed values (enum): "none", "bzip2", "gzip", "lzop", "lz4", "lzma", "xz", "zstd"
sercomm,scpart-id — not listed as required here #
Partition id in Sercomm partition map. Mtd parser uses this id to find a record in the partition map containing offset and size of the current partition. The values from partition map overrides partition offset and size defined in reg property of the dts. Frequently these values are the same, but may differ if device has bad eraseblocks on a flash.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
nvmem-layout — not listed as required here #
Shared schema rule ($ref): /schemas/nvmem/layouts/nvmem-layout.yaml
Condition (if) #
This rule must not match (
not) #
When the condition matches (then) #
Properties and child nodes (
properties) #
$nodename— not listed as required here #String pattern (
pattern):"^partitions?(-.+)?$"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Reusable definitions ($defs) #
partition-node #
Value type (type): "object"
Condition (if) #
This rule must not match (
not)
When the condition matches (then) #
Shared schema rule (
$ref):#Properties not evaluated by applicable rules (
unevaluatedProperties)
falseNot allowed by this rule.
When the condition does not match (else) #
Shared schema rule (
$ref):#
Examples (examples) #
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@100000 {
compatible = "u-boot";
reg = <0x100000 0xf00000>;
align-size = <0x1000>;
align-end = <0x10000>;
};
partition@200000 {
compatible = "tfa-bl31";
reg = <0x200000 0x100000>;
align = <0x4000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Line 149: This is a generic file other binding inherit from and extend
Qualcomm SMEM NAND flash partition parser
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings / partitions
Schema identifier ($id): "http://devicetree.org/schemas/mtd/partitions/qcom,smem-part.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>"
The Qualcomm SoCs supporting the NAND controller interface features a Shared Memory (SMEM) based partition table scheme. The maximum partitions supported varies between partition table revisions. V3 supports maximum 16 partitions and V4 supports 48 partitions.
Automatic schema selection (select) #
false
Not selected automatically by this rule.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "qcom,smem-part"
Properties matching a name pattern (patternProperties) #
^partition-[0-9a-z]+$ — name matches this regular expression #
Shared schema rule ($ref): nvmem-cells.yaml
Required in this object (required): "compatible"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
flash {
partitions {
compatible = "qcom,smem-part";
};
};
/* Example declaring dynamic partition */
flash {
partitions {
compatible = "qcom,smem-part";
partition-art {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
label = "0:art";
macaddr_art_0: macaddr@0 {
reg = <0x0 0x6>;
};
macaddr_art_6: macaddr@6 {
reg = <0x6 0x6>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
RedBoot FLASH Image System (FIS) Partitions
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings / partitions
Schema identifier ($id): "http://devicetree.org/schemas/mtd/partitions/redboot-fis.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The FLASH Image System (FIS) directory is a flash description format closely associated with the RedBoot boot loader. It uses one single flash eraseblock in the flash to store an index of all images in the flash. This block size will vary depending on flash but is typically 32 KB in size.
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
Automatic schema selection (select) #
false
Not selected automatically by this rule.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "redboot-fis"
fis-index-block — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
a index to the eraseblock containing the FIS directory on this device. On a flash memory with 32KB eraseblocks, 0 means the first eraseblock at 0x00000000, 1 means the second eraseblock at 0x00008000 and so on.
Required in this object (required): "compatible", "fis-index-block"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
flash {
partitions {
compatible = "redboot-fis";
fis-index-block = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Simple partition types
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings / partitions
Schema identifier ($id): "http://devicetree.org/schemas/mtd/partitions/simple-partition.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Simple partition types which only define a "compatible" value and no custom properties.
Maintainers (maintainers): "Rafał Miłecki <rafal@milecki.pl>", "Simon Glass <sjg@chromium.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):partition.yaml#
Properties and child nodes (properties) #
compatible — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"brcm,bcm4908-firmware"Broadcom BCM4908 CFE bootloader firmware partition
Rule 2
Exact value (
const):"brcm,bcm963xx-imagetag"The BCM963XX ImageTag is a simple firmware header describing the offsets and sizes of the rootfs and kernel parts contained in the firmware.
Rule 3
Exact value (
const):"seama"The SEAttle iMAge (SEAMA) partition is a type of partition used for NAND flash devices. This type of flash image is found in some D-Link routers such as DIR-645, DIR-842, DIR-859, DIR-860L, DIR-885L, DIR890L and DCH-M225, as well as in WD and NEC routers on the ath79 (MIPS), Broadcom BCM53xx, and RAMIPS platforms. This partition type does not have children defined in the device tree, they need to be detected by software.
Rule 4
Exact value (
const):"u-boot"u-boot.bin from U-Boot project. This corresponds to a binman 'entry'. It is a single partition which holds data of a defined type. Binman uses the type to indicate what data file / type to place in the partition. There are quite a number of binman-specific entry types, such as section, fill and files, to be added later.
Rule 5
Exact value (
const):"tfa-bl31"bl31.bin or bl31.elf from TF-A project This corresponds to a binman 'entry'. It is a single partition which holds data of a defined type.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not 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
TP-Link SafeLoader partitions
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings / partitions
Schema identifier ($id): "http://devicetree.org/schemas/mtd/partitions/tplink,safeloader-partitions.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
TP-Link home routers store various data on flash (e.g. bootloader, flash layout, firmware, product info, configuration, calibration data). That requires flash partitioning.
Flash space layout of TP-Link devices is stored on flash itself using a custom ASCII-based format. That format was first found in TP-Link devices with a custom SafeLoader bootloader. Later it was adapted to CFE and U-Boot bootloaders.
Partitions specified in partitions table cover whole flash space. Some contain static data that shouldn't get modified (device's MAC or WiFi calibration data). Others are semi-static (like kernel). Finally some partitions contain fully changeable content (like rootfs).
This binding describes partitioning method and defines offset of ASCII based partitions table. That offset is picked at manufacturing process and doesn't change.
Maintainers (maintainers): "Rafał Miłecki <rafal@milecki.pl>"
Properties and child nodes (properties) #
compatible — not listed as required here #
Exact value (const): "tplink,safeloader-partitions"
partitions-table-offset — required here #
Flash offset of partitions table
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Properties matching a name pattern (patternProperties) #
^partition-.*$ — name matches this regular expression #
Shared schema rule ($ref): partition.yaml#/$defs/partition-node
Required in this object (required): "partitions-table-offset"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
partitions {
compatible = "tplink,safeloader-partitions";
partitions-table-offset = <0x100000>;
partition-file-system {
linux,rootfs;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
U-Boot bootloader partition
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings / partitions
Schema identifier ($id): "http://devicetree.org/schemas/mtd/partitions/u-boot.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
U-Boot is a bootloader commonly used in embedded devices. It's almost always located on some kind of flash device.
Device configuration is stored as a set of environment variables that are located in a (usually standalone) block of data.
Maintainers (maintainers): "Rafał Miłecki <rafal@milecki.pl>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):partition.yaml#
Properties and child nodes (properties) #
compatible — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"brcm,u-boot"Broadcom stores environment variables inside a U-Boot partition. They can be identified by a custom header with magic value.
Properties matching a name pattern (patternProperties) #
^partition-.*$ — name matches this regular expression #
Shared schema rule ($ref): partition.yaml#/$defs/partition-node
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
compatible = "brcm,u-boot";
reg = <0x0 0x100000>;
label = "u-boot";
partition-u-boot-env {
};
};
partition@100000 {
reg = <0x100000 0x1ff00000>;
label = "firmware";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
UBI volume
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings / partitions
Schema identifier ($id): "http://devicetree.org/schemas/mtd/partitions/ubi-volume.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
This binding describes a single UBI volume. Volumes can be matches either by their ID or their name, or both.
Maintainers (maintainers): "Daniel Golle <daniel@makrotopia.org>"
Properties and child nodes (properties) #
volid — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Match UBI volume ID
volname — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Match UBI volume ID
nvmem-layout — not listed as required here #
Shared schema rule ($ref): /schemas/nvmem/layouts/nvmem-layout.yaml#
This container may reference an NVMEM layout parser.
At least one of these rules must match (anyOf) #
Rule 1 #
Rule 2 #
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 39: This is a generic file other binding inherit from and extend
Allwinner A10 NAND Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/allwinner,sun4i-a10-nand.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "allwinner,sun4i-a10-nand", "allwinner,sun8i-a23-nand-controller", "allwinner,sun50i-h616-nand-controller"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
Bus Clock
Item 2
Module Clock
Item 3
ECC Clock
Item 4
MBus Clock
clock-names — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
Exact value (
const):"ahb"
Item 2
Exact value (
const):"mod"
Item 3
Exact value (
const):"ecc"
Item 4
Exact value (
const):"mbus"
resets — not listed as required here #
Maximum number of items (maxItems): 1
reset-names — not listed as required here #
Exact value (const): "ahb"
dmas — not listed as required here #
Maximum number of items (maxItems): 1
dma-names — not listed as required here #
Exact value (const): "rxtx"
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
Properties and child nodes (properties) #
reg — not listed as required here
Minimum value (minimum): 0
Maximum value (maximum): 7
nand-ecc-algo — not listed as required here
Exact value (const): "bch"
nand-ecc-step-size — not listed as required here
Allowed values (enum): 512, 1024
nand-ecc-strength — not listed as required here
Maximum value (maximum): 80
allwinner,rb — not listed as required here
Contains the native Ready/Busy IDs.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):1
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-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):"allwinner,sun4i-a10-nand","allwinner,sun8i-a23-nand-controller"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):2
clock-names— not listed as required hereMaximum number of items (
maxItems):2
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"allwinner,sun50i-h616-nand-controller"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):4
clock-names— not listed as required hereMinimum number of items (
minItems):4
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/sun6i-rtc.h>
#include <dt-bindings/clock/sun8i-a23-a33-ccu.h>
#include <dt-bindings/reset/sun8i-a23-a33-ccu.h>
nand-controller@1c03000 {
compatible = "allwinner,sun8i-a23-nand-controller";
reg = <0x01c03000 0x1000>;
interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&ccu CLK_BUS_NAND>, <&ccu CLK_NAND>;
clock-names = "ahb", "mod";
resets = <&ccu RST_BUS_NAND>;
reset-names = "ahb";
dmas = <&dma 5>;
dma-names = "rxtx";
pinctrl-names = "default";
pinctrl-0 = <&nand_pins &nand_cs0_pin &nand_rb0_pin>;
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Amlogic NAND Flash Controller (NFC) for GXBB/GXL/AXG family SoCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/amlogic,meson-nand.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):nand-controller.yaml
Maintainers (maintainers): "liang.yang@amlogic.com"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "amlogic,meson-gxl-nfc", "amlogic,meson-axg-nfc"
reg — required here #
Maximum number of items (maxItems): 2
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"nfc"
Item 2
Exact value (
const):"emmc"
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 2
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"device"
Properties matching a name pattern (patternProperties) #
^nand@[0-7]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): raw-nand-chip.yaml
Properties and child nodes (properties) #
reg — not listed as required here
Minimum value (minimum): 0
Maximum value (maximum): 1
nand-ecc-mode — not listed as required here
Exact value (const): "hw"
nand-ecc-step-size — not listed as required here
Allowed values (enum): 512, 1024
nand-ecc-strength — not listed as required here
Allowed values (enum): 8, 16, 24, 30, 40, 50, 60
The ECC configurations that can be supported are as follows.
meson-gxl-nfc 8, 16, 24, 30, 40, 50, 60
meson-axg-nfc 8
nand-rb — not listed as required here
Maximum number of items (maxItems): 1
Array item rules (items)
Maximum value (
maximum):0
amlogic,boot-pages — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Number of pages starting from offset 0, where a special ECC configuration must be used because it is accessed by the ROM code. This ECC configuration uses 384 bytes data blocks. Also scrambling mode is enabled for such pages.
amlogic,boot-page-step — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Interval between pages, accessed by the ROM code. For example we have 8 pages [0, 7]. Pages 0,2,4,6 are accessed by the ROM code, so this field will be 2 (e.g. every 2nd page). Rest of pages - 1,3,5,7 are read/written without this mode.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Property dependencies (dependencies) #
nand-ecc-strength — applies when this property is present
Also requires: "nand-ecc-step-size"
nand-ecc-step-size — applies when this property is present
Also requires: "nand-ecc-strength"
amlogic,boot-pages — applies when this property is present
Also requires: "nand-is-boot-medium", "amlogic,boot-page-step"
amlogic,boot-page-step — applies when this property is present
Also requires: "nand-is-boot-medium", "amlogic,boot-pages"
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/axg-clkc.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
nand-controller@ffe07800 {
compatible = "amlogic,meson-axg-nfc";
reg = <0xffe07800 0x100>, <0xffe07000 0x800>;
reg-names = "nfc", "emmc";
interrupts = <GIC_SPI 34 IRQ_TYPE_EDGE_RISING>;
clocks = <&clkc CLKID_SD_EMMC_C>, <&clkc CLKID_FCLK_DIV2>;
clock-names = "core", "device";
pinctrl-0 = <&nand_pins>;
pinctrl-names = "default";
#address-cells = <1>;
#size-cells = <0>;
nand@0 {
reg = <0>;
nand-rb = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Arasan NAND Flash Controller with ONFI 3.1 support
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/arasan,nand-controller.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):nand-controller.yaml
Maintainers (maintainers): "Michal Simek <michal.simek@amd.com>"
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Item 2
Exact value (
const):"arasan,nfc-v3p10"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
Controller clock
Item 2
NAND bus clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"controller"
Item 2
Exact value (
const):"bus"
interrupts — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
nfc: nand-controller@ff100000 {
compatible = "xlnx,zynqmp-nand-controller", "arasan,nfc-v3p10";
reg = <0xff100000 0x1000>;
clock-names = "controller", "bus";
clocks = <&clk200>, <&clk100>;
interrupt-parent = <&gic>;
interrupts = <0 14 4>;
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
PL353 NAND Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/arm,pl353-nand-r2p1.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):nand-controller.yaml
Maintainers (maintainers): "Miquel Raynal <miquel.raynal@bootlin.com>"
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Exact value (
const):"arm,pl353-nand-r2p1"
reg — required here #
Array item rules (items) #
Item 1
Array item rules (
items)Item 1
CS with regard to the parent ranges property
Item 2
Offset of the memory region requested by the device
Item 3
Length of the memory region requested by the device
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
smcc: memory-controller@e000e000 {
compatible = "arm,pl353-smc-r2p1", "arm,primecell";
reg = <0xe000e000 0x0001000>;
clock-names = "memclk", "apb_pclk";
clocks = <&clkc 11>, <&clkc 44>;
ranges = <0x0 0x0 0xe1000000 0x1000000 /* Nand CS region */
0x1 0x0 0xe2000000 0x2000000 /* SRAM/NOR CS0 region */
0x2 0x0 0xe4000000 0x2000000>; /* SRAM/NOR CS1 region */
#address-cells = <2>;
#size-cells = <1>;
nfc0: nand-controller@0,0 {
compatible = "arm,pl353-nand-r2p1";
reg = <0 0 0x1000000>;
#address-cells = <1>;
#size-cells = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Atmel DataFlash
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/atmel,dataflash.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nayab Sayed <nayabbasha.sayed@microchip.com>"
The Atmel DataFlash is a low pin-count serial interface sequential access Flash memory, compatible with SPI standard. The device tree may optionally contain sub-nodes describing partitions of the address space.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"atmel,at45db321d","atmel,at45db041e","atmel,at45db642d","atmel,at45db021d"Item 2
Exact value (
const):"atmel,at45"Item 3
Exact value (
const):"atmel,dataflash"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"atmel,at45"Item 2
Exact value (
const):"atmel,dataflash"
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):mtd.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
flash@1 {
compatible = "atmel,at45db321d", "atmel,at45", "atmel,dataflash";
reg = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Broadcom STB NAND Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/brcm,brcmnand.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Brian Norris <computersforpeace@gmail.com>", "Kamal Dasu <kdasu.kdev@gmail.com>", "William Zhang <william.zhang@broadcom.com>"
The Broadcom Set-Top Box NAND controller supports low-level access to raw NAND flash chips. It has a memory-mapped register interface for both control registers and for its data input/output buffer. On some SoCs, this controller is paired with a custom DMA engine (inventively named "Flash DMA") which supports basic PROGRAM and READ functions, among other features.
This controller was originally designed for STB SoCs (BCM7xxx) but is now available on a variety of Broadcom SoCs, including some BCM3xxx, MIPS based Broadband SoC (BCM63xx), ARM based Broadband SoC (BCMBCA) and iProc/Cygnus. Its history includes several similar (but not fully register compatible) versions.
-- Additional SoC-specific NAND controller properties --
The NAND controller is integrated differently on the variety of SoCs on which it is found. Part of this integration involves providing status and enable bits with which to control the 8 exposed NAND interrupts, as well as hardware for configuring the endianness of the data bus. On some SoCs, these features are handled via standard, modular components (e.g., their interrupts look like a normal IRQ chip), but on others, they are controlled in unique and interesting ways, sometimes with registers that lump multiple NAND-related functions together. The former case can be described simply by the standard interrupts properties in the main controller node. But for the latter exceptional cases, we define additional 'compatible' properties and associated register resources within the NAND controller node above.
Properties and child nodes (properties) #
compatible — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"brcm,brcmnand-v2.1","brcm,brcmnand-v2.2","brcm,brcmnand-v4.0","brcm,brcmnand-v5.0","brcm,brcmnand-v6.0","brcm,brcmnand-v6.1","brcm,brcmnand-v6.2","brcm,brcmnand-v7.0","brcm,brcmnand-v7.1","brcm,brcmnand-v7.2","brcm,brcmnand-v7.3"Item 2
Exact value (
const):"brcm,brcmnand"
Rule 2
BCMBCA SoC-specific NAND controller
Array item rules (
items)Item 1
Exact value (
const):"brcm,nand-bcm63138"Item 2
Allowed values (
enum):"brcm,brcmnand-v7.0","brcm,brcmnand-v7.1"Item 3
Exact value (
const):"brcm,brcmnand"
Rule 3
iProc SoC-specific NAND controller
Array item rules (
items)Item 1
Exact value (
const):"brcm,nand-iproc"Item 2
Exact value (
const):"brcm,brcmnand-v6.1"
Rule 4
BCM63168 SoC-specific NAND controller
Array item rules (
items)Item 1
Exact value (
const):"brcm,nand-bcm63168"Item 2
Exact value (
const):"brcm,nand-bcm6368"Item 3
Exact value (
const):"brcm,brcmnand-v4.0"Item 4
Exact value (
const):"brcm,brcmnand"
reg — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 6
reg-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 6
Array item rules (items) #
Allowed values (
enum):"nand","flash-dma","flash-edu","nand-cache","nand-int-base","iproc-idm","iproc-ext"
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
NAND CTLRDY interrupt
Item 2
FLASH_DMA_DONE (if flash DMA is available) or FLASH_EDU_DONE (if EDU is available)
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"nand_ctlrdy"
Item 2
clocks — not listed as required here #
Maximum number of items (maxItems): 1
reference to the clock for the NAND controller
clock-names — not listed as required here #
Exact value (const): "nand"
brcm,nand-has-wp — not listed as required here #
Some versions of this IP include a write-protect (WP) control bit. It is always available on >= v7.0. Use this property to describe the rare earlier versions of this core that include WP
Value type (type): "boolean"
brcm,wp-not-connected — not listed as required here #
Use this property when WP pin is not physically wired to the NAND chip. Write protection feature cannot be used. By default, controller assumes the pin is connected and feature is used.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
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
Properties and child nodes (properties) #
compatible — not listed as required here
Exact value (const): "brcm,nandcs"
nand-ecc-step-size — not listed as required here
Allowed values (enum): 512, 1024
brcm,nand-oob-sector-size — not listed as required here
integer, to denote the spare area sector size expected for the ECC layout in use. This size, in addition to the strength and step-size, determines how the hardware BCH engine will lay out the parity bytes it stores on the flash. This property can be automatically determined by the flash geometry (particularly the NAND page and OOB size) in many cases, but when booting from NAND, the boot controller has only a limited number of available options for its default ECC layout.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
brcm,nand-ecc-use-strap — not listed as required here
This property requires the host system to get the ECC related settings from the SoC NAND boot strap configuration instead of the generic NAND ECC settings. This is a common hardware design on BCMBCA based boards. This strap ECC option and generic NAND ECC option can not be specified at the same time.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
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)Exact value (
const):"brcm,nand-bcm63138"When the condition matches (
then) #Properties and child nodes (
properties)
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"nand"Item 2
Exact value (
const):"nand-int-base"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"brcm,nand-bcm6368"When the condition matches (
then) #Properties and child nodes (
properties)
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"nand"Item 2
Exact value (
const):"nand-int-base"Item 3
Exact value (
const):"nand-cache"
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"brcm,nand-iproc"When the condition matches (
then) #Properties and child nodes (
properties)
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"nand"Item 2
Exact value (
const):"iproc-idm"Item 3
Exact value (
const):"iproc-ext"
Rule 5 #
Condition (
if) #Required in this object (
required):"interrupts"Properties and child nodes (
properties)
interrupts— required hereMinimum number of items (
minItems):2When the condition matches (
then) #
Rule 6 #
Condition (
if) #Properties matching a name pattern (
patternProperties)
^nand@[a-f0-9]$— name matches this regular expressionRequired in this object (
required):"brcm,nand-ecc-use-strap"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^nand@[a-f0-9]$— name matches this regular expressionProperties and child nodes (
properties)
nand-ecc-strength— not listed as required here
false— Not permitted by this property rule.
nand-ecc-step-size— not listed as required here
false— Not permitted by this property rule.
nand-ecc-maximize— not listed as required here
false— Not permitted by this property rule.
nand-ecc-algo— not listed as required here
false— Not permitted by this property rule.
brcm,nand-oob-sector-size— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "reg", "reg-names"
Examples (examples) #
nand-controller@f0442800 {
compatible = "brcm,brcmnand-v7.0", "brcm,brcmnand";
reg = <0xf0442800 0x600>,
<0xf0443000 0x100>;
reg-names = "nand", "flash-dma";
interrupt-parent = <&hif_intr2_intc>;
interrupts = <24>, <4>;
interrupt-names = "nand_ctlrdy", "flash_dma_done";
#address-cells = <1>;
#size-cells = <0>;
nand@1 {
compatible = "brcm,nandcs";
reg = <1>; // Chip select 1
nand-on-flash-bbt;
nand-ecc-strength = <12>;
nand-ecc-step-size = <512>;
#address-cells = <1>;
#size-cells = <1>;
};
};
nand-controller@10000200 {
compatible = "brcm,nand-bcm63168", "brcm,nand-bcm6368",
"brcm,brcmnand-v4.0", "brcm,brcmnand";
reg = <0x10000200 0x180>,
<0x100000b0 0x10>,
<0x10000600 0x200>;
reg-names = "nand", "nand-int-base", "nand-cache";
interrupt-parent = <&periph_intc>;
interrupts = <50>;
clocks = <&periph_clk 20>;
clock-names = "nand";
#address-cells = <1>;
#size-cells = <0>;
nand@0 {
compatible = "brcm,nandcs";
reg = <0>;
nand-on-flash-bbt;
nand-ecc-strength = <1>;
nand-ecc-step-size = <512>;
#address-cells = <1>;
#size-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Cadence NAND controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/cdns,hp-nfc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Niravkumar L Rabara <niravkumar.l.rabara@intel.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):nand-controller.yaml
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Exact value (
const):"cdns,hp-nfc"
reg — required here #
Array item rules (items) #
Item 1
Controller register set
Item 2
Slave DMA data port register set
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"reg"
Item 2
Exact value (
const):"sdma"
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"nf_clk"
dmas — not listed as required here #
Maximum number of items (maxItems): 1
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
iommus — not listed as required here #
Maximum number of items (maxItems): 1
cdns,board-delay-ps — not listed as required here #
Estimated Board delay. The value includes the total round trip delay for the signals and is used for deciding on values associated with data read capture. The example formula for SDR mode is the following. board delay = RE#PAD delay + PCB trace to device + PCB trace from device + DQ PAD delay
Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
nand-controller@10b80000 {
compatible = "cdns,hp-nfc";
reg = <0x10b80000 0x10000>,
<0x10840000 0x10000>;
reg-names = "reg", "sdma";
#address-cells = <1>;
#size-cells = <0>;
interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk>;
clock-names = "nf_clk";
cdns,board-delay-ps = <4830>;
nand@0 {
reg = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Denali NAND controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/denali,nand.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Masahiro Yamada <yamada.masahiro@socionext.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "altr,socfpga-denali-nand", "socionext,uniphier-denali-nand-v5a", "socionext,uniphier-denali-nand-v5b"
reg-names — not listed as required here #
There are two register regions:
nand_data: host data/command interface
denali_reg: register interface
Array item rules (items) #
Item 1
Exact value (
const):"nand_data"
Item 2
Exact value (
const):"denali_reg"
reg — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
interrupts — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
There are three clocks:
nand: controller core clock
nand_x: bus interface clock
ecc: ECC circuit clock
Array item rules (items) #
Item 1
Exact value (
const):"nand"
Item 2
Exact value (
const):"nand_x"
Item 3
Exact value (
const):"ecc"
clocks — required here #
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 3
reset-names — not listed as required here #
There are two optional resets:
nand: controller core reset
reg: register reset
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"nand"Item 2
Exact value (
const):"reg"
Rule 2
Exact value (
const):"nand"
Rule 3
Exact value (
const):"reg"
resets — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
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
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)Exact value (
const):"altr,socfpga-denali-nand"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^nand@[a-f0-9]$— name matches this regular expressionProperties and child nodes (
properties)
nand-ecc-strength— not listed as required here
nand-ecc-step-size— not listed as required here
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"socionext,uniphier-denali-nand-v5a"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^nand@[a-f0-9]$— name matches this regular expressionProperties and child nodes (
properties)
nand-ecc-strength— not listed as required hereAllowed values (
enum):8,16,24
nand-ecc-step-size— not listed as required here
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"socionext,uniphier-denali-nand-v5b"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^nand@[a-f0-9]$— name matches this regular expressionProperties and child nodes (
properties)
nand-ecc-strength— not listed as required here
nand-ecc-step-size— not listed as required here
Required in this object (required): "compatible", "reg", "interrupts", "clock-names", "clocks"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
nand-controller@ff900000 {
compatible = "altr,socfpga-denali-nand";
reg-names = "nand_data", "denali_reg";
reg = <0xff900000 0x20>, <0xffb80000 0x1000>;
interrupts = <0 144 4>;
clock-names = "nand", "nand_x", "ecc";
clocks = <&nand_clk>, <&nand_x_clk>, <&nand_ecc_clk>;
reset-names = "nand", "reg";
resets = <&nand_rst>, <&nand_reg_rst>;
#address-cells = <1>;
#size-cells = <0>;
nand@0 {
reg = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Freescale's NAND flash controller (NFC)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/fsl,vf610-nfc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
This variant of the Freescale NAND flash controller (NFC) can be found on Vybrid (vf610), MPC5125, MCF54418 and Kinetis K70.
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "fsl,vf610-nfc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"nfc"
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
Properties and child nodes (properties) #
compatible — not listed as required here
Exact value (const): "fsl,vf610-nfc-nandcs"
reg — not listed as required here
Exact value (const): 0
nand-ecc-strength — not listed as required here
nand-ecc-step-size — not listed as required here
Exact value (const): 2048
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):nand-controller.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/vf610-clock.h>
nand-controller@400e0000 {
compatible = "fsl,vf610-nfc";
reg = <0x400e0000 0x4000>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks VF610_CLK_NFC>;
clock-names = "nfc";
assigned-clocks = <&clks VF610_CLK_NFC>;
assigned-clock-rates = <33000000>;
nand@0 {
compatible = "fsl,vf610-nfc-nandcs";
reg = <0>;
nand-bus-width = <8>;
nand-ecc-mode = "hw";
nand-ecc-strength = <32>;
nand-ecc-step-size = <2048>;
nand-on-flash-bbt;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Freescale General-Purpose Media Interface (GPMI)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
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)
Ingenic SoCs NAND controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/ingenic,nand.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Paul Cercueil <paul@crapouillou.net>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):nand-controller.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/memory-controllers/ingenic,nemc-peripherals.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ingenic,jz4740-nand", "ingenic,jz4725b-nand", "ingenic,jz4780-nand"
reg — required here #
Array item rules (items) #
Item 1
Bank number, offset and size of first attached NAND chip
Item 2
Bank number, offset and size of second attached NAND chip
Item 3
Bank number, offset and size of third attached NAND chip
Item 4
Bank number, offset and size of fourth attached NAND chip
Minimum number of items (minItems): 1
ecc-engine — not listed as required here #
true — No constraints added by this property rule.
partitions — not listed as required here #
Value type (type): "object"
Deprecated (deprecated): true
Node containing description of fixed partitions.
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
Properties and child nodes (properties) #
rb-gpios — not listed as required here
GPIO specifier for the busy pin.
Maximum number of items (maxItems): 1
wp-gpios — not listed as required here
GPIO specifier for the write-protect pin.
Maximum number of items (maxItems): 1
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/ingenic,jz4780-cgu.h>
memory-controller@13410000 {
compatible = "ingenic,jz4780-nemc";
reg = <0x13410000 0x10000>;
#address-cells = <2>;
#size-cells = <1>;
ranges = <1 0 0x1b000000 0x1000000>,
<2 0 0x1a000000 0x1000000>,
<3 0 0x19000000 0x1000000>,
<4 0 0x18000000 0x1000000>,
<5 0 0x17000000 0x1000000>,
<6 0 0x16000000 0x1000000>;
clocks = <&cgu JZ4780_CLK_NEMC>;
nand-controller@1 {
compatible = "ingenic,jz4780-nand";
reg = <1 0 0x1000000>;
#address-cells = <1>;
#size-cells = <0>;
ecc-engine = <&bch>;
ingenic,nemc-tAS = <10>;
ingenic,nemc-tAH = <5>;
ingenic,nemc-tBP = <10>;
ingenic,nemc-tAW = <15>;
ingenic,nemc-tSTRV = <100>;
pinctrl-names = "default";
pinctrl-0 = <&pins_nemc>;
nand@1 {
reg = <1>;
nand-ecc-step-size = <1024>;
nand-ecc-strength = <24>;
nand-ecc-mode = "hw";
nand-on-flash-bbt;
pinctrl-names = "default";
pinctrl-0 = <&pins_nemc_cs1>;
partitions {
compatible = "fixed-partitions";
#address-cells = <2>;
#size-cells = <2>;
partition@0 {
label = "u-boot-spl";
reg = <0x0 0x0 0x0 0x800000>;
};
partition@800000 {
label = "u-boot";
reg = <0x0 0x800000 0x0 0x200000>;
};
partition@a00000 {
label = "u-boot-env";
reg = <0x0 0xa00000 0x0 0x200000>;
};
partition@c00000 {
label = "boot";
reg = <0x0 0xc00000 0x0 0x4000000>;
};
partition@4c00000 {
label = "system";
reg = <0x0 0x4c00000 0x1 0xfb400000>;
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Intel LGM SoC NAND Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/intel,lgm-ebunand.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):nand-controller.yaml
Maintainers (maintainers): "Ramuthevar Vadivel Murugan <vadivel.muruganx.ramuthevar@linux.intel.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "intel,lgm-ebunand"
reg — required here #
Maximum number of items (maxItems): 6
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ebunand"
Item 2
Exact value (
const):"hsnand"
Item 3
Exact value (
const):"nand_cs0"
Item 4
Exact value (
const):"nand_cs1"
Item 5
Exact value (
const):"addr_sel0"
Item 6
Exact value (
const):"addr_sel1"
clocks — required here #
Maximum number of items (maxItems): 1
dmas — required here #
Maximum number of items (maxItems): 2
dma-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"tx"
Item 2
Exact value (
const):"rx"
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
Properties and child nodes (properties) #
reg — not listed as required here
Minimum value (minimum): 0
Maximum value (maximum): 1
nand-ecc-algo — not listed as required here
Exact value (const): "hw"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "reg-names", "clocks", "dmas", "dma-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
nand-controller@e0f00000 {
compatible = "intel,lgm-ebunand";
reg = <0xe0f00000 0x100>,
<0xe1000000 0x300>,
<0xe1400000 0x8000>,
<0xe1c00000 0x1000>,
<0x17400000 0x4>,
<0x17c00000 0x4>;
reg-names = "ebunand", "hsnand", "nand_cs0", "nand_cs1",
"addr_sel0", "addr_sel1";
clocks = <&cgu0 125>;
dmas = <&dma0 8>, <&dma0 9>;
dma-names = "tx", "rx";
#address-cells = <1>;
#size-cells = <0>;
nand@0 {
reg = <0>;
nand-ecc-mode = "hw";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
SPI NOR flash ST M25Pxx (and similar) serial flash chips
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/jedec,spi-nor.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Rob Herring <robh@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):mtd.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties and child nodes (properties) #
compatible — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
String pattern (
pattern):"^((((micron|spansion|st),)?(m25p(40|80|16|32|64|128)|n25q(32b|064|128a11|128a13|256a|512a|164k)))|atmel,at(25|26)df(321a|641|081a)|everspin,mr25h(10|40|128|256)|(mxicy|macronix),mx25l(4005a|1606e|6405d|8005|12805d|25635e)|(mxicy|macronix),mx25u(4033|4035)|(spansion,)?s25fl(128s|256s1|512s|008k|064k|164k)|(sst|microchip),sst25vf(016b|032b|040b)|(sst,)?sst26wf016b|(sst,)?sst25wf(040b|080)|winbond,w25x(80|32)|(winbond,)?w25q(16|32(w|dw)?|64(dw)?|80bl|128(fw)?|256))$"Item 2
Exact value (
const):"jedec,spi-nor"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"issi,is25lp016d","micron,mt25qu02g","mxicy,mx25r1635f","mxicy,mx25u6435f","mxicy,mx25v8035f","spansion,s25sl12801","spansion,s25fs512s"Item 2
Exact value (
const):"jedec,spi-nor"
Rule 3
Exact value (
const):"jedec,spi-nor"
SPI NOR flashes compatible with the JEDEC SFDP standard or which may be identified with the READ ID opcode (0x9F) do not deserve a specific compatible. They should instead only be matched against the generic "jedec,spi-nor" compatible.
reg — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
m25p,fast-read — not listed as required here #
Value type (type): "boolean"
Use the "fast read" opcode to read data from the chip instead of the usual "read" opcode. This opcode is not supported by all chips and support for it can not be detected at runtime. Refer to your chips' datasheet to check if this is supported by your chip.
broken-flash-reset — not listed as required here #
Value type (type): "boolean"
Some flash devices utilize stateful addressing modes (e.g., for 32-bit addressing) which need to be managed carefully by a system. Because these sorts of flash don't have a standardized software reset command, and because some systems don't toggle the flash RESET# pin upon system reset (if the pin even exists at all), there are systems which cannot reboot properly if the flash is left in the "wrong" state. This boolean flag can be used on such systems, to denote the absence of a reliable reset mechanism.
no-wp — not listed as required here #
Value type (type): "boolean"
The status register write disable (SRWD) bit in status register, combined with the WP# signal, provides hardware data protection for the device. When the SRWD bit is set to 1, and the WP# signal is either driven LOW or hard strapped to LOW, the status register nonvolatile bits become read-only and the WRITE STATUS REGISTER operation will not execute. The only way to exit this hardware-protected mode is to drive WP# HIGH. If the WP# signal of the flash device is not connected or is wrongly tied to GND (that includes internal pull-downs) then status register permanently becomes read-only as the SRWD bit cannot be reset. This boolean flag can be used on such systems to avoid setting the SRWD bit while writing the status register. WP# signal hard strapped to GND can be a valid use case.
reset-gpios — not listed as required here #
A GPIO line connected to the RESET (active low) signal of the device. If "broken-flash-reset" is present then having this property does not make any difference.
vcc-supply — not listed as required here #
Supply for the SPI NOR power.
spi-cpol — not listed as required here #
true — No constraints added by this property rule.
spi-cpha — not listed as required here #
true — No constraints added by this property rule.
Property dependencies (dependencies) #
spi-cpol — applies when this property is present #
Also requires: "spi-cpha"
spi-cpha — applies when this property is present #
Also requires: "spi-cpol"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
flash@0 {
compatible = "spansion,m25p80", "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <40000000>;
m25p,fast-read;
reset-gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only
Loongson NAND Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/loongson,ls1b-nand-controller.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Keguang Zhang <keguang.zhang@gmail.com>", "Binbin Zhou <zhoubinbin@loongson.cn>"
The Loongson NAND controller abstracts all supported operations, meaning it does not support low-level access to raw NAND flash chips. Moreover, the controller is paired with the DMA engine to perform READ and PROGRAM functions.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):nand-controller.yaml
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"loongson,ls1b-nand-controller","loongson,ls1c-nand-controller","loongson,ls2k0500-nand-controller","loongson,ls2k1000-nand-controller"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"loongson,ls1b-nand-controller"
reg — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 3
reg-names — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
Exact value (
const):"nand"
Item 2
Exact value (
const):"nand-dma"
Item 3
Exact value (
const):"dma-config"
dmas — required here #
Maximum number of items (maxItems): 1
dma-names — required here #
Exact value (const): "rxtx"
Required in this object (required): "compatible", "reg", "reg-names", "dmas", "dma-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Rule for matching array elements (
contains)
When the condition matches (then) #
Properties and child nodes (
properties) #
reg— not listed as required here #Minimum number of items (
minItems):3
reg-names— not listed as required here #Minimum number of items (
minItems):3
When the condition does not match (else) #
Properties and child nodes (
properties) #
reg— not listed as required here #Maximum number of items (
maxItems):2
reg-names— not listed as required here #Maximum number of items (
maxItems):2
Examples (examples) #
nand-controller@1fe78000 {
compatible = "loongson,ls1b-nand-controller";
reg = <0x1fe78000 0x24>, <0x1fe78040 0x4>;
reg-names = "nand", "nand-dma";
dmas = <&dma 0>;
dma-names = "rxtx";
#address-cells = <1>;
#size-cells = <0>;
nand@0 {
reg = <0>;
label = "ls1x-nand";
nand-use-soft-ecc-engine;
nand-ecc-algo = "hamming";
};
};
nand-controller@1fe26000 {
compatible = "loongson,ls2k1000-nand-controller";
reg = <0x1fe26000 0x24>,
<0x1fe26040 0x4>,
<0x1fe00438 0x8>;
reg-names = "nand", "nand-dma", "dma-config";
dmas = <&apbdma0 0>;
dma-names = "rxtx";
#address-cells = <1>;
#size-cells = <0>;
nand@0 {
reg = <0>;
label = "ls2k1000-nand";
nand-use-soft-ecc-engine;
nand-ecc-algo = "bch";
nand-ecc-strength = <8>;
nand-ecc-step-size = <512>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Marvell NAND Flash Controller (NFC)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/marvell,nand-controller.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Miquel Raynal <miquel.raynal@bootlin.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"marvell,armada-8k-nand-controller"Item 2
Exact value (
const):"marvell,armada370-nand-controller"
Rule 2
Allowed values (
enum):"marvell,ac5-nand-controller","marvell,armada370-nand-controller","marvell,pxa3xx-nand-controller"
Rule 3
legacy bindings
Deprecated (
deprecated):trueAllowed values (
enum):"marvell,armada-8k-nand","marvell,armada370-nand","marvell,pxa3xx-nand"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Shall reference the NAND controller clocks, the second one is is only needed for the Armada 7K/8K SoCs
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"reg"
dmas — not listed as required here #
Maximum number of items (maxItems): 1
dma-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"data"
marvell,system-controller — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Syscon node that handles NAND controller related registers
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
Properties and child nodes (properties) #
reg — required here
Minimum value (minimum): 0
Maximum value (maximum): 3
nand-rb — required here
Array item rules (items)
Item 1
Minimum value (
minimum):0Maximum value (
maximum):1
nand-ecc-step-size — not listed as required here
Exact value (const): 512
nand-ecc-strength — not listed as required here
Allowed values (enum): 1, 4, 8, 12, 16
nand-ecc-mode — not listed as required here
Exact value (const): "hw"
marvell,nand-keep-config — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Orders the driver not to take the timings from the core and leaving them completely untouched. Bootloader timings will then be used.
marvell,nand-enable-arbiter — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
To enable the arbiter, all boards blindly used it, this bit was set by the bootloader for many boards and even if it is marked reserved in several datasheets, it might be needed to set it (otherwise it is harmless).
Deprecated (deprecated): true
Required in this object (required): "reg", "nand-rb"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks"
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)Exact value (
const):"marvell,pxa3xx-nand-controller"When the condition matches (
then) #
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"marvell,armada-8k-nand-controller"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):2
clock-names— not listed as required hereMinimum number of items (
minItems):2Required in this object (
required):"marvell,system-controller"When the condition does not match (
else) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):1
clock-names— not listed as required hereMinimum number of items (
minItems):1
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
nand_controller: nand-controller@d0000 {
compatible = "marvell,armada370-nand-controller";
reg = <0xd0000 0x54>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&coredivclk 0>;
nand@0 {
reg = <0>;
label = "main-storage";
nand-rb = <0>;
nand-ecc-mode = "hw";
marvell,nand-keep-config;
nand-on-flash-bbt;
nand-ecc-strength = <4>;
nand-ecc-step-size = <512>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "Rootfs";
reg = <0x00000000 0x40000000>;
};
};
};
};
cp0_nand_controller: nand-controller@720000 {
compatible = "marvell,armada-8k-nand-controller",
"marvell,armada370-nand-controller";
reg = <0x720000 0x54>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <115 IRQ_TYPE_LEVEL_HIGH>;
clock-names = "core", "reg";
clocks = <&cp0_clk 1 2>,
<&cp0_clk 1 17>;
marvell,system-controller = <&cp0_syscon0>;
nand@0 {
reg = <0>;
label = "main-storage";
nand-rb = <0>;
nand-ecc-mode = "hw";
nand-ecc-strength = <8>;
nand-ecc-step-size = <512>;
};
};
nand-controller@43100000 {
compatible = "marvell,pxa3xx-nand-controller";
reg = <0x43100000 90>;
interrupts = <45>;
clocks = <&clks 1>;
clock-names = "core";
dmas = <&pdma 97 3>;
dma-names = "data";
#address-cells = <1>;
#size-cells = <0>;
nand@0 {
reg = <0>;
nand-rb = <0>;
nand-ecc-mode = "hw";
marvell,nand-keep-config;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
MediaTek(MTK) SoCs raw NAND FLASH controller (NFC)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/mediatek,mtk-nfc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Xiangsheng Hou <xiangsheng.hou@mediatek.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "mediatek,mt2701-nfc", "mediatek,mt2712-nfc", "mediatek,mt7622-nfc"
reg — required here #
Array item rules (items) #
Item 1
Base physical address and size of NFI.
interrupts — required here #
Array item rules (items) #
Item 1
NFI interrupt
clocks — required here #
Array item rules (items) #
Item 1
clock used for the controller
Item 2
clock used for the pad
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"nfi_clk"
Item 2
Exact value (
const):"pad_clk"
ecc-engine — required here #
device-tree node of the required ECC engine.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Properties matching a name pattern (patternProperties) #
^nand@[a-f0-9]$ — name matches this regular expression #
Shared schema rule ($ref): raw-nand-chip.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
Maximum value (maximum): 1
nand-ecc-mode — not listed as required here
Exact value (const): "hw"
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)Exact value (
const):"mediatek,mt2701-nfc"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^nand@[a-f0-9]$— name matches this regular expressionProperties and child nodes (
properties)
nand-ecc-step-size— not listed as required hereAllowed values (
enum):512,1024
nand-ecc-strength— not listed as required hereAllowed values (
enum):4,6,8,10,12,14,16,18,20,22,24,28,32,36,40,44,48,52,56,60
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"mediatek,mt2712-nfc"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^nand@[a-f0-9]$— name matches this regular expressionProperties and child nodes (
properties)
nand-ecc-step-size— not listed as required hereAllowed values (
enum):512,1024
nand-ecc-strength— not listed as required hereAllowed values (
enum):4,6,8,10,12,14,16,18,20,22,24,28,32,36,40,44,48,52,56,60,68,72,80
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"mediatek,mt7622-nfc"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^nand@[a-f0-9]$— name matches this regular expressionProperties and child nodes (
properties)
nand-ecc-step-size— not listed as required hereExact value (
const):512
nand-ecc-strength— not listed as required here
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "ecc-engine"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/mt2701-clk.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
nand-controller@1100d000 {
compatible = "mediatek,mt2701-nfc";
reg = <0 0x1100d000 0 0x1000>;
interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_LOW>;
clocks = <&pericfg CLK_PERI_NFI>,
<&pericfg CLK_PERI_NFI_PAD>;
clock-names = "nfi_clk", "pad_clk";
ecc-engine = <&bch>;
#address-cells = <1>;
#size-cells = <0>;
nand@0 {
reg = <0>;
nand-on-flash-bbt;
nand-ecc-mode = "hw";
nand-ecc-step-size = <1024>;
nand-ecc-strength = <24>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
preloader@0 {
label = "pl";
read-only;
reg = <0x0 0x400000>;
};
android@400000 {
label = "android";
reg = <0x400000 0x12c00000>;
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
MediaTek(MTK) SoCs NAND ECC engine
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/mediatek,nand-ecc-engine.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Xiangsheng Hou <xiangsheng.hou@mediatek.com>"
MTK NAND ECC engine can cowork with MTK raw NAND and SPI NAND controller.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "mediatek,mt2701-ecc", "mediatek,mt2712-ecc", "mediatek,mt7622-ecc", "mediatek,mt7986-ecc"
reg — required here #
Array item rules (items) #
Item 1
Base physical address and size of ECC.
interrupts — required here #
Array item rules (items) #
Item 1
ECC interrupt
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Exact value (const): "nfiecc_clk"
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/mt2701-clk.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
bch: ecc@1100e000 {
compatible = "mediatek,mt2701-ecc";
reg = <0 0x1100e000 0 0x1000>;
interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_LOW>;
clocks = <&pericfg CLK_PERI_NFI_ECC>;
clock-names = "nfiecc_clk";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Microchip 23K256 SPI SRAM
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/microchip,mchp23k256.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Richard Weinberger <richard@nod.at>"
The Microchip 23K256 is a 256 Kbit (32 Kbyte) serial SRAM with an SPI interface,supporting clock frequencies up to 20 MHz. It features a 32-byte page size for writes and supports byte, page, and sequential access modes.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "microchip,mchp23k256", "microchip,mchp23lcv1024"
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "reg", "compatible", "spi-max-frequency"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
sram@0 {
compatible = "microchip,mchp23k256";
reg = <0>;
spi-max-frequency = <20000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Microchip 48l640 (and similar) serial EERAM
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/microchip,mchp48l640.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Heiko Schocher <hs@denx.de>"
The Microchip 48l640 is a 8KByte EERAM connected via SPI.
datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/20006055B.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "fujitsu,mb85rs128ty", "microchip,48l640"
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
eeram@0 {
compatible = "microchip,48l640";
reg = <0>;
spi-max-frequency = <20000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
CFI or JEDEC memory-mapped NOR flash, MTD-RAM (NVRAM...)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/mtd-physmap.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Rob Herring <robh@kernel.org>"
Flash chips (Memory Technology Devices) are often used for solid state file systems on embedded devices.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):mtd.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/memory-controllers/mc-peripheral-props.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"amd,s29gl01gp","amd,s29gl032a","amd,s29gl256n","amd,s29gl512n","arm,versatile-flash","arm,vexpress-flash","cortina,gemini-flash","cypress,hyperflash","ge,imp3a-firmware-mirror","ge,imp3a-paged-flash","gef,ppc9a-firmware-mirror","gef,ppc9a-paged-flash","gef,sbc310-firmware-mirror","gef,sbc310-paged-flash","gef,sbc610-firmware-mirror","gef,sbc610-paged-flash","intel,28f128j3","intel,dt28f160","intel,ixp4xx-flash","intel,JS28F128","intel,JS28F640","intel,PC28F640P30T85","numonyx,js28f00a","numonyx,js28f128","sst,sst39vf320","xlnx,xps-mch-emc-2.00.a"Item 2
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"cypress,cy7c1019dv33-10zsxi","arm,vexpress-psram"Item 2
Exact value (
const):"mtd-ram"
Rule 3
Allowed values (
enum):"cfi-flash","jedec-flash","mtd-ram","mtd-rom"
reg — required here #
It's possible to (optionally) define multiple "reg" tuples so that non-identical chips can be described in one node.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
clocks — not listed as required here #
Chips may need clocks to be enabled for themselves or for transparent bridges.
power-domains — not listed as required here #
Chips may need power domains to be enabled for themselves or for transparent bridges.
bank-width — not listed as required here #
Width (in bytes) of the bank. Equal to the device width times the number of interleaved chips.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 1, 2, 4
device-width — not listed as required here #
Width of a single mtd chip. If omitted, assumed to be equal to 'bank-width'.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
no-unaligned-direct-access — not listed as required here #
Value type (type): "boolean"
Disables the default direct mapping of the flash.
On some platforms (e.g. MPC5200) a direct 1:1 mapping may cause problems with JFFS2 usage, as the local bus (LPB) doesn't support unaligned accesses as implemented in the JFFS2 code via memcpy(). By defining "no-unaligned-direct-access", the flash will not be exposed directly to the MTD users (e.g. JFFS2) any more.
linux,mtd-name — not listed as required here #
Allows specifying the mtd name for retro capability with physmap-flash drivers as boot loader pass the mtd partition via the old device name physmap-flash.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
use-advanced-sector-protection — not listed as required here #
Value type (type): "boolean"
Enables support for the advanced sector protection (Spansion: PPB - Persistent Protection Bits) locking.
erase-size — not listed as required here #
The chip's physical erase block size in bytes.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
addr-gpios — not listed as required here #
List of GPIO descriptors that will be used to address the MSBs address lines. The order goes from LSB to MSB.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 1
ranges — not listed as required here #
true — No constraints added by this property rule.
big-endian — not listed as required here #
true — No constraints added by this property rule.
little-endian — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg"
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Rule for matching array elements (
contains)Exact value (
const):"cortina,gemini-flash"
When the condition matches (then) #
Properties and child nodes (
properties) #
syscon— required here #Shared schema rule (
$ref):/schemas/types.yaml#/definitions/phandlePhandle to the syscon controller
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
flash@ff000000 {
compatible = "cfi-flash";
reg = <0xff000000 0x01000000>;
bank-width = <4>;
device-width = <1>;
#address-cells = <1>;
#size-cells = <1>;
ranges = <0 0xff000000 0x01000000>;
fs@0 {
label = "fs";
reg = <0 0xf80000>;
};
firmware@f80000 {
label = "firmware";
reg = <0xf80000 0x80000>;
read-only;
};
};
/* An example with multiple "reg" tuples */
flash@0 {
compatible = "intel,PC28F640P30T85", "cfi-flash";
reg = <0x00000000 0x02000000>,
<0x02000000 0x02000000>;
bank-width = <2>;
#address-cells = <1>;
#size-cells = <1>;
ranges = <0 0 0x04000000>;
partition@0 {
label = "test-part1";
reg = <0 0x04000000>;
};
};
/* An example using SRAM */
bus {
#address-cells = <2>;
#size-cells = <1>;
sram@2,0 {
compatible = "mtd-ram";
reg = <2 0 0x00200000>;
bank-width = <2>;
};
};
/* An example using addr-gpios */
#include <dt-bindings/gpio/gpio.h>
flash@20000000 {
compatible = "cfi-flash";
reg = <0x20000000 0x02000000>;
bank-width = <2>;
addr-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
#address-cells = <1>;
#size-cells = <1>;
ranges = <0 0x00000000 0x02000000>,
<1 0x02000000 0x02000000>;
partition@0 {
label = "test-part1";
reg = <0 0x04000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
MTD (Memory Technology Device)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/mtd.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Miquel Raynal <miquel.raynal@bootlin.com>", "Richard Weinberger <richard@nod.at>"
Automatic schema selection (select) #
false
Not selected automatically by this rule.
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^(flash|.*sram|nand)(@.*)?$"
label — not listed as required here #
User-defined MTD device name. Can be used to assign user friendly names to MTD devices (instead of the flash model or flash controller based name) in order to ease flash device identification and/or describe what they are used for.
#address-cells — not listed as required here #
Deprecated (deprecated): true
#size-cells — not listed as required here #
Deprecated (deprecated): true
partitions — not listed as required here #
Value type (type): "object"
Required in this object (required): "compatible"
Properties matching a name pattern (patternProperties) #
(^partition)?@[0-9a-f]+$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/mtd/partitions/partition.yaml#/$defs/partition-node
Deprecated (deprecated): true
^otp(-[0-9]+)?$ — name matches this regular expression #
Value type (type): "object"
All of these rules must match (allOf) #
Rule 1
Shared schema rule (
$ref):/schemas/nvmem/nvmem.yaml#
Rule 2
Shared schema rule (
$ref):/schemas/nvmem/nvmem-deprecated-cells.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
An OTP memory region. Some flashes provide a one-time-programmable memory whose content can either be programmed by a user or is already pre-programmed by the factory. Some flashes might provide both.
Properties and child nodes (properties) #
compatible — required here
Allowed values (enum): "user-otp", "factory-otp"
Required in this object (required): "compatible"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
flash@0 {
reg = <0>;
compatible = "jedec,spi-nor";
label = "System-firmware";
};
};
spi {
#address-cells = <1>;
#size-cells = <0>;
flash@0 {
reg = <0>;
compatible = "jedec,spi-nor";
otp-1 {
compatible = "factory-otp";
#address-cells = <1>;
#size-cells = <1>;
electronic-serial-number@0 {
reg = <0 8>;
};
};
otp-2 {
compatible = "user-otp";
#address-cells = <1>;
#size-cells = <1>;
mac-address@0 {
reg = <0 6>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 66: This is a generic file other binding inherit from
Freescale's mxc_nand
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/mxc-nand.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Uwe Kleine-König <u.kleine-koenig@pengutronix.de>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):nand-controller.yaml
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"fsl,imx27-nand"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx27-nand"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
nand-controller@d8000000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,imx27-nand";
reg = <0xd8000000 0x1000>;
interrupts = <29>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Macronix Raw NAND Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/mxic,multi-itfc-v009-nand-controller.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Mason Yang <masonccyang@mxic.com.tw>"
The Macronix Multi-Interface Raw NAND Controller is a versatile flash memory controller for embedding in SoCs, capable of interfacing with various NAND devices. It requires dedicated clock inputs for core, data transmit, and delayed transmit paths along with register space and an interrupt line for operation.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):nand-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "mxic,multi-itfc-v009-nand-controller"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
clocks — required here #
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 3
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ps"
Item 2
Exact value (
const):"send"
Item 3
Exact value (
const):"send_dly"
Required in this object (required): "compatible", "reg", "interrupts", "#address-cells", "#size-cells", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
nand-controller@43c30000 {
compatible = "mxic,multi-itfc-v009-nand-controller";
reg = <0x43c30000 0x10000>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <GIC_SPI 0x1d IRQ_TYPE_EDGE_RISING>;
clocks = <&clkwizard 0>, <&clkwizard 1>, <&clkc 15>;
clock-names = "ps", "send", "send_dly";
nand@0 {
reg = <0>;
nand-ecc-mode = "soft";
nand-ecc-algo = "bch";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Macronix NAND ECC engine
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/mxicy,nand-ecc-engine.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Miquel Raynal <miquel.raynal@bootlin.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "mxicy,nand-ecc-engine-rev3"
reg — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
/* External configuration */
spi_controller0: spi@43c30000 {
compatible = "mxicy,mx25f0a-spi";
reg = <0x43c30000 0x10000>, <0xa0000000 0x4000000>;
reg-names = "regs", "dirmap";
clocks = <&clkwizard 0>, <&clkwizard 1>, <&clkc 15>;
clock-names = "send_clk", "send_dly_clk", "ps_clk";
#address-cells = <1>;
#size-cells = <0>;
flash@0 {
compatible = "spi-nand";
reg = <0>;
nand-ecc-engine = <&ecc_engine0>;
};
};
ecc_engine0: ecc@43c40000 {
compatible = "mxicy,nand-ecc-engine-rev3";
reg = <0x43c40000 0x10000>;
};
/* Pipelined configuration */
spi_controller1: spi@43c30000 {
compatible = "mxicy,mx25f0a-spi";
reg = <0x43c30000 0x10000>, <0xa0000000 0x4000000>;
reg-names = "regs", "dirmap";
clocks = <&clkwizard 0>, <&clkwizard 1>, <&clkc 15>;
clock-names = "send_clk", "send_dly_clk", "ps_clk";
#address-cells = <1>;
#size-cells = <0>;
nand-ecc-engine = <&ecc_engine1>;
flash@0 {
compatible = "spi-nand";
reg = <0>;
nand-ecc-engine = <&spi_controller1>;
};
};
ecc_engine1: ecc@43c40000 {
compatible = "mxicy,nand-ecc-engine-rev3";
reg = <0x43c40000 0x10000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
NAND Chip Common Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
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)
NAND Controller Common Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
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
Nuvoton MA35D1 NAND Flash Interface (NFI) Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/nuvoton,ma35d1-nand.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Hui-Ping Chen <hpchen0nvt@gmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):nand-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "nuvoton,ma35d1-nand-controller"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
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
Properties and child nodes (properties) #
reg — required here
Minimum value (minimum): 0
Maximum value (maximum): 1
nand-ecc-step-size — not listed as required here
Allowed values (enum): 512, 1024
nand-ecc-strength — not listed as required here
Allowed values (enum): 8, 12, 24
Required in this object (required): "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/nuvoton,ma35d1-clk.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
nand-controller@401A0000 {
compatible = "nuvoton,ma35d1-nand-controller";
reg = <0x0 0x401A0000 0x0 0x1000>;
interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk NAND_GATE>;
#address-cells = <1>;
#size-cells = <0>;
nand@0 {
reg = <0>;
nand-on-flash-bbt;
nand-ecc-step-size = <512>;
nand-ecc-strength = <8>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
uboot@0 {
label = "nand-uboot";
read-only;
reg = <0x0 0x300000>;
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
NVIDIA Tegra NAND Flash Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/nvidia,tegra20-nand.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Hunter <jonathanh@nvidia.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):nand-controller.yaml
The NVIDIA NAND controller provides an interface between NVIDIA SoCs and raw NAND flash devices. It supports standard NAND operations, hardware-assisted ECC, OOB data access, and DMA transfers, and integrates with the Linux MTD NAND subsystem for reliable flash management.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "nvidia,tegra20-nand"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"nand"
resets — required here #
Maximum number of items (maxItems): 1
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"nand"
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
operating-points-v2 — not listed as required here #
Maximum number of items (maxItems): 1
Properties matching a name pattern (patternProperties) #
^nand@ — name matches this regular expression #
Value type (type): "object"
Individual NAND chip connected to the NAND controller
Shared schema rule ($ref): raw-nand-chip.yaml#
Properties and child nodes (properties) #
reg — not listed as required here
Maximum value (maximum): 5
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "resets", "reset-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/tegra20-car.h>
#include <dt-bindings/gpio/tegra-gpio.h>
nand-controller@70008000 {
compatible = "nvidia,tegra20-nand";
reg = <0x70008000 0x100>;
interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&tegra_car TEGRA20_CLK_NDFLASH>;
clock-names = "nand";
resets = <&tegra_car 13>;
reset-names = "nand";
#address-cells = <1>;
#size-cells = <0>;
nand@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <1>;
nand-bus-width = <8>;
nand-on-flash-bbt;
nand-ecc-algo = "bch";
nand-ecc-strength = <8>;
wp-gpios = <&gpio TEGRA_GPIO(S, 0) GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
NXP SPI Flash Interface (SPIFI)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/nxp,lpc1773-spifi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
NXP SPIFI is a specialized SPI interface for serial Flash devices. It supports one Flash device with 1-, 2- and 4-bits width in SPI mode 0 or 3. The controller operates in either command or memory mode. In memory mode the Flash is accessible from the CPU as normal memory.
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "nxp,lpc1773-spifi"
reg — required here #
Maximum number of items (maxItems): 2
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"spifi"
Item 2
Exact value (
const):"flash"
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 2
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"spifi"
Item 2
Exact value (
const):"reg"
resets — not listed as required here #
Maximum number of items (maxItems): 1
spi-cpol — not listed as required here #
Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "clocks", "clock-names"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-controller.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/lpc18xx-ccu.h>
spi@40003000 {
compatible = "nxp,lpc1773-spifi";
reg = <0x40003000 0x1000>, <0x14000000 0x4000000>;
reg-names = "spifi", "flash";
interrupts = <30>;
clocks = <&ccu1 CLK_SPIFI>, <&ccu1 CLK_CPU_SPIFI>;
clock-names = "spifi", "reg";
resets = <&rgu 53>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Qualcomm NAND controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/qcom,nandc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"qcom,sdx55-nand"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"qcom,ipq806x-nand","qcom,ipq4019-nand","qcom,ipq6018-nand","qcom,ipq8074-nand","qcom,sdx55-nand"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
Core Clock
Item 2
Always ON Clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"aon"
qcom,cmd-crci — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Must contain the ADM command type CRCI block instance number specified for the NAND controller on the given platform
qcom,data-crci — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Must contain the ADM data type CRCI block instance number specified for the NAND controller on the given platform
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
Properties and child nodes (properties) #
nand-bus-width — not listed as required here
Exact value (const): 8
nand-ecc-strength — not listed as required here
Allowed values (enum): 1, 4, 8
nand-ecc-step-size — not listed as required here
qcom,boot-partitions — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-matrix
Array item rules (items)
Array item rules (
items)Item 1
offset
Item 2
size
Boot partition use a different layout where the 4 bytes of spare data are not protected by ECC. Use this to declare these special partitions by defining first the offset and then the size. It's in the form of <offset1 size1 offset2 size2 offset3 ...> and should be declared in ascending order. Refer to the ipq8064 example on how to use this special binding.
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)Exact value (
const):"qcom,ipq806x-nand"When the condition matches (
then) #Properties and child nodes (
properties)
dmas— not listed as required hereArray item rules (
items)Item 1
rxtx DMA channel
dma-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"rxtx"
Rule 3 #
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)
iommus— not listed as required hereMaximum number of items (
maxItems):1
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,ipq4019-nand","qcom,ipq6018-nand","qcom,ipq8074-nand","qcom,sdx55-nand"When the condition matches (
then) #Properties and child nodes (
properties)
dmas— not listed as required hereArray item rules (
items)Item 1
tx DMA channel
Item 2
rx DMA channel
Item 3
cmd DMA channel
dma-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"tx"Item 2
Exact value (
const):"rx"Item 3
Exact value (
const):"cmd"
qcom,cmd-crci— not listed as required here
false— Not permitted by this property rule.
qcom,data-crci— not listed as required here
false— Not permitted by this property rule.Properties matching a name pattern (
patternProperties)
^nand@[a-f0-9]$— name matches this regular expressionProperties and child nodes (
properties)
qcom,boot-partitions— not listed as required here
false— Not permitted by this property rule.
Required in this object (required): "compatible", "reg", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/qcom,gcc-ipq806x.h>
nand-controller@1ac00000 {
compatible = "qcom,ipq806x-nand";
reg = <0x1ac00000 0x800>;
clocks = <&gcc EBI2_CLK>,
<&gcc EBI2_AON_CLK>;
clock-names = "core", "aon";
dmas = <&adm_dma 3>;
dma-names = "rxtx";
qcom,cmd-crci = <15>;
qcom,data-crci = <3>;
#address-cells = <1>;
#size-cells = <0>;
nand@0 {
reg = <0>;
nand-ecc-strength = <4>;
nand-bus-width = <8>;
qcom,boot-partitions = <0x0 0x58a0000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "boot-nand";
reg = <0 0x58a0000>;
};
partition@58a0000 {
label = "fs-nand";
reg = <0x58a0000 0x4000000>;
};
};
};
};
#include <dt-bindings/clock/qcom,gcc-ipq4019.h>
nand-controller@79b0000 {
compatible = "qcom,ipq4019-nand";
reg = <0x79b0000 0x1000>;
clocks = <&gcc GCC_QPIC_CLK>,
<&gcc GCC_QPIC_AHB_CLK>;
clock-names = "core", "aon";
dmas = <&qpicbam 0>,
<&qpicbam 1>,
<&qpicbam 2>;
dma-names = "tx", "rx", "cmd";
#address-cells = <1>;
#size-cells = <0>;
nand@0 {
reg = <0>;
nand-ecc-strength = <4>;
nand-bus-width = <8>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "boot-nand";
reg = <0 0x58a0000>;
};
partition@58a0000 {
label = "fs-nand";
reg = <0x58a0000 0x4000000>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Raw NAND Chip Common Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/raw-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):nand-chip.yaml#
The ECC strength and ECC step size properties define the user desires in terms of correction capability of a controller. Together, they request the ECC engine to correct {strength} bit errors per {size} bytes for a particular raw NAND chip.
The interpretation of these parameters is implementation-defined, so not all implementations must support all possible combinations. However, implementations are encouraged to further specify the value(s) they support.
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^nand@[a-f0-9]$"
reg — required here #
Contains the chip-select IDs.
nand-ecc-placement — not listed as required here #
Location of the ECC bytes. This location is unknown by default but can be explicitly set to "oob", if all ECC bytes are known to be stored in the OOB area, or "interleaved" if ECC bytes will be interleaved with regular data in the main area.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "oob", "interleaved"
Deprecated (deprecated): true
nand-ecc-mode — not listed as required here #
Legacy ECC configuration mixing the ECC engine choice and configuration.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "none", "soft", "soft_bch", "hw", "hw_syndrome", "on-die"
Deprecated (deprecated): true
nand-bus-width — not listed as required here #
Bus width to the NAND chip
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 8
nand-on-flash-bbt — not listed as required here #
With this property, the OS will search the device for a Bad Block Table (BBT). If not found, it will create one, reserve a few blocks at the end of the device to store it and update it as the device ages. Otherwise, the out-of-band area of a few pages of all the blocks will be scanned at boot time to find Bad Block Markers (BBM). These markers will help to build a volatile BBT in RAM.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
nand-ecc-maximize — not listed as required here #
Whether or not the ECC strength should be maximized. The maximum ECC strength is both controller and chip dependent. The ECC engine has to select the ECC config providing the best strength and taking the OOB area size constraint into account. This is particularly useful when only the in-band area is used by the upper layers, and you want to make your NAND as reliable as possible.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
nand-is-boot-medium — not listed as required here #
Whether or not the NAND chip is a boot medium. Drivers might use this information to select ECC algorithms supported by the boot ROM or similar restrictions.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
nand-rb — not listed as required here #
Contains the native Ready/Busy IDs.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
rb-gpios — not listed as required here #
Contains one or more GPIO descriptor (the numper of descriptor depends on the number of R/B pins exposed by the flash) for the Ready/Busy pins. Active state refers to the NAND ready state and should be set to GPIOD_ACTIVE_HIGH unless the signal is inverted.
wp-gpios — not listed as required here #
Contains one GPIO descriptor for the Write Protect pin. Active state refers to the NAND Write Protect state and should be set to GPIOD_ACTIVE_LOW unless the signal is inverted.
Maximum number of items (maxItems): 1
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 110: This is a generic file other binding inherit from and extend
Realtek SoCs NAND ECC engine
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/realtek,rtl9301-ecc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Markus Stockhausen <markus.stockhausen@gmx.de>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "realtek,rtl9301-ecc"
reg — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
soc {
#address-cells = <1>;
#size-cells = <1>;
ecc0: ecc@1a600 {
compatible = "realtek,rtl9301-ecc";
reg = <0x1a600 0x54>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Renesas R-Car Gen3 & RZ/N1x NAND flash controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/renesas-nandc.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):nand-controller.yaml
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"renesas,rzn1-nandc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
APB host controller clock
Item 2
External NAND bus clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"hclk"
Item 2
Exact value (
const):"eclk"
power-domains — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "power-domains", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/r9a06g032-sysctrl.h>
nand-controller@40102000 {
compatible = "renesas,r9a06g032-nandc", "renesas,rzn1-nandc";
reg = <0x40102000 0x2000>;
interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&sysctrl R9A06G032_HCLK_NAND>, <&sysctrl R9A06G032_CLK_NAND>;
clock-names = "hclk", "eclk";
power-domains = <&sysctrl>;
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Rockchip SoCs NAND FLASH Controller (NFC)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/rockchip,nand-controller.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):nand-controller.yaml#
Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"rockchip,px30-nfc"
Rule 2
Exact value (
const):"rockchip,rk2928-nfc"
Rule 3
Exact value (
const):"rockchip,rv1108-nfc"
Rule 4
Array item rules (
items)Item 1
Allowed values (
enum):"rockchip,rk3036-nfc","rockchip,rk3128-nfc"Item 2
Exact value (
const):"rockchip,rk2928-nfc"
Rule 5
Array item rules (
items)Item 1
Exact value (
const):"rockchip,rk3308-nfc"Item 2
Exact value (
const):"rockchip,rv1108-nfc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Bus Clock
Item 2
Module Clock
clock-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"ahb"
Item 2
Exact value (
const):"nfc"
assigned-clocks — not listed as required here #
Maximum number of items (maxItems): 1
assigned-clock-rates — not listed as required here #
Maximum number of items (maxItems): 1
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
Properties matching a name pattern (patternProperties) #
^nand@[0-7]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): raw-nand-chip.yaml
Properties and child nodes (properties) #
reg — not listed as required here
Minimum value (minimum): 0
Maximum value (maximum): 7
nand-ecc-mode — not listed as required here
Exact value (const): "hw"
nand-ecc-step-size — not listed as required here
Exact value (const): 1024
nand-ecc-strength — not listed as required here
Allowed values (enum): 16, 24, 40, 60, 70
The ECC configurations that can be supported are as follows.
NFC v600 ECC 16, 24, 40, 60
RK2928, RK3066, RK3188
NFC v622 ECC 16, 24, 40, 60
RK3036, RK3128
NFC v800 ECC 16
RK3308, RV1108
NFC v900 ECC 16, 40, 60, 70
RK3326, PX30
nand-bus-width — not listed as required here
Exact value (const): 8
rockchip,boot-blks — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 2
Default value (default): 16
The NFC driver need this information to select ECC algorithms supported by the boot ROM. Only used in combination with 'nand-is-boot-medium'.
rockchip,boot-ecc-strength — not listed as required here
Allowed values (enum): 16, 24, 40, 60, 70
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
If specified it indicates that a different BCH/ECC setting is
supported by the boot ROM.
NFC v600 ECC 16, 24
RK2928, RK3066, RK3188
NFC v622 ECC 16, 24, 40, 60
RK3036, RK3128
NFC v800 ECC 16
RK3308, RV1108
NFC v900 ECC 16, 70
RK3326, PX30
Only used in combination with 'nand-is-boot-medium'.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/rk3308-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
nfc: nand-controller@ff4b0000 {
compatible = "rockchip,rk3308-nfc",
"rockchip,rv1108-nfc";
reg = <0xff4b0000 0x4000>;
interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru HCLK_NANDC>, <&cru SCLK_NANDC>;
clock-names = "ahb", "nfc";
assigned-clocks = <&clks SCLK_NANDC>;
assigned-clock-rates = <150000000>;
pinctrl-0 = <&flash_ale &flash_bus8 &flash_cle &flash_csn0
&flash_rdn &flash_rdy &flash_wrn>;
pinctrl-names = "default";
#address-cells = <1>;
#size-cells = <0>;
nand@0 {
reg = <0>;
label = "rk-nand";
nand-bus-width = <8>;
nand-ecc-mode = "hw";
nand-ecc-step-size = <1024>;
nand-ecc-strength = <16>;
nand-is-boot-medium;
rockchip,boot-blks = <8>;
rockchip,boot-ecc-strength = <16>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Samsung S5Pv210 SoC OneNAND Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/samsung,s5pv210-onenand.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "samsung,s5pv210-onenand"
reg — required here #
Array item rules (items) #
Item 1
Control registers
Item 2
OneNAND interface nCE[0]
Item 3
OneNAND interface nCE[1]
clocks — required here #
Maximum number of items (maxItems): 2
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"bus"
Item 2
Exact value (
const):"onenand"
interrupts — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):nand-controller.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/s5pv210.h>
nand-controller@b0600000 {
compatible = "samsung,s5pv210-onenand";
reg = <0xb0600000 0x2000>,
<0xb0000000 0x20000>,
<0xb0040000 0x20000>;
clocks = <&clocks CLK_NANDXL>, <&clocks DOUT_FLASH>;
clock-names = "bus", "onenand";
interrupt-parent = <&vic1>;
interrupts = <31>;
#address-cells = <1>;
#size-cells = <0>;
nand@0 {
reg = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
SPI-NAND flash
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/spi-nand.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):nand-chip.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "spi-nand"
reg — required here #
Encode the chip-select line on the SPI bus
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not 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)
STMicroelectronics SPEAr600 Serial Memory Interface (SMI) Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/st,spear600-smi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Richard Weinberger <richard@nod.at>"
The SPEAr600 Serial Memory Interface (SMI) is a dedicated serial flash controller supporting up to four chip selects for serial NOR flashes connected in parallel. The controller is memory-mapped and the attached flash devices appear in the CPU address space.The driver (drivers/mtd/devices/spear_smi.c) probes the attached flashes dynamically by sending commands (e.g., RDID) to each bank. Flash sub nodes describe the memory range and optional per-flash properties.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "st,spear600-smi"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 1
clock-rate — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Functional clock rate of the SMI controller in Hz.
Properties matching a name pattern (patternProperties) #
^flash@.*$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/mtd/mtd.yaml#
Properties and child nodes (properties) #
reg — required here
Maximum number of items (maxItems): 1
st,smi-fast-mode — not listed as required here
Value type (type): "boolean"
Indicates that the attached flash supports fast read mode.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "reg"
Required in this object (required): "compatible", "reg", "clock-rate", "#address-cells", "#size-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
flash@fc000000 {
compatible = "st,spear600-smi";
#address-cells = <1>;
#size-cells = <1>;
reg = <0xfc000000 0x1000>;
interrupt-parent = <&vic1>;
interrupts = <12>;
clock-rate = <50000000>; /* 50 MHz */
flash@fc000000 {
reg = <0xfc000000 0x1000>;
st,smi-fast-mode;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
STMicroelectronics SPI FSM Serial NOR Flash Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/st,spi-fsm.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Angus Clark <angus.clark@st.com>"
The STMicroelectronics Fast Sequence Mode (FSM) controller is a dedicated hardware accelerator integrated in older STiH4xx/STiDxxx set-top box SoCs (such as STiH407, STiH416, STiD127). It connects directly to a single external serial flash device used as the primary boot device. The FSM executes hard-coded or configurable instruction sequences in hardware, providing low-latency reads suitable for execute-in-place (XIP) boot and high read bandwidth.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "st,spi-fsm"
reg — required here #
Maximum number of items (maxItems): 1
reg-names — required here #
Exact value (const): "spi-fsm"
interrupts — required here #
Maximum number of items (maxItems): 1
st,syscfg — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to the system configuration registers used for boot-device selection.
st,boot-device-reg — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Offset of the boot-device register within the st,syscfg node.
st,boot-device-spi — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Expected boot-device value when booting from this SPI controller.
Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "pinctrl-0"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
spifsm@fe902000 {
compatible = "st,spi-fsm";
reg = <0xfe902000 0x1000>;
reg-names = "spi-fsm";
interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
pinctrl-0 = <&pinctrl_fsm>;
st,syscfg = <&syscfg_rear>;
st,boot-device-reg = <0x958>;
st,boot-device-spi = <0x1a>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
STMicroelectronics Flexible Memory Controller 2 (FMC2)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/st,stm32-fmc2-nand.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Christophe Kerello <christophe.kerello@foss.st.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "st,stm32mp15-fmc2", "st,stm32mp1-fmc2-nfc", "st,stm32mp25-fmc2-nfc"
reg — required here #
Minimum number of items (minItems): 6
Maximum number of items (maxItems): 12
interrupts — required here #
Maximum number of items (maxItems): 1
dmas — not listed as required here #
Array item rules (items) #
Item 1
tx DMA channel
Item 2
rx DMA channel
Item 3
ecc DMA channel
dma-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"tx"
Item 2
Exact value (
const):"rx"
Item 3
Exact value (
const):"ecc"
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
Properties and child nodes (properties) #
nand-ecc-step-size — not listed as required here
Exact value (const): 512
nand-ecc-strength — not listed as required here
Allowed values (enum): 1, 4, 8
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)Exact value (
const):"st,stm32mp15-fmc2"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereArray item rules (
items)Item 1
Registers
Item 2
Chip select 0 data
Item 3
Chip select 0 command
Item 4
Chip select 0 address space
Item 5
Chip select 1 data
Item 6
Chip select 1 command
Item 7
Chip select 1 address space
clocks— required hereMaximum number of items (
maxItems):1
resets— not listed as required hereMaximum number of items (
maxItems):1
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"st,stm32mp1-fmc2-nfc"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereArray item rules (
items)Item 1
Chip select 0 data
Item 2
Chip select 0 command
Item 3
Chip select 0 address space
Item 4
Chip select 1 data
Item 5
Chip select 1 command
Item 6
Chip select 1 address space
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"st,stm32mp25-fmc2-nfc"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereArray item rules (
items)Item 1
Chip select 0 data
Item 2
Chip select 0 command
Item 3
Chip select 0 address space
Item 4
Chip select 1 data
Item 5
Chip select 1 command
Item 6
Chip select 1 address space
Item 7
Chip select 2 data
Item 8
Chip select 2 command
Item 9
Chip select 2 address space
Item 10
Chip select 3 data
Item 11
Chip select 3 command
Item 12
Chip select 3 address space
Required in this object (required): "compatible", "reg", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/stm32mp1-clks.h>
#include <dt-bindings/reset/stm32mp1-resets.h>
nand-controller@58002000 {
compatible = "st,stm32mp15-fmc2";
reg = <0x58002000 0x1000>,
<0x80000000 0x1000>,
<0x88010000 0x1000>,
<0x88020000 0x1000>,
<0x81000000 0x1000>,
<0x89010000 0x1000>,
<0x89020000 0x1000>;
interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
dmas = <&mdma1 20 0x2 0x12000a02 0x0 0x0>,
<&mdma1 20 0x2 0x12000a08 0x0 0x0>,
<&mdma1 21 0x2 0x12000a0a 0x0 0x0>;
dma-names = "tx", "rx", "ecc";
clocks = <&rcc FMC_K>;
resets = <&rcc FMC_R>;
#address-cells = <1>;
#size-cells = <0>;
nand@0 {
reg = <0>;
nand-on-flash-bbt;
#address-cells = <1>;
#size-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Technologic Systems NAND controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/technologic,nand.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nikita Shubin <nikita.shubin@maquefel.me>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):nand-controller.yaml
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"technologic,ts7200-nand"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"technologic,ts7300-nand","technologic,ts7260-nand","technologic,ts7250-nand"Item 2
Exact value (
const):"technologic,ts7200-nand"
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
nand-controller@60000000 {
compatible = "technologic,ts7200-nand";
reg = <0x60000000 0x8000000>;
#address-cells = <1>;
#size-cells = <0>;
nand@0 {
reg = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
HyperBus Memory Controller (HBMC) on TI's K3 family of SoCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/ti,am654-hbmc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Vignesh Raghavendra <vigneshr@ti.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,am654-hbmc"
reg — required here #
Maximum number of items (maxItems): 2
power-domains — not listed as required here #
true — No constraints added by this property rule.
#address-cells — required here #
true — No constraints added by this property rule.
#size-cells — required here #
true — No constraints added by this property rule.
ranges — required here #
true — No constraints added by this property rule.
mux-controls — not listed as required here #
MMIO mux controller node to select b/w OSPI and HBMC.
clocks — required here #
Maximum number of items (maxItems): 1
Properties matching a name pattern (patternProperties) #
^flash@[0-1],[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): mtd-physmap.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "ranges", "clocks", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
bus {
#address-cells = <2>;
#size-cells = <2>;
hbmc: memory-controller@47034000 {
compatible = "ti,am654-hbmc";
reg = <0x0 0x47034000 0x0 0x100>,
<0x5 0x00000000 0x1 0x0000000>;
ranges = <0x0 0x0 0x5 0x00000000 0x4000000>, /* CS0 - 64MB */
<0x1 0x0 0x5 0x04000000 0x4000000>; /* CS1 - 64MB */
clocks = <&k3_clks 102 0>;
#address-cells = <2>;
#size-cells = <1>;
power-domains = <&k3_pds 55>;
mux-controls = <&hbmc_mux 0>;
flash@0,0 {
compatible = "cypress,hyperflash", "cfi-flash";
reg = <0x0 0x0 0x4000000>;
#address-cells = <1>;
#size-cells = <1>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
TI DaVinci NAND controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/ti,davinci-nand.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marcus Folkesson <marcus.folkesson@gmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):nand-controller.yaml
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,davinci-nand", "ti,keystone-nand"
reg — required here #
Array item rules (items) #
Item 1
Access window.
Item 2
AEMIF control registers.
partitions — not listed as required here #
Value type (type): "object"
Required in this object (required): "compatible"
ti,davinci-chipselect — required here #
Number of chipselect. Indicate on the davinci_nand driver which chipselect is used for accessing the nand.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
ti,davinci-mask-ale — not listed as required here #
Mask for ALE. Needed for executing address phase. These offset will be added to the base address for the chip select space the NAND Flash device is connected to.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 8
ti,davinci-mask-cle — not listed as required here #
Mask for CLE. Needed for executing command phase. These offset will be added to the base address for the chip select space the NAND Flash device is connected to.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 16
ti,davinci-mask-chipsel — not listed as required here #
Mask for chipselect address. Needed to mask addresses for given chipselect.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 0
ti,davinci-ecc-bits — not listed as required here #
Used ECC bits.
ti,davinci-ecc-mode — not listed as required here #
Operation mode of the NAND ECC mode.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "none", "soft", "hw", "on-die"
Deprecated (deprecated): true
ti,davinci-nand-buswidth — not listed as required here #
Bus width to the NAND chip.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 8
Deprecated (deprecated): true
ti,davinci-nand-use-bbt — not listed as required here #
Value type (type): "boolean"
Use flash based bad block table support. OOB identifier is saved in OOB area.
Deprecated (deprecated): true
Required in this object (required): "compatible", "reg", "ti,davinci-chipselect"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
bus {
#address-cells = <2>;
#size-cells = <1>;
nand-controller@2000000,0 {
compatible = "ti,davinci-nand";
#address-cells = <1>;
#size-cells = <0>;
reg = <0 0x02000000 0x02000000>,
<1 0x00000000 0x00008000>;
ti,davinci-chipselect = <1>;
ti,davinci-mask-ale = <0>;
ti,davinci-mask-cle = <0>;
ti,davinci-mask-chipsel = <0>;
ti,davinci-nand-buswidth = <16>;
ti,davinci-ecc-mode = "hw";
ti,davinci-ecc-bits = <4>;
ti,davinci-nand-use-bbt;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot env";
reg = <0 0x020000>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Texas Instruments Error Location Module (ELM).
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/ti,elm.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Roger Quadros <rogerq@kernel.org>"
ELM module is used together with GPMC and NAND Flash to detect errors and the location of the error based on BCH algorithms so they can be corrected if possible.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,am3352-elm", "ti,am64-elm"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
Functional clock.
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"fck"
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
ti,hwmods — not listed as required here #
Name of the HWMOD associated with ELM. This is for legacy platforms only.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Deprecated (deprecated): true
Required in this object (required): "compatible", "reg", "interrupts"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ti,am64-elm"When the condition matches (
then) #Required in this object (
required):"clocks","clock-names","power-domains"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
elm: ecc@0 {
compatible = "ti,am3352-elm";
reg = <0x0 0x2000>;
interrupts = <4>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Texas Instruments GPMC NAND Flash controller.
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/ti,gpmc-nand.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Tony Lindgren <tony@atomide.com>", "Roger Quadros <rogerq@kernel.org>"
GPMC NAND controller/Flash is represented as a child of the GPMC controller node.
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Array item rules (items) #
Item 1
Interrupt for fifoevent
Item 2
Interrupt for termcount
#address-cells — not listed as required here #
true — No constraints added by this property rule.
#size-cells — not listed as required here #
true — No constraints added by this property rule.
ti,nand-ecc-opt — required here #
Desired ECC algorithm
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "sw", "ham1", "bch4", "bch8", "bch16"
ti,nand-xfer-type — not listed as required here #
Data transfer method between controller and chip.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "prefetch-polled", "polled", "prefetch-dma", "prefetch-irq"
Default value (default): "prefetch-polled"
ti,elm-id — not listed as required here #
phandle to the ELM (Error Location Module).
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
nand-bus-width — not listed as required here #
Bus width to the NAND chip
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 8
rb-gpios — not listed as required here #
GPIO connection to R/B signal from NAND chip
Maximum number of items (maxItems): 1
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/memory-controllers/ti,gpmc-child.yaml
Rule 2 #
Shared schema rule (
$ref):mtd.yaml#
Required in this object (required): "compatible", "reg", "ti,nand-ecc-opt"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/gpio/gpio.h>
gpmc: memory-controller@50000000 {
compatible = "ti,am3352-gpmc";
dmas = <&edma 52 0>;
dma-names = "rxtx";
clocks = <&l3s_gclk>;
clock-names = "fck";
reg = <0x50000000 0x2000>;
interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
gpmc,num-cs = <7>;
gpmc,num-waitpins = <2>;
#address-cells = <2>;
#size-cells = <1>;
interrupt-controller;
#interrupt-cells = <2>;
gpio-controller;
#gpio-cells = <2>;
ranges = <0 0 0x08000000 0x01000000>; /* CS0 space. Min partition = 16MB */
nand@0,0 {
compatible = "ti,omap2-nand";
reg = <0 0 4>; /* device IO registers */
interrupt-parent = <&gpmc>;
interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
<1 IRQ_TYPE_NONE>; /* termcount */
ti,nand-xfer-type = "prefetch-dma";
ti,nand-ecc-opt = "bch16";
ti,elm-id = <&elm>;
#address-cells = <1>;
#size-cells = <1>;
/* NAND generic properties */
nand-bus-width = <8>;
rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
/* GPMC properties*/
gpmc,device-width = <1>;
partition@0 {
label = "NAND.SPL";
reg = <0x00000000 0x00040000>;
};
partition@1 {
label = "NAND.SPL.backup1";
reg = <0x00040000 0x00040000>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
OneNAND over Texas Instruments GPMC bus.
Peios Kernel / Hardware and drivers / Device-tree binding reference / Mtd bindings
Schema identifier ($id): "http://devicetree.org/schemas/mtd/ti,gpmc-onenand.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Tony Lindgren <tony@atomide.com>", "Roger Quadros <rogerq@kernel.org>"
GPMC connected OneNAND (found on OMAP boards) are represented as child nodes of the GPMC controller.
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^onenand@[0-9],[0,9]$"
compatible — required here #
Exact value (const): "ti,omap2-onenand"
reg — required here #
Array item rules (items) #
Item 1
Chip Select number, register offset and size of OneNAND register window.
#address-cells — required here #
true — No constraints added by this property rule.
#size-cells — required here #
true — No constraints added by this property rule.
int-gpios — not listed as required here #
GPIO specifier for the INT pin.
Properties matching a name pattern (patternProperties) #
@[0-9a-f]+$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/mtd/partitions/partition.yaml#/$defs/partition-node
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/memory-controllers/ti,gpmc-child.yaml
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
gpmc: memory-controller@6e000000 {
compatible = "ti,omap3430-gpmc";
reg = <0x6e000000 0x02d0>;
interrupts = <20>;
gpmc,num-cs = <8>;
gpmc,num-waitpins = <4>;
clocks = <&l3s_clkctrl>;
clock-names = "fck";
#address-cells = <2>;
#size-cells = <1>;
ranges = <0 0 0x01000000 0x01000000>, /* 16 MB for OneNAND */
<1 0 0x02000000 0x01000000>; /* 16 MB for smc91c96 */
onenand@0,0 {
compatible = "ti,omap2-onenand";
reg = <0 0 0x20000>; /* CS0, offset 0, IO size 128K */
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "bootloader";
reg = <0x00000000 0x00100000>;
};
partition@100000 {
label = "config";
reg = <0x00100000 0x002c0000>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)