Skip to contentSkip to conversation

ARM:dts: vf610: Add DSPI nodes

PATCH RESEND Superseded Chao Fu 2 participants 4 messages Aug 28, 2013 – Aug 29, 2013 Device tree bindings

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Chao Fu

author
#0 lore raw

PATCH RESEND v3 1/2 ARM:dts: vf610: Add DSPI nodes

From: Chao Fu <[email protected]>

Add Freescale DSPI node into vf610 dts.

---
 arch/arm/boot/dts/vf610.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/arm/boot/dts/vf610.dtsi +12 -0
index 67d929c..af687a4 100644
@@ -87,6 +87,18 @@
 				arm,tag-latency = <2 2 2>;
 			};
 
+			dspi0: dspi0 at 4002c000 {
+				#address-cells = <1>;
+				#size-cells = <0>;
+				compatible = "fsl,vf610-dspi";
+				reg = <0x4002c000 0x1000>;
+				interrupts = <0 67 0x04>;
+				clocks = <&clks VF610_CLK_DSPI0>;
+				clock-names = "dspi";
+				spi-num-chipselects = <5>;
+				status = "disabled";
+			};
+
 			uart0: serial at 40027000 {
 				compatible = "fsl,vf610-lpuart";
 				reg = <0x40027000 0x1000>;
Signature · 1 line
1.8.0
author
#1 lore raw

PATCH RESEND v3 2/2 ARM:dts:vf610-twr:Enable DSPI0 devices and Flash at26df081a

From: Chao Fu <[email protected]>

This patch enables DSPI0 and at26df081a flash device for Vybrid VF610 TOWER board.

---
 arch/arm/boot/dts/vf610-twr.dts | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
arch/arm/boot/dts/vf610-twr.dts +19 -0
index b3905f5..d29226c 100644
@@ -36,6 +36,25 @@
 
 };
 
+&dspi0 {
+	bus-num = <0>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_dspi0_1>;
+	status = "okay";
+
+	sflash: at26df081a at 0 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "atmel,at26df081a";
+		spi-max-frequency = <16000000>;
+		spi-cpol;
+		spi-cpha;
+		reg = <0>;
+		linux,modalias = "m25p80";
+		modal = "at26df081a";
+	};
+};
+
 &fec0 {
 	phy-mode = "rmii";
 	pinctrl-names = "default";
Signature · 1 line
1.8.0
#3 lore raw

PATCH RESEND v3 1/2 ARM:dts: vf610: Add DSPI nodes

In reply to Chao Fu
Quoted 14 lines · Chao Fu

From: Chao Fu <[email protected]>

Add Freescale DSPI node into vf610 dts.

---
 arch/arm/boot/dts/vf610.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/arm/boot/dts/vf610.dtsi +0 -0
index 67d929c..af687a4 100644

arch/arm/boot/dts/vf610.dtsi line 90

Quoted 4 lines
arch/arm/boot/dts/vf610.dtsi +1 -0
@@ -87,6 +87,18 @@
 				arm,tag-latency = <2 2 2>;
 			};
 
+			dspi0: dspi0 at 4002c000 {

The node should be sorted in address. That said, it should be put after uart3.

Shawn

Quoted 18 lines
arch/arm/boot/dts/vf610.dtsi +11 -0
+				#address-cells = <1>;
+				#size-cells = <0>;
+				compatible = "fsl,vf610-dspi";
+				reg = <0x4002c000 0x1000>;
+				interrupts = <0 67 0x04>;
+				clocks = <&clks VF610_CLK_DSPI0>;
+				clock-names = "dspi";
+				spi-num-chipselects = <5>;
+				status = "disabled";
+			};
+
 			uart0: serial at 40027000 {
 				compatible = "fsl,vf610-lpuart";
 				reg = <0x40027000 0x1000>;
Signature · 1 line
1.8.0
#2 lore raw

PATCH RESEND v3 2/2 ARM:dts:vf610-twr:Enable DSPI0 devices and Flash at26df081a

In reply to Chao Fu
Quoted 25 lines · Chao Fu

From: Chao Fu <[email protected]>

This patch enables DSPI0 and at26df081a flash device for Vybrid VF610 TOWER board.

---
 arch/arm/boot/dts/vf610-twr.dts | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
arch/arm/boot/dts/vf610-twr.dts +7 -0
index b3905f5..d29226c 100644
@@ -36,6 +36,25 @@
 
 };
 
+&dspi0 {
+	bus-num = <0>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_dspi0_1>;
+	status = "okay";
+
+	sflash: at26df081a at 0 {

arch/arm/boot/dts/vf610-twr.dts line 55

Quoted 10 lines
arch/arm/boot/dts/vf610-twr.dts +9 -0
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "atmel,at26df081a";
+		spi-max-frequency = <16000000>;
+		spi-cpol;
+		spi-cpha;
+		reg = <0>;
 
+		linux,modalias = "m25p80";
+		modal = "at26df081a";

I can not see these two properties documented in Documentation/devicetree/bindings/ anywhere. I'm not sure if we need them.

Shawn

Quoted 10 lines
arch/arm/boot/dts/vf610-twr.dts +3 -0
+	};
+};
+
 &fec0 {
 	phy-mode = "rmii";

pinctrl-names = "default";

Signature · 1 line
1.8.0