Patchwork [U-Boot,3/4,V2] EXYNOS5: FDT: Add SPI device node data

login
register
mail settings
Submitter Rajeshwari Birje
Date Dec. 5, 2012, 10:38 a.m.
Message ID <1354703927-4786-4-git-send-email-rajeshwari.s@samsung.com>
Download mbox | patch
Permalink /patch/203830/
State Changes Requested
Delegated to: Minkyu Kang
Headers show

Comments

Rajeshwari Birje - Dec. 5, 2012, 10:38 a.m.
Add SPI device node data for exynos.

Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
---
Changes in V2:
	- Added device node for ISP-SPI channels and documentation for same.
 arch/arm/dts/exynos5250.dtsi                |   41 +++++++++++++++++++++++++++
 doc/device-tree-bindings/exynos/isp-spi.txt |   22 ++++++++++++++
 2 files changed, 63 insertions(+), 0 deletions(-)
 create mode 100644 doc/device-tree-bindings/exynos/isp-spi.txt
Simon Glass - Dec. 8, 2012, 7:32 p.m.
On Wed, Dec 5, 2012 at 2:38 AM, Rajeshwari Shinde
<rajeshwari.s@samsung.com> wrote:
> Add SPI device node data for exynos.
>
> Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>

I was wondering about the ISP SPI interrupts - that answers the
question. Is there really no way to get an interrupt? It doesn't
matter for U-Boot, but might for Linux.

Acked-by: Simon Glass <sjg@chromium.org>

> ---
> Changes in V2:
>         - Added device node for ISP-SPI channels and documentation for same.
>  arch/arm/dts/exynos5250.dtsi                |   41 +++++++++++++++++++++++++++
>  doc/device-tree-bindings/exynos/isp-spi.txt |   22 ++++++++++++++
>  2 files changed, 63 insertions(+), 0 deletions(-)
>  create mode 100644 doc/device-tree-bindings/exynos/isp-spi.txt
>

Patch

diff --git a/arch/arm/dts/exynos5250.dtsi b/arch/arm/dts/exynos5250.dtsi
index 3f750f0..2073ef2 100644
--- a/arch/arm/dts/exynos5250.dtsi
+++ b/arch/arm/dts/exynos5250.dtsi
@@ -102,4 +102,45 @@ 
 		compatible = "samsung,exynos-sound";
 		reg = <0x12d60000 0x20>;
 	};
+
+	spi@12d20000 {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		compatible = "samsung,exynos-spi";
+		reg = <0x12d20000 0x30>;
+		interrupts = <0 68 0>;
+	};
+
+	spi@12d30000 {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		compatible = "samsung,exynos-spi";
+		reg = <0x12d30000 0x30>;
+		interrupts = <0 69 0>;
+	};
+
+	spi@12d40000 {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		compatible = "samsung,exynos-spi";
+		reg = <0x12d40000 0x30>;
+		clock-frequency = <50000000>;
+		interrupts = <0 70 0>;
+        };
+
+	spi@131a0000 {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		compatible = "samsung,exynos-spi";
+		reg = <0x131a0000 0x30>;
+		interrupts = <0 129 0>;
+	};
+
+	spi@131b0000 {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		compatible = "samsung,exynos-spi";
+		reg = <0x131b0000 0x30>;
+		interrupts = <0 130 0>;
+	};
 };
diff --git a/doc/device-tree-bindings/exynos/isp-spi.txt b/doc/device-tree-bindings/exynos/isp-spi.txt
new file mode 100644
index 0000000..b8086e8
--- /dev/null
+++ b/doc/device-tree-bindings/exynos/isp-spi.txt
@@ -0,0 +1,22 @@ 
+Exynos ISP SPI Subsystem
+
+The device node for ISP SPI subsytem.
+Since Peripheral id in EXYNOS is decoded based on Interrupts, currently
+ISP SPI have no individual interrupts hence we add ad dummy interrupt node
+which will have a value beyond the maximum number of interrupts exynos5 can
+support.
+
+Required properties :
+ - compatible : Should be "samsung,exynos-spi" for spi.
+ - reg : Base adrress of the the subsystem.
+ - interrupts : A value which is beyond the maximum number of interrupts
+exynos5 can support.
+
+Example:
+spi@131a0000 {
+	#address-cells = <1>;
+	#size-cells = <0>;
+	compatible = "samsung,exynos-spi";
+	reg = <0x131a0000 0x30>;
+	interrupts = <0 129 0>;
+};