public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Johannes Krottmayer <krjdev@gmail.com>
To: u-boot@lists.denx.de
Subject: [PATCH] rockchip: rock64-rk3328: Add SPI Flash support
Date: Fri,  3 Jul 2020 21:00:23 +0200	[thread overview]
Message-ID: <20200703190021.2990-1-krjdev@gmail.com> (raw)
In-Reply-To: <20200703180849.31993-1-krjdev@gmail.com>

Add SPI Flash support for the PINE64 Rock64 board

Signed-off-by: Johannes Krottmayer <krjdev@gmail.com>
Cc: Kever Yang <kever.yang@rock-chips.com>
Cc: Jagan Teki <jagan@amarulasolutions.com>
---

Initial SPI Flash support.

Okay?

 arch/arm/dts/rk3328-rock64-u-boot.dtsi | 6 ++++++
 configs/rock64-rk3328_defconfig        | 2 ++
 2 files changed, 8 insertions(+)

diff --git a/arch/arm/dts/rk3328-rock64-u-boot.dtsi b/arch/arm/dts/rk3328-rock64-u-boot.dtsi
index f076075076..7340ef95f1 100644
--- a/arch/arm/dts/rk3328-rock64-u-boot.dtsi
+++ b/arch/arm/dts/rk3328-rock64-u-boot.dtsi
@@ -46,3 +46,9 @@
 &vcc_sd {
 	u-boot,dm-spl;
 };
+
+&spi0 {
+	spi_flash: spiflash at 0 {
+		u-boot,dm-pre-reloc;
+	};
+};
diff --git a/configs/rock64-rk3328_defconfig b/configs/rock64-rk3328_defconfig
index f123826358..0a51e51a0c 100644
--- a/configs/rock64-rk3328_defconfig
+++ b/configs/rock64-rk3328_defconfig
@@ -97,3 +97,5 @@ CONFIG_SPL_TINY_MEMSET=y
 CONFIG_TPL_TINY_MEMSET=y
 CONFIG_ERRNO_STR=y
 CONFIG_SMBIOS_MANUFACTURER="pine64"
+CONFIG_ROCKCHIP_SPI=y
+CONFIG_SPI_FLASH_GIGADEVICE=y
-- 
2.26.2

  reply	other threads:[~2020-07-03 19:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-19 23:41 PINE64 Rock64 - How to get SPI driver working Johannes Krottmayer
2020-05-20  5:56 ` Kamal R. Prasad
2020-05-21 13:35 ` Kever Yang
2020-05-21 23:11   ` Johannes Krottmayer
2020-05-22 14:28     ` Peter Robinson
2020-06-24 15:52       ` Johannes Krottmayer
2020-07-03 17:08         ` Johannes Krottmayer
2020-07-03 18:08           ` [PATCH] rockchip: rk3328: Add SPI support Johannes Krottmayer
2020-07-03 19:00             ` Johannes Krottmayer [this message]
2020-07-08 10:08             ` Kever Yang
2020-07-18  3:02               ` Kever Yang
2020-07-18 15:45                 ` Johannes Krottmayer

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=20200703190021.2990-1-krjdev@gmail.com \
    --to=krjdev@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