public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Dragan Simic <dsimic@manjaro.org>
To: Jonas Karlman <jonas@kwiboo.se>
Cc: Kever Yang <kever.yang@rock-chips.com>,
	Simon Glass <sjg@chromium.org>,
	Philipp Tomsich <philipp.tomsich@vrull.eu>,
	Tom Rini <trini@konsulko.com>,
	"Matwey V. Kornilov" <matwey.kornilov@gmail.com>,
	u-boot@lists.denx.de
Subject: Re: [PATCH 14/15] rockchip: rk3328-rock64: Enable boot from SPI NOR flash
Date: Sat, 10 Feb 2024 19:31:56 +0100	[thread overview]
Message-ID: <4cab520b0fa3c502a4c995ca236b87ee@manjaro.org> (raw)
In-Reply-To: <20240207000301.3270722-15-jonas@kwiboo.se>

On 2024-02-07 01:02, Jonas Karlman wrote:
> Add Kconfig options to enable support for booting from SPI NOR flash on
> Pine64 Rock64.
> 
> The generated bootable u-boot-rockchip-spi.bin that can be written to
> 0x0 of SPI NOR flash. The FIT image is loaded from 0x60000, same as on
> RK35xx boards.
> 
>   => sf probe
>   SF: Detected gd25q128 with page size 256 Bytes, erase size 4 KiB, 
> total 16 MiB
> 
>   => load mmc 1:1 10000000 u-boot-rockchip-spi.bin
>   1359872 bytes read in 65 ms (20 MiB/s)
> 
>   => sf update $fileaddr 0 $filesize
>   device 0 offset 0x0, size 0x14c000
>   1118208 bytes written, 241664 bytes skipped in 8.516s, speed 163516 
> B/s
> 
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>

Looking good to me.  I'm just not sure that we need to support multiple
SPI chip brands, because I can't recall that the Rock64 has been shipped
with different SPI chips, but perhaps better safe than sorry.

Reviewed-by: Dragan Simic <dsimic@manjaro.org>

> ---
>  configs/rock64-rk3328_defconfig | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/configs/rock64-rk3328_defconfig 
> b/configs/rock64-rk3328_defconfig
> index 0157a1efe374..01e447448513 100644
> --- a/configs/rock64-rk3328_defconfig
> +++ b/configs/rock64-rk3328_defconfig
> @@ -13,6 +13,7 @@ CONFIG_DEFAULT_DEVICE_TREE="rk3328-rock64"
>  CONFIG_DM_RESET=y
>  CONFIG_ROCKCHIP_RK3328=y
>  CONFIG_TPL_ROCKCHIP_COMMON_BOARD=y
> +CONFIG_ROCKCHIP_SPI_IMAGE=y
>  CONFIG_TPL_LIBCOMMON_SUPPORT=y
>  CONFIG_TPL_LIBGENERIC_SUPPORT=y
>  CONFIG_SPL_STACK_R_ADDR=0x600000
> @@ -20,6 +21,8 @@ CONFIG_SPL_STACK=0x400000
>  CONFIG_TPL_SYS_MALLOC_F_LEN=0x800
>  CONFIG_DEBUG_UART_BASE=0xFF130000
>  CONFIG_DEBUG_UART_CLOCK=24000000
> +CONFIG_SPL_SPI_FLASH_SUPPORT=y
> +CONFIG_SPL_SPI=y
>  CONFIG_SYS_LOAD_ADDR=0x800800
>  CONFIG_DEBUG_UART=y
>  # CONFIG_ANDROID_BOOT_IMAGE is not set
> @@ -42,6 +45,8 @@ CONFIG_SPL_BSS_MAX_SIZE=0x2000
>  CONFIG_SPL_STACK_R=y
>  CONFIG_SPL_I2C=y
>  CONFIG_SPL_POWER=y
> +CONFIG_SPL_SPI_LOAD=y
> +CONFIG_SYS_SPI_U_BOOT_OFFS=0x60000
>  CONFIG_SPL_ATF=y
>  CONFIG_SPL_ATF_NO_PLATFORM_PARAM=y
>  CONFIG_TPL_SYS_MALLOC_SIMPLE=y
> @@ -76,7 +81,10 @@ CONFIG_MISC=y
>  CONFIG_ROCKCHIP_EFUSE=y
>  CONFIG_MMC_DW=y
>  CONFIG_MMC_DW_ROCKCHIP=y
> +CONFIG_SPI_FLASH_SFDP_SUPPORT=y
>  CONFIG_SPI_FLASH_GIGADEVICE=y
> +CONFIG_SPI_FLASH_MACRONIX=y
> +CONFIG_SPI_FLASH_WINBOND=y
>  CONFIG_PHY_REALTEK=y
>  CONFIG_DM_ETH_PHY=y
>  CONFIG_ETH_DESIGNWARE=y

  reply	other threads:[~2024-02-10 18:32 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-07  0:02 [PATCH 00/15] rockchip: rk3328: Update defconfigs, DTs and enable boot from SPI Jonas Karlman
2024-02-07  0:02 ` [PATCH 01/15] rockchip: rk3328: Update default u-boot, spl-boot-order prop Jonas Karlman
2024-02-07  2:58   ` Dragan Simic
2024-02-07  0:02 ` [PATCH 02/15] rockchip: rk3328-evb: Update defconfig Jonas Karlman
2024-02-07  0:02 ` [PATCH 03/15] rockchip: rk3328-rock64: " Jonas Karlman
2024-02-07  3:01   ` Dragan Simic
2024-02-07  7:53   ` Matwey V. Kornilov
2024-02-07  8:34     ` Jonas Karlman
2024-02-07  0:02 ` [PATCH 04/15] rockchip: rk3328-roc-cc: " Jonas Karlman
2024-02-07  5:52   ` Chen-Yu Tsai
2024-02-07  8:17     ` Jonas Karlman
2024-02-07  7:29   ` Chen-Yu Tsai
2024-02-07  0:02 ` [PATCH 05/15] rockchip: rk3328-rock-pi-e: " Jonas Karlman
2024-02-07  0:02 ` [PATCH 06/15] rockchip: rk3328-nanopi-r2: " Jonas Karlman
2024-02-07  0:02 ` [PATCH 07/15] rockchip: rk3328-orangepi-r1-plus: " Jonas Karlman
2024-02-07  9:54   ` Tianling Shen
2024-02-07  0:02 ` [PATCH 08/15] rockchip: rk3328: Fix loading FIT from SD-card when booting from eMMC Jonas Karlman
2024-02-07  0:02 ` [PATCH 09/15] gpio: rockchip: Use gpio alias id as gpio bank id Jonas Karlman
2024-02-07  0:02 ` [PATCH 10/15] rng: rockchip: Use same compatible as linux Jonas Karlman
2024-02-07  7:12   ` Heinrich Schuchardt
2024-02-07  7:26     ` Dragan Simic
2024-02-07  8:26     ` Jonas Karlman
2024-02-07  0:02 ` [PATCH 11/15] rockchip: rk3328: Sync device tree from linux v6.8-rc1 Jonas Karlman
2024-02-07  0:02 ` [PATCH 12/15] Revert "rockchip: Allow booting from SPI" Jonas Karlman
2024-02-07  0:02 ` [PATCH 13/15] rockchip: rk3328: Add support to build bootable SPI image Jonas Karlman
2024-02-08  3:53   ` Dragan Simic
2024-02-08 21:54     ` Jonas Karlman
2024-02-10 17:18       ` Dragan Simic
2024-02-10 19:30         ` Jonas Karlman
2024-02-10 23:04           ` Dragan Simic
2024-02-09  1:57     ` Da Xue
2024-02-10 17:21       ` Dragan Simic
2024-02-07  0:02 ` [PATCH 14/15] rockchip: rk3328-rock64: Enable boot from SPI NOR flash Jonas Karlman
2024-02-10 18:31   ` Dragan Simic [this message]
2024-02-10 19:38     ` Jonas Karlman
2024-02-10 22:31       ` Dragan Simic
2024-02-07  0:02 ` [PATCH 15/15] rockchip: rk3328-orangepi-r1-plus: " Jonas Karlman
2024-02-07  9:52   ` Tianling Shen
2024-02-10  1:15 ` [PATCH 00/15] rockchip: rk3328: Update defconfigs, DTs and enable boot from SPI John Clark

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=4cab520b0fa3c502a4c995ca236b87ee@manjaro.org \
    --to=dsimic@manjaro.org \
    --cc=jonas@kwiboo.se \
    --cc=kever.yang@rock-chips.com \
    --cc=matwey.kornilov@gmail.com \
    --cc=philipp.tomsich@vrull.eu \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.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