From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Biju Das <biju.das@bp.renesas.com>
Cc: Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Simon Horman <horms@verge.net.au>,
Magnus Damm <magnus.damm@gmail.com>,
Linux-Renesas <linux-renesas-soc@vger.kernel.org>,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@vger.kernel.org>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Chris Paterson <Chris.Paterson2@renesas.com>,
Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Subject: Re: [PATCH 19/22] ARM: dts: r8a7744-iwg20m: Add SPI NOR support
Date: Fri, 30 Nov 2018 11:46:16 +0100 [thread overview]
Message-ID: <CAMuHMdX7ghhyZcvrgit_zrNwTyVcizB0nbySYNeL-38ux9VJQw@mail.gmail.com> (raw)
In-Reply-To: <OSBPR01MB21038E1B2F3E83248DCCD298B8D30@OSBPR01MB2103.jpnprd01.prod.outlook.com>
Hi Biju,
On Fri, Nov 30, 2018 at 11:34 AM Biju Das <biju.das@bp.renesas.com> wrote:
> > Subject: Re: [PATCH 19/22] ARM: dts: r8a7744-iwg20m: Add SPI NOR support
> > On Tue, Nov 27, 2018 at 1:05 PM Biju Das <biju.das@bp.renesas.com> wrote:
> > > Add support for the SPI NOR device used to boot up the system to the
> > > iWave RZ/G1N Qseven System On Module DT.
> > >
> > > Signed-off-by: Biju Das <biju.das@bp.renesas.com>
> >
> > Thanks for your patch!
> >
> > > --- a/arch/arm/boot/dts/r8a7744-iwg20m.dtsi
> > > +++ b/arch/arm/boot/dts/r8a7744-iwg20m.dtsi
> >
> > > @@ -53,6 +58,27 @@
> > > status = "okay";
> > > };
> > >
> > > +&qspi {
> > > + pinctrl-0 = <&qspi_pins>;
> > > + pinctrl-names = "default";
> > > +
> > > + status = "okay";
> > > +
> > > + /* WARNING - This device contains the bootloader. Handle with care.
> > */
> > > + flash: flash@0 {
> > > + #address-cells = <1>;
> > > + #size-cells = <1>;
> > > + compatible = "sst,sst25vf016b", "jedec,spi-nor";
> >
> > According to the schematics, this is an ISSI IS25LP016D?
> > ISSI was acquired by GigaDevice, according to Wikipedia.
> > While SST is now MicroChip.
>
> As per the schematic and BoM, it is.
> IC FLASH 16MBIT 50MHZ 8SOIC SST25VF016B-50-4I-S2AF Microchip Technology 1 U1
Oh, this seems to differ for different revisions of the schematics.
R5.1 has the ISSI part, R3.4 has the SST part.
Due to "jedec,spi-nor", it will auto-detect, but IIRC, the driver will warn
if the compatible doesn't match the detected part, which thus may happen
for some boards.
> > > + reg = <0>;
> > > + spi-max-frequency = <50000000>;
> > > + spi-tx-bus-width = <1>;
> > > + spi-rx-bus-width = <1>;
> >
> > <1> is the default, but it's indeed good to make this explicit, as this is a QSPI
> > device with 2 unwired data pins.
> > However, as the device seems to support dual transfers, and dual mode uses
> > the standard MOSI/MISO pins, you should use <2> for both.
> > The RSPI driver supports this.
> >
> > The same applies to the RZ/G1M version.
>
> SST25VF016B this doesn't support dual mode.
OK.
So some boards have a dual-capable part, others don't.
I'm not 100% sure, but I think writing <2> will still work, as the driver
won't use dual mode on the SST25VF016B part, due to lack of
SPI_NOR_DUAL_READ in the entry in the spi-nor driver.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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
next prev parent reply other threads:[~2018-11-30 10:46 UTC|newest]
Thread overview: 76+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-27 11:56 [PATCH 00/22] Add more support to RZ/G1N Biju Das
2018-11-27 11:56 ` [PATCH 01/22] ARM: dts: r8a7744: Add [H]SCIF{A|B} support Biju Das
2018-11-29 13:31 ` Simon Horman
2018-11-30 8:54 ` Geert Uytterhoeven
2018-11-27 11:56 ` [PATCH 02/22] ARM: dts: r8a7744: Add I2C and IIC support Biju Das
2018-11-29 13:41 ` Simon Horman
2018-11-29 13:52 ` Biju Das
2018-11-30 8:55 ` Geert Uytterhoeven
2018-11-27 11:56 ` [PATCH 03/22] ARM: dts: r8a7744: Add SDHI nodes Biju Das
2018-11-29 13:49 ` Simon Horman
2018-11-30 8:56 ` Geert Uytterhoeven
2018-11-27 11:56 ` [PATCH 04/22] ARM: dts: r8a7744: Add MMC node Biju Das
2018-11-29 13:53 ` Simon Horman
2018-11-30 8:56 ` Geert Uytterhoeven
2018-11-27 11:56 ` [PATCH 05/22] ARM: dts: r8a7744-iwg20m: Add eMMC support Biju Das
2018-11-29 13:54 ` Simon Horman
2018-11-30 9:50 ` Geert Uytterhoeven
2018-11-30 10:43 ` Biju Das
2018-11-30 11:05 ` Geert Uytterhoeven
2018-11-27 11:56 ` [PATCH 06/22] ARM: dts: r8a7744-iwg20m: Enable SDHI10 controller Biju Das
2018-11-27 14:16 ` Sergei Shtylyov
2018-11-27 14:22 ` Biju Das
2018-11-28 13:24 ` Simon Horman
2018-11-28 14:15 ` Biju Das
2018-11-29 13:56 ` Simon Horman
2018-11-30 9:50 ` Geert Uytterhoeven
2018-11-27 11:56 ` [PATCH 07/22] ARM: dts: r8a7744: USB 2.0 host support Biju Das
2018-11-29 14:00 ` Simon Horman
2018-11-30 8:59 ` Geert Uytterhoeven
2018-11-27 11:56 ` [PATCH 08/22] ARM: dts: r8a7744: Add USB-DMAC and HSUSB device nodes Biju Das
2018-11-29 14:07 ` Simon Horman
2018-11-30 8:57 ` Geert Uytterhoeven
2018-11-27 11:56 ` [PATCH 09/22] ARM: dts: r8a7744: Add RWDT node Biju Das
2018-11-29 14:33 ` Simon Horman
2018-11-30 8:58 ` Geert Uytterhoeven
2018-11-27 11:56 ` [PATCH 10/22] ARM: dts: r8a7744: Add audio support Biju Das
2018-11-29 14:51 ` Simon Horman
2018-11-30 8:59 ` Geert Uytterhoeven
2018-11-27 11:56 ` [PATCH 11/22] ARM: dts: r8a7744: Add DU support Biju Das
2018-11-29 14:56 ` Simon Horman
2018-11-30 9:00 ` Geert Uytterhoeven
2018-11-30 9:34 ` Biju Das
2018-11-27 11:56 ` [PATCH 12/22] ARM: dts: r8a7744-iwg20d-q7-dbcm-ca: Add device tree for camera DB Biju Das
2018-11-29 14:58 ` Simon Horman
2018-11-30 10:04 ` Geert Uytterhoeven
2018-12-04 14:26 ` Simon Horman
2018-11-27 11:56 ` [PATCH 13/22] ARM: dts: r8a7744: Add CAN support Biju Das
2018-11-30 9:00 ` Geert Uytterhoeven
2018-11-27 11:56 ` [PATCH 14/22] ARM: dts: r8a7744: Add IRQC support Biju Das
2018-11-30 9:01 ` Geert Uytterhoeven
2018-11-27 11:56 ` [PATCH 15/22] ARM: dts: r8a7744: Add thermal device to DT Biju Das
2018-11-30 9:01 ` Geert Uytterhoeven
2018-11-27 11:56 ` [PATCH 16/22] ARM: dts: r8a7744: Add CMT SoC specific support Biju Das
2018-11-30 9:01 ` Geert Uytterhoeven
2018-11-27 11:56 ` [PATCH 17/22] ARM: dts: iwg20d-q7-common: Move cmt/rwdt node out of RZ/G1M SOM Biju Das
2018-12-04 14:27 ` Simon Horman
2018-12-04 14:55 ` Geert Uytterhoeven
2018-12-05 19:19 ` Simon Horman
2018-11-27 11:56 ` [PATCH 18/22] ARM: dts: r8a7744: Add QSPI support Biju Das
2018-11-30 9:02 ` Geert Uytterhoeven
2018-12-04 14:28 ` Simon Horman
2018-11-27 11:56 ` [PATCH 19/22] ARM: dts: r8a7744-iwg20m: Add SPI NOR support Biju Das
2018-11-30 10:02 ` Geert Uytterhoeven
2018-11-30 10:33 ` Biju Das
2018-11-30 10:46 ` Geert Uytterhoeven [this message]
2018-11-30 11:02 ` Biju Das
2018-12-04 14:32 ` Simon Horman
2018-11-27 11:56 ` [PATCH 20/22] ARM: dts: r8a7744: Add MSIOF[012] support Biju Das
2018-11-30 9:02 ` Geert Uytterhoeven
2018-12-04 14:34 ` Simon Horman
2018-11-27 11:56 ` [PATCH 21/22] ARM: dts: r8a7744: Add xhci support Biju Das
2018-11-30 9:03 ` Geert Uytterhoeven
2018-12-04 14:34 ` Simon Horman
2018-11-27 11:56 ` [PATCH 22/22] ARM: dts: r8a7744: Add PCIe Controller device node Biju Das
2018-11-30 9:03 ` Geert Uytterhoeven
2018-12-04 14:36 ` Simon Horman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMuHMdX7ghhyZcvrgit_zrNwTyVcizB0nbySYNeL-38ux9VJQw@mail.gmail.com \
--to=geert@linux-m68k.org \
--cc=Chris.Paterson2@renesas.com \
--cc=biju.das@bp.renesas.com \
--cc=devicetree@vger.kernel.org \
--cc=fabrizio.castro@bp.renesas.com \
--cc=geert+renesas@glider.be \
--cc=horms@verge.net.au \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).