All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: linux-arm-kernel@lists.infradead.org
Cc: Marek Vasut <marex@denx.de>,
	Alexandre Torgue <alexandre.torgue@st.com>,
	Patrice Chotard <patrice.chotard@st.com>,
	Patrick Delaunay <patrick.delaunay@st.com>,
	Maxime Coquelin <mcoquelin.stm32@gmail.com>,
	Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>,
	linux-stm32@st-md-mailman.stormreply.com
Subject: [PATCH V3 11/22] ARM: dts: stm32: Add QSPI NOR on AV96
Date: Tue, 31 Mar 2020 19:58:00 +0200	[thread overview]
Message-ID: <20200331175811.205153-12-marex@denx.de> (raw)
In-Reply-To: <20200331175811.205153-1-marex@denx.de>

The DH Electronics DHCOR SOM has QSPI NOR on the SoM itself, add it
into the DT.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Patrice Chotard <patrice.chotard@st.com>
Cc: Patrick Delaunay <patrick.delaunay@st.com>
Cc: linux-stm32@st-md-mailman.stormreply.com
To: linux-arm-kernel@lists.infradead.org
---
V2: Use spi-flash in the DT node instead of explicit model name
V3: Reduce the SPI controller window to 2 MiB, which is the flash size
---
 arch/arm/boot/dts/stm32mp157a-avenger96.dts | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/arch/arm/boot/dts/stm32mp157a-avenger96.dts b/arch/arm/boot/dts/stm32mp157a-avenger96.dts
index 894b0589b30b..09eab93980d6 100644
--- a/arch/arm/boot/dts/stm32mp157a-avenger96.dts
+++ b/arch/arm/boot/dts/stm32mp157a-avenger96.dts
@@ -21,6 +21,7 @@ aliases {
 		mmc0 = &sdmmc1;
 		serial0 = &uart4;
 		serial1 = &uart7;
+		spi0 = &qspi;
 	};
 
 	chosen {
@@ -312,6 +313,25 @@ &pwr_regulators {
 	vdd_3v3_usbfs-supply = <&vdd_usb>;
 };
 
+&qspi {
+	pinctrl-names = "default", "sleep";
+	pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a>;
+	pinctrl-1 = <&qspi_clk_sleep_pins_a &qspi_bk1_sleep_pins_a>;
+	reg = <0x58003000 0x1000>, <0x70000000 0x200000>;
+	#address-cells = <1>;
+	#size-cells = <0>;
+	status = "okay";
+
+	flash0: spi-flash@0 {
+		compatible = "jedec,spi-nor";
+		reg = <0>;
+		spi-rx-bus-width = <4>;
+		spi-max-frequency = <108000000>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+	};
+};
+
 &rng1 {
 	status = "okay";
 };
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2020-03-31 18:03 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-31 17:57 [PATCH V3 00/22] ARM: dts: stm32: Repair AV96 board Marek Vasut
2020-03-31 17:57 ` [PATCH V3 01/22] ARM: dts: stm32: Add alternate pinmux for ethernet RGMII Marek Vasut
2020-04-01  9:52   ` Alexandre Torgue
2020-04-01 11:04     ` Marek Vasut
2020-04-01 11:49       ` Alexandre Torgue
2020-04-01 12:52         ` Marek Vasut
2020-03-31 17:57 ` [PATCH V3 02/22] ARM: dts: stm32: Repair ethernet operation on AV96 Marek Vasut
2020-03-31 17:57 ` [PATCH V3 03/22] ARM: dts: stm32: Add missing ethernet PHY reset " Marek Vasut
2020-03-31 17:57 ` [PATCH V3 04/22] ARM: dts: stm32: Add missing ethernet PHY skews " Marek Vasut
2020-03-31 17:57 ` [PATCH V3 05/22] ARM: dts: stm32: Add alternate pinmux for SDMMC1 direction pins Marek Vasut
2020-03-31 17:57 ` [PATCH V3 06/22] ARM: dts: stm32: Repair SDMMC1 operation on AV96 Marek Vasut
2020-03-31 17:57 ` [PATCH V3 07/22] ARM: dts: stm32: Repair PMIC configuration " Marek Vasut
2020-03-31 17:57 ` [PATCH V3 08/22] ARM: dts: stm32: Repair PMIC interrupt " Marek Vasut
2020-03-31 17:57 ` [PATCH V3 09/22] ARM: dts: stm32: Add alternate pinmux for SDMMC2 pins 4-7 Marek Vasut
2020-03-31 17:57 ` [PATCH V3 10/22] ARM: dts: stm32: Add eMMC attached to SDMMC2 on AV96 Marek Vasut
2020-03-31 17:58 ` Marek Vasut [this message]
2020-03-31 17:58 ` [PATCH V3 12/22] ARM: dts: stm32: Add configuration EEPROM " Marek Vasut
2020-03-31 17:58 ` [PATCH V3 13/22] ARM: dts: stm32: Enable GPU " Marek Vasut
2020-04-01  9:59   ` Alexandre Torgue
2020-04-01 12:21     ` Marek Vasut
2020-04-01 12:40       ` [Linux-stm32] " Lucas Stach
2020-04-01 12:45         ` Marek Vasut
2020-03-31 17:58 ` [PATCH V3 14/22] ARM: dts: stm32: Add alternate pinmux for SDMMC3 pins Marek Vasut
2020-03-31 17:58 ` [PATCH V3 15/22] ARM: dts: stm32: Enable WiFi on AV96 Marek Vasut
2020-03-31 17:58 ` [PATCH V3 16/22] ARM: dts: stm32: Add alternate pinmux for USART2 pins Marek Vasut
2020-03-31 17:58 ` [PATCH V3 17/22] ARM: dts: stm32: Enable Bluetooth on AV96 Marek Vasut
2020-03-31 17:58 ` [PATCH V3 18/22] ARM: dts: stm32: Add alternate pinmux for LTDC pins Marek Vasut
2020-03-31 17:58 ` [PATCH V3 19/22] ARM: dts: stm32: Add bindings for HDMI video on AV96 Marek Vasut
2020-03-31 17:58 ` [PATCH V3 20/22] ARM: dts: stm32: Add bindings for audio " Marek Vasut
2020-03-31 17:58 ` [PATCH V3 21/22] ARM: dts: stm32: Add bindings for USB " Marek Vasut
2020-03-31 17:58 ` [PATCH V3 22/22] ARM: dts: stm32: Rename LEDs to match silkscreen " Marek Vasut
2020-03-31 18:01 ` [PATCH V3 00/22] ARM: dts: stm32: Repair AV96 board Marek Vasut

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=20200331175811.205153-12-marex@denx.de \
    --to=marex@denx.de \
    --cc=alexandre.torgue@st.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-stm32@st-md-mailman.stormreply.com \
    --cc=manivannan.sadhasivam@linaro.org \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=patrice.chotard@st.com \
    --cc=patrick.delaunay@st.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.