synopsys-dw-mshc.txt 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. Aliases:
  59. - All the MSHC controller nodes should be represented in the aliases node using
  60. the following format 'mshc{n}' where n is a unique number for the alias.
  61. Example:
  62. The MSHC controller node can be split into two portions, SoC specific and
  63. board specific portions as listed below.
  64. dwmmc0@12200000 {
  65. compatible = "snps,dw-mshc";
  66. clocks = <&clock 351>, <&clock 132>;
  67. clock-names = "biu", "ciu";
  68. reg = <0x12200000 0x1000>;
  69. interrupts = <0 75 0>;
  70. #address-cells = <1>;
  71. #size-cells = <0>;
  72. };
  73. dwmmc0@12200000 {
  74. clock-frequency = <400000000>;
  75. clock-freq-min-max = <400000 200000000>;
  76. num-slots = <1>;
  77. broken-cd;
  78. fifo-depth = <0x80>;
  79. card-detect-delay = <200>;
  80. vmmc-supply = <&buck8>;
  81. bus-width = <8>;
  82. cap-mmc-highspeed;
  83. cap-sd-highspeed;
  84. };