dwmmc.txt 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. * Exynos DWC_mobile_storage
  2. The Exynos provides DWC_mobile_storage interface which supports
  3. . Embedded Multimedia Cards (EMMC-version 4.5)
  4. . Secure Digital memory (SD mem-version 2.0)
  5. . Secure Digital I/O (SDIO-version 3.0)
  6. . Consumer Electronics Advanced Transport Architecture (CE-ATA-version 1.1)
  7. The Exynos DWC_mobile_storage provides four channels.
  8. SOC specific and Board specific properties are channel specific.
  9. Required SoC Specific Properties:
  10. - compatible: should be
  11. - samsung,exynos-dwmmc: for exynos platforms
  12. - reg: physical base address of the controller and length of memory mapped
  13. region.
  14. - interrupts: The interrupt number to the cpu.
  15. Required Board Specific Properties:
  16. - #address-cells: should be 1.
  17. - #size-cells: should be 0.
  18. - samsung,bus-width: The width of the bus used to interface the devices
  19. supported by DWC_mobile_storage (SD-MMC/EMMC/SDIO).
  20. . Typically the bus width is 4 or 8.
  21. - samsung,timing: The timing values to be written into the
  22. Drv/sample clock selection register of corresponding channel.
  23. . It is comprised of 3 values corresponding to the 3 fileds
  24. 'SelClk_sample', 'SelClk_drv' and 'DIVRATIO' of CLKSEL register.
  25. . SelClk_sample: Select sample clock among 8 shifted clocks.
  26. . SelClk_drv: Select drv clock among 8 shifted clocks.
  27. . DIVRATIO: Clock Divide ratio select.
  28. . The above 3 values are used by the clock phase shifter.
  29. Example:
  30. mmc@12200000 {
  31. samsung,bus-width = <8>;
  32. samsung,timing = <1 3 3>;
  33. samsung,removable = <1>;
  34. }
  35. In the above example,
  36. . The bus width is 8
  37. . Timing is comprised of 3 values as explained below
  38. 1 - SelClk_sample
  39. 3 - SelClk_drv
  40. 3 - DIVRATIO
  41. . The 'removable' flag indicates whether the the particilar device
  42. cannot be removed (always present) or it is a removable device.
  43. 1 - Indicates that the device is removable.
  44. 0 - Indicates that the device cannot be removed.