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 const: st,stm32mp1-fmc2-ebi 27 28 reg: 29 maxItems: 1 30 31 clocks: 32 maxItems: 1 33 34 resets: 35 maxItems: 1 36 37 "#address-cells": 38 const: 2 39 40 "#size-cells": 41 const: 1 42 43 ranges: 44 description: | 45 Reflects the memory layout with four integer values per bank. Format: 46 <bank-number> 0 <address of the bank> <size> 47 48patternProperties: 49 "^.*@[0-4],[a-f0-9]+$": 50 type: object 51 $ref: mc-peripheral-props.yaml# 52 53required: 54 - "#address-cells" 55 - "#size-cells" 56 - compatible 57 - reg 58 - clocks 59 - ranges 60 61additionalProperties: false 62 63examples: 64 - | 65 #include <dt-bindings/interrupt-controller/arm-gic.h> 66 #include <dt-bindings/clock/stm32mp1-clks.h> 67 #include <dt-bindings/reset/stm32mp1-resets.h> 68 memory-controller@58002000 { 69 #address-cells = <2>; 70 #size-cells = <1>; 71 compatible = "st,stm32mp1-fmc2-ebi"; 72 reg = <0x58002000 0x1000>; 73 clocks = <&rcc FMC_K>; 74 resets = <&rcc FMC_R>; 75 76 ranges = <0 0 0x60000000 0x04000000>, /* EBI CS 1 */ 77 <1 0 0x64000000 0x04000000>, /* EBI CS 2 */ 78 <2 0 0x68000000 0x04000000>, /* EBI CS 3 */ 79 <3 0 0x6c000000 0x04000000>, /* EBI CS 4 */ 80 <4 0 0x80000000 0x10000000>; /* NAND */ 81 82 psram@0,0 { 83 compatible = "mtd-ram"; 84 reg = <0 0x00000000 0x100000>; 85 bank-width = <2>; 86 87 st,fmc2-ebi-cs-transaction-type = <1>; 88 st,fmc2-ebi-cs-address-setup-ns = <60>; 89 st,fmc2-ebi-cs-data-setup-ns = <30>; 90 st,fmc2-ebi-cs-bus-turnaround-ns = <5>; 91 }; 92 93 nand-controller@4,0 { 94 #address-cells = <1>; 95 #size-cells = <0>; 96 compatible = "st,stm32mp1-fmc2-nfc"; 97 reg = <4 0x00000000 0x1000>, 98 <4 0x08010000 0x1000>, 99 <4 0x08020000 0x1000>, 100 <4 0x01000000 0x1000>, 101 <4 0x09010000 0x1000>, 102 <4 0x09020000 0x1000>; 103 interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>; 104 dmas = <&mdma1 20 0x2 0x12000a02 0x0 0x0>, 105 <&mdma1 20 0x2 0x12000a08 0x0 0x0>, 106 <&mdma1 21 0x2 0x12000a0a 0x0 0x0>; 107 dma-names = "tx", "rx", "ecc"; 108 109 nand@0 { 110 reg = <0>; 111 nand-on-flash-bbt; 112 #address-cells = <1>; 113 #size-cells = <1>; 114 }; 115 }; 116 }; 117 118... 119