public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jaehoon Chung <jh80.chung@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V5 02/10] EXYNOS5: FDT: Add DWMMC device node data
Date: Tue, 22 Jan 2013 11:40:42 +0900	[thread overview]
Message-ID: <50FDFC2A.2030100@samsung.com> (raw)
In-Reply-To: <1358768638-14187-3-git-send-email-amarendra.xt@samsung.com>

Acked-by: Jaehoon Chung <jh80.chung@samsung.com>

On 01/21/2013 08:43 PM, Amar wrote:
> This patch adds DWMMC device node data for exynos5.
> This patch also adds binding file for DWMMC device node.
> 
> Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
> Signed-off-by: Amar <amarendra.xt@samsung.com>
> ---
> Changes since V1:
>         1)Added binding file for DWMMC device node at the location
>         "doc/device-tree-bindings/exynos/dwmmc.txt".
>         2)Removed the propname 'index' from device node.
>         3)Prefixed the vendor name 'samsung' before propname in device node.
> 
> Changes since V2:
>         1)Updation of commit message and resubmition of proper patch set.
> 
> Changes since V3:
>         No change.
> 
> Changes since V4:
>         1)Updated the doc/device-tree-bindings/exynos/dwmmc.txt with more
>         information regarding the property 'samsung,timing'.
>         2)Replaced the name 'dwmmc' with 'mmc'.
> 
>  arch/arm/dts/exynos5250.dtsi              | 31 +++++++++++++++++++
>  board/samsung/dts/exynos5250-smdk5250.dts | 22 ++++++++++++++
>  doc/device-tree-bindings/exynos/dwmmc.txt | 49 +++++++++++++++++++++++++++++++
>  3 files changed, 102 insertions(+)
>  create mode 100644 doc/device-tree-bindings/exynos/dwmmc.txt
> 
> diff --git a/arch/arm/dts/exynos5250.dtsi b/arch/arm/dts/exynos5250.dtsi
> index ed8c8dd..6c08eb7 100644
> --- a/arch/arm/dts/exynos5250.dtsi
> +++ b/arch/arm/dts/exynos5250.dtsi
> @@ -151,4 +151,35 @@
>  		};
>  	};
>  
> +	mmc at 12200000 {
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +		compatible = "samsung,exynos5250-dwmmc";
> +		reg = <0x12200000 0x1000>;
> +		interrupts = <0 75 0>;
> +	};
> +
> +	mmc at 12210000 {
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +		compatible = "samsung,exynos5250-dwmmc";
> +		reg = <0x12210000 0x1000>;
> +		interrupts = <0 76 0>;
> +	};
> +
> +	mmc at 12220000 {
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +		compatible = "samsung,exynos5250-dwmmc";
> +		reg = <0x12220000 0x1000>;
> +		interrupts = <0 77 0>;
> +	};
> +
> +	mmc at 12230000 {
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +		compatible = "samsung,exynos5250-dwmmc";
> +		reg = <0x12230000 0x1000>;
> +		interrupts = <0 78 0>;
> +	};
>  };
> diff --git a/board/samsung/dts/exynos5250-smdk5250.dts b/board/samsung/dts/exynos5250-smdk5250.dts
> index cbfab6f..1d3e42b 100644
> --- a/board/samsung/dts/exynos5250-smdk5250.dts
> +++ b/board/samsung/dts/exynos5250-smdk5250.dts
> @@ -30,6 +30,10 @@
>  		spi2 = "/spi at 12d40000";
>  		spi3 = "/spi at 131a0000";
>  		spi4 = "/spi at 131b0000";
> +		mmc0 = "/mmc at 12200000";
> +		mmc1 = "/mmc at 12210000";
> +		mmc2 = "/mmc at 12220000";
> +		mmc3 = "/mmc at 12230000";
>  	};
>  
>  	sromc at 12250000 {
> @@ -66,4 +70,22 @@
>  			compatible = "maxim,max77686_pmic";
>  		};
>  	};
> +
> +	mmc at 12200000 {
> +		samsung,bus-width = <8>;
> +		samsung,timing = <1 3 3>;
> +	};
> +
> +	mmc at 12210000 {
> +		status = "disabled";
> +	};
> +
> +	mmc at 12220000 {
> +		samsung,bus-width = <4>;
> +		samsung,timing = <1 2 3>;
> +	};
> +
> +	mmc at 12230000 {
> +		status = "disabled";
> +	};
>  };
> diff --git a/doc/device-tree-bindings/exynos/dwmmc.txt b/doc/device-tree-bindings/exynos/dwmmc.txt
> new file mode 100644
> index 0000000..0054ace
> --- /dev/null
> +++ b/doc/device-tree-bindings/exynos/dwmmc.txt
> @@ -0,0 +1,49 @@
> +* Exynos 5250 DWC_mobile_storage
> +
> +The Exynos 5250 provides DWC_mobile_storage interface which supports
> +. Embedded Multimedia Cards (EMMC-version 4.5)
> +. Secure Digital memory (SD mem-version 2.0)
> +. Secure Digital I/O (SDIO-version 3.0)
> +. Consumer Electronics Advanced Transport Architecture (CE-ATA-version 1.1)
> +
> +The Exynos 5250 DWC_mobile_storage provides four channels.
> +SOC specific and Board specific properties are channel specific.
> +
> +Required SoC Specific Properties:
> +
> +- compatible: should be
> +	- samsung,exynos5250-dwmmc: for exynos5250 platforms
> +
> +- reg: physical base address of the controller and length of memory mapped
> +	region.
> +
> +- interrupts: The interrupt number to the cpu.
> +
> +Required Board Specific Properties:
> +
> +- #address-cells: should be 1.
> +- #size-cells: should be 0.
> +- samsung,bus-width: The width of the bus used to interface the devices
> +	supported by DWC_mobile_storage (SD-MMC/EMMC/SDIO).
> +	. Typically the bus width is 4 or 8.
> +- samsung,timing: The timing values to be written into the
> +	Drv/sample clock selection register of corresponding channel.
> +	. It is comprised of 3 values corresponding to the 3 fileds
> +	  'SelClk_sample', 'SelClk_drv' and 'DIVRATIO' of CLKSEL register.
> +	. SelClk_sample: Select sample clock among 8 shifted clocks.
> +	. SelClk_drv: Select drv clock among 8 shifted clocks.
> +	. DIVRATIO: Clock Divide ratio select.
> +	. The above 3 values are used by the clock phase shifter.
> +
> +Example:
> +
> +mmc at 12200000 {
> +	samsung,bus-width = <8>;
> +	samsung,timing = <1 3 3>;
> +}
> +In the above example,
> +	. The bus width is 8
> +	. Timing is comprised of 3 values as explained below
> +		1 - SelClk_sample
> +		3 - SelClk_drv
> +		3 - DIVRATIO
> 

  reply	other threads:[~2013-01-22  2:40 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-21 11:43 [U-Boot] [PATCH V5 00/10] EXYNOS5: Enable DWMMC, add FDT support for DWMMC and enable EMMC boot Amar
2013-01-21 11:43 ` [U-Boot] [PATCH V5 01/10] FDT: Add compatible string for DWMMC Amar
2013-01-22  2:40   ` Jaehoon Chung
2013-01-21 11:43 ` [U-Boot] [PATCH V5 02/10] EXYNOS5: FDT: Add DWMMC device node data Amar
2013-01-22  2:40   ` Jaehoon Chung [this message]
2013-01-23  0:09   ` Simon Glass
2013-01-28  9:20     ` Amarendra Reddy
2013-02-08 17:03       ` Simon Glass
2013-02-15  6:19         ` Amarendra Reddy
2013-01-21 11:43 ` [U-Boot] [PATCH V5 03/10] DWMMC: Initialise dwmci and resolve EMMC read write issues Amar
2013-01-22  2:44   ` Jaehoon Chung
2013-01-22  5:55     ` Amarendra Reddy
2013-01-22  6:54       ` Jaehoon Chung
2013-01-23  0:25   ` Simon Glass
2013-01-28  9:25     ` Amarendra Reddy
2013-01-21 11:43 ` [U-Boot] [PATCH V5 04/10] EXYNOS5: DWMMC: Added FDT support for DWMMC Amar
2013-01-26 20:08   ` Simon Glass
2013-01-28  9:31     ` Amarendra Reddy
2013-02-09 16:54       ` Simon Glass
2013-02-15  6:18         ` Amarendra Reddy
2013-01-21 11:43 ` [U-Boot] [PATCH V5 05/10] EXYNOS5: DWMMC: Initialise the local variable to avoid unwanted results Amar
2013-01-26 20:09   ` Simon Glass
2013-01-21 11:43 ` [U-Boot] [PATCH V5 06/10] SMDK5250: Initialise and Enable DWMMC, support FDT and non-FDT Amar
2013-01-26 20:13   ` Simon Glass
2013-01-21 11:43 ` [U-Boot] [PATCH V5 07/10] MMC: APIs to support resize of EMMC boot partition Amar
2013-01-26 20:25   ` Simon Glass
2013-01-28  9:34     ` Amarendra Reddy
2013-01-21 11:43 ` [U-Boot] [PATCH V5 08/10] SMDK5250: Enable EMMC booting Amar
2013-01-26 20:26   ` Simon Glass
2013-01-21 11:43 ` [U-Boot] [PATCH V5 09/10] COMMON: MMC: Command to support EMMC booting and to resize EMMC boot partition Amar
2013-01-26 20:27   ` Simon Glass
2013-01-28  9:35     ` Amarendra Reddy
2013-01-21 11:43 ` [U-Boot] [PATCH V5 10/10] EXYNOS5: I2C: Added FDT and non-FDT support for I2C Amar
2013-01-26 20:29   ` Simon Glass
2013-01-28  9:43     ` Amarendra Reddy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50FDFC2A.2030100@samsung.com \
    --to=jh80.chung@samsung.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox