Denali NAND controller

Schema identifier ($id): "http://devicetree.org/schemas/mtd/denali,nand.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Masahiro Yamada <yamada.masahiro@socionext.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "altr,socfpga-denali-nand", "socionext,uniphier-denali-nand-v5a", "socionext,uniphier-denali-nand-v5b"

reg-names — not listed as required here #

There are two register regions:
  nand_data:  host data/command interface
  denali_reg: register interface

Array item rules (items) #

Item 1

Exact value (const): "nand_data"

Item 2

Exact value (const): "denali_reg"

reg — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

interrupts — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

There are three clocks:
  nand:   controller core clock
  nand_x: bus interface clock
  ecc:    ECC circuit clock

Array item rules (items) #

Item 1

Exact value (const): "nand"

Item 2

Exact value (const): "nand_x"

Item 3

Exact value (const): "ecc"

clocks — required here #

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

reset-names — not listed as required here #

There are two optional resets:
  nand: controller core reset
  reg:  register reset

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "nand"

Item 2

Exact value (const): "reg"

Rule 2

Exact value (const): "nand"

Rule 3

Exact value (const): "reg"

resets — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

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

Exact value (const): "altr,socfpga-denali-nand"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^nand@[a-f0-9]$ — name matches this regular expression

Properties and child nodes (properties)

nand-ecc-strength — not listed as required here

Allowed values (enum): 8, 15

nand-ecc-step-size — not listed as required here

Allowed values (enum): 512

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "socionext,uniphier-denali-nand-v5a"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^nand@[a-f0-9]$ — name matches this regular expression

Properties and child nodes (properties)

nand-ecc-strength — not listed as required here

Allowed values (enum): 8, 16, 24

nand-ecc-step-size — not listed as required here

Allowed values (enum): 1024

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "socionext,uniphier-denali-nand-v5b"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^nand@[a-f0-9]$ — name matches this regular expression

Properties and child nodes (properties)

nand-ecc-strength — not listed as required here

Allowed values (enum): 8, 16

nand-ecc-step-size — not listed as required here

Allowed values (enum): 1024

Required in this object (required): "compatible", "reg", "interrupts", "clock-names", "clocks"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

nand-controller@ff900000 {
    compatible = "altr,socfpga-denali-nand";
    reg-names = "nand_data", "denali_reg";
    reg = <0xff900000 0x20>, <0xffb80000 0x1000>;
    interrupts = <0 144 4>;
    clock-names = "nand", "nand_x", "ecc";
    clocks = <&nand_clk>, <&nand_x_clk>, <&nand_ecc_clk>;
    reset-names = "nand", "reg";
    resets = <&nand_rst>, <&nand_reg_rst>;
    #address-cells = <1>;
    #size-cells = <0>;

    nand@0 {
        reg = <0>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Edit this page