atmel,ebi.txt 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. * Device tree bindings for Atmel EBI
  2. The External Bus Interface (EBI) controller is a bus where you can connect
  3. asynchronous (NAND, NOR, SRAM, ....) and synchronous memories (SDR/DDR SDRAMs).
  4. The EBI provides a glue-less interface to asynchronous memories through the SMC
  5. (Static Memory Controller).
  6. Required properties:
  7. - compatible: "atmel,at91sam9260-ebi"
  8. "atmel,at91sam9261-ebi"
  9. "atmel,at91sam9263-ebi0"
  10. "atmel,at91sam9263-ebi1"
  11. "atmel,at91sam9rl-ebi"
  12. "atmel,at91sam9g45-ebi"
  13. "atmel,at91sam9x5-ebi"
  14. "atmel,sama5d3-ebi"
  15. - reg: Contains offset/length value for EBI memory mapping.
  16. This property might contain several entries if the EBI
  17. memory range is not contiguous
  18. - #address-cells: Must be 2.
  19. The first cell encodes the CS.
  20. The second cell encode the offset into the CS memory
  21. range.
  22. - #size-cells: Must be set to 1.
  23. - ranges: Encodes CS to memory region association.
  24. - clocks: Clock feeding the EBI controller.
  25. See clock-bindings.txt
  26. Children device nodes are representing device connected to the EBI bus.
  27. Required device node properties:
  28. - reg: Contains the chip-select id, the offset and the length
  29. of the memory region requested by the device.
  30. EBI bus configuration will be defined directly in the device subnode.
  31. Optional EBI/SMC properties:
  32. - atmel,smc-bus-width: width of the asynchronous device's data bus
  33. 8, 16 or 32.
  34. Default to 8 when undefined.
  35. - atmel,smc-byte-access-type "write" or "select" (see Atmel datasheet).
  36. Default to "select" when undefined.
  37. - atmel,smc-read-mode "nrd" or "ncs".
  38. Default to "ncs" when undefined.
  39. - atmel,smc-write-mode "nwe" or "ncs".
  40. Default to "ncs" when undefined.
  41. - atmel,smc-exnw-mode "disabled", "frozen" or "ready".
  42. Default to "disabled" when undefined.
  43. - atmel,smc-page-mode enable page mode if present. The provided value
  44. defines the page size (supported values: 4, 8,
  45. 16 and 32).
  46. - atmel,smc-tdf-mode: "normal" or "optimized". When set to
  47. "optimized" the data float time is optimized
  48. depending on the next device being accessed
  49. (next device setup time is subtracted to the
  50. current device data float time).
  51. Default to "normal" when undefined.
  52. If at least one atmel,smc- property is defined the following SMC timing
  53. properties become mandatory. In the other hand, if none of the atmel,smc-
  54. properties are specified, we assume that the EBI bus configuration will be
  55. handled by the sub-device driver, and none of those properties should be
  56. defined.
  57. All the timings are expressed in nanoseconds (see Atmel datasheet for a full
  58. description).
  59. - atmel,smc-ncs-rd-setup-ns
  60. - atmel,smc-nrd-setup-ns
  61. - atmel,smc-ncs-wr-setup-ns
  62. - atmel,smc-nwe-setup-ns
  63. - atmel,smc-ncs-rd-pulse-ns
  64. - atmel,smc-nrd-pulse-ns
  65. - atmel,smc-ncs-wr-pulse-ns
  66. - atmel,smc-nwe-pulse-ns
  67. - atmel,smc-nwe-cycle-ns
  68. - atmel,smc-nrd-cycle-ns
  69. - atmel,smc-tdf-ns
  70. Example:
  71. ebi: ebi@10000000 {
  72. compatible = "atmel,sama5d3-ebi";
  73. #address-cells = <2>;
  74. #size-cells = <1>;
  75. atmel,smc = <&hsmc>;
  76. atmel,matrix = <&matrix>;
  77. reg = <0x10000000 0x10000000
  78. 0x40000000 0x30000000>;
  79. ranges = <0x0 0x0 0x10000000 0x10000000
  80. 0x1 0x0 0x40000000 0x10000000
  81. 0x2 0x0 0x50000000 0x10000000
  82. 0x3 0x0 0x60000000 0x10000000>;
  83. clocks = <&mck>;
  84. pinctrl-names = "default";
  85. pinctrl-0 = <&pinctrl_ebi_addr>;
  86. nor: flash@0,0 {
  87. compatible = "cfi-flash";
  88. #address-cells = <1>;
  89. #size-cells = <1>;
  90. reg = <0x0 0x0 0x1000000>;
  91. bank-width = <2>;
  92. atmel,smc-read-mode = "nrd";
  93. atmel,smc-write-mode = "nwe";
  94. atmel,smc-bus-width = <16>;
  95. atmel,smc-ncs-rd-setup-ns = <0>;
  96. atmel,smc-ncs-wr-setup-ns = <0>;
  97. atmel,smc-nwe-setup-ns = <8>;
  98. atmel,smc-nrd-setup-ns = <16>;
  99. atmel,smc-ncs-rd-pulse-ns = <84>;
  100. atmel,smc-ncs-wr-pulse-ns = <84>;
  101. atmel,smc-nrd-pulse-ns = <76>;
  102. atmel,smc-nwe-pulse-ns = <76>;
  103. atmel,smc-nrd-cycle-ns = <107>;
  104. atmel,smc-nwe-cycle-ns = <84>;
  105. atmel,smc-tdf-ns = <16>;
  106. };
  107. };