atmel-hsmci.txt 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. * Atmel High Speed MultiMedia Card Interface
  2. This controller on atmel products provides an interface for MMC, SD and SDIO
  3. types of memory cards.
  4. This file documents differences between the core properties described
  5. by mmc.txt and the properties used by the atmel-mci driver.
  6. 1) MCI node
  7. Required properties:
  8. - compatible: should be "atmel,hsmci"
  9. - #address-cells: should be one. The cell is the slot id.
  10. - #size-cells: should be zero.
  11. - at least one slot node
  12. The node contains child nodes for each slot that the platform uses
  13. Example MCI node:
  14. mmc0: mmc@f0008000 {
  15. compatible = "atmel,hsmci";
  16. reg = <0xf0008000 0x600>;
  17. interrupts = <12 4>;
  18. #address-cells = <1>;
  19. #size-cells = <0>;
  20. [ child node definitions...]
  21. };
  22. 2) slot nodes
  23. Required properties:
  24. - reg: should contain the slot id.
  25. - bus-width: number of data lines connected to the controller
  26. Optional properties:
  27. - cd-gpios: specify GPIOs for card detection
  28. - cd-inverted: invert the value of external card detect gpio line
  29. - wp-gpios: specify GPIOs for write protection
  30. Example slot node:
  31. slot@0 {
  32. reg = <0>;
  33. bus-width = <4>;
  34. cd-gpios = <&pioD 15 0>
  35. cd-inverted;
  36. };
  37. Example full MCI node:
  38. mmc0: mmc@f0008000 {
  39. compatible = "atmel,hsmci";
  40. reg = <0xf0008000 0x600>;
  41. interrupts = <12 4>;
  42. #address-cells = <1>;
  43. #size-cells = <0>;
  44. slot@0 {
  45. reg = <0>;
  46. bus-width = <4>;
  47. cd-gpios = <&pioD 15 0>
  48. cd-inverted;
  49. };
  50. slot@1 {
  51. reg = <1>;
  52. bus-width = <4>;
  53. };
  54. };