brintos

brintos / linux-shallow public Read only

0
0
Text · 3.8 KiB · b8ef9ba Raw
159 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/mtd/st,stm32-fmc2-nand.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: STMicroelectronics Flexible Memory Controller 2 (FMC2)8 9maintainers:10  - Christophe Kerello <christophe.kerello@foss.st.com>11 12properties:13  compatible:14    enum:15      - st,stm32mp15-fmc216      - st,stm32mp1-fmc2-nfc17      - st,stm32mp25-fmc2-nfc18 19  reg:20    minItems: 621    maxItems: 1222 23  interrupts:24    maxItems: 125 26  dmas:27    items:28      - description: tx DMA channel29      - description: rx DMA channel30      - description: ecc DMA channel31 32  dma-names:33    items:34      - const: tx35      - const: rx36      - const: ecc37 38patternProperties:39  "^nand@[a-f0-9]$":40    type: object41    $ref: raw-nand-chip.yaml42    properties:43      nand-ecc-step-size:44        const: 51245 46      nand-ecc-strength:47        enum: [1, 4, 8]48 49    unevaluatedProperties: false50 51allOf:52  - $ref: nand-controller.yaml#53 54  - if:55      properties:56        compatible:57          contains:58            const: st,stm32mp15-fmc259    then:60      properties:61        reg:62          items:63            - description: Registers64            - description: Chip select 0 data65            - description: Chip select 0 command66            - description: Chip select 0 address space67            - description: Chip select 1 data68            - description: Chip select 1 command69            - description: Chip select 1 address space70 71        clocks:72          maxItems: 173 74        resets:75          maxItems: 176 77      required:78        - clocks79 80  - if:81      properties:82        compatible:83          contains:84            const: st,stm32mp1-fmc2-nfc85    then:86      properties:87        reg:88          items:89            - description: Chip select 0 data90            - description: Chip select 0 command91            - description: Chip select 0 address space92            - description: Chip select 1 data93            - description: Chip select 1 command94            - description: Chip select 1 address space95 96  - if:97      properties:98        compatible:99          contains:100            const: st,stm32mp25-fmc2-nfc101    then:102      properties:103        reg:104          items:105            - description: Chip select 0 data106            - description: Chip select 0 command107            - description: Chip select 0 address space108            - description: Chip select 1 data109            - description: Chip select 1 command110            - description: Chip select 1 address space111            - description: Chip select 2 data112            - description: Chip select 2 command113            - description: Chip select 2 address space114            - description: Chip select 3 data115            - description: Chip select 3 command116            - description: Chip select 3 address space117 118required:119  - compatible120  - reg121  - interrupts122 123unevaluatedProperties: false124 125examples:126  - |127    #include <dt-bindings/interrupt-controller/arm-gic.h>128    #include <dt-bindings/clock/stm32mp1-clks.h>129    #include <dt-bindings/reset/stm32mp1-resets.h>130 131    nand-controller@58002000 {132        compatible = "st,stm32mp15-fmc2";133        reg = <0x58002000 0x1000>,134              <0x80000000 0x1000>,135              <0x88010000 0x1000>,136              <0x88020000 0x1000>,137              <0x81000000 0x1000>,138              <0x89010000 0x1000>,139              <0x89020000 0x1000>;140        interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;141        dmas = <&mdma1 20 0x2 0x12000a02 0x0 0x0>,142               <&mdma1 20 0x2 0x12000a08 0x0 0x0>,143               <&mdma1 21 0x2 0x12000a0a 0x0 0x0>;144        dma-names = "tx", "rx", "ecc";145        clocks = <&rcc FMC_K>;146        resets = <&rcc FMC_R>;147        #address-cells = <1>;148        #size-cells = <0>;149 150        nand@0 {151            reg = <0>;152            nand-on-flash-bbt;153            #address-cells = <1>;154            #size-cells = <1>;155        };156    };157 158...159