From: Eugen.Hristev at microchip.com <Eugen.Hristev@microchip.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/4] ARM: dts: at91: sama5d27_wlsom1_ek: add support for qspi
Date: Mon, 26 Aug 2019 06:47:06 +0000 [thread overview]
Message-ID: <1566801667-16804-2-git-send-email-eugen.hristev@microchip.com> (raw)
In-Reply-To: <1566801667-16804-1-git-send-email-eugen.hristev@microchip.com>
From: Eugen Hristev <eugen.hristev@microchip.com>
Add node for qspi1 memory connected on the wlsom
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
---
arch/arm/dts/at91-sama5d27_wlsom1_ek-u-boot.dtsi | 12 ++++++++++++
arch/arm/dts/at91-sama5d27_wlsom1_ek.dts | 4 ++++
arch/arm/dts/sama5d27_wlsom1.dtsi | 22 ++++++++++++++++++++++
3 files changed, 38 insertions(+)
diff --git a/arch/arm/dts/at91-sama5d27_wlsom1_ek-u-boot.dtsi b/arch/arm/dts/at91-sama5d27_wlsom1_ek-u-boot.dtsi
index 48ab217..dae1fba 100644
--- a/arch/arm/dts/at91-sama5d27_wlsom1_ek-u-boot.dtsi
+++ b/arch/arm/dts/at91-sama5d27_wlsom1_ek-u-boot.dtsi
@@ -13,6 +13,14 @@
};
};
+&qspi1 {
+ u-boot,dm-pre-reloc;
+};
+
+&qspi1_flash {
+ u-boot,dm-pre-reloc;
+};
+
&sdmmc0 {
u-boot,dm-pre-reloc;
};
@@ -36,3 +44,7 @@
&pinctrl_uart0_default {
u-boot,dm-pre-reloc;
};
+
+&pinctrl_qspi1_default {
+ u-boot,dm-pre-reloc;
+};
diff --git a/arch/arm/dts/at91-sama5d27_wlsom1_ek.dts b/arch/arm/dts/at91-sama5d27_wlsom1_ek.dts
index 21986ec..32d3404 100644
--- a/arch/arm/dts/at91-sama5d27_wlsom1_ek.dts
+++ b/arch/arm/dts/at91-sama5d27_wlsom1_ek.dts
@@ -38,6 +38,10 @@
};
apb {
+ qspi1: spi at f0024000 {
+ status = "okay";
+ };
+
macb0: ethernet at f8008000 {
status = "okay";
};
diff --git a/arch/arm/dts/sama5d27_wlsom1.dtsi b/arch/arm/dts/sama5d27_wlsom1.dtsi
index 3d27570..889a003 100644
--- a/arch/arm/dts/sama5d27_wlsom1.dtsi
+++ b/arch/arm/dts/sama5d27_wlsom1.dtsi
@@ -18,6 +18,19 @@
ahb {
apb {
+ qspi1: spi at f0024000 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_qspi1_default>;
+
+ qspi1_flash: spi_flash at 0 {
+ compatible = "jedec,spi-nor";
+ reg = <0>;
+ spi-max-frequency = <50000000>;
+ spi-rx-bus-width = <4>;
+ spi-tx-bus-width = <4>;
+ };
+ };
+
macb0: ethernet at f8008000 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_macb0_rmii &pinctrl_macb0_phy_irq>;
@@ -49,6 +62,15 @@
bias-disable;
};
+ pinctrl_qspi1_default: qspi1_default {
+ pinmux = <PIN_PB5__QSPI1_SCK>,
+ <PIN_PB6__QSPI1_CS>,
+ <PIN_PB7__QSPI1_IO0>,
+ <PIN_PB8__QSPI1_IO1>,
+ <PIN_PB9__QSPI1_IO2>,
+ <PIN_PB10__QSPI1_IO3>;
+ bias-pull-up;
+ };
};
};
};
--
2.7.4
next prev parent reply other threads:[~2019-08-26 6:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-26 6:47 [U-Boot] [PATCH 1/4] ARM: dts: at91: sama5d2: add seq for qspi1 Eugen.Hristev at microchip.com
2019-08-26 6:47 ` Eugen.Hristev at microchip.com [this message]
2019-08-26 6:47 ` [U-Boot] [PATCH 3/4] board: atmel: sama5d2_wlsom1_ek: add qspi support and qspi boot config Eugen.Hristev at microchip.com
2019-08-26 6:47 ` [U-Boot] [PATCH 4/4] board: atmel: sama5d27_wlsom1_ek: start green led in SPL Eugen.Hristev at microchip.com
2019-09-11 7:09 ` [U-Boot] [PATCH 1/4] ARM: dts: at91: sama5d2: add seq for qspi1 Eugen.Hristev at microchip.com
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=1566801667-16804-2-git-send-email-eugen.hristev@microchip.com \
--to=eugen.hristev@microchip.com \
--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