[PATCH/RFC] ARM: shmobile: koelsch: Fix SPI mode of SPI-Flash into mode3

Simon Horman horms at verge.net.au
Wed Nov 12 00:19:14 PST 2014


On Thu, Oct 30, 2014 at 10:11:59AM +0100, Geert Uytterhoeven wrote:
> On Thu, Oct 30, 2014 at 6:53 AM, Simon Horman
> <horms+renesas at verge.net.au> wrote:
> > From: Hisashi Nakamura <hisashi.nakamura.ak at renesas.com>
> >
> > In order to change into mode3, CPOL and CPHA bit of SPCMD register
> > of MSIOF is changed. Mode3 can avoid intermediate voltage.
> 
> This is the QSPI node, not MSIOF?

Indeed.

Nakamura-san's patch, which I up-ported, was against the QSPI node
but the version I posted below is indeed against the MSIOF.

Futhermore, I see that spi-cpol and spi-cpha are already present
in the MSIOF node in mainline. I would like to withdraw this patch.

> > Signed-off-by: Hisashi Nakamura <hisashi.nakamura.ak at renesas.com>
> > Signed-off-by: Simon Horman <horms+renesas at verge.net.au>
> > ---
> > Based on the renesas-devel-20141030-v3.18-rc2 branch of my renesas tree
> >
> >  arch/arm/boot/dts/r8a7791-koelsch.dts | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts
> > index 523ae4d..ced0738 100644
> > --- a/arch/arm/boot/dts/r8a7791-koelsch.dts
> > +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts
> > @@ -387,6 +387,8 @@
> >                 spi-tx-bus-width = <4>;
> >                 spi-rx-bus-width = <4>;
> >                 m25p,fast-read;
> > +               spi-cpol;
> > +               spi-cpha;
> >
> >                 partition at 0 {
> >                         label = "loader";
> 
> 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