sunxi-mmc.txt 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. * Allwinner sunxi MMC controller
  2. The highspeed MMC host controller on Allwinner SoCs provides an interface
  3. for MMC, SD and SDIO types of memory cards.
  4. Supported maximum speeds are the ones of the eMMC standard 4.5 as well
  5. as the speed of SD standard 3.0.
  6. Absolute maximum transfer rate is 200MB/s
  7. Required properties:
  8. - compatible : should be one of:
  9. * "allwinner,sun4i-a10-mmc"
  10. * "allwinner,sun5i-a13-mmc"
  11. * "allwinner,sun7i-a20-mmc"
  12. * "allwinner,sun9i-a80-mmc"
  13. * "allwinner,sun50i-a64-mmc"
  14. - reg : mmc controller base registers
  15. - clocks : a list with 4 phandle + clock specifier pairs
  16. - clock-names : must contain "ahb", "mmc", "output" and "sample"
  17. - interrupts : mmc controller interrupt
  18. Optional properties:
  19. - resets : phandle + reset specifier pair
  20. - reset-names : must contain "ahb"
  21. - for cd, bus-width and additional generic mmc parameters
  22. please refer to mmc.txt within this directory
  23. Examples:
  24. - Within .dtsi:
  25. mmc0: mmc@01c0f000 {
  26. compatible = "allwinner,sun5i-a13-mmc";
  27. reg = <0x01c0f000 0x1000>;
  28. clocks = <&ahb_gates 8>, <&mmc0_clk>, <&mmc0_output_clk>, <&mmc0_sample_clk>;
  29. clock-names = "ahb", "mod", "output", "sample";
  30. interrupts = <0 32 4>;
  31. status = "disabled";
  32. };
  33. - Within dts:
  34. mmc0: mmc@01c0f000 {
  35. pinctrl-names = "default", "default";
  36. pinctrl-0 = <&mmc0_pins_a>;
  37. pinctrl-1 = <&mmc0_cd_pin_reference_design>;
  38. bus-width = <4>;
  39. cd-gpios = <&pio 7 1 0>; /* PH1 */
  40. cd-inverted;
  41. status = "okay";
  42. };