Add R8A7794/SILK QSPI DT support
Subsystems (2)
v2 cover Add R8A7794/SILK QSPI DT support
Hello.
Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-20150810-v4.2-rc6' tag plus the R8A7794 GPIO patches I've posted last week. Here we add the QSPI device tree support for the R8A7794/SILK board.
[1/2] ARM: shmobile: r8a7794: add QSPI DT support
[2/2] ARM: shmobile: silk: add QSPI DT support
WBR, Sergei
PATCH v2 1/2 ARM: shmobile: r8a7794: add QSPI DT support
Define the generic R8A7794 part of the QSPI device node.
Based on original patch by Hisashi Nakamura <[email protected]>.
---
Changes in version 2:
- moved the "power-domains" property after the DMA properties.
arch/arm/boot/dts/r8a7794.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
arch/arm/boot/dts/r8a7794.dtsi +18 -0
@@ -19,6 +19,10 @@ #address-cells = <2>; #size-cells = <2>; + aliases { + spi0 = &qspi; + }; + cpus { #address-cells = <1>; #size-cells = <0>;
@@ -537,6 +541,20 @@ status = "disabled"; }; + qspi: spi at e6b10000 { + compatible = "renesas,qspi-r8a7794", "renesas,qspi"; + reg = <0 0xe6b10000 0 0x2c>; + interrupts = <0 184 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&mstp9_clks R8A7794_CLK_QSPI_MOD>; + dmas = <&dmac0 0x17>, <&dmac0 0x18>; + dma-names = "tx", "rx"; + power-domains = <&cpg_clocks>; + num-cs = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + clocks { #address-cells = <2>; #size-cells = <2>;
PATCH v2 1/2 ARM: shmobile: r8a7794: add QSPI DT support
Quoted 5 lines · Sergei Shtylyov
Define the generic R8A7794 part of the QSPI device node.
Based on original patch by Hisashi Nakamura <[email protected]>.
Signed-off-by Sergei Shtylyov <[email protected]>
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
PATCH v2 1/2 ARM: shmobile: r8a7794: add QSPI DT support
Hello.
Quoted 7 lines · Geert Uytterhoeven
Quoted 5 lines
Define the generic R8A7794 part of the QSPI device node.
Based on original patch by Hisashi Nakamura <[email protected]>.
Signed-off-by Sergei Shtylyov <[email protected]>
Sorry, forgot to add your ACK when re-posting. Thank you!
Quoted 3 lines
Gr{oetje,eeting}s,
Geert
MBR, Sergei
PATCH v2 2/2 ARM: shmobile: silk: add QSPI DT support
In reply to Sergei ShtylyovDefine 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
<[email protected]>.
---
Changes in version 2:
- added fallback value to the SPI flash's "compatible" property;
- grouped all SPI-related properties together in the SPI flash node.
arch/arm/boot/dts/r8a7794-silk.dts | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+)
arch/arm/boot/dts/r8a7794-silk.dts +40 -0
@@ -65,6 +65,11 @@ renesas,groups = "mmc_data8", "mmc_ctrl"; renesas,function = "mmc"; }; + + qspi_pins: spi0 { + renesas,groups = "qspi_ctrl", "qspi_data4"; + renesas,function = "qspi"; + }; }; &scif2 {
@@ -100,3 +105,38 @@ non-removable; status = "okay"; }; + +&qspi { + pinctrl-0 = <&qspi_pins>; + pinctrl-names = "default"; + + status = "okay"; + + flash at 0 { + #address-cells = <1>; + #size-cells = <1>; + 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; + + 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>; + }; + }; +};
PATCH v2 2/2 ARM: shmobile: silk: add QSPI DT support
Quoted 7 lines · Sergei Shtylyov
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
<[email protected]>.Signed-off-by Sergei Shtylyov <[email protected]>
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
v2 cover Add R8A7794/SILK QSPI DT support
In reply to Sergei ShtylyovQuoted 8 lines · Sergei Shtylyov
Hello.
Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-20150810-v4.2-rc6' tag plus the R8A7794 GPIO patches I've posted last week. Here we add the QSPI device tree support for the R8A7794/SILK board.[1/2] ARM: shmobile: r8a7794: add QSPI DT support
[2/2] ARM: shmobile: silk: add QSPI DT support
Thanks, both patches queued up for v4.4.