u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
From: "Álvaro Fernández Rojas" <noltari@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v5 4/4] mips: bmips: enable the SPI flash on the Comtrend AR-5387un
Date: Mon, 15 Jan 2018 19:45:44 +0100	[thread overview]
Message-ID: <20180115184544.17841-5-noltari@gmail.com> (raw)
In-Reply-To: <20180115184544.17841-1-noltari@gmail.com>

It's a Macronix (mx25l12805d) 16 MB SPI flash.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
---
 v5: no changes
 v4: Sync with master.
 v3: switch to CONFIG_BCM63XX_HSSPI
 v2: no changes

 arch/mips/dts/comtrend,ar-5387un.dts    | 12 ++++++++++++
 configs/comtrend_ar5387un_ram_defconfig |  8 ++++++++
 2 files changed, 20 insertions(+)

diff --git a/arch/mips/dts/comtrend,ar-5387un.dts b/arch/mips/dts/comtrend,ar-5387un.dts
index 73f2b49b76..6067881a78 100644
--- a/arch/mips/dts/comtrend,ar-5387un.dts
+++ b/arch/mips/dts/comtrend,ar-5387un.dts
@@ -51,6 +51,18 @@
 	};
 };
 
+&spi {
+	status = "okay";
+
+	spi-flash at 0 {
+		compatible = "spi-flash";
+		reg = <0>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		spi-max-frequency = <33333334>;
+	};
+};
+
 &uart0 {
 	u-boot,dm-pre-reloc;
 	status = "okay";
diff --git a/configs/comtrend_ar5387un_ram_defconfig b/configs/comtrend_ar5387un_ram_defconfig
index b64018ae71..59ec86b253 100644
--- a/configs/comtrend_ar5387un_ram_defconfig
+++ b/configs/comtrend_ar5387un_ram_defconfig
@@ -41,3 +41,11 @@ CONFIG_RESET_BCM6345=y
 # CONFIG_SPL_SERIAL_PRESENT is not set
 CONFIG_DM_SERIAL=y
 CONFIG_BCM6345_SERIAL=y
+CONFIG_BCM63XX_HSSPI=y
+CONFIG_CMD_SF=y
+CONFIG_CMD_SPI=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH=y
+CONFIG_SPI_FLASH_MTD=y
+CONFIG_SPI_FLASH_MACRONIX=y
-- 
2.11.0

  parent reply	other threads:[~2018-01-15 18:45 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-23 19:18 [U-Boot] [PATCH 0/4] mips: bmips: add HSSPI support Álvaro Fernández Rojas
2017-05-23 19:18 ` [U-Boot] [PATCH 1/4] dm: spi: add BCM63xx HSSPI driver Álvaro Fernández Rojas
2017-06-01  3:10   ` Simon Glass
2017-05-23 19:18 ` [U-Boot] [PATCH 2/4] mips: bmips: add bcm63xx-hsspi driver support for BCM6328 Álvaro Fernández Rojas
2017-06-01  3:10   ` Simon Glass
2017-05-23 19:18 ` [U-Boot] [PATCH 3/4] mips: bmips: add bcm63xx-hsspi driver support for BCM63268 Álvaro Fernández Rojas
2017-06-01  3:10   ` Simon Glass
2017-05-23 19:18 ` [U-Boot] [PATCH 4/4] mips: bmips: enable the SPI flash on the Comtrend AR-5387un Álvaro Fernández Rojas
2017-06-01  3:10   ` Simon Glass
2017-06-03 10:15 ` [U-Boot] [PATCH v2 0/4] mips: bmips: add HSSPI support Álvaro Fernández Rojas
2017-06-03 10:16   ` [U-Boot] [PATCH v2 1/4] dm: spi: add BCM63xx HSSPI driver Álvaro Fernández Rojas
2017-06-04  9:02     ` Daniel Schwierzeck
2017-06-05 16:03       ` Álvaro Fernández Rojas
2017-06-03 10:16   ` [U-Boot] [PATCH v2 2/4] mips: bmips: add bcm63xx-hsspi driver support for BCM6328 Álvaro Fernández Rojas
2017-06-04  9:04     ` Daniel Schwierzeck
2017-06-05 16:04       ` Álvaro Fernández Rojas
2017-06-03 10:16   ` [U-Boot] [PATCH v2 3/4] mips: bmips: add bcm63xx-hsspi driver support for BCM63268 Álvaro Fernández Rojas
2017-06-04  9:04     ` Daniel Schwierzeck
2017-06-05 16:04       ` Álvaro Fernández Rojas
2017-06-03 10:16   ` [U-Boot] [PATCH v2 4/4] mips: bmips: enable the SPI flash on the Comtrend AR-5387un Álvaro Fernández Rojas
2017-06-04  9:05     ` Daniel Schwierzeck
2017-06-05 16:04       ` Álvaro Fernández Rojas
2017-06-14  9:59 ` [U-Boot] [PATCH v3 0/4] mips: bmips: add HSSPI support Álvaro Fernández Rojas
2017-06-14  9:59   ` [U-Boot] [PATCH v3 1/4] dm: spi: add BCM63xx HSSPI driver Álvaro Fernández Rojas
2017-06-14  9:59   ` [U-Boot] [PATCH v3 2/4] mips: bmips: add bcm63xx-hsspi driver support for BCM6328 Álvaro Fernández Rojas
2017-06-14  9:59   ` [U-Boot] [PATCH v3 3/4] mips: bmips: add bcm63xx-hsspi driver support for BCM63268 Álvaro Fernández Rojas
2017-06-14  9:59   ` [U-Boot] [PATCH v3 4/4] mips: bmips: enable the SPI flash on the Comtrend AR-5387un Álvaro Fernández Rojas
2017-07-30 12:14 ` [U-Boot] [PATCH v4 0/4] mips: bmips: add HSSPI support Álvaro Fernández Rojas
2017-07-30 12:14   ` [U-Boot] [PATCH v4 1/4] dm: spi: add BCM63xx HSSPI driver Álvaro Fernández Rojas
2017-08-11  9:42     ` Jagan Teki
2017-12-26 13:20       ` Álvaro Fernández Rojas
2017-07-30 12:14   ` [U-Boot] [PATCH v4 2/4] mips: bmips: add bcm63xx-hsspi driver support for BCM6328 Álvaro Fernández Rojas
2017-07-30 12:14   ` [U-Boot] [PATCH v4 3/4] mips: bmips: add bcm63xx-hsspi driver support for BCM63268 Álvaro Fernández Rojas
2017-07-30 12:14   ` [U-Boot] [PATCH v4 4/4] mips: bmips: enable the SPI flash on the Comtrend AR-5387un Álvaro Fernández Rojas
2018-01-15 18:45 ` [U-Boot] [PATCH v5 0/4] mips: bmips: add HSSPI support Álvaro Fernández Rojas
2018-01-15 18:45   ` [U-Boot] [PATCH v5 1/4] dm: spi: add BCM63xx HSSPI driver Álvaro Fernández Rojas
2018-01-15 18:45   ` [U-Boot] [PATCH v5 2/4] mips: bmips: add bcm63xx-hsspi driver support for BCM6328 Álvaro Fernández Rojas
2018-01-15 18:45   ` [U-Boot] [PATCH v5 3/4] mips: bmips: add bcm63xx-hsspi driver support for BCM63268 Álvaro Fernández Rojas
2018-01-15 18:45   ` Álvaro Fernández Rojas [this message]
2018-01-20  1:13 ` [U-Boot] [PATCH v6 0/4] mips: bmips: add HSSPI support Álvaro Fernández Rojas
2018-01-20  1:13   ` [U-Boot] [PATCH v6 1/4] dm: spi: add BCM63xx HSSPI driver Álvaro Fernández Rojas
2018-01-20  1:13   ` [U-Boot] [PATCH v6 2/4] mips: bmips: add bcm63xx-hsspi driver support for BCM6328 Álvaro Fernández Rojas
2018-01-20  1:13   ` [U-Boot] [PATCH v6 3/4] mips: bmips: add bcm63xx-hsspi driver support for BCM63268 Álvaro Fernández Rojas
2018-01-20  1:13   ` [U-Boot] [PATCH v6 4/4] mips: bmips: enable the SPI flash on the Comtrend AR-5387un Álvaro Fernández Rojas
2018-01-22  5:11   ` [U-Boot] [PATCH v6 0/4] mips: bmips: add HSSPI support Jagan Teki

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=20180115184544.17841-5-noltari@gmail.com \
    --to=noltari@gmail.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;
as well as URLs for NNTP newsgroup(s).