1*c66ec88fSEmmanuel Vadot* Aspeed Firmware Memory controller 2*c66ec88fSEmmanuel Vadot* Aspeed SPI Flash Memory Controller 3*c66ec88fSEmmanuel Vadot 4*c66ec88fSEmmanuel VadotThe Firmware Memory Controller in the Aspeed AST2500 SoC supports 5*c66ec88fSEmmanuel Vadotthree chip selects, two of which are always of SPI type and the third 6*c66ec88fSEmmanuel Vadotcan be SPI or NOR type flash. These bindings only describe SPI. 7*c66ec88fSEmmanuel Vadot 8*c66ec88fSEmmanuel VadotThe two SPI flash memory controllers in the AST2500 each support two 9*c66ec88fSEmmanuel Vadotchip selects. 10*c66ec88fSEmmanuel Vadot 11*c66ec88fSEmmanuel VadotRequired properties: 12*c66ec88fSEmmanuel Vadot - compatible : Should be one of 13*c66ec88fSEmmanuel Vadot "aspeed,ast2400-fmc" for the AST2400 Firmware Memory Controller 14*c66ec88fSEmmanuel Vadot "aspeed,ast2400-spi" for the AST2400 SPI Flash memory Controller 15*c66ec88fSEmmanuel Vadot "aspeed,ast2500-fmc" for the AST2500 Firmware Memory Controller 16*c66ec88fSEmmanuel Vadot "aspeed,ast2500-spi" for the AST2500 SPI flash memory controllers 17*c66ec88fSEmmanuel Vadot 18*c66ec88fSEmmanuel Vadot - reg : the first contains the control register location and length, 19*c66ec88fSEmmanuel Vadot the second contains the memory window mapping address and length 20*c66ec88fSEmmanuel Vadot - #address-cells : must be 1 corresponding to chip select child binding 21*c66ec88fSEmmanuel Vadot - #size-cells : must be 0 corresponding to chip select child binding 22*c66ec88fSEmmanuel Vadot 23*c66ec88fSEmmanuel VadotOptional properties: 24*c66ec88fSEmmanuel Vadot - interrupts : Should contain the interrupt for the dma device if an 25*c66ec88fSEmmanuel Vadot FMC 26*c66ec88fSEmmanuel Vadot 27*c66ec88fSEmmanuel VadotThe child nodes are the SPI flash modules which must have a compatible 28*c66ec88fSEmmanuel Vadotproperty as specified in bindings/mtd/jedec,spi-nor.txt 29*c66ec88fSEmmanuel Vadot 30*c66ec88fSEmmanuel VadotOptionally, the child node can contain properties for SPI mode (may be 31*c66ec88fSEmmanuel Vadotignored): 32*c66ec88fSEmmanuel Vadot - spi-max-frequency - max frequency of spi bus 33*c66ec88fSEmmanuel Vadot 34*c66ec88fSEmmanuel Vadot 35*c66ec88fSEmmanuel VadotExample: 36*c66ec88fSEmmanuel Vadotfmc: fmc@1e620000 { 37*c66ec88fSEmmanuel Vadot compatible = "aspeed,ast2500-fmc"; 38*c66ec88fSEmmanuel Vadot reg = < 0x1e620000 0x94 39*c66ec88fSEmmanuel Vadot 0x20000000 0x02000000 >; 40*c66ec88fSEmmanuel Vadot #address-cells = <1>; 41*c66ec88fSEmmanuel Vadot #size-cells = <0>; 42*c66ec88fSEmmanuel Vadot interrupts = <19>; 43*c66ec88fSEmmanuel Vadot flash@0 { 44*c66ec88fSEmmanuel Vadot reg = < 0 >; 45*c66ec88fSEmmanuel Vadot compatible = "jedec,spi-nor"; 46*c66ec88fSEmmanuel Vadot /* spi-max-frequency = <>; */ 47*c66ec88fSEmmanuel Vadot /* m25p,fast-read; */ 48*c66ec88fSEmmanuel Vadot #address-cells = <1>; 49*c66ec88fSEmmanuel Vadot #size-cells = <1>; 50*c66ec88fSEmmanuel Vadot }; 51*c66ec88fSEmmanuel Vadot}; 52