0001 * Hisilicon specific extensions to the Synopsys Designware Mobile
0002 Storage Host Controller
0003
0004 Read synopsys-dw-mshc.txt for more details
0005
0006 The Synopsys designware mobile storage host controller is used to interface
0007 a SoC with storage medium such as eMMC or SD/MMC cards. This file documents
0008 differences between the core Synopsys dw mshc controller properties described
0009 by synopsys-dw-mshc.txt and the properties used by the Hisilicon specific
0010 extensions to the Synopsys Designware Mobile Storage Host Controller.
0011
0012 Required Properties:
0013
0014 * compatible: should be one of the following.
0015 - "hisilicon,hi3660-dw-mshc": for controllers with hi3660 specific extensions.
0016 - "hisilicon,hi3670-dw-mshc", "hisilicon,hi3660-dw-mshc": for controllers
0017 with hi3670 specific extensions.
0018 - "hisilicon,hi4511-dw-mshc": for controllers with hi4511 specific extensions.
0019 - "hisilicon,hi6220-dw-mshc": for controllers with hi6220 specific extensions.
0020
0021 Optional Properties:
0022 - hisilicon,peripheral-syscon: phandle of syscon used to control peripheral.
0023
0024 Example:
0025
0026 /* for Hi3620 */
0027
0028 /* SoC portion */
0029 dwmmc_0: dwmmc0@fcd03000 {
0030 compatible = "hisilicon,hi4511-dw-mshc";
0031 reg = <0xfcd03000 0x1000>;
0032 interrupts = <0 16 4>;
0033 #address-cells = <1>;
0034 #size-cells = <0>;
0035 clocks = <&mmc_clock HI3620_SD_CIUCLK>, <&clock HI3620_DDRC_PER_CLK>;
0036 clock-names = "ciu", "biu";
0037 };
0038
0039 /* Board portion */
0040 dwmmc0@fcd03000 {
0041 vmmc-supply = <&ldo12>;
0042 fifo-depth = <0x100>;
0043 pinctrl-names = "default";
0044 pinctrl-0 = <&sd_pmx_pins &sd_cfg_func1 &sd_cfg_func2>;
0045 bus-width = <4>;
0046 disable-wp;
0047 cd-gpios = <&gpio10 3 0>;
0048 cap-mmc-highspeed;
0049 cap-sd-highspeed;
0050 };
0051
0052 /* for Hi6220 */
0053
0054 dwmmc_1: dwmmc1@f723e000 {
0055 compatible = "hisilicon,hi6220-dw-mshc";
0056 bus-width = <0x4>;
0057 disable-wp;
0058 cap-sd-highspeed;
0059 sd-uhs-sdr12;
0060 sd-uhs-sdr25;
0061 card-detect-delay = <200>;
0062 hisilicon,peripheral-syscon = <&ao_ctrl>;
0063 reg = <0x0 0xf723e000 0x0 0x1000>;
0064 interrupts = <0x0 0x49 0x4>;
0065 clocks = <&clock_sys HI6220_MMC1_CIUCLK>, <&clock_sys HI6220_MMC1_CLK>;
0066 clock-names = "ciu", "biu";
0067 cd-gpios = <&gpio1 0 1>;
0068 pinctrl-names = "default", "idle";
0069 pinctrl-0 = <&sd_pmx_func &sd_clk_cfg_func &sd_cfg_func>;
0070 pinctrl-1 = <&sd_pmx_idle &sd_clk_cfg_idle &sd_cfg_idle>;
0071 vqmmc-supply = <&ldo7>;
0072 vmmc-supply = <&ldo10>;
0073 };