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) Bindings
10 - Christophe Kerello <christophe.kerello@st.com>
13 - $ref: "nand-controller.yaml#"
17 const: st,stm32mp15-fmc2
21 - description: Registers
22 - description: Chip select 0 data
23 - description: Chip select 0 command
24 - description: Chip select 0 address space
25 - description: Chip select 1 data
26 - description: Chip select 1 command
27 - description: Chip select 1 address space
40 - description: tx DMA channel
41 - description: rx DMA channel
42 - description: ecc DMA channel
68 #include <dt-bindings/interrupt-controller/arm-gic.h>
69 #include <dt-bindings/clock/stm32mp1-clks.h>
70 #include <dt-bindings/reset/stm32mp1-resets.h>
71 nand-controller@58002000 {
72 compatible = "st,stm32mp15-fmc2";
73 reg = <0x58002000 0x1000>,
80 interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
81 dmas = <&mdma1 20 0x10 0x12000a02 0x0 0x0>,
82 <&mdma1 20 0x10 0x12000a08 0x0 0x0>,
83 <&mdma1 21 0x10 0x12000a0a 0x0 0x0>;
84 dma-names = "tx", "rx", "ecc";
85 clocks = <&rcc FMC_K>;
86 resets = <&rcc FMC_R>;