Nuvoton MA35D1 NAND Flash Interface (NFI) Controller

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)

Edit this page