samsung-sdhci.txt 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. * Samsung's SDHCI Controller device tree bindings
  2. Samsung's SDHCI controller is used as a connectivity interface with external
  3. MMC, SD and eMMC storage mediums. This file documents differences between the
  4. core mmc properties described by mmc.txt and the properties used by the
  5. Samsung implmentation of the SDHCI controller.
  6. Note: The mmc core bindings documentation states that if none of the core
  7. card-detect bindings are used, then the standard sdhci card detect mechanism
  8. is used. The Samsung's SDHCI controller bindings extends this as listed below.
  9. [A] The property "samsung,cd-pinmux-gpio" can be used as stated in the
  10. "Optional Board Specific Properties" section below.
  11. [B] If core card-detect bindings and "samsung,cd-pinmux-gpio" property
  12. is not specified, it is assumed that there is no card detection
  13. mechanism used.
  14. Required SoC Specific Properties:
  15. - compatible: should be one of the following
  16. - "samsung,s3c6410-sdhci": For controllers compatible with s3c6410 sdhci
  17. controller.
  18. - "samsung,exynos4210-sdhci": For controllers compatible with Exynos4 sdhci
  19. controller.
  20. Required Board Specific Properties:
  21. - gpios: Should specify the gpios used for clock, command and data lines. The
  22. gpio specifier format depends on the gpio controller.
  23. Optional Board Specific Properties:
  24. - samsung,cd-pinmux-gpio: Specifies the card detect line that is routed
  25. through a pinmux to the card-detect pin of the card slot. This property
  26. should be used only if none of the mmc core card-detect properties are
  27. used.
  28. Example:
  29. sdhci@12530000 {
  30. compatible = "samsung,exynos4210-sdhci";
  31. reg = <0x12530000 0x100>;
  32. interrupts = <0 75 0>;
  33. bus-width = <4>;
  34. cd-gpios = <&gpk2 2 2 3 3>;
  35. gpios = <&gpk2 0 2 0 3>, /* clock line */
  36. <&gpk2 1 2 0 3>, /* command line */
  37. <&gpk2 3 2 3 3>, /* data line 0 */
  38. <&gpk2 4 2 3 3>, /* data line 1 */
  39. <&gpk2 5 2 3 3>, /* data line 2 */
  40. <&gpk2 6 2 3 3>; /* data line 3 */
  41. };
  42. Note: This example shows both SoC specific and board specific properties
  43. in a single device node. The properties can be actually be seperated
  44. into SoC specific node and board specific node.