FSL/NXP Integrated Flash Controller
Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/fsl/fsl,ifc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>"
NXP's integrated flash controller (IFC) is an advanced version of the enhanced local bus controller which includes similar programming and signal interfaces with an extended feature set. The IFC provides access to multiple external memory types, such as NAND flash (SLC and MLC), NOR flash, EPROM, SRAM and other memories where address and data are shared on a bus.
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^memory-controller@[0-9a-f]+$"
compatible — required here #
Exact value (const): "fsl,ifc"
#address-cells — not listed as required here #
Should be either two or three. The first cell is the chipselect number, and the remaining cells are the offset into the chipselect.
#size-cells — not listed as required here #
Either one or two, depending on how large each chipselect can be.
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
IFC may have one or two interrupts. If two interrupt specifiers are present, the first is the "common" interrupt (CM_EVTER_STAT), and the second is the NAND interrupt (NAND_EVTER_STAT). If there is only one, that interrupt reports both types of event.
little-endian — not listed as required here #
Value type (type): "boolean"
If this property is absent, the big-endian mode will be in use as default for registers.
ranges — not listed as required here #
Each range corresponds to a single chipselect, and covers the entire access window as configured.
Properties matching a name pattern (patternProperties) #
^nand@[a-f0-9]+(,[a-f0-9]+)+$ — name matches this regular expression #
Value type (type): "object"
Properties and child nodes (properties) #
compatible — required here
Exact value (const): "fsl,ifc-nand"
reg — required here
Maximum number of items (maxItems): 1
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 1
Properties matching a name pattern (patternProperties) #
^partition@[0-9a-f]+ — name matches this regular expression
Shared schema rule ($ref): /schemas/mtd/partitions/partition.yaml#
Deprecated (deprecated): true
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
(flash|fpga|board-control|cpld)@[a-f0-9]+(,[a-f0-9]+)+$ — name matches this regular expression #
Value type (type): "object"
Exactly one of these rules must match (oneOf) #
Rule 1
Shared schema rule (
$ref):/schemas/board/fsl,fpga-qixis.yaml#
Rule 2
Shared schema rule (
$ref):/schemas/mtd/mtd-physmap.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
soc {
#address-cells = <2>;
#size-cells = <2>;
memory-controller@ffe1e000 {
compatible = "fsl,ifc";
#address-cells = <2>;
#size-cells = <1>;
reg = <0x0 0xffe1e000 0 0x2000>;
interrupts = <16 2 19 2>;
little-endian;
/* NOR, NAND Flashes and CPLD on board */
ranges = <0x0 0x0 0x0 0xee000000 0x02000000>,
<0x1 0x0 0x0 0xffa00000 0x00010000>,
<0x3 0x0 0x0 0xffb00000 0x00020000>;
flash@0,0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "cfi-flash";
reg = <0x0 0x0 0x2000000>;
bank-width = <2>;
device-width = <1>;
partition@0 {
/* 32MB for user data */
reg = <0x0 0x02000000>;
label = "NOR Data";
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)