2013-09-16 20:57:48 +00:00
|
|
|
* Samsung Exynos specific extensions to the Synopsys Designware Mobile
|
2012-09-17 18:16:43 +00:00
|
|
|
Storage Host Controller
|
|
|
|
|
2013-09-16 20:57:48 +00:00
|
|
|
The Synopsys designware mobile storage host controller is used to interface
|
2012-09-17 18:16:43 +00:00
|
|
|
a SoC with storage medium such as eMMC or SD/MMC cards. This file documents
|
2013-09-16 20:57:48 +00:00
|
|
|
differences between the core Synopsys dw mshc controller properties described
|
|
|
|
by synopsys-dw-mshc.txt and the properties used by the Samsung Exynos specific
|
|
|
|
extensions to the Synopsys Designware Mobile Storage Host Controller.
|
2012-09-17 18:16:43 +00:00
|
|
|
|
|
|
|
Required Properties:
|
|
|
|
|
|
|
|
* compatible: should be
|
|
|
|
- "samsung,exynos4210-dw-mshc": for controllers with Samsung Exynos4210
|
2013-01-14 06:14:56 +00:00
|
|
|
specific extensions.
|
2012-09-17 18:16:43 +00:00
|
|
|
- "samsung,exynos4412-dw-mshc": for controllers with Samsung Exynos4412
|
2013-01-14 06:14:56 +00:00
|
|
|
specific extensions.
|
2012-09-17 18:16:43 +00:00
|
|
|
- "samsung,exynos5250-dw-mshc": for controllers with Samsung Exynos5250
|
2013-01-14 06:14:56 +00:00
|
|
|
specific extensions.
|
2013-10-20 20:57:00 +00:00
|
|
|
- "samsung,exynos5420-dw-mshc": for controllers with Samsung Exynos5420
|
|
|
|
specific extensions.
|
2014-08-28 13:18:53 +00:00
|
|
|
- "samsung,exynos7-dw-mshc": for controllers with Samsung Exynos7
|
|
|
|
specific extensions.
|
|
|
|
- "samsung,exynos7-dw-mshc-smu": for controllers with Samsung Exynos7
|
|
|
|
specific extensions having an SMU.
|
2012-09-17 18:16:43 +00:00
|
|
|
|
|
|
|
* samsung,dw-mshc-ciu-div: Specifies the divider value for the card interface
|
|
|
|
unit (ciu) clock. This property is applicable only for Exynos5 SoC's and
|
|
|
|
ignored for Exynos4 SoC's. The valid range of divider value is 0 to 7.
|
|
|
|
|
|
|
|
* samsung,dw-mshc-sdr-timing: Specifies the value of CIU clock phase shift value
|
|
|
|
in transmit mode and CIU clock phase shift value in receive mode for single
|
|
|
|
data rate mode operation. Refer notes below for the order of the cells and the
|
|
|
|
valid values.
|
|
|
|
|
|
|
|
* samsung,dw-mshc-ddr-timing: Specifies the value of CUI clock phase shift value
|
|
|
|
in transmit mode and CIU clock phase shift value in receive mode for double
|
|
|
|
data rate mode operation. Refer notes below for the order of the cells and the
|
|
|
|
valid values.
|
2015-01-29 02:41:57 +00:00
|
|
|
* samsung,dw-mshc-hs400-timing: Specifies the value of CIU TX and RX clock phase
|
|
|
|
shift value for hs400 mode operation.
|
2012-09-17 18:16:43 +00:00
|
|
|
|
|
|
|
Notes for the sdr-timing and ddr-timing values:
|
|
|
|
|
|
|
|
The order of the cells should be
|
|
|
|
- First Cell: CIU clock phase shift value for tx mode.
|
|
|
|
- Second Cell: CIU clock phase shift value for rx mode.
|
|
|
|
|
|
|
|
Valid values for SDR and DDR CIU clock timing for Exynos5250:
|
|
|
|
- valid value for tx phase shift and rx phase shift is 0 to 7.
|
|
|
|
- when CIU clock divider value is set to 3, all possible 8 phase shift
|
|
|
|
values can be used.
|
|
|
|
- if CIU clock divider value is 0 (that is divide by 1), both tx and rx
|
|
|
|
phase shift clocks should be 0.
|
|
|
|
|
2015-01-29 02:41:57 +00:00
|
|
|
* samsung,read-strobe-delay: RCLK (Data strobe) delay to control HS400 mode
|
|
|
|
(Latency value for delay line in Read path)
|
|
|
|
|
2014-08-07 07:37:59 +00:00
|
|
|
Required properties for a slot (Deprecated - Recommend to use one slot per host):
|
2012-09-17 18:16:43 +00:00
|
|
|
|
|
|
|
* gpios: specifies a list of gpios used for command, clock and data bus. The
|
|
|
|
first gpio is the command line and the second gpio is the clock line. The
|
|
|
|
rest of the gpios (depending on the bus-width property) are the data lines in
|
|
|
|
no particular order. The format of the gpio specifier depends on the gpio
|
|
|
|
controller.
|
2014-08-07 07:37:59 +00:00
|
|
|
(Deprecated - Refer to Documentation/devicetree/binding/pinctrl/samsung-pinctrl.txt)
|
2012-09-17 18:16:43 +00:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
The MSHC controller node can be split into two portions, SoC specific and
|
|
|
|
board specific portions as listed below.
|
|
|
|
|
|
|
|
dwmmc0@12200000 {
|
|
|
|
compatible = "samsung,exynos5250-dw-mshc";
|
|
|
|
reg = <0x12200000 0x1000>;
|
|
|
|
interrupts = <0 75 0>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
dwmmc0@12200000 {
|
|
|
|
num-slots = <1>;
|
2014-08-07 07:37:59 +00:00
|
|
|
cap-mmc-highspeed;
|
|
|
|
cap-sd-highspeed;
|
2012-09-17 18:16:43 +00:00
|
|
|
broken-cd;
|
|
|
|
fifo-depth = <0x80>;
|
|
|
|
card-detect-delay = <200>;
|
|
|
|
samsung,dw-mshc-ciu-div = <3>;
|
|
|
|
samsung,dw-mshc-sdr-timing = <2 3>;
|
|
|
|
samsung,dw-mshc-ddr-timing = <1 2>;
|
2015-01-29 02:41:57 +00:00
|
|
|
samsung,dw-mshc-hs400-timing = <0 2>;
|
|
|
|
samsung,read-strobe-delay = <90>;
|
2014-08-07 07:37:59 +00:00
|
|
|
bus-width = <8>;
|
2012-09-17 18:16:43 +00:00
|
|
|
};
|