Message ID | 3191777.fJ30rYXr4J@wasted.cogentembedded.com (mailing list archive) |
---|---|
State | Accepted |
Commit | e678114f86edc40f394a82231c239c8cdfb4191c |
Delegated to: | Simon Horman |
Headers | show |
On Sat, Sep 3, 2016 at 12:09 AM, Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> wrote: > Define the Wheat board dependent part of the QSPI device node. > Add device nodes for Spansion S25FL512S SPI flash and MTD partitions on it. > > Based on the original (and large) patch by Vladimir Barinov > <vladimir.barinov@cogentembedded.com>. > > Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Disclaimer: I have no board schematics nor manuals describing FLASH layout. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Index: renesas/arch/arm/boot/dts/r8a7792-wheat.dts =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7792-wheat.dts +++ renesas/arch/arm/boot/dts/r8a7792-wheat.dts @@ -132,6 +132,11 @@ function = "sdhi0"; }; + qspi_pins: qspi { + groups = "qspi_ctrl", "qspi_data4"; + function = "qspi"; + }; + du0_pins: du0 { groups = "du0_rgb888", "du0_sync", "du0_disp"; function = "du0"; @@ -173,6 +178,44 @@ status = "okay"; }; +&qspi { + pinctrl-0 = <&qspi_pins>; + pinctrl-names = "default"; + status = "okay"; + + flash@0 { + compatible = "spansion,s25fl512s", "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <30000000>; + spi-tx-bus-width = <4>; + spi-rx-bus-width = <4>; + spi-cpol; + spi-cpha; + m25p,fast-read; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "loader"; + reg = <0x00000000 0x00040000>; + read-only; + }; + partition@40000 { + label = "user"; + reg = <0x00040000 0x00400000>; + read-only; + }; + partition@440000 { + label = "flash"; + reg = <0x00440000 0x03bc0000>; + }; + }; + }; +}; + &i2c4 { status = "okay"; clock-frequency = <400000>;
Define the Wheat board dependent part of the QSPI device node. Add device nodes for Spansion S25FL512S SPI flash and MTD partitions on it. Based on the original (and large) patch by Vladimir Barinov <vladimir.barinov@cogentembedded.com>. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> --- arch/arm/boot/dts/r8a7792-wheat.dts | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+)