[PATCH] ARM: shmobile: henninger: add QSPI DT support

Sergei Shtylyov sergei.shtylyov at cogentembedded.com
Sun May 11 11:17:27 PDT 2014


Hello.

On 05/06/2014 02:45 AM, Sergei Shtylyov wrote:

> Define the Henninger board dependent part of the QSPI device node.
> Add device nodes for Spansion S25FL512S SPI flash and MTD partitions on it.

> Signed-off-by: Sergei Shtylyov <sergei.shtylyov at cogentembedded.com>

> ---
> This patch is against 'renesas-devel-v3.15-rc3-20140502' tag of Simon Horman's
> 'renesas.git' repo and SDHI0/2 DT support patch posted last weekend.

>   arch/arm/boot/dts/r8a7791-henninger.dts |   38 ++++++++++++++++++++++++++++++++
>   1 file changed, 38 insertions(+)

> Index: renesas/arch/arm/boot/dts/r8a7791-henninger.dts
> ===================================================================
> --- renesas.orig/arch/arm/boot/dts/r8a7791-henninger.dts
> +++ renesas/arch/arm/boot/dts/r8a7791-henninger.dts
[...]
> @@ -158,3 +163,36 @@
>   	cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
>   	status = "okay";
>   };
> +
> +&qspi {
> +	pinctrl-0 = <&qspi_pins>;
> +	pinctrl-names = "default";
> +
> +	status = "okay";
> +
> +	flash at 0 {
> +		#address-cells = <1>;
> +		#size-cells = <1>;
> +		compatible = "spansion,s25fl512s";
> +		reg = <0>;
> +		spi-max-frequency = <30000000>;
> +		spi-tx-bus-width = <4>;
> +		spi-rx-bus-width = <4>;
> +		m25p,fast-read;
> +
> +		partition at 0 {
> +			label = "loader_prg";
> +			reg = <0x00000000 0x00040000>;
> +			read-only;
> +		};
> +		partition at 40000 {
> +			label = "user_prg";
> +			reg = <0x00040000 0x00400000>;
> +			read-only;

    Oops, there shouldn't be "read-only" here, I forgot to refresh the patch 
as I'm now seeing... too bad it's too late to resend now. :-(

WBR, Sergei




More information about the linux-arm-kernel mailing list