Marvell NAND Flash Controller (NFC)
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)