Allwinner A10 NAND Controller

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): 0

Maximum 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 here

Rule 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 here

Maximum number of items (maxItems): 2

clock-names — not listed as required here

Maximum number of items (maxItems): 2

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule 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 here

Minimum number of items (minItems): 4

clock-names — not listed as required here

Minimum 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

Edit this page