TEXT 11
Mmci.txt Guest on 8th February 2021 09:22:09 AM
  1. * ARM PrimeCell MultiMedia Card Interface (MMCI) PL180/1
  2.  
  3. The ARM PrimeCell MMCI PL180 and PL181 provides an interface for
  4. reading and writing to MultiMedia and SD cards alike.
  5.  
  6. This file documents differences between the core properties described
  7. by mmc.txt and the properties used by the mmci driver. Using "st" as
  8. the prefix for a property, indicates support by the ST Micro variant.
  9.  
  10. Required properties:
  11. - compatible             : contains "arm,pl18x", "arm,primecell".
  12. - vmmc-supply            : phandle to the regulator device tree node, mentioned
  13.                            as the VCC/VDD supply in the eMMC/SD specs.
  14.  
  15. Optional properties:
  16. - arm,primecell-periphid : contains the PrimeCell Peripheral ID, it overrides
  17.                            the ID provided by the HW
  18. - resets                 : phandle to internal reset line.
  19.                      Should be defined for sdmmc variant.
  20. - vqmmc-supply           : phandle to the regulator device tree node, mentioned
  21.                            as the VCCQ/VDD_IO supply in the eMMC/SD specs.
  22. specific for ux500 variant:
  23. - st,sig-dir-dat0        : bus signal direction pin used for DAT[0].
  24. - st,sig-dir-dat2        : bus signal direction pin used for DAT[2].
  25. - st,sig-dir-dat31       : bus signal direction pin used for DAT[3] and DAT[1].
  26. - st,sig-dir-dat74       : bus signal direction pin used for DAT[4] to DAT[7].
  27. - st,sig-dir-cmd         : cmd signal direction pin used for CMD.
  28. - st,sig-pin-fbclk       : feedback clock signal pin used.
  29.  
  30. specific for sdmmc variant:
  31. - reg              : a second base register may be defined if a delay
  32.                            block is present and used for tuning.
  33. - st,sig-dir             : signal direction polarity used for cmd, dat0 dat123.
  34. - st,neg-edge            : data & command phase relation, generated on
  35.                            sd clock falling edge.
  36. - st,use-ckin            : use ckin pin from an external driver to sample
  37.                            the receive data (example: with voltage
  38.                      switch transceiver).
  39.  
  40. Deprecated properties:
  41. - mmc-cap-mmc-highspeed  : indicates whether MMC is high speed capable.
  42. - mmc-cap-sd-highspeed   : indicates whether SD is high speed capable.
  43.  
  44. Example:
  45.  
  46.       compatible = "arm,pl18x", "arm,primecell";
  47.       reg = <0x80126000 0x1000>;
  48.       interrupts = <0 60 IRQ_TYPE_LEVEL_HIGH>;
  49.  
  50.       dmas = <&dma 29 0 0x2>, /* Logical - DevToMem */
  51.              <&dma 29 0 0x0>; /* Logical - MemToDev */
  52.       dma-names = "rx", "tx";
  53.  
  54.       clocks = <&prcc_kclk 1 5>, <&prcc_pclk 1 5>;
  55.       clock-names = "sdi", "apb_pclk";
  56.  
  57.       max-frequency = <100000000>;
  58.       bus-width = <4>;
  59.       cap-sd-highspeed;
  60.       cap-mmc-highspeed;
  61.       cd-gpios  = <&gpio2 31 0x4>; // 95
  62.       st,sig-dir-dat0;
  63.       st,sig-dir-dat2;
  64.       st,sig-dir-cmd;
  65.       st,sig-pin-fbclk;
  66.  
  67.       vmmc-supply = <&ab8500_ldo_aux3_reg>;
  68.       vqmmc-supply = <&vmmci>;
  69.  
  70.       pinctrl-names = "default", "sleep";
  71.       pinctrl-0 = <&sdi0_default_mode>;
  72.       pinctrl-1 = <&sdi0_sleep_mode>;
  73. };

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.