Freescale's NAND flash controller (NFC)
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)