linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: dts: vf610-twr: Add SPI NOR support
@ 2013-06-21 10:10 Xiaochun Li
  2013-06-24  4:12 ` Shawn Guo
  0 siblings, 1 reply; 2+ messages in thread
From: Xiaochun Li @ 2013-06-21 10:10 UTC (permalink / raw)
  To: linux-arm-kernel

vf610-twr has a s25fl129p1 SPI NOR flash connected to QuadSpi0.

Add support for it.

Signed-off-by: Xiaochun Li <b41219@freescale.com>
---
 arch/arm/boot/dts/vf610-twr.dts | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/arch/arm/boot/dts/vf610-twr.dts b/arch/arm/boot/dts/vf610-twr.dts
index b3905f5..202cf1d 100644
--- a/arch/arm/boot/dts/vf610-twr.dts
+++ b/arch/arm/boot/dts/vf610-twr.dts
@@ -55,3 +55,23 @@
 	pinctrl-0 = <&pinctrl_uart1_1>;
 	status = "okay";
 };
+
+&qspi0 {
+	fsl,spi-num-chipselects = <1>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_qspi0_1>;
+	status = "okay";
+
+	flash: s25fl129p1 at 0 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "spansion,s25fl129p1";
+		spi-max-frequency = <20000000>;
+		reg = <0>;
+
+		partition at 0 {
+			label = "s25fl129p1";
+			reg = <0x0 0x1000000>;
+		};
+	};
+};
-- 
1.8.0

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

* [PATCH 1/2] ARM: dts: vf610-twr: Add SPI NOR support
  2013-06-21 10:10 [PATCH 1/2] ARM: dts: vf610-twr: Add SPI NOR support Xiaochun Li
@ 2013-06-24  4:12 ` Shawn Guo
  0 siblings, 0 replies; 2+ messages in thread
From: Shawn Guo @ 2013-06-24  4:12 UTC (permalink / raw)
  To: linux-arm-kernel

On Fri, Jun 21, 2013 at 06:10:32PM +0800, Xiaochun Li wrote:
> vf610-twr has a s25fl129p1 SPI NOR flash connected to QuadSpi0.
> 
> Add support for it.
> 
> Signed-off-by: Xiaochun Li <b41219@freescale.com>
> ---
>  arch/arm/boot/dts/vf610-twr.dts | 20 ++++++++++++++++++++
>  1 file changed, 20 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/vf610-twr.dts b/arch/arm/boot/dts/vf610-twr.dts
> index b3905f5..202cf1d 100644
> --- a/arch/arm/boot/dts/vf610-twr.dts
> +++ b/arch/arm/boot/dts/vf610-twr.dts
> @@ -55,3 +55,23 @@
>  	pinctrl-0 = <&pinctrl_uart1_1>;
>  	status = "okay";
>  };
> +
> +&qspi0 {
> +	fsl,spi-num-chipselects = <1>;
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&pinctrl_qspi0_1>;
> +	status = "okay";
> +
> +	flash: s25fl129p1 at 0 {
> +		#address-cells = <1>;
> +		#size-cells = <1>;
> +		compatible = "spansion,s25fl129p1";
> +		spi-max-frequency = <20000000>;
> +		reg = <0>;
> +
> +		partition at 0 {
> +			label = "s25fl129p1";
> +			reg = <0x0 0x1000000>;
> +		};

We should not enforce the partition layout in the device tree, because
that's not hardware specific configuration data but use case specific
one.  Not everyone running vf610-twr board with mainline device tree
wants that partition layout.  So let's remove it and leave it to boot
loader to fill in.

Shawn

> +	};
> +};
> -- 
> 1.8.0
> 
> 

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

end of thread, other threads:[~2013-06-24  4:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-21 10:10 [PATCH 1/2] ARM: dts: vf610-twr: Add SPI NOR support Xiaochun Li
2013-06-24  4:12 ` Shawn Guo

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).