1 # SPDX-License-Identifier: (GPL-2.0-only OR BS 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/mtd/st,stm3 4 $id: http://devicetree.org/schemas/mtd/st,stm32-fmc2-nand.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: STMicroelectronics Flexible Memory Cont !! 7 title: STMicroelectronics Flexible Memory Controller 2 (FMC2) Bindings 8 8 9 maintainers: 9 maintainers: 10 - Christophe Kerello <christophe.kerello@foss !! 10 - Christophe Kerello <christophe.kerello@st.com> >> 11 >> 12 allOf: >> 13 - $ref: "nand-controller.yaml#" 11 14 12 properties: 15 properties: 13 compatible: 16 compatible: 14 enum: !! 17 const: st,stm32mp15-fmc2 15 - st,stm32mp15-fmc2 << 16 - st,stm32mp1-fmc2-nfc << 17 - st,stm32mp25-fmc2-nfc << 18 18 19 reg: 19 reg: 20 minItems: 6 !! 20 items: 21 maxItems: 12 !! 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 22 28 23 interrupts: 29 interrupts: 24 maxItems: 1 30 maxItems: 1 25 31 >> 32 clocks: >> 33 maxItems: 1 >> 34 >> 35 resets: >> 36 maxItems: 1 >> 37 26 dmas: 38 dmas: 27 items: 39 items: 28 - description: tx DMA channel 40 - description: tx DMA channel 29 - description: rx DMA channel 41 - description: rx DMA channel 30 - description: ecc DMA channel 42 - description: ecc DMA channel 31 43 32 dma-names: 44 dma-names: 33 items: 45 items: 34 - const: tx 46 - const: tx 35 - const: rx 47 - const: rx 36 - const: ecc 48 - const: ecc 37 49 38 patternProperties: 50 patternProperties: 39 "^nand@[a-f0-9]$": 51 "^nand@[a-f0-9]$": 40 type: object 52 type: object 41 $ref: raw-nand-chip.yaml << 42 properties: 53 properties: 43 nand-ecc-step-size: 54 nand-ecc-step-size: 44 const: 512 55 const: 512 45 56 46 nand-ecc-strength: 57 nand-ecc-strength: 47 enum: [1, 4, 8] !! 58 enum: [1, 4 ,8 ] 48 << 49 unevaluatedProperties: false << 50 << 51 allOf: << 52 - $ref: nand-controller.yaml# << 53 << 54 - if: << 55 properties: << 56 compatible: << 57 contains: << 58 const: st,stm32mp15-fmc2 << 59 then: << 60 properties: << 61 reg: << 62 items: << 63 - description: Registers << 64 - description: Chip select 0 data << 65 - description: Chip select 0 comma << 66 - description: Chip select 0 addre << 67 - description: Chip select 1 data << 68 - description: Chip select 1 comma << 69 - description: Chip select 1 addre << 70 << 71 clocks: << 72 maxItems: 1 << 73 << 74 resets: << 75 maxItems: 1 << 76 << 77 required: << 78 - clocks << 79 << 80 - if: << 81 properties: << 82 compatible: << 83 contains: << 84 const: st,stm32mp1-fmc2-nfc << 85 then: << 86 properties: << 87 reg: << 88 items: << 89 - description: Chip select 0 data << 90 - description: Chip select 0 comma << 91 - description: Chip select 0 addre << 92 - description: Chip select 1 data << 93 - description: Chip select 1 comma << 94 - description: Chip select 1 addre << 95 << 96 - if: << 97 properties: << 98 compatible: << 99 contains: << 100 const: st,stm32mp25-fmc2-nfc << 101 then: << 102 properties: << 103 reg: << 104 items: << 105 - description: Chip select 0 data << 106 - description: Chip select 0 comma << 107 - description: Chip select 0 addre << 108 - description: Chip select 1 data << 109 - description: Chip select 1 comma << 110 - description: Chip select 1 addre << 111 - description: Chip select 2 data << 112 - description: Chip select 2 comma << 113 - description: Chip select 2 addre << 114 - description: Chip select 3 data << 115 - description: Chip select 3 comma << 116 - description: Chip select 3 addre << 117 59 118 required: 60 required: 119 - compatible 61 - compatible 120 - reg 62 - reg 121 - interrupts 63 - interrupts 122 !! 64 - clocks 123 unevaluatedProperties: false << 124 65 125 examples: 66 examples: 126 - | 67 - | 127 #include <dt-bindings/interrupt-controller 68 #include <dt-bindings/interrupt-controller/arm-gic.h> 128 #include <dt-bindings/clock/stm32mp1-clks. 69 #include <dt-bindings/clock/stm32mp1-clks.h> 129 #include <dt-bindings/reset/stm32mp1-reset 70 #include <dt-bindings/reset/stm32mp1-resets.h> 130 << 131 nand-controller@58002000 { 71 nand-controller@58002000 { 132 compatible = "st,stm32mp15-fmc2"; !! 72 compatible = "st,stm32mp15-fmc2"; 133 reg = <0x58002000 0x1000>, !! 73 reg = <0x58002000 0x1000>, 134 <0x80000000 0x1000>, !! 74 <0x80000000 0x1000>, 135 <0x88010000 0x1000>, !! 75 <0x88010000 0x1000>, 136 <0x88020000 0x1000>, !! 76 <0x88020000 0x1000>, 137 <0x81000000 0x1000>, !! 77 <0x81000000 0x1000>, 138 <0x89010000 0x1000>, !! 78 <0x89010000 0x1000>, 139 <0x89020000 0x1000>; !! 79 <0x89020000 0x1000>; 140 interrupts = <GIC_SPI 48 IRQ_TYPE_LEVE !! 80 interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>; 141 dmas = <&mdma1 20 0x2 0x12000a02 0x0 0 !! 81 dmas = <&mdma1 20 0x10 0x12000a02 0x0 0x0>, 142 <&mdma1 20 0x2 0x12000a08 0x0 0 !! 82 <&mdma1 20 0x10 0x12000a08 0x0 0x0>, 143 <&mdma1 21 0x2 0x12000a0a 0x0 0 !! 83 <&mdma1 21 0x10 0x12000a0a 0x0 0x0>; 144 dma-names = "tx", "rx", "ecc"; !! 84 dma-names = "tx", "rx", "ecc"; 145 clocks = <&rcc FMC_K>; !! 85 clocks = <&rcc FMC_K>; 146 resets = <&rcc FMC_R>; !! 86 resets = <&rcc FMC_R>; >> 87 #address-cells = <1>; >> 88 #size-cells = <0>; >> 89 >> 90 nand@0 { >> 91 reg = <0>; >> 92 nand-on-flash-bbt; 147 #address-cells = <1>; 93 #address-cells = <1>; 148 #size-cells = <0>; !! 94 #size-cells = <1>; 149 !! 95 }; 150 nand@0 { << 151 reg = <0>; << 152 nand-on-flash-bbt; << 153 #address-cells = <1>; << 154 #size-cells = <1>; << 155 }; << 156 }; 96 }; 157 97 158 ... 98 ...
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.