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