public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Adam Ford <aford173@gmail.com>
To: u-boot@lists.denx.de
Cc: marex@denx.de, Adam Ford <aford173@gmail.com>
Subject: [PATCH] arm: dts: rz-g2-beacon-u-boot: Enable pinmux for QSPI
Date: Tue, 11 Jan 2022 07:21:06 -0600	[thread overview]
Message-ID: <20220111132106.4669-1-aford173@gmail.com> (raw)

When booting from QSPI, the boot ROM appears to mux the QSPI
pins, but it's not guaranteed to be setup when booting from
eMMC.  Fix this by explicitly configuring the pinmux.

Signed-off-by: Adam Ford <aford173@gmail.com>

diff --git a/arch/arm/dts/rz-g2-beacon-u-boot.dtsi b/arch/arm/dts/rz-g2-beacon-u-boot.dtsi
index ef0b96a71e..4d17854918 100644
--- a/arch/arm/dts/rz-g2-beacon-u-boot.dtsi
+++ b/arch/arm/dts/rz-g2-beacon-u-boot.dtsi
@@ -33,12 +33,21 @@
 	u-boot,dm-pre-reloc;
 };
 
+&pfc {
+	qspi_pins: qspi {
+		groups = "qspi_ctrl", "qspi_data4";
+		function = "qspi";
+	};
+};
+
 &prr {
 	u-boot,dm-pre-reloc;
 };
 
 &rpc {
 	compatible = "renesas,rcar-gen3-rpc";
+	pinctrl-0 = <&qspi_pins>;
+	pinctrl-names = "default";
 	num-cs = <1>;
 	spi-max-frequency = <40000000>;
 	#address-cells = <1>;
-- 
2.32.0


                 reply	other threads:[~2022-01-11 13:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20220111132106.4669-1-aford173@gmail.com \
    --to=aford173@gmail.com \
    --cc=marex@denx.de \
    --cc=u-boot@lists.denx.de \
    /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