All of lore.kernel.org
 help / color / mirror / Atom feed
From: Magnus Damm <magnus.damm@gmail.com>
To: linux-renesas-soc@vger.kernel.org
Cc: Magnus Damm <magnus.damm@gmail.com>
Subject: [PATCH/RFC 03/03] arm64: dts: renesas: eagle: NOR flash SPI bitbang prototype
Date: Fri, 19 Jan 2018 04:07:37 +0900	[thread overview]
Message-ID: <151630245794.14098.8902060257525149943.sendpatchset@little-apple> (raw)
In-Reply-To: <151630243226.14098.14517816422611139335.sendpatchset@little-apple>

From: Magnus Damm <damm+renesas@opensource.se>

Drive the NOR flash chips via SPI bitbang instead of via the two
channels of QSPI hardware. This is useful to test the on-chip GPIO
devices.

Not-Yet-Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
---

 arch/arm64/boot/dts/renesas/r8a77970-eagle.dts |   36 ++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

--- 0002/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts
+++ work/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts	2018-01-19 03:47:16.380607110 +0900
@@ -31,6 +31,42 @@
 		/* first 128MB is reserved for secure area. */
 		reg = <0x0 0x48000000 0x0 0x38000000>;
 	};
+
+	spi_flash@0 {
+		compatible = "spi-gpio";
+		#address-cells = <1>;
+		#size-cells = <0>;
+		
+		gpio-sck = <&gpio5 0 0>;
+		gpio-mosi = <&gpio5 1 0>;
+		gpio-miso = <&gpio5 2 0>;
+		cs-gpios = <&gpio5 5 0>;
+		num-chipselects = <1>;
+
+		flash@0 {
+			compatible = "jedec,spi-nor";
+			reg = <0>;
+			spi-max-frequency = <30000000>;
+		};
+	};
+
+	spi_flash@1 {
+		compatible = "spi-gpio";
+		#address-cells = <1>;
+		#size-cells = <0>;
+		
+		gpio-sck = <&gpio5 6 0>;
+		gpio-mosi = <&gpio5 7 0>;
+		gpio-miso = <&gpio5 8 0>;
+		cs-gpios = <&gpio5 11 0>;
+		num-chipselects = <1>;
+
+		flash@1 {
+			compatible = "jedec,spi-nor";
+			reg = <0>;
+			spi-max-frequency = <30000000>;
+		};
+	};
 };
 
 &avb {

      parent reply	other threads:[~2018-01-18 19:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-18 19:07 [PATCH/RFC 00/03] arm64: dts: renesas: Eagle V3M PFC/GPIO update and SPI NOR flash bitbang hack Magnus Damm
2018-01-18 19:07 ` [PATCH/RFC 01/03] arm64: dts: renesas: r8a77970: Add PFC node for Eagle V3M Magnus Damm
2018-01-19  8:29   ` Sergei Shtylyov
2018-01-18 19:07 ` [PATCH/RFC 02/03] arm64: dts: renesas: r8a77970: Add GPIO nodes Magnus Damm
2018-01-19  8:35   ` Sergei Shtylyov
2018-01-18 19:07 ` Magnus Damm [this message]

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=151630245794.14098.8902060257525149943.sendpatchset@little-apple \
    --to=magnus.damm@gmail.com \
    --cc=linux-renesas-soc@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.