Skip to contentSkip to conversation

Add SPI nodes to Altera SOCFPGA DT

PATCH Superseded [email protected] 2 participants 3 messages Oct 21, 2014 – Oct 23, 2014 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 Add SPI nodes to Altera SOCFPGA DT

From: Thor Thayer <[email protected]>

This patch adds the SPI nodes to the SOCFPGA device tree. Both nodes are left in the disabled state since no devices are present on the development boards.

Thor Thayer (1):
arm: dts: socfpga: Add SPI nodes to SOCFPGA DT.

 arch/arm/boot/dts/socfpga.dtsi |   22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
Signature · 6 lines
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw

PATCH v4 1/1 arm: dts: socfpga: Add SPI nodes to SOCFPGA DT.

In reply to a message not in the archive

From: Thor Thayer <[email protected]>

Add 2 SPI nodes to SOCFPGA device tree.

---
v2: Remove extra files. Move SPIDEV into board specific file.

v3: Remove dts file since SPIDEV is not allowed.

v4: Remove bus-num since it is unused and not defined in bindings.

---
 arch/arm/boot/dts/socfpga.dtsi |   22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
arch/arm/boot/dts/socfpga.dtsi +22 -0
index 4d77ad6..2792e6c 100644
@@ -628,6 +628,28 @@
 			clock-names = "biu", "ciu";
 		};
 
+		spi0: spi@fff00000 {
+			compatible = "snps,dw-apb-ssi";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0xfff00000 0x1000>;
+			interrupts = <0 154 4>;
+			num-cs = <4>;
+			clocks = <&spi_m_clk>;
+			status = "disabled";
+		};
+
+		spi1: spi@fff01000 {
+			compatible = "snps,dw-apb-ssi";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0xfff01000 0x1000>;
+			interrupts = <0 156 4>;
+			num-cs = <4>;
+			clocks = <&spi_m_clk>;
+			status = "disabled";
+		};
+
 		/* Local timer */
 		timer@fffec600 {
 			compatible = "arm,cortex-a9-twd-timer";
Signature · 6 lines
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Applied
#4 lore raw

Re: [PATCHv4] arm: dts: socfpga: Add SPI nodes to SOCFPGA DT.

In reply to a message not in the archive
Quoted 50 lines · On Tue, 21 Oct 2014, [email protected]…

From: Thor Thayer <[email protected]>

Add 2 SPI nodes to SOCFPGA device tree.

---
v2: Remove extra files. Move SPIDEV into board specific file.

v3: Remove dts file since SPIDEV is not allowed.

v4: Remove bus-num since it is unused and not defined in bindings.

---
 arch/arm/boot/dts/socfpga.dtsi |   22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
arch/arm/boot/dts/socfpga.dtsi +22 -0
index 4d77ad6..2792e6c 100644
@@ -628,6 +628,28 @@
 			clock-names = "biu", "ciu";
 		};
 
+		spi0: spi@fff00000 {
+			compatible = "snps,dw-apb-ssi";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0xfff00000 0x1000>;
+			interrupts = <0 154 4>;
+			num-cs = <4>;
+			clocks = <&spi_m_clk>;
+			status = "disabled";
+		};
+
+		spi1: spi@fff01000 {
+			compatible = "snps,dw-apb-ssi";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0xfff01000 0x1000>;
+			interrupts = <0 156 4>;
+			num-cs = <4>;
+			clocks = <&spi_m_clk>;
+			status = "disabled";
+		};
+
 		/* Local timer */
 		timer@fffec600 {
 			compatible = "arm,cortex-a9-twd-timer";
Signature · 1 line
1.7.9.5

Applied to git.rocketboards.org/linux-socfpga-next.git next-dt.

BR,
Dinh
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html