linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add R8A7794/SILK QSPI DT support
@ 2015-08-10 21:57 Sergei Shtylyov
  2015-08-10 21:59 ` [PATCH v2 1/2] ARM: shmobile: r8a7794: add " Sergei Shtylyov
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Sergei Shtylyov @ 2015-08-10 21:57 UTC (permalink / raw)
  To: linux-arm-kernel

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

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

* [PATCH v2 1/2] ARM: shmobile: r8a7794: add QSPI DT support
  2015-08-10 21:57 [PATCH v2 0/2] Add R8A7794/SILK QSPI DT support Sergei Shtylyov
@ 2015-08-10 21:59 ` Sergei Shtylyov
  2015-08-11  6:58   ` Geert Uytterhoeven
  2015-08-10 22:00 ` [PATCH v2 2/2] ARM: shmobile: silk: " Sergei Shtylyov
  2015-08-12  1:17 ` [PATCH v2 0/2] Add R8A7794/SILK " Simon Horman
  2 siblings, 1 reply; 7+ messages in thread
From: Sergei Shtylyov @ 2015-08-10 21:59 UTC (permalink / raw)
  To: linux-arm-kernel

Define the generic R8A7794 part of the QSPI device node.

Based on original patch by Hisashi Nakamura <hisashi.nakamura.ak@renesas.com>.

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

---
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(+)

Index: renesas/arch/arm/boot/dts/r8a7794.dtsi
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7794.dtsi
+++ renesas/arch/arm/boot/dts/r8a7794.dtsi
@@ -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>;

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

* [PATCH v2 2/2] ARM: shmobile: silk: add QSPI DT support
  2015-08-10 21:57 [PATCH v2 0/2] Add R8A7794/SILK QSPI DT support Sergei Shtylyov
  2015-08-10 21:59 ` [PATCH v2 1/2] ARM: shmobile: r8a7794: add " Sergei Shtylyov
@ 2015-08-10 22:00 ` Sergei Shtylyov
  2015-08-11  6:59   ` Geert Uytterhoeven
  2015-08-12  1:17 ` [PATCH v2 0/2] Add R8A7794/SILK " Simon Horman
  2 siblings, 1 reply; 7+ messages in thread
From: Sergei Shtylyov @ 2015-08-10 22:00 UTC (permalink / raw)
  To: linux-arm-kernel

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@cogentembedded.com>.

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

---
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(+)

Index: renesas/arch/arm/boot/dts/r8a7794-silk.dts
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7794-silk.dts
+++ renesas/arch/arm/boot/dts/r8a7794-silk.dts
@@ -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>;
+		};
+	};
+};

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

* [PATCH v2 1/2] ARM: shmobile: r8a7794: add QSPI DT support
  2015-08-10 21:59 ` [PATCH v2 1/2] ARM: shmobile: r8a7794: add " Sergei Shtylyov
@ 2015-08-11  6:58   ` Geert Uytterhoeven
  2015-08-11 20:16     ` Sergei Shtylyov
  0 siblings, 1 reply; 7+ messages in thread
From: Geert Uytterhoeven @ 2015-08-11  6:58 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Aug 10, 2015 at 11:59 PM, Sergei Shtylyov
<sergei.shtylyov@cogentembedded.com> wrote:
> Define the generic R8A7794 part of the QSPI device node.
>
> Based on original patch by Hisashi Nakamura <hisashi.nakamura.ak@renesas.com>.
>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>

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

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

* [PATCH v2 2/2] ARM: shmobile: silk: add QSPI DT support
  2015-08-10 22:00 ` [PATCH v2 2/2] ARM: shmobile: silk: " Sergei Shtylyov
@ 2015-08-11  6:59   ` Geert Uytterhoeven
  0 siblings, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2015-08-11  6:59 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Aug 11, 2015 at 12:00 AM, Sergei Shtylyov
<sergei.shtylyov@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@cogentembedded.com>.
>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>

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

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

* [PATCH v2 1/2] ARM: shmobile: r8a7794: add QSPI DT support
  2015-08-11  6:58   ` Geert Uytterhoeven
@ 2015-08-11 20:16     ` Sergei Shtylyov
  0 siblings, 0 replies; 7+ messages in thread
From: Sergei Shtylyov @ 2015-08-11 20:16 UTC (permalink / raw)
  To: linux-arm-kernel

Hello.

On 08/11/2015 09:58 AM, Geert Uytterhoeven wrote:

>> Define the generic R8A7794 part of the QSPI device node.
>>
>> Based on original patch by Hisashi Nakamura <hisashi.nakamura.ak@renesas.com>.
>>
>> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
>
> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>

    Sorry, forgot to add your ACK when re-posting. Thank you!

> Gr{oetje,eeting}s,
>
>                          Geert

MBR, Sergei

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

* [PATCH v2 0/2] Add R8A7794/SILK QSPI DT support
  2015-08-10 21:57 [PATCH v2 0/2] Add R8A7794/SILK QSPI DT support Sergei Shtylyov
  2015-08-10 21:59 ` [PATCH v2 1/2] ARM: shmobile: r8a7794: add " Sergei Shtylyov
  2015-08-10 22:00 ` [PATCH v2 2/2] ARM: shmobile: silk: " Sergei Shtylyov
@ 2015-08-12  1:17 ` Simon Horman
  2 siblings, 0 replies; 7+ messages in thread
From: Simon Horman @ 2015-08-12  1:17 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Aug 11, 2015 at 12:57:57AM +0300, Sergei Shtylyov wrote:
> 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.

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

end of thread, other threads:[~2015-08-12  1:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-10 21:57 [PATCH v2 0/2] Add R8A7794/SILK QSPI DT support Sergei Shtylyov
2015-08-10 21:59 ` [PATCH v2 1/2] ARM: shmobile: r8a7794: add " Sergei Shtylyov
2015-08-11  6:58   ` Geert Uytterhoeven
2015-08-11 20:16     ` Sergei Shtylyov
2015-08-10 22:00 ` [PATCH v2 2/2] ARM: shmobile: silk: " Sergei Shtylyov
2015-08-11  6:59   ` Geert Uytterhoeven
2015-08-12  1:17 ` [PATCH v2 0/2] Add R8A7794/SILK " Simon Horman

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