Skip to contentSkip to conversation

ARM: dts: mxs: Add missing address and size cells in SSP* nodes

PATCH Superseded Maxime Ripard 2 participants 7 messages Sep 3, 2012

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/3 ARM: dts: mxs: Add missing address and size cells in SSP* nodes

---
 arch/arm/boot/dts/imx28.dtsi |    8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm/boot/dts/imx28.dtsi +8 -0
index 26a166c..8497a0e 100644
@@ -86,6 +86,8 @@
 			};
 
 			ssp0: ssp at 80010000 {
+				#address-cells = <1>;
+				#size-cells = <0>;
 				reg = <0x80010000 2000>;
 				interrupts = <96 82>;
 				fsl,ssp-dma-channel = <0>;
@@ -93,6 +95,8 @@
 			};
 
 			ssp1: ssp at 80012000 {
+				#address-cells = <1>;
+				#size-cells = <0>;
 				reg = <0x80012000 2000>;
 				interrupts = <97 83>;
 				fsl,ssp-dma-channel = <1>;
@@ -100,6 +104,8 @@
 			};
 
 			ssp2: ssp at 80014000 {
+				#address-cells = <1>;
+				#size-cells = <0>;
 				reg = <0x80014000 2000>;
 				interrupts = <98 84>;
 				fsl,ssp-dma-channel = <2>;
@@ -107,6 +113,8 @@
 			};
 
 			ssp3: ssp at 80016000 {
+				#address-cells = <1>;
+				#size-cells = <0>;
 				reg = <0x80016000 2000>;
 				interrupts = <99 85>;
 				fsl,ssp-dma-channel = <3>;
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH v2 2/3 ARM: dts: mxs Add additionnal muxing options for SSP3

---
 arch/arm/boot/dts/imx28.dtsi |   11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm/boot/dts/imx28.dtsi +11 -0
index 8497a0e..6c51ff4 100644
@@ -586,6 +586,17 @@
 					fsl,voltage = <1>;
 					fsl,pull-up = <1>;
 				};
+
+				spi3_pins_b: spi3 at 1 {
+					reg = <1>;
+					fsl,pinmux-ids = <
+						0x0181 /* MX28_PAD_GPMI_RDN__SSP3_SCK */
+						0x01c1 /* MX28_PAD_GPMI_RESETN__SSP3_CMD */
+					>;
+					fsl,drive-strength = <1>;
+					fsl,voltage = <1>;
+					fsl,pull-up = <1>;
+				};
 			};
 
 			digctl at 8001c000 {
Signature · 1 line
1.7.9.5
#2 lore raw

PATCH v2 2/3 ARM: dts: mxs Add additionnal muxing options for SSP3

Quoted 10 lines · Maxime Ripard
---
 arch/arm/boot/dts/imx28.dtsi |   11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm/boot/dts/imx28.dtsi +0 -0
index 8497a0e..6c51ff4 100644

arch/arm/boot/dts/imx28.dtsi line 594

Quoted 9 lines
arch/arm/boot/dts/imx28.dtsi +6 -0
@@ -586,6 +586,17 @@
 					fsl,voltage = <1>;
 					fsl,pull-up = <1>;
 				};
+
+				spi3_pins_b: spi3 at 1 {
+					reg = <1>;
+					fsl,pinmux-ids = <
+						0x0181 /* MX28_PAD_GPMI_RDN__SSP3_SCK */
+						0x01c1 /* MX28_PAD_GPMI_RESETN__SSP3_CMD */

The spi only needs two pins to work?

Has spi3_pins_a been defined? I haven't seen it.

Regards,
Shawn

Quoted 11 lines
arch/arm/boot/dts/imx28.dtsi +5 -0
+					>;
+					fsl,drive-strength = <1>;
+					fsl,voltage = <1>;
+					fsl,pull-up = <1>;
+				};
 			};
 
 			digctl at 8001c000 {
Signature · 1 line
1.7.9.5
#3 lore raw

PATCH v2 2/3 ARM: dts: mxs Add additionnal muxing options for SSP3

Le 03/09/2012 16:53, Shawn Guo a ?crit :

Quoted 6 lines · Maxime Ripard
Quoted 5 lines
---
 arch/arm/boot/dts/imx28.dtsi |   11 +++++++++++
 1 file changed, 11 insertions(+)
Quoted 16 lines
Quoted 5 lines
arch/arm/boot/dts/imx28.dtsi +0 -0
index 8497a0e..6c51ff4 100644

arch/arm/boot/dts/imx28.dtsi line 594

Quoted 9 lines
arch/arm/boot/dts/imx28.dtsi +6 -0
@@ -586,6 +586,17 @@
 					fsl,voltage = <1>;
 					fsl,pull-up = <1>;
 				};
+
+				spi3_pins_b: spi3 at 1 {
+					reg = <1>;
+					fsl,pinmux-ids = <
+						0x0181 /* MX28_PAD_GPMI_RDN__SSP3_SCK */
+						0x01c1 /* MX28_PAD_GPMI_RESETN__SSP3_CMD */

The spi only needs two pins to work?

Oops. I only used MOSI, so I forgot to mux MISO. Sorry about that, this will be fixed in the new version.

Quoted 1 line

Has spi3_pins_a been defined? I haven't seen it.

It's the same thing as the first patch. I had Marek's last patch in my tree that adds spi3_pins_a. I will change it in the next version.

Thanks,
Maxime

Signature · 4 lines
Maxime Ripard, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#4 lore raw

PATCH v2 3/3 dts: mxs: spi: Add SSP3 to the 10049 board

In reply to Maxime Ripard
---
 arch/arm/boot/dts/imx28-cfa10049.dts |    9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm/boot/dts/imx28-cfa10049.dts +9 -0
index c73b9b8..a0c7b83 100644
@@ -16,6 +16,15 @@
 	compatible = "crystalfontz,cfa10049", "crystalfontz,cfa10036", "fsl,imx28";
 
 	apb at 80000000 {
+		apbh at 80000000 {
+			ssp3: ssp at 80016000 {
+				compatible = "fsl,imx28-spi";
+				pinctrl-names = "default";
+				pinctrl-0 = <&spi3_pins_b>;
+				status = "okay";
+			};
+		};
+
 		apbx at 80040000 {
 			i2c1: i2c at 8005a000 {
 				pinctrl-names = "default";
Signature · 1 line
1.7.9.5
#5 lore raw

PATCH v2 1/3 ARM: dts: mxs: Add missing address and size cells in SSP* nodes

In reply to Maxime Ripard

Which tree your patches are based on? Neither does it apply on v3.6-rc nor my mxs/dt-for-3.7 branch.

Nit: The "*" in subject is not really needed. "... in SSP nodes" looks just fine.

Regards,
Shawn

Quoted 48 lines · Maxime Ripard
---
 arch/arm/boot/dts/imx28.dtsi |    8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm/boot/dts/imx28.dtsi +8 -0
index 26a166c..8497a0e 100644
@@ -86,6 +86,8 @@
 			};
 
 			ssp0: ssp at 80010000 {
+				#address-cells = <1>;
+				#size-cells = <0>;
 				reg = <0x80010000 2000>;
 				interrupts = <96 82>;
 				fsl,ssp-dma-channel = <0>;
@@ -93,6 +95,8 @@
 			};
 
 			ssp1: ssp at 80012000 {
+				#address-cells = <1>;
+				#size-cells = <0>;
 				reg = <0x80012000 2000>;
 				interrupts = <97 83>;
 				fsl,ssp-dma-channel = <1>;
@@ -100,6 +104,8 @@
 			};
 
 			ssp2: ssp at 80014000 {
+				#address-cells = <1>;
+				#size-cells = <0>;
 				reg = <0x80014000 2000>;
 				interrupts = <98 84>;
 				fsl,ssp-dma-channel = <2>;
@@ -107,6 +113,8 @@
 			};
 
 			ssp3: ssp at 80016000 {
+				#address-cells = <1>;
+				#size-cells = <0>;
 				reg = <0x80016000 2000>;
 				interrupts = <99 85>;
 				fsl,ssp-dma-channel = <3>;
Signature · 1 line
1.7.9.5
#6 lore raw

PATCH v2 1/3 ARM: dts: mxs: Add missing address and size cells in SSP* nodes

Hi Shawn,

Le 03/09/2012 16:49, Shawn Guo a ?crit :

Quoted 2 lines

Which tree your patches are based on? Neither does it apply on v3.6-rc nor my mxs/dt-for-3.7 branch.

They are based on 3.6-rc1 + Marek Vasut's patches for SPI ([PATCH v3] MXS SPI Driver sent the 08/03).

But it looks like the last patch that was never merged, and it was actually adding the muxing options to the imx28 dtsi file.

I'll remove that patch from my tree and send a new version of this patch.

Quoted 2 lines

Nit: The "*" in subject is not really needed. "... in SSP nodes" looks just fine.

Ok, I will remove it in the next version.

Thanks,
Maxime

Signature · 4 lines
Maxime Ripard, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com