Skip to contentSkip to conversation

arm/dts: AM33XX: Add SPI device tree data

PATCH RESEND Superseded Philip, Avinash 2 participants 3 messages Sep 6, 2012 – Sep 10, 2012 Device tree bindings

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 arm/dts: AM33XX: Add SPI device tree data

Add McSPI data node to AM33XX device tree file. The McSPI module (and so as the driver) is reused from OMAP4.

---
Resenting patch because ARM & OMAP mailing list was not copied.

:100644 100644 bb31bff... 6b469bd... M arch/arm/boot/dts/am33xx.dtsi

 arch/arm/boot/dts/am33xx.dtsi |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)
arch/arm/boot/dts/am33xx.dtsi +25 -0
index bb31bff..6b469bd 100644
@@ -210,5 +210,30 @@
 			interrupt-parent = <&intc>;
 			interrupts = <91>;
 		};
+
+		spi0: spi at 48030000 {
+			compatible = "ti,omap4-mcspi";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x4830000 0x400>;
+			interrupt-parent = <&intc>;
+			interrupt = <65>;
+			ti,spi-num-cs = <2>;
+			ti,hwmods = "spi0";
+			status = "disabled";
+
+		};
+
+		spi1: spi at 481a0000 {
+			compatible = "ti,omap4-mcspi";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x481a0000 0x400>;
+			interrupt-parent = <&intc>;
+			interrupt = <125>;
+			ti,spi-num-cs = <2>;
+			ti,hwmods = "spi1";
+			status = "disabled";
+		};
 	};
 };
Signature · 1 line
1.7.1
Tested-by on v1 1/1
#1 lore raw
Quoted 16 lines · Avinash

Add McSPI data node to AM33XX device tree file. The McSPI module (and so as the driver) is reused from OMAP4.

---
Resenting patch because ARM & OMAP mailing list was not copied.

:100644 100644 bb31bff... 6b469bd... M arch/arm/boot/dts/am33xx.dtsi

 arch/arm/boot/dts/am33xx.dtsi |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)
arch/arm/boot/dts/am33xx.dtsi +0 -0
index bb31bff..6b469bd 100644

arch/arm/boot/dts/am33xx.dtsi line 218

Quoted 9 lines
arch/arm/boot/dts/am33xx.dtsi +6 -0
@@ -210,5 +210,30 @@
 			interrupt-parent = <&intc>;
 			interrupts = <91>;
 		};
+
+		spi0: spi@48030000 {
+			compatible = "ti,omap4-mcspi";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x4830000 0x400>;

Please fix this typo, should be 0x48030000.

With the typo fixed, it's working on bone for me:

-Matt

#2 lore raw
Quoted 29 lines · Matt
Quoted 16 lines · Avinash

Add McSPI data node to AM33XX device tree file. The McSPI module (and so as the driver) is reused from OMAP4.

---
Resenting patch because ARM & OMAP mailing list was not copied.

:100644 100644 bb31bff... 6b469bd... M arch/arm/boot/dts/am33xx.dtsi

 arch/arm/boot/dts/am33xx.dtsi |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)
arch/arm/boot/dts/am33xx.dtsi +0 -0
index bb31bff..6b469bd 100644

arch/arm/boot/dts/am33xx.dtsi line 218

Quoted 9 lines
arch/arm/boot/dts/am33xx.dtsi +6 -0
@@ -210,5 +210,30 @@
 			interrupt-parent = <&intc>;
 			interrupts = <91>;
 		};
+
+		spi0: spi at 48030000 {
+			compatible = "ti,omap4-mcspi";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x4830000 0x400>;

Please fix this typo, should be 0x48030000.

Quoted 1 line

With the typo fixed, it's working on bone for me:

Thanks for review and testing.
I didn't notice the issue as currently hwmod fills up reg resource data & hence I missed it.

I will correct & re-send.

Thanks
Avinash

Quoted 5 lines

-Matt