linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: berlin: add SPI nodes for BG2Q
@ 2015-05-20 12:53 Antoine Tenart
  2015-05-20 16:58 ` Sebastian Hesselbarth
  2015-05-20 23:21 ` Sebastian Hesselbarth
  0 siblings, 2 replies; 7+ messages in thread
From: Antoine Tenart @ 2015-05-20 12:53 UTC (permalink / raw)
  To: linux-arm-kernel

The BG2Q SoC has two SPI controllers. Add the corresponding nodes.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
---

Based on top of the Berlin clock rework series.

 arch/arm/boot/dts/berlin2q.dtsi | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/arch/arm/boot/dts/berlin2q.dtsi b/arch/arm/boot/dts/berlin2q.dtsi
index 187d056f7ad2..c25ee86b2bfa 100644
--- a/arch/arm/boot/dts/berlin2q.dtsi
+++ b/arch/arm/boot/dts/berlin2q.dtsi
@@ -286,6 +286,20 @@
 				status = "disabled";
 			};
 
+			spi0: spi at 1c00 {
+				compatible = "snps,dw-apb-ssi";
+				reg = <0x1c00 0x100>;
+				interrupt-parrent = <&aic>;
+				interrupts = <7>;
+				clocks = <&chip_clk CLKID_CFG>;
+				pinctrl-0 = <&spi0_pmux>;
+				pinctrl-names = "default";
+				#address-cells = <1>;
+				#size-cells = <0>;
+				num-cs = <4>;
+				status = "disabled";
+			};
+
 			timer0: timer at 2c00 {
 				compatible = "snps,dw-apb-timer";
 				reg = <0x2c00 0x14>;
@@ -383,6 +397,11 @@
 					groups = "G7";
 					function = "twsi1";
 				};
+
+				spi0_pmux: spi0-pmux {
+					groups = "G8", "G9", "G10", "G11";
+					function = "spi1";
+				};
 			};
 
 			chip_rst: reset {
@@ -473,6 +492,20 @@
 				};
 			};
 
+			spi1: spi at 5000 {
+				compatible = "snps,dw-apb-ssi";
+				reg = <0x6000 0x100>;
+				interrupt-parent = <&sic>;
+				interrupts = <5>;
+				clocks = <&refclk>;
+				pinctrl-0 = <&spi1_pmux>;
+				pinctrl-names = "default";
+				#address-cells = <1>;
+				#size-cells = <0>;
+				num-cs = <4>;
+				status = "disabled";
+			};
+
 			i2c2: i2c at 7000 {
 				compatible = "snps,designware-i2c";
 				#address-cells = <1>;
@@ -564,6 +597,11 @@
 						groups = "GSM14";
 						function = "twsi3";
 					};
+
+					spi1_pmux: spi1-pmux {
+						groups = "GSM0", "GSM1", "GSM2", "GSM3";
+						function = "spi2";
+					};
 				};
 			};
 
-- 
2.4.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-05-27 13:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-20 12:53 [PATCH] ARM: berlin: add SPI nodes for BG2Q Antoine Tenart
2015-05-20 16:58 ` Sebastian Hesselbarth
2015-05-25  8:59   ` Antoine Tenart
2015-05-20 23:21 ` Sebastian Hesselbarth
2015-05-25  9:01   ` Antoine Tenart
2015-05-27  8:36     ` Sebastian Hesselbarth
2015-05-27 13:42       ` Antoine Tenart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).