[U-Boot] [PATCH v4 4/7] Makefile: rockchip: Use u-boot preferred spl name

2019-10-23 Thread Jagan Teki
binman, pad_cat etc in future patches. Note: usage of platform type, boot stage doesn't follow consistent oder as of now. Signed-off-by: Jagan Teki --- Makefile | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index b58107d6ef..a4278170d4 100644

[U-Boot] [PATCH v4 6/7] rockchip: Add Single boot image (with binman, pad_cat)

2019-10-23 Thread Jagan Teki
support for SPL yet. Cc: Kever Yang Cc: Matwey V. Kornilov Signed-off-by: Jagan Teki --- Makefile | 18 ++ arch/arm/Kconfig | 1 + arch/arm/dts/rk3036-u-boot.dtsi | 2 ++ arch/arm/dts/rk3288-u-boot.dtsi | 2 ++ arch/arm/dts

[U-Boot] [PATCH v4 5/7] arm: dts: rk3036: Add rk3036-u-boot.dtsi

2019-10-23 Thread Jagan Teki
Add U-Boot specific dtsi file for rk3036 SoC. This would help to add U-Boot specific dts nodes, properties which are common across rk3036. Right now, the file is empty, will add required changes in future patches. Signed-off-by: Jagan Teki --- arch/arm/dts/rk3036-sdk-u-boot.dtsi | 2 ++ arch

[U-Boot] [PATCH v4 7/7] doc: boards: Add rockchip documentation

2019-10-23 Thread Jagan Teki
supported boards and it's usage steps. Added minimal information about rk3288, rk3328, rk3368 and rk3399 boards and usage. This would indeed updated further based on the requirements and updates. Cc: Kever Yang Cc: Matwey V. Kornilov Signed-off-by: Jagan Teki --- doc/board/rockchip/index.rst

[U-Boot] [PATCH v4 3/7] Makefile: rockchip: Support SPL-alone mkimage

2019-10-23 Thread Jagan Teki
Add SPL-alone mkimage tooling support via Makefile for few platforms or boards used in rockchip family. With this users would get rid of explicitly creating mkimage tool for rockchip rksd or rkspi boot modes. Signed-off-by: Jagan Teki --- Makefile | 10 +- 1 file changed, 9 insertions

[U-Boot] [PATCH v4 2/7] Makefile: rockchip: Suffix platform type with tpl name

2019-10-23 Thread Jagan Teki
-off-by: Jagan Teki --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 3e05d3fcfe..40cbf68fef 100644 --- a/Makefile +++ b/Makefile @@ -1342,10 +1342,10 @@ else ROCKCHIP_IMG_TYPE := rksd endif -MKIMAGEFLAGS_u-boot-tpl.img = -n

[U-Boot] [PATCH v4 1/7] Makefile: Add rockchip image type

2019-10-23 Thread Jagan Teki
Add rockchip image type support. right now the image type marked with rksd, So create image type variable with required image type like rksd or rkspi. Cc: Kever Yang Cc: Matwey V. Kornilov Signed-off-by: Jagan Teki --- Makefile | 10 +- 1 file changed, 9 insertions(+), 1 deletion

[U-Boot] [PATCH v4 0/7] rockchip: Add Binman support

2019-10-23 Thread Jagan Teki
- support puma itb, via BL31 and PMUM0 env - enable BUILD_TARGET for ROCKCHIP_RK3399 - add patch to build rockchip dtbs based on SoC types [1] https://patchwork.ozlabs.org/cover/1178957/ Jagan Teki (7): Makefile: Add rockchip image type Makefile: rockchip: Suffix platform type with tpl name

Re: [U-Boot] [PATCH] spl: fix SPI config dependencies

2019-10-23 Thread Jagan Teki
On Wed, Oct 23, 2019 at 1:35 AM Simon Goldschmidt wrote: > > As SPL_SPI_FLASH_SUPPORT cannot work without SPL_SPI_SUPPORT, fix > dependencies to prevent enabling SPI flash support without basic SPI > support. > > Also SYS_SPI_U_BOOT_OFFS does not make sense without > SPL_SPI_FLASH_SUPPORT

Re: [U-Boot] [PATCH] configs: spi: Miss the SPI_FLASH_BAR for ESPI

2019-10-23 Thread Jagan Teki
dish Gediya ; > > >ja...@amarulasolutions.com; u-boot@lists.denx.de > > >Cc: Xiaowei Bao > > >Subject: [U-Boot] [PATCH] configs: spi: Miss the SPI_FLASH_BAR for ESPI > > configs: spi: -> spi: Kconfig > > > > I understand you are adding config, beca

Re: [U-Boot] [PATCH] spi-nor-ids: Add support for Adesto AT25SL321

2019-10-23 Thread Jagan Teki
On Mon, Oct 21, 2019 at 7:21 PM Fabio Estevam wrote: > > From: Fabio Estevam > > Add an entry for the Adesto AT25SL321 SPI NOR chip. > > This SPI NOR chip is found in the Embedded Artist i.MX7ULP COM board. > > Signed-off-by: Fabio Estevam > --- > drivers/mtd/spi/spi-nor-ids.c | 1 + > 1 file

Re: [U-Boot] [PATCH v3] mtd: spi: Clean up usage of CONFIG_SPI_FLASH_MTD

2019-10-23 Thread Jagan Teki
On Wed, Oct 23, 2019 at 1:11 PM Schrempf Frieder wrote: > > From: Frieder Schrempf > > Most boards currently use SPI_FLASH_MTD only in U-Boot proper, not in > SPL. They often rely on hacks in the board header files to include > this option conditionally. To be able to fix this, we previously >

Re: [U-Boot] [PATCH 3/3] mtd: spi: Clean up usage of CONFIG_SPI_FLASH_MTD

2019-10-23 Thread Jagan Teki
On Wed, Oct 23, 2019 at 12:57 PM Stefan Roese wrote: > > On 23.10.19 09:09, Jagan Teki wrote: > > On Wed, Oct 23, 2019 at 12:35 PM Schrempf Frieder > > wrote: > >> > >> Hi Jagan, > >> > >> On 22.10.19 20:16, Jagan Teki wrote: > >>

Re: [U-Boot] [PATCH 3/3] mtd: spi: Clean up usage of CONFIG_SPI_FLASH_MTD

2019-10-23 Thread Jagan Teki
On Wed, Oct 23, 2019 at 12:56 PM Schrempf Frieder wrote: > > On 23.10.19 09:09, Jagan Teki wrote: > > On Wed, Oct 23, 2019 at 12:35 PM Schrempf Frieder > > wrote: > >> > >> Hi Jagan, > >> > >> On 22.10.19 20:16, Jagan Teki wrote:

Re: [U-Boot] [PATCH v3 0/3] spi-nor: spi-nor-ids: Fix 4 Byte addressing for n25q*

2019-10-23 Thread Jagan Teki
On Fri, Oct 11, 2019 at 1:28 PM Vignesh Raghavendra wrote: > > n25q variants do not support stateless 4 byte addressing opcodes by default, > therefore first patch disables this flag for those parts. Second patch > adds entries for mt25q variants which are similar to n25q but supports > stateless

Re: [U-Boot] [PATCH v3 3/3] spi-nor: spi-nor-ids: Add USE_FSR flag for mt25q* and n25q* entry

2019-10-23 Thread Jagan Teki
On Wed, Oct 23, 2019 at 10:49 AM Vignesh Raghavendra wrote: > > Hi Jagan, > > On 23/10/19 12:00 AM, Jagan Teki wrote: > > Hi Vignesh, > > > > On Fri, Oct 11, 2019 at 1:28 PM Vignesh Raghavendra wrote: > >> > >> n25q* and mt25q* (both 256Mb and

Re: [U-Boot] [PATCH v5 00/26]MTD defconfigs/Kconfigs/Makefiles heavy cleanup

2019-10-23 Thread Jagan Teki
On Wed, Oct 23, 2019 at 5:28 PM Tom Rini wrote: > > On Mon, Oct 21, 2019 at 01:42:08PM +0530, Jagan Teki wrote: > > Hi Miquel, > > > > On Mon, Oct 21, 2019 at 1:38 PM Miquel Raynal > > wrote: > > > > > > Hi Jagan, > > > > > >

Re: [U-Boot] [PATCH 5/9] fastboot: rockchip: Select FASTBOOT_FLASH[_MMC_DEV]

2019-10-23 Thread Jagan Teki
On Wed, Oct 23, 2019 at 1:17 PM Kever Yang wrote: > > Jagan, > > On 2019/10/23 上午1:54, Jagan Teki wrote: > > Select CONFIG_FASTBOOT_FLASH, CONFIG_FASTBOOT_FLASH_MMC_DEV > > for rockchip SoC plaforms in fastboot Kconfig file instead > > of defined it in board defc

Re: [U-Boot] [PATCH 3/3] mtd: spi: Clean up usage of CONFIG_SPI_FLASH_MTD

2019-10-23 Thread Jagan Teki
On Wed, Oct 23, 2019 at 12:35 PM Schrempf Frieder wrote: > > Hi Jagan, > > On 22.10.19 20:16, Jagan Teki wrote: > > On Sat, Sep 14, 2019 at 4:14 AM Schrempf Frieder > > wrote: > >> > >> From: Frieder Schrempf > >> > >> M

Re: [U-Boot] [PATCH 0/9] rockchip: ram: add common code for sdram driver

2019-10-22 Thread Jagan Teki
Hi Kever, Thanks for new updated changes. On Tue, Oct 22, 2019 at 1:34 PM Kever Yang wrote: > > > The sdram drivers for Rockchip SoCs was all separate, some of the SoCs > has similar hardware controller and phy, so we have a change to share > the flow and some of the functions between different

Re: [U-Boot] [PATCH v3 3/3] spi-nor: spi-nor-ids: Add USE_FSR flag for mt25q* and n25q* entry

2019-10-22 Thread Jagan Teki
Hi Vignesh, On Fri, Oct 11, 2019 at 1:28 PM Vignesh Raghavendra wrote: > > n25q* and mt25q* (both 256Mb and 512Mb) flashes support Flag status > register that indicates various errors that may be encountered during > erase/write operations. Therefore add USE_FSR flag wherever missing. Does

Re: [U-Boot] [PATCH 0/2] spi-nor-core: Fix small sector erase with SFDP

2019-10-22 Thread Jagan Teki
On Thu, Sep 26, 2019 at 7:04 PM Vignesh Raghavendra wrote: > > First patch improves error reporting on erase/write failures > Second patch makes sure small sector is used even when SFDP is enabled > and CONFIG_SPI_FLASH_USE_4K_SECTORS is set. > > Jagan, > > Could you please consider these patches

Re: [U-Boot] [PATCH 3/3] mtd: spi: Clean up usage of CONFIG_SPI_FLASH_MTD

2019-10-22 Thread Jagan Teki
On Sat, Sep 14, 2019 at 4:14 AM Schrempf Frieder wrote: > > From: Frieder Schrempf > > Most boards currently use SPI_FLASH_MTD only in U-Boot proper, not in > SPL. They often rely on hacks in the board header files to include > this option conditionally. To be able to fix this, we previously >

Re: [U-Boot] [PATCH 2/3] stm32mp1: configs: Add CONFIG_SPL_SPI_FLASH_MTD

2019-10-22 Thread Jagan Teki
On Tue, Oct 22, 2019 at 6:23 PM Schrempf Frieder wrote: > > Hi Jagan, > > On 17.10.19 08:42, Frieder Schrempf wrote: > > Hi Jagan, > > > > On 16.10.19 18:34, Jagan Teki wrote: > >> On Sat, Sep 14, 2019 at 4:18 AM Schrempf Frieder > >

Re: [U-Boot] [PATCH 1/3] mtd: spi: Add a new option SPL_SPI_FLASH_MTD to Kconfig

2019-10-22 Thread Jagan Teki
On Sat, Sep 14, 2019 at 4:13 AM Schrempf Frieder wrote: > > From: Frieder Schrempf > > To allow SPI_FLASH_MTD being enabled separately in SPL we add a new > option. The only user currently is the stm32mp15_basic board. > > Signed-off-by: Frieder Schrempf > --- Applied to u-boot-spi/master

[U-Boot] [PATCH 6/9] usb: dwc3: Add phy interface for dwc3_uboot

2019-10-22 Thread Jagan Teki
phy interface like 8/16-bit UTMI+ code for dwc3_uboot. This change used Linux phy.h enum list, to make proper code compatibility. Cc: Marek Vasut Signed-off-by: Jagan Teki --- drivers/usb/dwc3/core.c | 26 ++ drivers/usb/dwc3/core.h | 12 include/dwc3

[U-Boot] [PATCH 5/9] fastboot: rockchip: Select FASTBOOT_FLASH[_MMC_DEV]

2019-10-22 Thread Jagan Teki
Select CONFIG_FASTBOOT_FLASH, CONFIG_FASTBOOT_FLASH_MMC_DEV for rockchip SoC plaforms in fastboot Kconfig file instead of defined it in board defconfig. This eventually drop the explicit configs defined in supporting board defconfig files. Signed-off-by: Jagan Teki --- configs/evb

[U-Boot] [PATCH 4/9] gadget: rockchip: Add rk3128 USB_GADGET_PRODUCT_NUM

2019-10-22 Thread Jagan Teki
Add 0x310c for rk3128 gadget product number. Signed-off-by: Jagan Teki --- drivers/usb/gadget/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index e120b48b33..2da8b40e05 100644 --- a/drivers/usb/gadget/Kconfig +++ b/drivers

[U-Boot] [PATCH 7/9] gadget: rockchip: Add rk3399 USB_GADGET_PRODUCT_NUM

2019-10-22 Thread Jagan Teki
Add 0x330a for rk3399 gadget product number. Signed-off-by: Jagan Teki --- drivers/usb/gadget/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 2da8b40e05..b0e61f3fcd 100644 --- a/drivers/usb/gadget/Kconfig

[U-Boot] [PATCH 8/9] rockchip: Setup dwc3_device (for non-dm gadgets)

2019-10-22 Thread Jagan Teki
Setup dwc3_device structure for non-dm gadgets, which is used in rk3399 platforms. dwc3_device would have basic regbase, dr_mode, high speed and 16-bit UTMI+ etc. Cc: Marek Vasut Signed-off-by: Jagan Teki --- arch/arm/mach-rockchip/board.c | 32 ++-- 1 file changed

[U-Boot] [DO NOT MERGE] [PATCH 9/9] rockchip: rk3399: Enable fastboot

2019-10-22 Thread Jagan Teki
Enable fastboot on NanoPC-T4 and ROC-PC based rk3399 boards. Signed-off-by: Jagan Teki --- configs/nanopc-t4-rk3399_defconfig | 3 +++ configs/roc-rk3399-pc_defconfig| 3 +++ 2 files changed, 6 insertions(+) diff --git a/configs/nanopc-t4-rk3399_defconfig b/configs/nanopc-t4

[U-Boot] [PATCH 3/9] gadget: rockchip: USB_GADGET_PRODUCT_NUM

2019-10-22 Thread Jagan Teki
files. Signed-off-by: Jagan Teki --- configs/evb-rk3036_defconfig | 1 - configs/evb-rk3229_defconfig | 1 - configs/evb-rk3288_defconfig | 1 - configs/evb-rk3328_defconfig | 1 - configs/firefly-rk3288_defconfig | 1 - configs/kylin-rk3036_defconfig| 1 - configs/miqi

[U-Boot] [PATCH 2/9] gadget: Select USB_GADGET_VENDOR_NUM for rockchip

2019-10-22 Thread Jagan Teki
Gadget vendor number, 0x2207 is common across all platfroms supported in Rockchip SoC. So, select the same number globally, if ARCH_ROCKCHIP. This eventually drop the explicit configs defined in supported board defconfig files. Signed-off-by: Jagan Teki --- configs/elgin-rv1108_defconfig

[U-Boot] [PATCH 1/9] gadget: Select USB_GADGET_MANUFACTURER for rockchip

2019-10-22 Thread Jagan Teki
Select the gadget manufacturer as 'Rockchip' for all rockchip platform SoC's. This eventually drop the explicit defined added on supported board defconfig files. Signed-off-by: Jagan Teki --- configs/elgin-rv1108_defconfig| 1 - configs/evb-rk3036_defconfig | 1 - configs/evb

[U-Boot] [PATCH 0/9] rockchip: rk3399: Add fastboot support

2019-10-22 Thread Jagan Teki
s GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645 gpt_verify_headers: *** ERROR: Invalid GPT *** Verify GPT: error! Any inputs? Jagan. Jagan Teki (9): gadget: Select USB_GADGET_MANUFACTURER for rockchip gadget: Select USB_GADGET_VENDOR_NUM for rockchip gadget: ro

Re: [U-Boot] [PATCH v3 2/5] Makefile: Rename idbloader.img with u-boot-spl-rockchip.bin

2019-10-22 Thread Jagan Teki
On Mon, Oct 21, 2019 at 1:43 PM Mark Kettenis wrote: > > > From: Jagan Teki > > Date: Mon, 21 Oct 2019 10:56:39 +0530 > > > > Hi Kever, > > > > On Fri, Oct 18, 2019 at 4:26 PM Kever Yang > > wrote: > > > > > >

Re: [U-Boot] [PATCH v3 3/3] configs: sopine-baseboard: Enable SPI-FLASH

2019-10-21 Thread Jagan Teki
On Sun, Oct 20, 2019 at 11:54 AM Vasily Khoruzhick wrote: > > On Wed, Oct 16, 2019 at 9:23 AM Jagan Teki wrote: > > > > SoPine has winbond SPI-FLASH, so enable the same in defconfig > > and add aliases for spi0 in -u-boot.dtsi > > > > Signed-off-by: Ja

Re: [U-Boot] [PATCH v3 4/5] rockchip: Add Binman support

2019-10-21 Thread Jagan Teki
Hi Simon, On Fri, Oct 18, 2019 at 12:38 AM Jagan Teki wrote: > > TPL-based rockchip platform like rk3288, rk3328, rk3368 > and rk3399 has three stage boot loaders like TPL, SPL and > U-Boot proper. For each stage we need to burn the image > on to flash with respective offsets.

Re: [U-Boot] [PATCH v5 00/26]MTD defconfigs/Kconfigs/Makefiles heavy cleanup

2019-10-21 Thread Jagan Teki
Hi Miquel, On Mon, Oct 21, 2019 at 1:38 PM Miquel Raynal wrote: > > Hi Jagan, > > Gentle ping. > > As discussed half a year ago, please do not trash this series :) Please give us sometime, will update accordingly. ___ U-Boot mailing list

Re: [U-Boot] [PATCH v3 2/5] Makefile: Rename idbloader.img with u-boot-spl-rockchip.bin

2019-10-20 Thread Jagan Teki
Hi Kever, On Fri, Oct 18, 2019 at 4:26 PM Kever Yang wrote: > > Jagan, > > > On 2019/10/18 上午3:07, Jagan Teki wrote: > > idbloader.img name is specific to rockchip, > > This is specific for rockchip, like rksd, rkspi type in mkimage, since > it's clear for what it

[U-Boot] [PATCH v3 5/5] doc: boards: Add rockchip documentation

2019-10-17 Thread Jagan Teki
supported boards and it's usage steps. Added minimal information about rk3288, rk3328, rk3368 and rk3399 boards and usage. This would indeed updated further based on the requirements and updates. Cc: Kever Yang Cc: Matwey V. Kornilov Signed-off-by: Jagan Teki --- doc/board/rockchip/index.rst

[U-Boot] [PATCH v3 2/5] Makefile: Rename idbloader.img with u-boot-spl-rockchip.bin

2019-10-17 Thread Jagan Teki
the same in spl directory since it is SPL file and Makefile.spl will clean it by default. Cc: Kever Yang Cc: Matwey V. Kornilov Signed-off-by: Jagan Teki --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ec55e0f6a4..918b5d53e0 100644

[U-Boot] [PATCH v3 4/5] rockchip: Add Binman support

2019-10-17 Thread Jagan Teki
: Matwey V. Kornilov Signed-off-by: Jagan Teki --- Makefile | 10 ++ arch/arm/Kconfig | 1 + arch/arm/dts/rk3288-u-boot.dtsi | 2 ++ arch/arm/dts/rk3328-u-boot.dtsi | 2 ++ arch/arm/dts/rk3368-u-boot.dtsi | 2 ++ arch/arm/dts/rk3399-u

[U-Boot] [PATCH v3 3/5] arm: dts: rk3368: Add rk3368-u-boot.dtsi

2019-10-17 Thread Jagan Teki
Add U-Boot specific dtsi file for rk3368 SoC. This would help to add U-Boot specific dts nodes, properties which are common across rk3368. Right now, the file is empty, will add required changes in future patches. Signed-off-by: Jagan Teki --- arch/arm/dts/rk3368-geekbox-u-boot.dtsi | 2

[U-Boot] [PATCH v3 1/5] Makefile: Add rockchip image type

2019-10-17 Thread Jagan Teki
Add rockchip image type support. right now the image type marked with rksd, So create image type variable with required image type like rksd or rkspi. Cc: Kever Yang Cc: Matwey V. Kornilov Signed-off-by: Jagan Teki --- Makefile | 9 - 1 file changed, 8 insertions(+), 1 deletion

[U-Boot] [PATCH v3 0/5] rockchip: Add Binman support

2019-10-17 Thread Jagan Teki
/1092198/ Any inputs? Jagan. Jagan Teki (5): Makefile: Add rockchip image type Makefile: Rename idbloader.img with u-boot-spl-rockchip.bin arm: dts: rk3368: Add rk3368-u-boot.dtsi rockchip: Add Binman support doc: boards: Add rockchip documentation Makefile

Re: [U-Boot] [PATCH 1/1] sunxi: Fix pll1 clock calculation

2019-10-16 Thread Jagan Teki
On Fri, Sep 6, 2019 at 11:51 PM Jagan Teki wrote: > > On Wed, Jul 31, 2019 at 6:46 PM Stefan Mavrodiev wrote: > > > > clock_sun6i.c is used for sun6i, sun8i and sun50i SoC families. > > PLL1 clock sets the default system clock, defined as: > > sun6i: 1008

Re: [U-Boot] [PATCH v3] arm64: dts: sun50i: Add support for A64 OLinuXino (with eMMC)

2019-10-16 Thread Jagan Teki
On Wed, Sep 11, 2019 at 12:14 AM Sunil Mohan Adapa wrote: > > A64 OLinuXino board from Olimex has three variants with onboard eMMC: > A64-OLinuXino-1Ge16GW, A64-OLinuXino-1Ge4GW and A64-OLinuXino-2Ge8G-IND. In > addition, there are two variants without eMMC. One without eMMC and one with > SPI >

Re: [U-Boot] [PATCH 2/3] stm32mp1: configs: Add CONFIG_SPL_SPI_FLASH_MTD

2019-10-16 Thread Jagan Teki
On Sat, Sep 14, 2019 at 4:18 AM Schrempf Frieder wrote: > > From: Frieder Schrempf > > As SPI_FLASH_MTD is used in SPL and U-Boot proper, we enable both, > now that a separate option for SPL was introduced. > > Signed-off-by: Frieder Schrempf > --- > configs/stm32mp15_basic_defconfig | 3 ++- >

Re: [U-Boot] [PATCH] [ADD] Bananapi P2 Zero Support

2019-10-16 Thread Jagan Teki
On Sat, Oct 5, 2019 at 6:32 PM BornGreedy wrote: > > Adding support for Sinovoip Bananapi P2 Zero with eMMC and Ethernet feature. > --- Missing and Linux commit details and S-o-b ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH v2] sunxi: H6: DRAM: Add support for half DQ

2019-10-16 Thread Jagan Teki
On Fri, Aug 23, 2019 at 10:54 PM Jernej Skrabec wrote: > > Half DQ configuration seems to be very rare for H6 based boards/STBs, > but exists nevertheless. Currently the only known product which needs > this support is Tanix TX6 mini. > > This commit adds support for half DQ configuration. Code

Re: [U-Boot] [PATCH v2 3/5] mtd: spi-nor: ids: Add is25wp256 chip

2019-10-16 Thread Jagan Teki
On Wed, Oct 16, 2019 at 8:28 PM Jagan Teki wrote: > > Add is25wp256, chip to spi-nor id table. > > Tested on SiFive FU540 board. > > Signed-off-by: Jagan Teki > Reviewed-by: Bin Meng > Tested-by: Bin Meng > --- Applied to u-boot-spi/master __

[U-Boot] [PATCH v3 3/3] configs: sopine-baseboard: Enable SPI-FLASH

2019-10-16 Thread Jagan Teki
SoPine has winbond SPI-FLASH, so enable the same in defconfig and add aliases for spi0 in -u-boot.dtsi Signed-off-by: Jagan Teki --- Changes for v3: - none arch/arm/dts/sun50i-a64-sopine-baseboard-u-boot.dtsi | 12 configs/sopine_baseboard_defconfig | 1 + 2

[U-Boot] [PATCH v3 2/3] arm: sunxi: Enable SPI/SPI-FLASH support for A64

2019-10-16 Thread Jagan Teki
SPI is available in Allwinner A64 SoC, so enable it globally in Kconfig. - CONFIG_SPI - CONFIG_DM_SPI - CONFIG_DM_SPI_FLASH Signed-off-by: Jagan Teki --- Changes for v3: - Move to kconfig from defconfig arch/arm/mach-sunxi/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch

[U-Boot] [PATCH v3 1/3] spi: Kconfig: Enable SPI_SUNXI for SUNXI

2019-10-16 Thread Jagan Teki
SPI_SUNXI driver is fully dm-aware and the Allwinner architecture kconfig would have logic to enable the DM_SPI. So, select default spi sunxi driver for sunxi architecture. Signed-off-by: Jagan Teki --- Changes for v3: - none drivers/spi/Kconfig | 1 + 1 file changed, 1 insertion(+) diff

[U-Boot] [PATCH] spi: Kconfig: Add help text

2019-10-16 Thread Jagan Teki
Add detailed help text for SPI support. Signed-off-by: Jagan Teki --- drivers/spi/Kconfig | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index b8ca2bdedd..0152dff74f 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig

[U-Boot] [PATCH v2] mtd: spi: Kconfig: Imply SPI_FLASH if DM_SPI_FLASH

2019-10-16 Thread Jagan Teki
DM_SPI_FLASH should require spi flash interface code for dm version, so select SPI_FLASH core by default if any board enabled DM_SPI_FLASH. This overcome the explicit enablement of CONFIG_SPI_FLASH on respective boards when DM_SPI_FLASH being used. Cc: Vignesh R Signed-off-by: Jagan Teki

[U-Boot] [PATCH] cmd: sf: Mark it default if DM_SPI_FLASH enabled

2019-10-16 Thread Jagan Teki
enabled. Cc: Tom Rini Cc: Vignesh Raghavendra Signed-off-by: Jagan Teki --- cmd/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index 07060c63a7..c45286cc20 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -1168,6 +1168,7 @@ config CMD_SDRAM config CMD_SF

Re: [U-Boot] [PATCH v2 3/4] dm: spi: Check cs number before accessing slaves

2019-10-16 Thread Jagan Teki
Hi Bin, On Mon, Sep 9, 2019 at 6:30 PM Bin Meng wrote: > > Add chip select number check in spi_find_chip_select(). > > Signed-off-by: Bin Meng > > --- > > Changes in v2: > - move the chip select number check to spi_find_chip_select() > > drivers/spi/spi-uclass.c | 45

[U-Boot] [PATCH] arm: dts: rk3399-roc-pc: Sync latest dts changes from Linux

2019-10-16 Thread Jagan Teki
Few important regulator power rails fixes are available in linux-next, so sync them same. Here is the last commit details: commit <9f7f9b610e1b7d2dc86c543ab0dfcf781bd42326> ("arm64: dts: rockchip: Fix roc-rk3399-pc regulator input rails") Cc: Kever Yang Cc: Levin Du Signed-of

[U-Boot] [PATCH v2 1/5] riscv: dts: Add hifive-unleashed-a00 dts from Linux

2019-10-16 Thread Jagan Teki
fter another, so better not add any intermediate changes in between. This would help to maintain the dts files easy and meaningful since we are reusing device tree files from Linux. Signed-off-by: Jagan Teki --- arch/riscv/dts/Makefile | 1 + arch/riscv/dts/fu540-c000.dts

[U-Boot] [PATCH v2 4/5] riscv: dts: hifive-unleashed-a00: Add -u-boot.dtsi

2019-10-16 Thread Jagan Teki
in current dm model is very much rely on aliases numbering. even though the qspi2 can't comes under any associated spi nor flash it would require to specify the same to make proper binding happen for other spi slaves. Signed-off-by: Jagan Teki --- arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi | 10

[U-Boot] [PATCH v2 2/5] sifive: fu540: Enable OF_SEPARATE

2019-10-16 Thread Jagan Teki
Use dts support from U-Boot via OF_SEPARATE instead of depending from opensbi. This would help to make the necessary changes in drivers and devicetrees in uboot tree itself. this feature would also be helpful to not pass dtb during opensbi builds. Signed-off-by: Jagan Teki --- configs

[U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash support

2019-10-16 Thread Jagan Teki
HiFive Unleashed A00 support is25wp256 spi-nor flash, So enable the same and add test result log for future reference. Tested on SiFive FU540 board. Signed-off-by: Jagan Teki Reviewed-by: Bin Meng Tested-by: Bin Meng --- .../dts/hifive-unleashed-a00-u-boot.dtsi | 1 + board/sifive

[U-Boot] [PATCH v2 3/5] mtd: spi-nor: ids: Add is25wp256 chip

2019-10-16 Thread Jagan Teki
Add is25wp256, chip to spi-nor id table. Tested on SiFive FU540 board. Signed-off-by: Jagan Teki Reviewed-by: Bin Meng Tested-by: Bin Meng --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c

[U-Boot] [PATCH v2 0/5] riscv: sifive/fu540: Enable SPI-NOR support

2019-10-16 Thread Jagan Teki
: enable spi-nor flash All tested in Sifive fuse540 hifive-unleashed-a00 board. [1] https://patchwork.ozlabs.org/cover/1168959/ Any inputs? Jagan. Jagan Teki (5): riscv: dts: Add hifive-unleashed-a00 dts from Linux sifive: fu540: Enable OF_SEPARATE mtd: spi-nor: ids: Add is25wp256 chip riscv

Re: [U-Boot] [PATCH v2 4/4] test: dm: spi: Fix sandbox dm_test_spi_find()

2019-10-16 Thread Jagan Teki
"spi_flash_std", "name", , > )); > - ut_assertok(spi_cs_info(bus, cs_b, )); > - ut_asserteq_ptr(info.dev, slave->dev); > + ut_asserteq(-EINVAL, spi_cs_info(bus, cs_b, )); > + ut_asserteq_ptr(NULL, info.dev); I assume yo

Re: [U-Boot] [PATCH v2 3/4] dm: spi: Check cs number before accessing slaves

2019-10-16 Thread Jagan Teki
On Mon, Sep 9, 2019 at 6:30 PM Bin Meng wrote: > > Add chip select number check in spi_find_chip_select(). Since we discussed the cs check to common call in spi_find_chip_select. Would you please add some more commit description. > > Signed-off-by: Bin Meng > > --- Tes

Re: [U-Boot] [PATCH v2 1/4] dm: spi: Return 0 if driver does not implement ops->cs_info

2019-10-16 Thread Jagan Teki
On Mon, Sep 9, 2019 at 6:30 PM Bin Meng wrote: > > If an SPI controller driver does not implement ops->cs_info, that > probably means any chip select number could be valid, hence let's > return 0 for spi_cs_info(). > > Signed-off-by: Bin Meng > Reviewed-by: Jagan Teki &g

Re: [U-Boot] [PATCH v2 1/4] dm: spi: Return 0 if driver does not implement ops->cs_info

2019-10-16 Thread Jagan Teki
et's > > return 0 for spi_cs_info(). > > > > Signed-off-by: Bin Meng > > Reviewed-by: Jagan Teki > > > > --- > > > > Changes in v2: > > - update spi-howto.rst to reflect the code changes > > > > doc/driver-model/spi-howto.rst | 4 ++--

Re: [U-Boot] [PATCH 2/2] watchdog: designware: Convert to DM and DT probing

2019-10-03 Thread Jagan Teki
On Thu, Oct 3, 2019 at 4:26 AM Marek Vasut wrote: > > Convert the designware watchdog timer driver to DM and add DT probing > support. Perform minor coding style clean up, like drop superfluous > braces. These ought to be no functional change. > > Signed-off-by: Marek Vasut > Cc: Chin Liang See

Re: [U-Boot] [PATCH 4/5] riscv: dts: hifive-unleashed-a00: Add -u-boot.dtsi

2019-10-02 Thread Jagan Teki
On Mon, Sep 30, 2019 at 3:35 PM Bin Meng wrote: > > Hi Jagan, > > On Sun, Sep 29, 2019 at 3:43 PM Jagan Teki wrote: > > > > Add u-boot specific dts file for hifive-unleashed-a00, this > > would help to add u-boot specific properties and other node > > cha

Re: [U-Boot] [PATCH 1/5] riscv: dts: Add hifive-unleashed-a00 dts from Linux

2019-10-02 Thread Jagan Teki
On Mon, Sep 30, 2019 at 3:35 PM Bin Meng wrote: > > Hi Jagan, > > On Sun, Sep 29, 2019 at 3:42 PM Jagan Teki wrote: > > > > Sync the hifive-unleashed-a00 dts from Linux with > > below commit details: > > commit 11ae2d892139a1086f257188d457ddcb71ab5257 > &g

Re: [U-Boot] [PATCH 5/5] sifive: fu540: Enable spi-nor flash support

2019-10-01 Thread Jagan Teki
On Mon, Sep 30, 2019 at 3:35 PM Bin Meng wrote: > > On Sun, Sep 29, 2019 at 3:43 PM Jagan Teki wrote: > > > > HiFive Unleashed A00 has internal is25wp256 spi-nor flash, > > What does "internal" mean? The flash is mounted "externally" to the FU540 SoC.

Re: [U-Boot] [PATCH 4/5] riscv: dts: hifive-unleashed-a00: Add -u-boot.dtsi

2019-10-01 Thread Jagan Teki
On Mon, Sep 30, 2019 at 3:35 PM Bin Meng wrote: > > Hi Jagan, > > On Sun, Sep 29, 2019 at 3:43 PM Jagan Teki wrote: > > > > Add u-boot specific dts file for hifive-unleashed-a00, this > > would help to add u-boot specific properties and other node > > cha

Re: [U-Boot] [PATCH 0/5] riscv: sifive/fu540: Enable SPI-NOR support

2019-10-01 Thread Jagan Teki
Hi Bin, On Sun, Sep 29, 2019 at 1:29 PM Bin Meng wrote: > > Hi Jagan, > > On Sun, Sep 29, 2019 at 3:42 PM Jagan Teki wrote: > > > > This patchset, enable SPI-NOR flash on SiFive hifive-unleashed-a00 > > board. > > > > patch 0001 - 02: support devicet

Re: [U-Boot] [PATCH 1/5] riscv: dts: Add hifive-unleashed-a00 dts from Linux

2019-10-01 Thread Jagan Teki
On Mon, Sep 30, 2019 at 3:35 PM Bin Meng wrote: > > Hi Jagan, > > On Sun, Sep 29, 2019 at 3:42 PM Jagan Teki wrote: > > > > Sync the hifive-unleashed-a00 dts from Linux with > > below commit details: > > commit 11ae2d892139a1086f257188d457ddcb71ab5257 > &g

Re: [U-Boot] [PATCH v2] arm: dts: sync dts for Allwinner H6

2019-09-30 Thread Jagan Teki
On Sat, Sep 28, 2019 at 2:54 AM Maxime Ripard wrote: > > Hi, > > On Fri, Sep 06, 2019 at 09:53:33AM +0200, Clément Péron wrote: > > Hi, > > > > On Sun, 25 Aug 2019 at 18:04, Clément Péron wrote: > > > > > > Sync Kernel DTS for Allwinner H6 boards. > > > > This sync avoid the random mac on the

[U-Boot] [PATCH 5/5] sifive: fu540: Enable spi-nor flash support

2019-09-29 Thread Jagan Teki
HiFive Unleashed A00 has internal is25wp256 spi-nor flash, so enable the same. added test result log for future reference. Tested on Sifive fuse540 board. Signed-off-by: Jagan Teki --- .../dts/hifive-unleashed-a00-u-boot.dtsi | 1 + board/sifive/fu540/Kconfig| 3

[U-Boot] [PATCH 1/5] riscv: dts: Add hifive-unleashed-a00 dts from Linux

2019-09-29 Thread Jagan Teki
ux instead of tweeking internal changes one after another, so better not add any intermediate changes in between. This would help to maintain the dts files easy and meaningful since we are reusing devicetree files from Linux. Signed-off-by: Jagan Teki --- arch/riscv/dts/Makefile |

[U-Boot] [PATCH 4/5] riscv: dts: hifive-unleashed-a00: Add -u-boot.dtsi

2019-09-29 Thread Jagan Teki
in current dm model is very much rely on aliases numbering. even though the qspi2 can't comes under any associated spi nor flash it would require to specify the same to make proper binding happen for other spi slaves. Signed-off-by: Jagan Teki --- arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi | 10

[U-Boot] [PATCH 3/5] mtd: spi-nor: ids: Add is25wp256 chip

2019-09-29 Thread Jagan Teki
Add is25wp256, chip to spi-nor id table. Tested on Sifive fuse540 board. Signed-off-by: Jagan Teki --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 6996c0a286..04db986561 100644

[U-Boot] [PATCH 2/5] sifive: fu540: Enable OF_SEPARATE

2019-09-29 Thread Jagan Teki
Use dts support from U-Boot via OF_SEPARATE instead of depending from opensbi. This would help to make the necessary changes in drivers and devicetrees in uboot tree itself. this feature would also be helpful to not pass dtb during opensbi builds. Signed-off-by: Jagan Teki --- configs

[U-Boot] [PATCH 0/5] riscv: sifive/fu540: Enable SPI-NOR support

2019-09-29 Thread Jagan Teki
This patchset, enable SPI-NOR flash on SiFive hifive-unleashed-a00 board. patch 0001 - 02: support devicetree patch 0003: add is25wp256 chip patch 0004 - 05: enable spi-nor flash All tested in Sifive fuse540 hifive-unleashed-a00 board. Any inputs? Jagan. Jagan Teki (5): riscv: dts: Add

Re: [U-Boot] [PATCH 3/3] mtd: spi: Clean up usage of CONFIG_SPI_FLASH_MTD

2019-09-26 Thread Jagan Teki
On Thu, Sep 26, 2019 at 7:32 PM Schrempf Frieder wrote: > > On 14.09.19 00:44, Schrempf Frieder wrote: > > From: Frieder Schrempf > > > > Most boards currently use SPI_FLASH_MTD only in U-Boot proper, not in > > SPL. They often rely on hacks in the board header files to include > > this option

Re: [U-Boot] [PATCH] rockchip: rk3399: Add Leez P710 support

2019-09-21 Thread Jagan Teki
On Sat, Sep 21, 2019 at 4:42 PM Andy Yan wrote: > > From: Andy Yan > > Specification > - Rockchip RK3399 > - LPDDR4 > - TF sd scard slot > - eMMC > - M.2 B-Key for 4G LTE > - AP6256 for WiFi + BT > - Gigabit ethernet > - HDMI out > - 40 pin header > - USB 2.0 x 2 > - USB 3.0 x 1 > - USB 3.0

Re: [U-Boot] ROCK64 fails to boot using U-Boot TPL

2019-09-19 Thread Jagan Teki
On Thu, Sep 19, 2019 at 4:02 PM Simon South wrote: > > I've been unable so far to boot NetBSD on my PINE64 ROCK64 (v2.0, > Rockchip RK3328) using U-Boot built with its own TPL, the default since > commit ff3dd0a474. > > The same NetBSD image boots fine using the binary TPL supplied by Rockchip. >

Re: [U-Boot] [PATCH 3/4] imx6: spl: Reduce SPL limit size in case CONFIG_SECURE_BOOT is enabled

2019-09-19 Thread Jagan Teki
Hi Stefano, On Wed, Sep 18, 2019 at 1:29 PM Stefano Babic wrote: > > Hi Jagan, Breno, > > On 17/09/19 09:13, Jagan Teki wrote: > > Hi Breno, > > > > On Thu, Jul 18, 2019 at 6:06 PM Breno Matheus Lima > > wrote: > >> > >> In case CONFI

Re: [U-Boot] rockchip: rk3399: TPL: rockpro64: Wrong memory size detected【请注意,邮件由u-boot-boun...@lists.denx.de代发】 detected

2019-09-19 Thread Jagan Teki
Hi Kever, On Wed, Sep 18, 2019 at 10:31 AM Jagan Teki wrote: > > On Wed, Sep 18, 2019 at 9:09 AM Kever Yang wrote: > > > > Hi Jagan, > > > > Seems like your and Kurt's board have different DRAM type: > > > > - 16bit row + 1 CS > > > &g

[U-Boot] [PATCH] rockchip: rk3399: Add Libre Computer Board ROC-RK3399-PC

2019-09-19 Thread Jagan Teki
- USB Type C power - M-Key to expand SSD Signed-off-by: Jagan Teki --- Note: Linux need to merge this dts, so please wait so-that I will send v2 with sync commit. arch/arm/dts/Makefile | 1 + ...rk3399-libretech-roc-rk3399-pc-u-boot.dtsi | 7 + .../dts/rk3399

Re: [U-Boot] [PATCH 1/2] rockchip: evb-rk3288: Drop explicit SPL_TEXT

2019-09-19 Thread Jagan Teki
fine it explicitly. > > Signed-off-by: Kever Yang > --- Reviewed-by: Jagan Teki ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 6/7] configs: tinker: Enable SDRAM, SPL stack

2019-09-19 Thread Jagan Teki
On Wed, Sep 18, 2019 at 3:24 PM Kever Yang wrote: > > > On 2019/9/18 下午1:25, Jagan Teki wrote: > > On Wed, Sep 18, 2019 at 10:36 AM Kever Yang > > wrote: > >> > >> On 2019/9/17 下午2:10, Jagan Teki wrote: > >>> SPL sets up SDRAM while i

Re: [U-Boot] [PATCH 6/7] configs: tinker: Enable SDRAM, SPL stack

2019-09-17 Thread Jagan Teki
On Wed, Sep 18, 2019 at 10:36 AM Kever Yang wrote: > > > On 2019/9/17 下午2:10, Jagan Teki wrote: > > SPL sets up SDRAM while in its board_init_f() > > function, it is possible for the stack to move > > there before board_init_r() is reached. > > > > So it is

Re: [U-Boot] [PATCH 2/7] configs: vyasa-rk3288: Fix SPL_TEXT_BASE

2019-09-17 Thread Jagan Teki
On Wed, Sep 18, 2019 at 10:32 AM Kever Yang wrote: > > > On 2019/9/17 下午2:10, Jagan Teki wrote: > > The initial Vyasa-rk3288 TPL implementation is to reuse the > > SPL_TEXT_BASE for TPL and SPL as 0x0 and 0xff704000 respectively. > > > > But the below commit im

Re: [U-Boot] rockchip: rk3399: TPL: rockpro64: Wrong memory size detected【请注意,邮件由u-boot-boun...@lists.denx.de代发】 detected

2019-09-17 Thread Jagan Teki
On Wed, Sep 18, 2019 at 9:09 AM Kever Yang wrote: > > Hi Jagan, > > Seems like your and Kurt's board have different DRAM type: > > - 16bit row + 1 CS > > - 15bit row + 2 CS > > Capacity detect function is missing for the driver now, and it's not able > > to detect the correct size like Kurt

Re: [U-Boot] [PATCH] spi: Fix manual relocation calling more times

2019-09-17 Thread Jagan Teki
res > MANUAL_RELOC") > commit 1b4c2aa25bdf ("gpio: dm: Support manual relocation for gpio") > > Signed-off-by: Ashok Reddy Soma > Signed-off-by: Michal Simek > --- Reviewed-by: Jagan Teki Would like to take it coming MW? since we are close to release. ___

Re: [U-Boot] rockchip: rk3399: TPL: rockpro64: Wrong memory size detected

2019-09-17 Thread Jagan Teki
On Thu, Aug 29, 2019 at 3:15 AM Kurt Miller wrote: > > The board has 4G memory but only 2G is detected by TPL. Please > let me know if additional information is needed. > > With u-boot master TPL output: > > U-Boot TPL 2019.10-rc3-00020-ge4b8dd9b34-dirty (Aug 28 2019 - 17:26:44) > LPDDR4, 50MHz >

Re: [U-Boot] rockchip: rk3399: TPL: rockpro64: Wrong memory size detected

2019-09-17 Thread Jagan Teki
On Thu, Aug 29, 2019 at 3:15 AM Kurt Miller wrote: > > The board has 4G memory but only 2G is detected by TPL. Please > let me know if additional information is needed. > > With u-boot master TPL output: > > U-Boot TPL 2019.10-rc3-00020-ge4b8dd9b34-dirty (Aug 28 2019 - 17:26:44) > LPDDR4, 50MHz >

[U-Boot] [PATCH] configs: rk3288: Increase bootm length

2019-09-17 Thread Jagan Teki
Increase bootm length to 64MB satisfy max gunzip size, even other rockchip and know SoC are following same length check. Reported-by: Michael Trimarchi Signed-off-by: Jagan Teki --- include/configs/rk3288_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include

Re: [U-Boot] [PATCH 3/4] imx6: spl: Reduce SPL limit size in case CONFIG_SECURE_BOOT is enabled

2019-09-17 Thread Jagan Teki
Hi Breno, On Thu, Jul 18, 2019 at 6:06 PM Breno Matheus Lima wrote: > > In case CONFIG_SECURE_BOOT is enabled we need to limit the SPL size to > avoid a possible HAB failure event: > > - HAB Event 1 - > event data: > 0xdb 0x00 0x14 0x42 0x33 0x22 0x33 0x00 >

  1   2   3   4   5   6   7   8   9   10   >