[PATCH 2/2] ARM: shmobile: silk: add QSPI DT support
Geert Uytterhoeven
geert at linux-m68k.org
Mon Aug 10 07:38:46 PDT 2015
Hi Sergei,
On Sun, Aug 9, 2015 at 12:27 AM, Sergei Shtylyov
<sergei.shtylyov at cogentembedded.com> wrote:
> Define the SILK 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 patch by Vladimir Barinov
> <vladimir.barinov at cogentembedded.com>.
>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov at cogentembedded.com>
> --- renesas.orig/arch/arm/boot/dts/r8a7794-silk.dts
> +++ renesas/arch/arm/boot/dts/r8a7794-silk.dts
> +&qspi {
> + pinctrl-0 = <&qspi_pins>;
> + pinctrl-names = "default";
> +
> + status = "okay";
> +
> + flash at 0 {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + compatible = "spansion,s25fl512s";
Please add the "jedec,spi-nor" fallback.
> + reg = <0>;
> + spi-max-frequency = <30000000>;
> + spi-tx-bus-width = <4>;
> + spi-rx-bus-width = <4>;
> + m25p,fast-read;
Please keep all "spi-*" properties together.
> + spi-cpol;
> + spi-cpha;
> + partition at 0 {
> + label = "loader";
> + reg = <0x00000000 0x00040000>;
> + read-only;
> + };
> + partition at 40000 {
> + label = "user";
> + reg = <0x00040000 0x00400000>;
> + read-only;
> + };
> + partition at 440000 {
> + label = "flash";
> + reg = <0x00440000 0x03bc0000>;
> + };
The above part I cannot verify, so I have to trust you.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at 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
More information about the linux-arm-kernel
mailing list