Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1380573 > unrolled thread

[PATCH v2 1/4] ARM: DTS: da850: add spi0 to device tree

Started byDavid Lechner <david@lechnology.com>
First post2016-04-16 19:10 +0200
Last post2016-04-16 19:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v2 1/4] ARM: DTS: da850: add spi0 to device tree David Lechner <david@lechnology.com> - 2016-04-16 19:10 +0200

#1380573 — [PATCH v2 1/4] ARM: DTS: da850: add spi0 to device tree

FromDavid Lechner <david@lechnology.com>
Date2016-04-16 19:10 +0200
Subject[PATCH v2 1/4] ARM: DTS: da850: add spi0 to device tree
Message-ID<roBTj-72V-1@gated-at.bofh.it>
Add device node and pinmux for SoC spi0.

Signed-off-by: David Lechner <david@lechnology.com>
---

Device tree portion of previous "ARM: davinci: add spi0 to da850 device tree"
patch.

Added pinmux definitions.


 arch/arm/boot/dts/da850.dtsi | 24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi
index c9bf27d..8880d57 100644
--- a/arch/arm/boot/dts/da850.dtsi
+++ b/arch/arm/boot/dts/da850.dtsi
@@ -120,7 +120,19 @@
 					0x4 0x00000004 0x0000000f
 				>;
 			};
-			spi1_pins: pinmux_spi_pins {
+			spi0_pins: pinmux_spi0_pins {
+				pinctrl-single,bits = <
+					/* SIMO, SOMI, CLK */
+					0xc 0x00001101 0x0000ff0f
+				>;
+			};
+			spi0_cs0_pin: pinmux_spi0_cs0 {
+				pinctrl-single,bits = <
+					/* CS0 */
+					0x10 0x00000010 0x000000f0
+				>;
+			};
+			spi1_pins: pinmux_spi1_pins {
 				pinctrl-single,bits = <
 					/* SIMO, SOMI, CLK */
 					0x14 0x00110100 0x00ff0f00
@@ -291,6 +303,16 @@
 			reg = <0x308000 0x80>;
 			status = "disabled";
 		};
+		spi0: spi@41000 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			compatible = "ti,da830-spi";
+			reg = <0x41000 0x1000>;
+			num-cs = <6>;
+			ti,davinci-spi-intr-line = <1>;
+			interrupts = <20>;
+			status = "disabled";
+		};
 		spi1: spi@30e000 {
 			#address-cells = <1>;
 			#size-cells = <0>;
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web