All of lore.kernel.org
 help / color / mirror / Atom feed
From: Biju Das <biju.das.jz@bp.renesas.com>
To: cip-dev@lists.cip-project.org,
	Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>,
	Pavel Machek <pavel@denx.de>
Cc: Chris Paterson <chris.paterson2@renesas.com>,
	Biju Das <biju.das.jz@bp.renesas.com>,
	Prabhakar Mahadev Lad <prabhakar.mahadev-lad.rj@bp.renesas.com>
Subject: [PATCH 5.10.y-cip 10/13] arm64: dts: renesas: rzg2lc-smarc-som: Enable serial NOR flash
Date: Wed,  3 Aug 2022 17:53:55 +0100	[thread overview]
Message-ID: <20220803165358.2156150-11-biju.das.jz@bp.renesas.com> (raw)
In-Reply-To: <20220803165358.2156150-1-biju.das.jz@bp.renesas.com>

commit 018d7b93477fbb04ba7b4bc4c355793d644e45da upstream.

Enable mt25qu512a flash connected to QSPI0.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Link: https://lore.kernel.org/r/20220307192436.13237-2-biju.das.jz@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
---
 .../boot/dts/renesas/rzg2lc-smarc-som.dtsi    | 40 +++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/rzg2lc-smarc-som.dtsi b/arch/arm64/boot/dts/renesas/rzg2lc-smarc-som.dtsi
index 88a7938017aa..80c9a1146cb7 100644
--- a/arch/arm64/boot/dts/renesas/rzg2lc-smarc-som.dtsi
+++ b/arch/arm64/boot/dts/renesas/rzg2lc-smarc-som.dtsi
@@ -110,6 +110,18 @@ gpio-sd0-pwr-en-hog {
 		line-name = "gpio_sd0_pwr_en";
 	};
 
+	qspi0_pins: qspi0 {
+		qspi0-data {
+			pins = "QSPI0_IO0", "QSPI0_IO1", "QSPI0_IO2", "QSPI0_IO3";
+			power-source = <1800>;
+		};
+
+		qspi0-ctrl {
+			pins = "QSPI0_SPCLK", "QSPI0_SSL", "QSPI_RESET#";
+			power-source = <1800>;
+		};
+	};
+
 	/*
 	 * SD0 device selection is XOR between GPIO_SD0_DEV_SEL and SW1[2]
 	 * The below switch logic can be used to select the device between
@@ -175,6 +187,34 @@ sd0_mux_uhs {
 	};
 };
 
+&sbc {
+	pinctrl-0 = <&qspi0_pins>;
+	pinctrl-names = "default";
+	status = "okay";
+
+	flash@0 {
+		compatible = "micron,mt25qu512a", "jedec,spi-nor";
+		reg = <0>;
+		m25p,fast-read;
+		spi-max-frequency = <50000000>;
+		spi-rx-bus-width = <4>;
+
+		partitions {
+			compatible = "fixed-partitions";
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			boot@0 {
+				reg = <0x00000000 0x2000000>;
+				read-only;
+			};
+			user@2000000 {
+				reg = <0x2000000 0x2000000>;
+			};
+		};
+	};
+};
+
 #if (!SW_SD0_DEV_SEL)
 &sdhi0 {
 	pinctrl-0 = <&sdhi0_pins>;
-- 
2.25.1



  parent reply	other threads:[~2022-08-03 16:54 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-03 16:53 [PATCH 5.10.y-cip 00/13] Add more support to RZ/G2LC Biju Das
2022-08-03 16:53 ` [PATCH 5.10.y-cip 01/13] arm64: dts: renesas: rzg2lc-smarc: Enable CANFD channel 1 Biju Das
2022-08-03 16:53 ` [PATCH 5.10.y-cip 02/13] arm64: dts: renesas: rzg2lc-smarc: Use SW_SD0_DEV_SEL macro for eMMC/SDHI device selection Biju Das
2022-08-03 16:53 ` [PATCH 5.10.y-cip 03/13] arm64: dts: renesas: rzg2lc-smarc-som: Enable watchdog Biju Das
2022-08-03 16:53 ` [PATCH 5.10.y-cip 04/13] arm64: dts: renesas: Align GPIO hog names with dtschema Biju Das
2022-08-03 16:53 ` [PATCH 5.10.y-cip 05/13] arm64: dts: renesas: r9a07g044c2-smarc: Enable usb2.0 Biju Das
2022-08-03 16:53 ` [PATCH 5.10.y-cip 06/13] arm64: dts: renesas: rzg2lc-smarc-pinfunction: Sort the nodes Biju Das
2022-08-03 16:53 ` [PATCH 5.10.y-cip 07/13] arm64: dts: renesas: rzg2l-smarc: Move out i2c3 and Audio codec from common dtsi Biju Das
2022-08-03 16:53 ` [PATCH 5.10.y-cip 08/13] arm64: dts: renesas: rzg2lc-smarc: Enable i2c{0,1,2} Biju Das
2022-08-03 16:53 ` [PATCH 5.10.y-cip 09/13] arm64: dts: renesas: rzg2lc-smarc: Enable Audio Biju Das
2022-08-03 16:53 ` Biju Das [this message]
2022-08-03 16:53 ` [PATCH 5.10.y-cip 11/13] arm64: dts: renesas: rzg2lc-smarc-som: Enable OSTM Biju Das
2022-08-03 16:53 ` [PATCH 5.10.y-cip 12/13] arm64: dts: renesas: rzg2lc-smarc: Enable RSPI1 on carrier board Biju Das
2022-08-03 16:53 ` [PATCH 5.10.y-cip 13/13] arm64: dts: renesas: rzg2l-smarc: Move gpios property of vccq_sdhi1 from common dtsi Biju Das
2022-08-04  5:03 ` [PATCH 5.10.y-cip 00/13] Add more support to RZ/G2LC nobuhiro1.iwamatsu
2022-08-04  9:16   ` Pavel Machek
2022-08-05  0:56     ` nobuhiro1.iwamatsu

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=20220803165358.2156150-11-biju.das.jz@bp.renesas.com \
    --to=biju.das.jz@bp.renesas.com \
    --cc=chris.paterson2@renesas.com \
    --cc=cip-dev@lists.cip-project.org \
    --cc=nobuhiro1.iwamatsu@toshiba.co.jp \
    --cc=pavel@denx.de \
    --cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
    /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.