diff mbox

[1/2] ARM: dts: i.MX27: Allow to define partitions onto SDHC

Message ID 1397372389-32016-1-git-send-email-shc_work@mail.ru (mailing list archive)
State New, archived
Headers show

Commit Message

Alexander Shiyan April 13, 2014, 6:59 a.m. UTC
This patch allow to define partitions onto SDHC in user defined
devicetrees.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 arch/arm/boot/dts/imx27.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Shawn Guo April 14, 2014, 1:32 a.m. UTC | #1
On Sun, Apr 13, 2014 at 10:59:48AM +0400, Alexander Shiyan wrote:
> This patch allow to define partitions onto SDHC in user defined
> devicetrees.

Hmm, is this something like MTD ofpart?  Is this the right thing to do
for block device?  How this will be used by kernel?

Shawn

> 
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
> ---
>  arch/arm/boot/dts/imx27.dtsi | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/imx27.dtsi b/arch/arm/boot/dts/imx27.dtsi
> index 83a8247..843aefc 100644
> --- a/arch/arm/boot/dts/imx27.dtsi
> +++ b/arch/arm/boot/dts/imx27.dtsi
> @@ -263,6 +263,8 @@
>  			};
>  
>  			sdhci1: sdhci@10013000 {
> +				#address-cells = <1>;
> +				#size-cells = <1>;
>  				compatible = "fsl,imx27-mmc", "fsl,imx21-mmc";
>  				reg = <0x10013000 0x1000>;
>  				interrupts = <11>;
> @@ -274,6 +276,8 @@
>  			};
>  
>  			sdhci2: sdhci@10014000 {
> +				#address-cells = <1>;
> +				#size-cells = <1>;
>  				compatible = "fsl,imx27-mmc", "fsl,imx21-mmc";
>  				reg = <0x10014000 0x1000>;
>  				interrupts = <10>;
> @@ -416,6 +420,8 @@
>  			};
>  
>  			sdhci3: sdhci@1001e000 {
> +				#address-cells = <1>;
> +				#size-cells = <1>;
>  				compatible = "fsl,imx27-mmc", "fsl,imx21-mmc";
>  				reg = <0x1001e000 0x1000>;
>  				interrupts = <9>;
> -- 
> 1.8.3.2
> 
> 
>
Alexander Shiyan April 14, 2014, 4:19 a.m. UTC | #2
Mon, 14 Apr 2014 09:32:03 +0800 ?? Shawn Guo <shawn.guo@freescale.com>:
> On Sun, Apr 13, 2014 at 10:59:48AM +0400, Alexander Shiyan wrote:
> > This patch allow to define partitions onto SDHC in user defined
> > devicetrees.
> 
> Hmm, is this something like MTD ofpart?  Is this the right thing to do
> for block device?  How this will be used by kernel?

This was intended for use not from the kernel, so probably this is not
a right place...
I'll resend v2 with patching i.MX51 NFC only.

---
diff mbox

Patch

diff --git a/arch/arm/boot/dts/imx27.dtsi b/arch/arm/boot/dts/imx27.dtsi
index 83a8247..843aefc 100644
--- a/arch/arm/boot/dts/imx27.dtsi
+++ b/arch/arm/boot/dts/imx27.dtsi
@@ -263,6 +263,8 @@ 
 			};
 
 			sdhci1: sdhci@10013000 {
+				#address-cells = <1>;
+				#size-cells = <1>;
 				compatible = "fsl,imx27-mmc", "fsl,imx21-mmc";
 				reg = <0x10013000 0x1000>;
 				interrupts = <11>;
@@ -274,6 +276,8 @@ 
 			};
 
 			sdhci2: sdhci@10014000 {
+				#address-cells = <1>;
+				#size-cells = <1>;
 				compatible = "fsl,imx27-mmc", "fsl,imx21-mmc";
 				reg = <0x10014000 0x1000>;
 				interrupts = <10>;
@@ -416,6 +420,8 @@ 
 			};
 
 			sdhci3: sdhci@1001e000 {
+				#address-cells = <1>;
+				#size-cells = <1>;
 				compatible = "fsl,imx27-mmc", "fsl,imx21-mmc";
 				reg = <0x1001e000 0x1000>;
 				interrupts = <9>;