aspeed-smc.txt 1.6 KB

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