diff mbox series

[1/2] ARM: dts: at91: at91-sama5d27_som1: add QSPI1 + SPI NOR memory nodes

Message ID 20181212163057.22183-1-tudor.ambarus@microchip.com (mailing list archive)
State Accepted
Commit 26b933b9436b9205787f9058683f3a1f09089876
Headers show
Series [1/2] ARM: dts: at91: at91-sama5d27_som1: add QSPI1 + SPI NOR memory nodes | expand

Commit Message

Tudor Ambarus Dec. 12, 2018, 4:31 p.m. UTC
From: Claudiu Beznea <claudiu.beznea@microchip.com>

Configure the QSPI1 controller pin muxing and declare the
jedec,spi-nor memory (SST26VF064).

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
[tudor.ambarus@microchip.com: add spi-rx/tx-bus-width, drop partitions,
reword commit.]
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
---
 arch/arm/boot/dts/at91-sama5d27_som1.dtsi | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

Comments

Alexandre Belloni Jan. 8, 2019, 6:14 p.m. UTC | #1
On 12/12/2018 16:31:08+0000, Tudor.Ambarus@microchip.com wrote:
> From: Claudiu Beznea <claudiu.beznea@microchip.com>
> 
> Configure the QSPI1 controller pin muxing and declare the
> jedec,spi-nor memory (SST26VF064).
> 
> Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
> [tudor.ambarus@microchip.com: add spi-rx/tx-bus-width, drop partitions,
> reword commit.]
> Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
> ---
>  arch/arm/boot/dts/at91-sama5d27_som1.dtsi | 30 ++++++++++++++++++++++++++++++
>  1 file changed, 30 insertions(+)
> 
Applied, thanks.
patchwork-bot+linux-spi@kernel.org March 18, 2019, 10:44 a.m. UTC | #2
Hello:

The following patches were marked "accepted", because they were applied to
broonie/spi.git (refs/heads/for-next):

Series: [1/9,v3] staging: spi: mt7621: Switch to SPDX identifier
  Submitter: Stefan Roese <sr@denx.de>
  Patchwork: https://patchwork.kernel.org/project/spi-devel-general/list/?series=74631
    Patches: [1/9,v3] staging: spi: mt7621: Switch to SPDX identifier
             [2/9,v3] staging: spi: mt7621: Clean up excessive header usage
             [3/9,v3] staging: spi: mt7621: Add return code check on device_reset()
             [4/9,v3] staging: spi: mt7621: Remove superfluous SPI_BPW_MASK definition
             [5/9,v3] staging: spi: mt7621: Minor cosmetic changes
             [6/9,v3] staging: spi: mt7621: Use recommended comment style
             [7/9,v3] staging: spi: mt7621: Sort register definitions
             [8/9,v3] staging: spi: mt7621: Use macros instead of hardcoded values
             [9/9,v3] staging: spi: mt7621: Remove superfluous pre-declaration of struct mt7621_spi

Series: [1/2] ARM: dts: at91: at91-sama5d27_som1: add QSPI1 + SPI NOR memory nodes
  Submitter: Tudor Ambarus <tudor.ambarus@microchip.com>
  Patchwork: https://patchwork.kernel.org/project/spi-devel-general/list/?series=55729
    Patches: [1/2] ARM: dts: at91: at91-sama5d27_som1: add QSPI1 + SPI NOR memory nodes
             [2/2] ARM: dts: at91: at91-sama5d27_som1_ek: enable qspi1 memory

Total patches: 11
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/at91-sama5d27_som1.dtsi b/arch/arm/boot/dts/at91-sama5d27_som1.dtsi
index cf0087b4c9e1..33a159c0163f 100644
--- a/arch/arm/boot/dts/at91-sama5d27_som1.dtsi
+++ b/arch/arm/boot/dts/at91-sama5d27_som1.dtsi
@@ -62,6 +62,20 @@ 
 
 	ahb {
 		apb {
+			qspi1: spi@f0024000 {
+				pinctrl-names = "default";
+				pinctrl-0 = <&pinctrl_qspi1_default>;
+
+				flash@0 {
+					compatible = "jedec,spi-nor";
+					reg = <0>;
+					spi-max-frequency = <80000000>;
+					spi-tx-bus-width = <4>;
+					spi-rx-bus-width = <4>;
+					m25p,fast-read;
+				};
+			};
+
 			macb0: ethernet@f8008000 {
 				pinctrl-names = "default";
 				pinctrl-0 = <&pinctrl_macb0_default>;
@@ -78,6 +92,22 @@ 
 
 			pinctrl@fc038000 {
 
+				pinctrl_qspi1_default: qspi1_default {
+					sck_cs {
+						pinmux = <PIN_PB5__QSPI1_SCK>,
+							 <PIN_PB6__QSPI1_CS>;
+						bias-disable;
+					};
+
+					data {
+						pinmux = <PIN_PB7__QSPI1_IO0>,
+							 <PIN_PB8__QSPI1_IO1>,
+							 <PIN_PB9__QSPI1_IO2>,
+							 <PIN_PB10__QSPI1_IO3>;
+						bias-pull-up;
+					};
+				};
+
 				pinctrl_macb0_default: macb0_default {
 					pinmux = <PIN_PD9__GTXCK>,
 						 <PIN_PD10__GTXEN>,