18c2ecf20Sopenharmony_ci* Aspeed Firmware Memory controller
28c2ecf20Sopenharmony_ci* Aspeed SPI Flash Memory Controller
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ciThe Firmware Memory Controller in the Aspeed AST2500 SoC supports
58c2ecf20Sopenharmony_cithree chip selects, two of which are always of SPI type and the third
68c2ecf20Sopenharmony_cican be SPI or NOR type flash. These bindings only describe SPI.
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ciThe two SPI flash memory controllers in the AST2500 each support two
98c2ecf20Sopenharmony_cichip selects.
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ciRequired properties:
128c2ecf20Sopenharmony_ci  - compatible : Should be one of
138c2ecf20Sopenharmony_ci	"aspeed,ast2400-fmc" for the AST2400 Firmware Memory Controller
148c2ecf20Sopenharmony_ci	"aspeed,ast2400-spi" for the AST2400 SPI Flash memory Controller
158c2ecf20Sopenharmony_ci	"aspeed,ast2500-fmc" for the AST2500 Firmware Memory Controller
168c2ecf20Sopenharmony_ci	"aspeed,ast2500-spi" for the AST2500 SPI flash memory controllers
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci  - reg : the first contains the control register location and length,
198c2ecf20Sopenharmony_ci          the second contains the memory window mapping address and length
208c2ecf20Sopenharmony_ci  - #address-cells : must be 1 corresponding to chip select child binding
218c2ecf20Sopenharmony_ci  - #size-cells : must be 0 corresponding to chip select child binding
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciOptional properties:
248c2ecf20Sopenharmony_ci  - interrupts : Should contain the interrupt for the dma device if an
258c2ecf20Sopenharmony_ci    FMC
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ciThe child nodes are the SPI flash modules which must have a compatible
288c2ecf20Sopenharmony_ciproperty as specified in bindings/mtd/jedec,spi-nor.txt
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ciOptionally, the child node can contain properties for SPI mode (may be
318c2ecf20Sopenharmony_ciignored):
328c2ecf20Sopenharmony_ci  - spi-max-frequency - max frequency of spi bus
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ciExample:
368c2ecf20Sopenharmony_cifmc: fmc@1e620000 {
378c2ecf20Sopenharmony_ci	compatible = "aspeed,ast2500-fmc";
388c2ecf20Sopenharmony_ci	reg = < 0x1e620000 0x94
398c2ecf20Sopenharmony_ci		0x20000000 0x02000000 >;
408c2ecf20Sopenharmony_ci	#address-cells = <1>;
418c2ecf20Sopenharmony_ci	#size-cells = <0>;
428c2ecf20Sopenharmony_ci	interrupts = <19>;
438c2ecf20Sopenharmony_ci	flash@0 {
448c2ecf20Sopenharmony_ci		reg = < 0 >;
458c2ecf20Sopenharmony_ci		compatible = "jedec,spi-nor";
468c2ecf20Sopenharmony_ci		/* spi-max-frequency = <>; */
478c2ecf20Sopenharmony_ci		/* m25p,fast-read; */
488c2ecf20Sopenharmony_ci		#address-cells = <1>;
498c2ecf20Sopenharmony_ci		#size-cells = <1>;
508c2ecf20Sopenharmony_ci	};
518c2ecf20Sopenharmony_ci};
52