Skip to contentSkip to conversation

ARM: dts: i.MX27: Allow to define partitions onto SDHC

PATCH New Alexander Shiyan 2 participants 4 messages Apr 13, 2014 – Apr 14, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

This patch allow to define partitions onto SDHC in user defined devicetrees.

---
 arch/arm/boot/dts/imx27.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/imx27.dtsi +6 -0
index 83a8247..843aefc 100644
@@ -263,6 +263,8 @@
 			};
 
 			sdhci1: sdhci at 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 at 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 at 1001e000 {
+				#address-cells = <1>;
+				#size-cells = <1>;
 				compatible = "fsl,imx27-mmc", "fsl,imx21-mmc";
 				reg = <0x1001e000 0x1000>;
 				interrupts = <9>;
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 2/2 ARM: dts: i.MX51: Allow to define partitions onto SDHC, PATA and NFC

This patch allow to define partitions onto SDHC, PATA and NFC in user defined devicetrees.

---
 arch/arm/boot/dts/imx51.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/arm/boot/dts/imx51.dtsi +12 -0
index cb3204a..12f0084 100644
@@ -161,6 +161,8 @@
 				ranges;
 
 				esdhc1: esdhc at 70004000 {
+					#address-cells = <1>;
+					#size-cells = <1>;
 					compatible = "fsl,imx51-esdhc";
 					reg = <0x70004000 0x4000>;
 					interrupts = <1>;
@@ -172,6 +174,8 @@
 				};
 
 				esdhc2: esdhc at 70008000 {
+					#address-cells = <1>;
+					#size-cells = <1>;
 					compatible = "fsl,imx51-esdhc";
 					reg = <0x70008000 0x4000>;
 					interrupts = <2>;
@@ -219,6 +223,8 @@
 				};
 
 				esdhc3: esdhc at 70020000 {
+					#address-cells = <1>;
+					#size-cells = <1>;
 					compatible = "fsl,imx51-esdhc";
 					reg = <0x70020000 0x4000>;
 					interrupts = <3>;
@@ -231,6 +237,8 @@
 				};
 
 				esdhc4: esdhc at 70024000 {
+					#address-cells = <1>;
+					#size-cells = <1>;
 					compatible = "fsl,imx51-esdhc";
 					reg = <0x70024000 0x4000>;
 					interrupts = <4>;
@@ -534,6 +542,8 @@
 			};
 
 			nfc: nand at 83fdb000 {
+				#address-cells = <1>;
+				#size-cells = <1>;
 				compatible = "fsl,imx51-nand";
 				reg = <0x83fdb000 0x1000 0xcfff0000 0x10000>;
 				interrupts = <8>;
@@ -542,6 +552,8 @@
 			};
 
 			pata: pata at 83fe0000 {
+				#address-cells = <1>;
+				#size-cells = <1>;
 				compatible = "fsl,imx51-pata", "fsl,imx27-pata";
 				reg = <0x83fe0000 0x4000>;
 				interrupts = <70>;
Signature · 1 line
1.8.3.2
#2 lore raw

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

In reply to Alexander Shiyan
Quoted 2 lines · Alexander Shiyan

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

Quoted 42 lines
---
 arch/arm/boot/dts/imx27.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/imx27.dtsi +6 -0
index 83a8247..843aefc 100644
@@ -263,6 +263,8 @@
 			};
 
 			sdhci1: sdhci at 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 at 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 at 1001e000 {
+				#address-cells = <1>;
+				#size-cells = <1>;
 				compatible = "fsl,imx27-mmc", "fsl,imx21-mmc";
 				reg = <0x1001e000 0x1000>;
 				interrupts = <9>;
Signature · 1 line
1.8.3.2
#3 lore raw

Mon, 14 Apr 2014 09:32:03 +0800 ?? Shawn Guo <[email protected]>:

Quoted 6 lines · Alexander Shiyan
Quoted 2 lines

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.

---