k3-dw-mshc.txt 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. * Hisilicon specific extensions to the Synopsys Designware Mobile
  2. Storage Host Controller
  3. Read synopsys-dw-mshc.txt for more details
  4. The Synopsys designware mobile storage host controller is used to interface
  5. a SoC with storage medium such as eMMC or SD/MMC cards. This file documents
  6. differences between the core Synopsys dw mshc controller properties described
  7. by synopsys-dw-mshc.txt and the properties used by the Hisilicon specific
  8. extensions to the Synopsys Designware Mobile Storage Host Controller.
  9. Required Properties:
  10. * compatible: should be one of the following.
  11. - "hisilicon,hi4511-dw-mshc": for controllers with hi4511 specific extensions.
  12. - "hisilicon,hi6220-dw-mshc": for controllers with hi6220 specific extensions.
  13. Optional Properties:
  14. - hisilicon,peripheral-syscon: phandle of syscon used to control peripheral.
  15. Example:
  16. /* for Hi3620 */
  17. /* SoC portion */
  18. dwmmc_0: dwmmc0@fcd03000 {
  19. compatible = "hisilicon,hi4511-dw-mshc";
  20. reg = <0xfcd03000 0x1000>;
  21. interrupts = <0 16 4>;
  22. #address-cells = <1>;
  23. #size-cells = <0>;
  24. clocks = <&mmc_clock HI3620_SD_CIUCLK>, <&clock HI3620_DDRC_PER_CLK>;
  25. clock-names = "ciu", "biu";
  26. };
  27. /* Board portion */
  28. dwmmc0@fcd03000 {
  29. num-slots = <1>;
  30. vmmc-supply = <&ldo12>;
  31. fifo-depth = <0x100>;
  32. pinctrl-names = "default";
  33. pinctrl-0 = <&sd_pmx_pins &sd_cfg_func1 &sd_cfg_func2>;
  34. bus-width = <4>;
  35. disable-wp;
  36. cd-gpios = <&gpio10 3 0>;
  37. cap-mmc-highspeed;
  38. cap-sd-highspeed;
  39. };
  40. /* for Hi6220 */
  41. dwmmc_1: dwmmc1@f723e000 {
  42. compatible = "hisilicon,hi6220-dw-mshc";
  43. num-slots = <0x1>;
  44. bus-width = <0x4>;
  45. disable-wp;
  46. cap-sd-highspeed;
  47. sd-uhs-sdr12;
  48. sd-uhs-sdr25;
  49. card-detect-delay = <200>;
  50. hisilicon,peripheral-syscon = <&ao_ctrl>;
  51. reg = <0x0 0xf723e000 0x0 0x1000>;
  52. interrupts = <0x0 0x49 0x4>;
  53. clocks = <&clock_sys HI6220_MMC1_CIUCLK>, <&clock_sys HI6220_MMC1_CLK>;
  54. clock-names = "ciu", "biu";
  55. cd-gpios = <&gpio1 0 1>;
  56. pinctrl-names = "default", "idle";
  57. pinctrl-0 = <&sd_pmx_func &sd_clk_cfg_func &sd_cfg_func>;
  58. pinctrl-1 = <&sd_pmx_idle &sd_clk_cfg_idle &sd_cfg_idle>;
  59. vqmmc-supply = <&ldo7>;
  60. vmmc-supply = <&ldo10>;
  61. };