ti_qspi.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. TI QSPI controller.
  2. Required properties:
  3. - compatible : should be "ti,dra7xxx-qspi" or "ti,am4372-qspi".
  4. - reg: Should contain QSPI registers location and length.
  5. - reg-names: Should contain the resource reg names.
  6. - qspi_base: Qspi configuration register Address space
  7. - qspi_mmap: Memory mapped Address space
  8. - (optional) qspi_ctrlmod: Control module Address space
  9. - interrupts: should contain the qspi interrupt number.
  10. - #address-cells, #size-cells : Must be present if the device has sub-nodes
  11. - ti,hwmods: Name of the hwmod associated to the QSPI
  12. Recommended properties:
  13. - spi-max-frequency: Definition as per
  14. Documentation/devicetree/bindings/spi/spi-bus.txt
  15. Optional properties:
  16. - syscon-chipselects: Handle to system control region contains QSPI
  17. chipselect register and offset of that register.
  18. NOTE: TI QSPI controller requires different pinmux and IODelay
  19. parameters for Mode-0 and Mode-3 operations, which needs to be set up by
  20. the bootloader (U-Boot). Default configuration only supports Mode-0
  21. operation. Hence, "spi-cpol" and "spi-cpha" DT properties cannot be
  22. specified in the slave nodes of TI QSPI controller without appropriate
  23. modification to bootloader.
  24. Example:
  25. For am4372:
  26. qspi: qspi@4b300000 {
  27. compatible = "ti,am4372-qspi";
  28. reg = <0x47900000 0x100>, <0x30000000 0x4000000>;
  29. reg-names = "qspi_base", "qspi_mmap";
  30. #address-cells = <1>;
  31. #size-cells = <0>;
  32. spi-max-frequency = <25000000>;
  33. ti,hwmods = "qspi";
  34. };
  35. For dra7xx:
  36. qspi: qspi@4b300000 {
  37. compatible = "ti,dra7xxx-qspi";
  38. reg = <0x4b300000 0x100>,
  39. <0x5c000000 0x4000000>,
  40. reg-names = "qspi_base", "qspi_mmap";
  41. syscon-chipselects = <&scm_conf 0x558>;
  42. #address-cells = <1>;
  43. #size-cells = <0>;
  44. spi-max-frequency = <48000000>;
  45. ti,hwmods = "qspi";
  46. };