synopsys-dw-mshc.txt 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. * Synopsys Designware Mobile Storage Host Controller
  2. The Synopsys designware mobile storage host controller is used to interface
  3. a SoC with storage medium such as eMMC or SD/MMC cards. This file documents
  4. differences between the core mmc properties described by mmc.txt and the
  5. properties used by the Synopsys Designware Mobile Storage Host Controller.
  6. Required Properties:
  7. * compatible: should be
  8. - snps,dw-mshc: for controllers compliant with synopsys dw-mshc.
  9. * #address-cells: should be 1.
  10. * #size-cells: should be 0.
  11. # Slots: The slot specific information are contained within child-nodes with
  12. each child-node representing a supported slot. There should be atleast one
  13. child node representing a card slot. The name of the child node representing
  14. the slot is recommended to be slot@n where n is the unique number of the slot
  15. connnected to the controller. The following are optional properties which
  16. can be included in the slot child node.
  17. * reg: specifies the physical slot number. The valid values of this
  18. property is 0 to (num-slots -1), where num-slots is the value
  19. specified by the num-slots property.
  20. * bus-width: as documented in mmc core bindings.
  21. * wp-gpios: specifies the write protect gpio line. The format of the
  22. gpio specifier depends on the gpio controller. If a GPIO is not used
  23. for write-protect, this property is optional.
  24. * disable-wp: If the wp-gpios property isn't present then (by default)
  25. we'd assume that the write protect is hooked up directly to the
  26. controller's special purpose write protect line (accessible via
  27. the WRTPRT register). However, it's possible that we simply don't
  28. want write protect. In that case specify 'disable-wp'.
  29. NOTE: This property is not required for slots known to always
  30. connect to eMMC or SDIO cards.
  31. Optional properties:
  32. * clocks: from common clock binding: handle to biu and ciu clocks for the
  33. bus interface unit clock and the card interface unit clock.
  34. * clock-names: from common clock binding: Shall be "biu" and "ciu".
  35. If the biu clock is missing we'll simply skip enabling it. If the
  36. ciu clock is missing we'll just assume that the clock is running at
  37. clock-frequency. It is an error to omit both the ciu clock and the
  38. clock-frequency.
  39. * clock-frequency: should be the frequency (in Hz) of the ciu clock. If this
  40. is specified and the ciu clock is specified then we'll try to set the ciu
  41. clock to this at probe time.
  42. * clock-freq-min-max: Minimum and Maximum clock frequency for card output
  43. clock(cclk_out). If it's not specified, max is 200MHZ and min is 400KHz by default.
  44. * num-slots: specifies the number of slots supported by the controller.
  45. The number of physical slots actually used could be equal or less than the
  46. value specified by num-slots. If this property is not specified, the value
  47. of num-slot property is assumed to be 1.
  48. * fifo-depth: The maximum size of the tx/rx fifo's. If this property is not
  49. specified, the default value of the fifo size is determined from the
  50. controller registers.
  51. * card-detect-delay: Delay in milli-seconds before detecting card after card
  52. insert event. The default value is 0.
  53. * supports-highspeed (DEPRECATED): Enables support for high speed cards (up to 50MHz)
  54. (use "cap-mmc-highspeed" or "cap-sd-highspeed" instead)
  55. * broken-cd: as documented in mmc core bindings.
  56. * vmmc-supply: The phandle to the regulator to use for vmmc. If this is
  57. specified we'll defer probe until we can find this regulator.
  58. * dmas: List of DMA specifiers with the controller specific format as described
  59. in the generic DMA client binding. Refer to dma.txt for details.
  60. * dma-names: request names for generic DMA client binding. Must be "rx-tx".
  61. Refer to dma.txt for details.
  62. Aliases:
  63. - All the MSHC controller nodes should be represented in the aliases node using
  64. the following format 'mshc{n}' where n is a unique number for the alias.
  65. Example:
  66. The MSHC controller node can be split into two portions, SoC specific and
  67. board specific portions as listed below.
  68. dwmmc0@12200000 {
  69. compatible = "snps,dw-mshc";
  70. clocks = <&clock 351>, <&clock 132>;
  71. clock-names = "biu", "ciu";
  72. reg = <0x12200000 0x1000>;
  73. interrupts = <0 75 0>;
  74. #address-cells = <1>;
  75. #size-cells = <0>;
  76. };
  77. [board specific internal DMA resources]
  78. dwmmc0@12200000 {
  79. clock-frequency = <400000000>;
  80. clock-freq-min-max = <400000 200000000>;
  81. num-slots = <1>;
  82. broken-cd;
  83. fifo-depth = <0x80>;
  84. card-detect-delay = <200>;
  85. vmmc-supply = <&buck8>;
  86. bus-width = <8>;
  87. cap-mmc-highspeed;
  88. cap-sd-highspeed;
  89. };
  90. [board specific generic DMA request binding]
  91. dwmmc0@12200000 {
  92. clock-frequency = <400000000>;
  93. clock-freq-min-max = <400000 200000000>;
  94. num-slots = <1>;
  95. broken-cd;
  96. fifo-depth = <0x80>;
  97. card-detect-delay = <200>;
  98. vmmc-supply = <&buck8>;
  99. bus-width = <8>;
  100. cap-mmc-highspeed;
  101. cap-sd-highspeed;
  102. dmas = <&pdma 12>;
  103. dma-names = "rx-tx";
  104. };