k3-dw-mshc.txt 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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,hi3660-dw-mshc": for controllers with hi3660 specific extensions.
  12. - "hisilicon,hi4511-dw-mshc": for controllers with hi4511 specific extensions.
  13. - "hisilicon,hi6220-dw-mshc": for controllers with hi6220 specific extensions.
  14. Optional Properties:
  15. - hisilicon,peripheral-syscon: phandle of syscon used to control peripheral.
  16. Example:
  17. /* for Hi3620 */
  18. /* SoC portion */
  19. dwmmc_0: dwmmc0@fcd03000 {
  20. compatible = "hisilicon,hi4511-dw-mshc";
  21. reg = <0xfcd03000 0x1000>;
  22. interrupts = <0 16 4>;
  23. #address-cells = <1>;
  24. #size-cells = <0>;
  25. clocks = <&mmc_clock HI3620_SD_CIUCLK>, <&clock HI3620_DDRC_PER_CLK>;
  26. clock-names = "ciu", "biu";
  27. };
  28. /* Board portion */
  29. dwmmc0@fcd03000 {
  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. bus-width = <0x4>;
  44. disable-wp;
  45. cap-sd-highspeed;
  46. sd-uhs-sdr12;
  47. sd-uhs-sdr25;
  48. card-detect-delay = <200>;
  49. hisilicon,peripheral-syscon = <&ao_ctrl>;
  50. reg = <0x0 0xf723e000 0x0 0x1000>;
  51. interrupts = <0x0 0x49 0x4>;
  52. clocks = <&clock_sys HI6220_MMC1_CIUCLK>, <&clock_sys HI6220_MMC1_CLK>;
  53. clock-names = "ciu", "biu";
  54. cd-gpios = <&gpio1 0 1>;
  55. pinctrl-names = "default", "idle";
  56. pinctrl-0 = <&sd_pmx_func &sd_clk_cfg_func &sd_cfg_func>;
  57. pinctrl-1 = <&sd_pmx_idle &sd_clk_cfg_idle &sd_cfg_idle>;
  58. vqmmc-supply = <&ldo7>;
  59. vmmc-supply = <&ldo10>;
  60. };