synopsis-dw-mshc.txt 2.6 KB

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