exynos-dw-mshc.txt 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. * Samsung Exynos specific extensions to the Synopsis Designware Mobile
  2. Storage Host Controller
  3. The Synopsis 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 Synopsis dw mshc controller properties described
  6. by synopsis-dw-mshc.txt and the properties used by the Samsung Exynos specific
  7. extensions to the Synopsis 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,dw-mshc-ciu-div: Specifies the divider value for the card interface
  17. unit (ciu) clock. This property is applicable only for Exynos5 SoC's and
  18. ignored for Exynos4 SoC's. The valid range of divider value is 0 to 7.
  19. * samsung,dw-mshc-sdr-timing: Specifies the value of CIU clock phase shift value
  20. in transmit mode and CIU clock phase shift value in receive mode for single
  21. data rate mode operation. Refer notes below for the order of the cells and the
  22. valid values.
  23. * samsung,dw-mshc-ddr-timing: Specifies the value of CUI clock phase shift value
  24. in transmit mode and CIU clock phase shift value in receive mode for double
  25. data rate mode operation. Refer notes below for the order of the cells and the
  26. valid values.
  27. Notes for the sdr-timing and ddr-timing values:
  28. The order of the cells should be
  29. - First Cell: CIU clock phase shift value for tx mode.
  30. - Second Cell: CIU clock phase shift value for rx mode.
  31. Valid values for SDR and DDR CIU clock timing for Exynos5250:
  32. - valid value for tx phase shift and rx phase shift is 0 to 7.
  33. - when CIU clock divider value is set to 3, all possible 8 phase shift
  34. values can be used.
  35. - if CIU clock divider value is 0 (that is divide by 1), both tx and rx
  36. phase shift clocks should be 0.
  37. Required properties for a slot:
  38. * gpios: specifies a list of gpios used for command, clock and data bus. The
  39. first gpio is the command line and the second gpio is the clock line. The
  40. rest of the gpios (depending on the bus-width property) are the data lines in
  41. no particular order. The format of the gpio specifier depends on the gpio
  42. controller.
  43. Example:
  44. The MSHC controller node can be split into two portions, SoC specific and
  45. board specific portions as listed below.
  46. dwmmc0@12200000 {
  47. compatible = "samsung,exynos5250-dw-mshc";
  48. reg = <0x12200000 0x1000>;
  49. interrupts = <0 75 0>;
  50. #address-cells = <1>;
  51. #size-cells = <0>;
  52. };
  53. dwmmc0@12200000 {
  54. num-slots = <1>;
  55. supports-highspeed;
  56. broken-cd;
  57. fifo-depth = <0x80>;
  58. card-detect-delay = <200>;
  59. samsung,dw-mshc-ciu-div = <3>;
  60. samsung,dw-mshc-sdr-timing = <2 3>;
  61. samsung,dw-mshc-ddr-timing = <1 2>;
  62. slot@0 {
  63. reg = <0>;
  64. bus-width = <8>;
  65. gpios = <&gpc0 0 2 0 3>, <&gpc0 1 2 0 3>,
  66. <&gpc1 0 2 3 3>, <&gpc1 1 2 3 3>,
  67. <&gpc1 2 2 3 3>, <&gpc1 3 2 3 3>,
  68. <&gpc0 3 2 3 3>, <&gpc0 4 2 3 3>,
  69. <&gpc0 5 2 3 3>, <&gpc0 6 2 3 3>;
  70. };
  71. };