atmel-hsmci.txt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. - clock-names: tuple listing input clock names.
  13. Required elements: "mci_clk"
  14. - clocks: phandles to input clocks.
  15. The node contains child nodes for each slot that the platform uses
  16. Example MCI node:
  17. mmc0: mmc@f0008000 {
  18. compatible = "atmel,hsmci";
  19. reg = <0xf0008000 0x600>;
  20. interrupts = <12 4>;
  21. #address-cells = <1>;
  22. #size-cells = <0>;
  23. clock-names = "mci_clk";
  24. clocks = <&mci0_clk>;
  25. [ child node definitions...]
  26. };
  27. 2) slot nodes
  28. Required properties:
  29. - reg: should contain the slot id.
  30. - bus-width: number of data lines connected to the controller
  31. Optional properties:
  32. - cd-gpios: specify GPIOs for card detection
  33. - cd-inverted: invert the value of external card detect gpio line
  34. - wp-gpios: specify GPIOs for write protection
  35. Example slot node:
  36. slot@0 {
  37. reg = <0>;
  38. bus-width = <4>;
  39. cd-gpios = <&pioD 15 0>
  40. cd-inverted;
  41. };
  42. Example full MCI node:
  43. mmc0: mmc@f0008000 {
  44. compatible = "atmel,hsmci";
  45. reg = <0xf0008000 0x600>;
  46. interrupts = <12 4>;
  47. #address-cells = <1>;
  48. #size-cells = <0>;
  49. slot@0 {
  50. reg = <0>;
  51. bus-width = <4>;
  52. cd-gpios = <&pioD 15 0>
  53. cd-inverted;
  54. };
  55. slot@1 {
  56. reg = <1>;
  57. bus-width = <4>;
  58. };
  59. };