1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/memory-controllers/st,stm32-fmc2-ebi.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: STMicroelectronics Flexible Memory Controller 2 (FMC2) 8 9description: | 10 The FMC2 functional block makes the interface with: synchronous and 11 asynchronous static devices (such as PSNOR, PSRAM or other memory-mapped 12 peripherals) and NAND flash memories. 13 Its main purposes are: 14 - to translate AXI transactions into the appropriate external device 15 protocol 16 - to meet the access time requirements of the external devices 17 All external devices share the addresses, data and control signals with the 18 controller. Each external device is accessed by means of a unique Chip 19 Select. The FMC2 performs only one access at a time to an external device. 20 21maintainers: 22 - Christophe Kerello <christophe.kerello@foss.st.com> 23 24properties: 25 compatible: 26 enum: 27 - st,stm32mp1-fmc2-ebi 28 - st,stm32mp25-fmc2-ebi 29 30 reg: 31 maxItems: 1 32 33 clocks: 34 maxItems: 1 35 36 resets: 37 maxItems: 1 38 39 power-domains: 40 maxItems: 1 41 42 "#address-cells": 43 const: 2 44 45 "#size-cells": 46 const: 1 47 48 ranges: 49 description: | 50 Reflects the memory layout with four integer values per bank. Format: 51 <bank-number> 0 <address of the bank> <size> 52 53patternProperties: 54 "^.*@[0-4],[a-f0-9]+$": 55 additionalProperties: true 56 type: object 57 $ref: mc-peripheral-props.yaml# 58 59required: 60 - "#address-cells" 61 - "#size-cells" 62 - compatible 63 - reg 64 - clocks 65 - ranges 66 67additionalProperties: false 68 69examples: 70 - | 71 #include <dt-bindings/interrupt-controller/arm-gic.h> 72 #include <dt-bindings/clock/stm32mp1-clks.h> 73 #include <dt-bindings/reset/stm32mp1-resets.h> 74 memory-controller@58002000 { 75 #address-cells = <2>; 76 #size-cells = <1>; 77 compatible = "st,stm32mp1-fmc2-ebi"; 78 reg = <0x58002000 0x1000>; 79 clocks = <&rcc FMC_K>; 80 resets = <&rcc FMC_R>; 81 82 ranges = <0 0 0x60000000 0x04000000>, /* EBI CS 1 */ 83 <1 0 0x64000000 0x04000000>, /* EBI CS 2 */ 84 <2 0 0x68000000 0x04000000>, /* EBI CS 3 */ 85 <3 0 0x6c000000 0x04000000>, /* EBI CS 4 */ 86 <4 0 0x80000000 0x10000000>; /* NAND */ 87 88 psram@0,0 { 89 compatible = "mtd-ram"; 90 reg = <0 0x00000000 0x100000>; 91 bank-width = <2>; 92 93 st,fmc2-ebi-cs-transaction-type = <1>; 94 st,fmc2-ebi-cs-address-setup-ns = <60>; 95 st,fmc2-ebi-cs-data-setup-ns = <30>; 96 st,fmc2-ebi-cs-bus-turnaround-ns = <5>; 97 }; 98 99 nand-controller@4,0 { 100 #address-cells = <1>; 101 #size-cells = <0>; 102 compatible = "st,stm32mp1-fmc2-nfc"; 103 reg = <4 0x00000000 0x1000>, 104 <4 0x08010000 0x1000>, 105 <4 0x08020000 0x1000>, 106 <4 0x01000000 0x1000>, 107 <4 0x09010000 0x1000>, 108 <4 0x09020000 0x1000>; 109 interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>; 110 dmas = <&mdma1 20 0x2 0x12000a02 0x0 0x0>, 111 <&mdma1 20 0x2 0x12000a08 0x0 0x0>, 112 <&mdma1 21 0x2 0x12000a0a 0x0 0x0>; 113 dma-names = "tx", "rx", "ecc"; 114 115 nand@0 { 116 reg = <0>; 117 nand-on-flash-bbt; 118 #address-cells = <1>; 119 #size-cells = <1>; 120 }; 121 }; 122 }; 123 124... 125