STMicroelectronics Flexible Memory Controller 2 (FMC2)

Schema identifier ($id): "http://devicetree.org/schemas/mtd/st,stm32-fmc2-nand.yaml#"

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

Maintainers (maintainers): "Christophe Kerello <christophe.kerello@foss.st.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "st,stm32mp15-fmc2", "st,stm32mp1-fmc2-nfc", "st,stm32mp25-fmc2-nfc"

reg — required here #

Minimum number of items (minItems): 6

Maximum number of items (maxItems): 12

interrupts — required here #

Maximum number of items (maxItems): 1

dmas — not listed as required here #

Array item rules (items) #

Item 1

tx DMA channel

Item 2

rx DMA channel

Item 3

ecc DMA channel

dma-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

Item 3

Exact value (const): "ecc"

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

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

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): "st,stm32mp15-fmc2"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Array item rules (items)

Item 1

Registers

Item 2

Chip select 0 data

Item 3

Chip select 0 command

Item 4

Chip select 0 address space

Item 5

Chip select 1 data

Item 6

Chip select 1 command

Item 7

Chip select 1 address space

clocks — required here

Maximum number of items (maxItems): 1

resets — not listed as required here

Maximum number of items (maxItems): 1

Required in this object (required): "clocks"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "st,stm32mp1-fmc2-nfc"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Array item rules (items)

Item 1

Chip select 0 data

Item 2

Chip select 0 command

Item 3

Chip select 0 address space

Item 4

Chip select 1 data

Item 5

Chip select 1 command

Item 6

Chip select 1 address space

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "st,stm32mp25-fmc2-nfc"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Array item rules (items)

Item 1

Chip select 0 data

Item 2

Chip select 0 command

Item 3

Chip select 0 address space

Item 4

Chip select 1 data

Item 5

Chip select 1 command

Item 6

Chip select 1 address space

Item 7

Chip select 2 data

Item 8

Chip select 2 command

Item 9

Chip select 2 address space

Item 10

Chip select 3 data

Item 11

Chip select 3 command

Item 12

Chip select 3 address space

Required in this object (required): "compatible", "reg", "interrupts"

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/stm32mp1-clks.h>
#include <dt-bindings/reset/stm32mp1-resets.h>

nand-controller@58002000 {
    compatible = "st,stm32mp15-fmc2";
    reg = <0x58002000 0x1000>,
          <0x80000000 0x1000>,
          <0x88010000 0x1000>,
          <0x88020000 0x1000>,
          <0x81000000 0x1000>,
          <0x89010000 0x1000>,
          <0x89020000 0x1000>;
    interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
    dmas = <&mdma1 20 0x2 0x12000a02 0x0 0x0>,
           <&mdma1 20 0x2 0x12000a08 0x0 0x0>,
           <&mdma1 21 0x2 0x12000a0a 0x0 0x0>;
    dma-names = "tx", "rx", "ecc";
    clocks = <&rcc FMC_K>;
    resets = <&rcc FMC_R>;
    #address-cells = <1>;
    #size-cells = <0>;

    nand@0 {
        reg = <0>;
        nand-on-flash-bbt;
        #address-cells = <1>;
        #size-cells = <1>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page