1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/mtd/st,stm32-fmc2-nand.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: STMicroelectronics Flexible Memory Controller 2 (FMC2)
10 - Christophe Kerello <christophe.kerello@foss.st.com>
16 - st,stm32mp1-fmc2-nfc
17 - st,stm32mp25-fmc2-nfc
28 - description: tx DMA channel
29 - description: rx DMA channel
30 - description: ecc DMA channel
41 $ref: raw-nand-chip.yaml
49 unevaluatedProperties: false
52 - $ref: nand-controller.yaml#
58 const: st,stm32mp15-fmc2
63 - description: Registers
64 - description: Chip select 0 data
65 - description: Chip select 0 command
66 - description: Chip select 0 address space
67 - description: Chip select 1 data
68 - description: Chip select 1 command
69 - description: Chip select 1 address space
84 const: st,stm32mp1-fmc2-nfc
89 - description: Chip select 0 data
90 - description: Chip select 0 command
91 - description: Chip select 0 address space
92 - description: Chip select 1 data
93 - description: Chip select 1 command
94 - description: Chip select 1 address space
100 const: st,stm32mp25-fmc2-nfc
105 - description: Chip select 0 data
106 - description: Chip select 0 command
107 - description: Chip select 0 address space
108 - description: Chip select 1 data
109 - description: Chip select 1 command
110 - description: Chip select 1 address space
111 - description: Chip select 2 data
112 - description: Chip select 2 command
113 - description: Chip select 2 address space
114 - description: Chip select 3 data
115 - description: Chip select 3 command
116 - description: Chip select 3 address space
123 unevaluatedProperties: false
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>
131 nand-controller@58002000 {
132 compatible = "st,stm32mp15-fmc2";
133 reg = <0x58002000 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>;
153 #address-cells = <1>;