Skip to contentSkip to conversation

ARM: dts: AM33xx: Add SPI node

PATCH Applied Philip, Avinash 2 participants 4 messages Oct 31, 2012 – Nov 5, 2012 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 ARM: dts: AM33xx: Add SPI node

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

---
Changes since v2:
- Commit message corrected.
- Rebase on top of for_3.8/dts

Changes since v1:
- Corrected reg offset in reg DT entry.

:100644 100644 97a7bd3... 6e04789... M arch/arm/boot/dts/am33xx.dtsi

 arch/arm/boot/dts/am33xx.dtsi |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)
arch/arm/boot/dts/am33xx.dtsi +24 -0
index 97a7bd3..6e04789 100644
@@ -299,5 +299,29 @@
 				      76>;
 			ti,hwmods = "rtc";
 		};
+
+		spi0: spi at 48030000 {
+			compatible = "ti,omap4-mcspi";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x48030000 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.0.4
#1 lore raw
Quoted 6 lines · Avinash

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

---

Applied in for_3.8/dts

Thanks,
Benoit

Quoted 46 lines

Changes since v2:
- Commit message corrected.
- Rebase on top of for_3.8/dts

Changes since v1:
- Corrected reg offset in reg DT entry.

:100644 100644 97a7bd3... 6e04789... M arch/arm/boot/dts/am33xx.dtsi

 arch/arm/boot/dts/am33xx.dtsi |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)
arch/arm/boot/dts/am33xx.dtsi +24 -0
index 97a7bd3..6e04789 100644
@@ -299,5 +299,29 @@
 				      76>;
 			ti,hwmods = "rtc";
 		};
+
+		spi0: spi at 48030000 {
+			compatible = "ti,omap4-mcspi";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x48030000 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";
+		};
 	};
 };
Tested-by Matt Porter on v3 1/1
#2 lore raw
In reply to Philip, Avinash

Hi Avinash,

Quoted 5 lines · Avinash

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

I've just realized the interrupt-parent was still there, so I removed both.

Please find below the updated version.

Regards,
Benoit

----

Quoted 1 line

From 9fd3c748aac9418cd377249ca463050783d2198f Mon Sep 17 00:00:00 2001

From: Philip, Avinash <[email protected]>
Date: Wed, 31 Oct 2012 16:21:09 +0530
Subject: [PATCH] ARM: dts: AM33XX: Add SPI node

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

[b-cousson at ti.com: Remove interrupt-parent]
---
 arch/arm/boot/dts/am33xx.dtsi |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)
arch/arm/boot/dts/am33xx.dtsi +22 -0
index 97a7bd3..5dfd682 100644
@@ -299,5 +299,27 @@
 				      76>;
 			ti,hwmods = "rtc";
 		};
+
+		spi0: spi at 48030000 {
+			compatible = "ti,omap4-mcspi";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x48030000 0x400>;
+			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 = <125>;
+			ti,spi-num-cs = <2>;
+			ti,hwmods = "spi1";
+			status = "disabled";
+		};
 	};
 };
Signature · 1 line
1.7.0.4
#3 lore raw
Quoted 6 lines · Benoit

Hi Avinash,

Quoted 3 lines · Avinash

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

Quoted 6 lines
Quoted 2 lines

I've just realized the interrupt-parent was still there, so I removed both.

Please find below the updated version.

I tested it and thanks for the fix.

Thanks
Avinash