From patchwork Wed Jul 8 22:50:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Krottmayer X-Patchwork-Id: 241077 List-Id: U-Boot discussion From: krjdev at gmail.com (Johannes Krottmayer) Date: Thu, 9 Jul 2020 00:50:33 +0200 Subject: [PATCH 1/2] ARM: dts: rk3328-rock64: Add SPI Flash support In-Reply-To: <20200708225033.31355-1-krjdev@gmail.com> References: <20200708225033.31355-1-krjdev@gmail.com> Message-ID: <20200708225033.31355-2-krjdev@gmail.com> Add U-Boot SPI Flash support for the PINE64 Rock64 board Signed-off-by: Johannes Krottmayer Cc: Matwey V. Kornilov --- arch/arm/dts/rk3328-rock64-u-boot.dtsi | 6 ++++++ 1 file changed, 6 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; + }; +}; From patchwork Wed Jul 8 22:50:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Krottmayer X-Patchwork-Id: 241078 List-Id: U-Boot discussion From: krjdev at gmail.com (Johannes Krottmayer) Date: Thu, 9 Jul 2020 00:50:34 +0200 Subject: [PATCH 2/2] configs: rock64-rk3328_defconfig: Add SPI Flash support In-Reply-To: <20200708225033.31355-1-krjdev@gmail.com> References: <20200708225033.31355-1-krjdev@gmail.com> Message-ID: <20200708225033.31355-3-krjdev@gmail.com> Add U-Boot SPI Flash support for the PINE64 Rock64 board Signed-off-by: Johannes Krottmayer Cc: Matwey V. Kornilov --- configs/rock64-rk3328_defconfig | 2 ++ 1 file changed, 2 insertions(+) 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