* [PATCH] ARM: shmobile: Genmai SPI over GPIO support
@ 2013-12-04 21:29 Magnus Damm
2013-12-04 22:54 ` Laurent Pinchart
2013-12-05 12:20 ` Sergei Shtylyov
0 siblings, 2 replies; 3+ messages in thread
From: Magnus Damm @ 2013-12-04 21:29 UTC (permalink / raw)
To: linux-arm-kernel
From: Magnus Damm <damm@opensource.se>
Hook up the serial flash memory to bit bang SPI on the Genmai board.
Signed-off-by: Magnus Damm <damm@opensource.se>
---
Written on to of renesas git tag renesas-devel-v3.13-rc2-20131202 and
[PATCH 00/04] ARM: shmobile: r7s72100 and Genmai GPIO / PINCTRL support
arch/arm/boot/dts/r7s72100-genmai-reference.dts | 15 +++++++++++++++
1 file changed, 15 insertions(+)
--- 0010/arch/arm/boot/dts/r7s72100-genmai-reference.dts
+++ work/arch/arm/boot/dts/r7s72100-genmai-reference.dts 2013-12-05 06:23:57.000000000 +0900
@@ -56,5 +56,20 @@
reg = <0x50>;
};
};
+ spi0 {
+ compatible = "spi-gpio";
+ gpio-sck = <&port9 2 0>;
+ gpio-mosi = <&port9 4 0>;
+ gpio-miso = <&port9 5 0>;
+ cs-gpios = <&port9 3 0>;
+ num-chipselects = <1>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ s25fl512s: s25fl512s0 {
+ compatible = "s25fl512s";
+ reg = <0>;
+ spi-max-frequency = <104000000>;
+ };
+ };
};
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: shmobile: Genmai SPI over GPIO support
2013-12-04 21:29 [PATCH] ARM: shmobile: Genmai SPI over GPIO support Magnus Damm
@ 2013-12-04 22:54 ` Laurent Pinchart
2013-12-05 12:20 ` Sergei Shtylyov
1 sibling, 0 replies; 3+ messages in thread
From: Laurent Pinchart @ 2013-12-04 22:54 UTC (permalink / raw)
To: linux-arm-kernel
Hi Magnus,
Thank you for the patch.
On Thursday 05 December 2013 06:29:15 Magnus Damm wrote:
> From: Magnus Damm <damm@opensource.se>
>
> Hook up the serial flash memory to bit bang SPI on the Genmai board.
>
> Signed-off-by: Magnus Damm <damm@opensource.se>
> ---
>
> Written on to of renesas git tag renesas-devel-v3.13-rc2-20131202 and
> [PATCH 00/04] ARM: shmobile: r7s72100 and Genmai GPIO / PINCTRL support
>
> arch/arm/boot/dts/r7s72100-genmai-reference.dts | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
>
> --- 0010/arch/arm/boot/dts/r7s72100-genmai-reference.dts
> +++ work/arch/arm/boot/dts/r7s72100-genmai-reference.dts 2013-12-05
> 06:23:57.000000000 +0900 @@ -56,5 +56,20 @@
> reg = <0x50>;
> };
> };
> + spi0 {
> + compatible = "spi-gpio";
> + gpio-sck = <&port9 2 0>;
> + gpio-mosi = <&port9 4 0>;
> + gpio-miso = <&port9 5 0>;
> + cs-gpios = <&port9 3 0>;
What about replacing those 0 with GPIO_ACTIVE_HIGH ?
> + num-chipselects = <1>;
> + #address-cells = <1>;
> + #size-cells = <0>;
>
> + s25fl512s: s25fl512s0 {
The node should be called flash@0.
> + compatible = "s25fl512s";
> + reg = <0>;
> + spi-max-frequency = <104000000>;
> + };
> + };
Please use tabs for indentation here.
The rest looks fine to me, but I obviously can't review most of the
information as I don't have access to the board schematics. I'll trust you
that you have tested the patch :-)
> };
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: shmobile: Genmai SPI over GPIO support
2013-12-04 21:29 [PATCH] ARM: shmobile: Genmai SPI over GPIO support Magnus Damm
2013-12-04 22:54 ` Laurent Pinchart
@ 2013-12-05 12:20 ` Sergei Shtylyov
1 sibling, 0 replies; 3+ messages in thread
From: Sergei Shtylyov @ 2013-12-05 12:20 UTC (permalink / raw)
To: linux-arm-kernel
Hello.
On 05-12-2013 1:29, Magnus Damm wrote:
> From: Magnus Damm <damm@opensource.se>
> Hook up the serial flash memory to bit bang SPI on the Genmai board.
> Signed-off-by: Magnus Damm <damm@opensource.se>
> ---
> Written on to of renesas git tag renesas-devel-v3.13-rc2-20131202 and
> [PATCH 00/04] ARM: shmobile: r7s72100 and Genmai GPIO / PINCTRL support
> arch/arm/boot/dts/r7s72100-genmai-reference.dts | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
> --- 0010/arch/arm/boot/dts/r7s72100-genmai-reference.dts
> +++ work/arch/arm/boot/dts/r7s72100-genmai-reference.dts 2013-12-05 06:23:57.000000000 +0900
> @@ -56,5 +56,20 @@
> reg = <0x50>;
> };
> };
> + spi0 {
Maybe just "spi"?
> + compatible = "spi-gpio";
> + gpio-sck = <&port9 2 0>;
> + gpio-mosi = <&port9 4 0>;
> + gpio-miso = <&port9 5 0>;
> + cs-gpios = <&port9 3 0>;
> + num-chipselects = <1>;
> + #address-cells = <1>;
> + #size-cells = <0>;
>
> + s25fl512s: s25fl512s0 {
The node should probably be named "flash", according to ePAPR spec. And
why you didn't specify "@0"?
> + compatible = "s25fl512s";
> + reg = <0>;
> + spi-max-frequency = <104000000>;
> + };
> + };
> };
WBR, Sergei
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-12-05 12:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-04 21:29 [PATCH] ARM: shmobile: Genmai SPI over GPIO support Magnus Damm
2013-12-04 22:54 ` Laurent Pinchart
2013-12-05 12:20 ` Sergei Shtylyov
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).