exynos-dw-mshc.txt 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. * Samsung Exynos specific extensions to the Synopsys Designware Mobile
  2. Storage Host Controller
  3. The Synopsys designware mobile storage host controller is used to interface
  4. a SoC with storage medium such as eMMC or SD/MMC cards. This file documents
  5. differences between the core Synopsys dw mshc controller properties described
  6. by synopsys-dw-mshc.txt and the properties used by the Samsung Exynos specific
  7. extensions to the Synopsys Designware Mobile Storage Host Controller.
  8. Required Properties:
  9. * compatible: should be
  10. - "samsung,exynos4210-dw-mshc": for controllers with Samsung Exynos4210
  11. specific extensions.
  12. - "samsung,exynos4412-dw-mshc": for controllers with Samsung Exynos4412
  13. specific extensions.
  14. - "samsung,exynos5250-dw-mshc": for controllers with Samsung Exynos5250
  15. specific extensions.
  16. - "samsung,exynos5420-dw-mshc": for controllers with Samsung Exynos5420
  17. specific extensions.
  18. - "samsung,exynos7-dw-mshc": for controllers with Samsung Exynos7
  19. specific extensions.
  20. - "samsung,exynos7-dw-mshc-smu": for controllers with Samsung Exynos7
  21. specific extensions having an SMU.
  22. * samsung,dw-mshc-ciu-div: Specifies the divider value for the card interface
  23. unit (ciu) clock. This property is applicable only for Exynos5 SoC's and
  24. ignored for Exynos4 SoC's. The valid range of divider value is 0 to 7.
  25. * samsung,dw-mshc-sdr-timing: Specifies the value of CIU clock phase shift value
  26. in transmit mode and CIU clock phase shift value in receive mode for single
  27. data rate mode operation. Refer notes below for the order of the cells and the
  28. valid values.
  29. * samsung,dw-mshc-ddr-timing: Specifies the value of CUI clock phase shift value
  30. in transmit mode and CIU clock phase shift value in receive mode for double
  31. data rate mode operation. Refer notes below for the order of the cells and the
  32. valid values.
  33. * samsung,dw-mshc-hs400-timing: Specifies the value of CIU TX and RX clock phase
  34. shift value for hs400 mode operation.
  35. Notes for the sdr-timing and ddr-timing values:
  36. The order of the cells should be
  37. - First Cell: CIU clock phase shift value for tx mode.
  38. - Second Cell: CIU clock phase shift value for rx mode.
  39. Valid values for SDR and DDR CIU clock timing for Exynos5250:
  40. - valid value for tx phase shift and rx phase shift is 0 to 7.
  41. - when CIU clock divider value is set to 3, all possible 8 phase shift
  42. values can be used.
  43. - if CIU clock divider value is 0 (that is divide by 1), both tx and rx
  44. phase shift clocks should be 0.
  45. * samsung,read-strobe-delay: RCLK (Data strobe) delay to control HS400 mode
  46. (Latency value for delay line in Read path)
  47. Required properties for a slot (Deprecated - Recommend to use one slot per host):
  48. * gpios: specifies a list of gpios used for command, clock and data bus. The
  49. first gpio is the command line and the second gpio is the clock line. The
  50. rest of the gpios (depending on the bus-width property) are the data lines in
  51. no particular order. The format of the gpio specifier depends on the gpio
  52. controller.
  53. (Deprecated - Refer to Documentation/devicetree/binding/pinctrl/samsung-pinctrl.txt)
  54. Example:
  55. The MSHC controller node can be split into two portions, SoC specific and
  56. board specific portions as listed below.
  57. dwmmc0@12200000 {
  58. compatible = "samsung,exynos5250-dw-mshc";
  59. reg = <0x12200000 0x1000>;
  60. interrupts = <0 75 0>;
  61. #address-cells = <1>;
  62. #size-cells = <0>;
  63. };
  64. dwmmc0@12200000 {
  65. num-slots = <1>;
  66. cap-mmc-highspeed;
  67. cap-sd-highspeed;
  68. broken-cd;
  69. fifo-depth = <0x80>;
  70. card-detect-delay = <200>;
  71. samsung,dw-mshc-ciu-div = <3>;
  72. samsung,dw-mshc-sdr-timing = <2 3>;
  73. samsung,dw-mshc-ddr-timing = <1 2>;
  74. samsung,dw-mshc-hs400-timing = <0 2>;
  75. samsung,read-strobe-delay = <90>;
  76. bus-width = <8>;
  77. };