synopsis-dw-mshc.txt 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. * Synopsis Designware Mobile Storage Host Controller
  2. The Synopsis 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 Synopsis Designware Mobile Storage Host Controller.
  6. Required Properties:
  7. * compatible: should be
  8. - snps,dw-mshc: for controllers compliant with synopsis 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. * num-slots: specifies the number of slots supported by the controller.
  33. The number of physical slots actually used could be equal or less than the
  34. value specified by num-slots. If this property is not specified, the value
  35. of num-slot property is assumed to be 1.
  36. * fifo-depth: The maximum size of the tx/rx fifo's. If this property is not
  37. specified, the default value of the fifo size is determined from the
  38. controller registers.
  39. * card-detect-delay: Delay in milli-seconds before detecting card after card
  40. insert event. The default value is 0.
  41. * supports-highspeed: Enables support for high speed cards (upto 50MHz)
  42. * broken-cd: as documented in mmc core bindings.
  43. Aliases:
  44. - All the MSHC controller nodes should be represented in the aliases node using
  45. the following format 'mshc{n}' where n is a unique number for the alias.
  46. Example:
  47. The MSHC controller node can be split into two portions, SoC specific and
  48. board specific portions as listed below.
  49. dwmmc0@12200000 {
  50. compatible = "snps,dw-mshc";
  51. reg = <0x12200000 0x1000>;
  52. interrupts = <0 75 0>;
  53. #address-cells = <1>;
  54. #size-cells = <0>;
  55. };
  56. dwmmc0@12200000 {
  57. num-slots = <1>;
  58. supports-highspeed;
  59. broken-cd;
  60. fifo-depth = <0x80>;
  61. card-detect-delay = <200>;
  62. slot@0 {
  63. reg = <0>;
  64. bus-width = <8>;
  65. };
  66. };