Re: [U-Boot] [RFC PATCH] u-boot: remove driver lookup loop from env_save()

2018-07-12 Thread Simon Goldschmidt
On 11.07.2018 15:50, Maxime Ripard wrote: On Wed, Jul 11, 2018 at 12:44:23PM +0200, Nicholas wrote: Maybe a solution could be to have an env_save() function which acts in a similar way as proposed in my patch and an env_save_prio() function, which acts like the env_load() i.e. looking for the

Re: [U-Boot] [PATCH 2/2] dm: sunxi: Use DM for MMC and SATA on all A10 boards

2018-07-12 Thread Jagan Teki
On Sat, Jun 30, 2018 at 5:32 AM, Adam Sampson wrote: > Use the driver model for MMC and SATA, in preparation for CONFIG_BLK > defaulting to y. > > Tested on A10 Cubieboard. Did you test eMMC in any of A10 look it is not detecting during SD boot and vice-versa happened during eMMC boot. May be it'

Re: [U-Boot] [PATCH v4 6/6] common: Generic loader for file system

2018-07-12 Thread Chee, Tien Fong
On Wed, 2018-07-11 at 14:13 -0600, Simon Glass wrote: > Hi Tien, > > On 6 July 2018 at 02:28,   wrote: > > > > From: Tien Fong Chee > > > > This is file system generic loader which can be used to load > > the file image from the storage into target such as memory. > > The consumer driver would

Re: [U-Boot] [PATCH v4 5/6] doc: dtbinding: Add file system firmware loader binding document

2018-07-12 Thread Chee, Tien Fong
On Wed, 2018-07-11 at 08:02 -0600, Simon Glass wrote: > On 6 July 2018 at 02:27,   wrote: > > > > From: Tien Fong Chee > > > > Add a document to describe file system firmware loader binding > > information. > > > > Signed-off-by: Tien Fong Chee > > --- > >  doc/device-tree-bindings/chosen.txt 

Re: [U-Boot] [PATCH v3 1/4] lib: fdtdec: Add new variable ram_start to global data

2018-07-12 Thread Marek Vasut
On 06/25/2018 02:56 PM, Tom Rini wrote: > On Mon, Jun 25, 2018 at 08:15:34AM +0200, Michal Simek wrote: >> Hi, >> >> On 22.6.2018 21:28, Simon Glass wrote: >>> Hi, >>> >>> On 22 June 2018 at 01:41, Michal Simek wrote: Hi Simon, On 18.6.2018 08:18, Siva Durga Prasad Paladugu wrote: >

Re: [U-Boot] [RFC PATCH] u-boot: remove driver lookup loop from env_save()

2018-07-12 Thread Maxime Ripard
On Thu, Jul 12, 2018 at 09:02:26AM +0200, Simon Goldschmidt wrote: > > > On 11.07.2018 15:50, Maxime Ripard wrote: > > On Wed, Jul 11, 2018 at 12:44:23PM +0200, Nicholas wrote: > > > > > > Maybe a solution could be to have an env_save() function which > > > > > > acts in a similar way as proposed

Re: [U-Boot] [PATCH] arm: dts: socfpga: stratix10: Fix memory node

2018-07-12 Thread Marek Vasut
On 07/12/2018 01:13 PM, Ley Foon Tan wrote: > Commit 5dfd5607af2114047bd ("ARM: socfpga: Pull DRAM size from DT") get > memory size from DT. So, we need to update memory size in memory node. > Otherwise, it cause U-boot hang. > > Signed-off-by: Ley Foon Tan > --- > arch/arm/dts/socfpga_stratix10

Re: [U-Boot] [PATCH] arm: socfpga: Fix: Compile MCR instruction on ARM 32-bit only

2018-07-12 Thread Marek Vasut
On 07/12/2018 01:13 PM, Ley Foon Tan wrote: > MCR instruction only available in ARM 32-bit. So, compile MCR instruction > when ARM 32-bit is enabled. > > Signed-off-by: Ley Foon Tan > --- > arch/arm/mach-socfpga/board.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm/mach-so

Re: [U-Boot] [PATCH v2] arm: socfpga: Fixes: Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET

2018-07-12 Thread Marek Vasut
On 07/12/2018 01:12 PM, Ley Foon Tan wrote: > Commit bfc6bae8fa1f2d8a9c51548767b02f1a1e0ffe52 > > This commit rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET. Update > with new CONFIG name. > > Signed-off-by: Ley Foon Tan > Acked-by: Marek Vasut > > --- > v2: > - Rename commit title, ad

Re: [U-Boot] [PATCH 2/2] dm: sunxi: Use DM for MMC and SATA on all A10 boards

2018-07-12 Thread Maxime Ripard
On Thu, Jul 12, 2018 at 12:40:14PM +0530, Jagan Teki wrote: > On Sat, Jun 30, 2018 at 5:32 AM, Adam Sampson wrote: > > Use the driver model for MMC and SATA, in preparation for CONFIG_BLK > > defaulting to y. > > > > Tested on A10 Cubieboard. > > Did you test eMMC in any of A10 look it is not det

[U-Boot] [PATCH] arm: socfpga: Fixes: include

2018-07-12 Thread Ley Foon Tan
Fix compilation warning when enable CONFIG_DEBUG_UART. arch/arm/mach-socfpga/spl_s10.c: In function ‘board_init_f’: arch/arm/mach-socfpga/spl_s10.c:146:2: warning: implicit declaration of function ‘debug_uart_init’; did you mean ‘part_init’? [-Wimplicit-function-declaration] debug_uart_init();

[U-Boot] [PATCH 1/1] avb2.0: add proper dependencies to libavb

2018-07-12 Thread Igor Opaniuk
Provide proper dependencies for LIBAVB: (FASTBOOT and !BLK): 1. CONFIG_FASTBOOT is needed, as fastboot buffer is re-used (which is initially used in the fastboot protocol for downloads) 2. !CONFIG_BLK, as current implementation currently doesn't support non-legacy block API. Reported-by: Eugeniu R

Re: [U-Boot] [PATCH 2/2] dm: sunxi: Use DM for MMC and SATA on all A10 boards

2018-07-12 Thread Jagan Teki
On Thu, Jul 12, 2018 at 1:00 PM, Maxime Ripard wrote: > On Thu, Jul 12, 2018 at 12:40:14PM +0530, Jagan Teki wrote: >> On Sat, Jun 30, 2018 at 5:32 AM, Adam Sampson wrote: >> > Use the driver model for MMC and SATA, in preparation for CONFIG_BLK >> > defaulting to y. >> > >> > Tested on A10 Cubie

Re: [U-Boot] [PATCH 2/2] dm: sunxi: Use DM for MMC and SATA on all A10 boards

2018-07-12 Thread Maxime Ripard
On Thu, Jul 12, 2018 at 01:13:04PM +0530, Jagan Teki wrote: > On Thu, Jul 12, 2018 at 1:00 PM, Maxime Ripard > wrote: > > On Thu, Jul 12, 2018 at 12:40:14PM +0530, Jagan Teki wrote: > >> On Sat, Jun 30, 2018 at 5:32 AM, Adam Sampson wrote: > >> > Use the driver model for MMC and SATA, in preparat

Re: [U-Boot] ls1021a: problem with errata A009007

2018-07-12 Thread Ran Wang
Hi Heiko, > -Original Message- > From: Heiko Schocher [mailto:h...@denx.de] > Sent: Thursday, July 12, 2018 13:44 > To: Ran Wang > Cc: Sriram Dash ; Rajesh Bhagat > ; Suresh Gupta ; u- > b...@lists.denx.de > Subject: ls1021a: problem with errata A009007 > > Hello Ran Wang, > > I have po

Re: [U-Boot] [PATCH] arm: socfpga: Fixes: include

2018-07-12 Thread Marek Vasut
On 07/12/2018 03:44 PM, Ley Foon Tan wrote: > Fix compilation warning when enable CONFIG_DEBUG_UART. > > arch/arm/mach-socfpga/spl_s10.c: In function ‘board_init_f’: > arch/arm/mach-socfpga/spl_s10.c:146:2: warning: implicit declaration of > function ‘debug_uart_init’; did you mean ‘part_init’?

Re: [U-Boot] [PATCH v2 04/21] mtd: Fallback to ->_read/write() when ->_read/write_oob() is missing

2018-07-12 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Thu, 12 Jul 2018 00:20:52 +0200: > On Wed, 11 Jul 2018 17:25:12 +0200 > Miquel Raynal wrote: > > > Some MTD sublayers/drivers are implementing ->_read/write() and > > not ->_read/write_oob(). > > > > While for NAND devices both are usually valid, for NOR dev

Re: [U-Boot] UBI fixable bit-flip issue

2018-07-12 Thread Heiko Schocher
Hello Mark, Am 12.07.2018 um 07:38 schrieb Mark Spieth: On 12/07/18 15:22, Heiko Schocher wrote: Hello Mark, added Richard Weinberger to cc... Am 12.07.2018 um 02:28 schrieb Mark Spieth: Hi In the process of investigating a boot failure on one of our devices, the UBI: fixable bit-flip det

Re: [U-Boot] ls1021a: problem with errata A009007

2018-07-12 Thread Heiko Schocher
Hello Ran Wang, Am 12.07.2018 um 10:04 schrieb Ran Wang: Hi Heiko, -Original Message- From: Heiko Schocher [mailto:h...@denx.de] Sent: Thursday, July 12, 2018 13:44 To: Ran Wang Cc: Sriram Dash ; Rajesh Bhagat ; Suresh Gupta ; u- b...@lists.denx.de Subject: ls1021a: problem with errat

Re: [U-Boot] [PATCH 2/2] dm: sunxi: Use DM for MMC and SATA on all A10 boards

2018-07-12 Thread Adam Sampson
On Thu, Jul 12, 2018 at 12:40:14PM +0530, Jagan Teki wrote: > Did you test eMMC in any of A10 look it is not detecting during SD > boot and vice-versa happened during eMMC boot. May be it's because of > pincrtrl for U-Boot which is not initializing for in DM_MMC. No, I don't have any boards with e

Re: [U-Boot] UBI fixable bit-flip issue

2018-07-12 Thread Richard Weinberger
Mark, Am Donnerstag, 12. Juli 2018, 07:22:13 CEST schrieb Heiko Schocher: > Hello Mark, > > added Richard Weinberger to cc... > > Am 12.07.2018 um 02:28 schrieb Mark Spieth: > > Hi > > > > In the process of investigating a boot failure on one of our devices, the > > > > UBI: fixable bit-flip d

Re: [U-Boot] [PATCH v1 0/5] board: toradex: add Colibri iMX6ULL support

2018-07-12 Thread Stefan Agner
On 30.05.2018 19:01, Stefan Agner wrote: > From: Stefan Agner > > This patchset adds Toradex Colibri iMX6ULL support. It makes > use of the device tree support for the MXS NAND driver and > hence depends on: > https://patchwork.ozlabs.org/cover/897263/ > https://patchwork.ozlabs.org/cover/901995/

Re: [U-Boot] [PATCH] ubifs: remove useless code

2018-07-12 Thread Heiko Schocher
Hello Patrice, Am 27.06.2018 um 10:06 schrieb Patrice Chotard: From: Christophe Kerello By checking ubifs source code, s_instances parameter is not used anymore. So, set this parameter and the associated source code under __UBOOT__ compilation. Signed-off-by: Christophe Kerello Signed-off-by

Re: [U-Boot] [PATCH] cmd: ubi: Add additional message upon UBI attach error

2018-07-12 Thread Heiko Schocher
Hello Stefan, Am 26.06.2018 um 08:12 schrieb Stefan Roese: When trying to attach an UBI MTD partition via "ubi part", it may happen that the MTD partition defined in U-Boot (via mtdparts) is not big enough than the one, where the UBI device has been created on. This may lead to errors, which are

Re: [U-Boot] [PATCH v1] cmd: ubi: print load size after establishing volume size

2018-07-12 Thread Heiko Schocher
Hello Stefan, Am 25.06.2018 um 11:19 schrieb Stefan Agner: From: Stefan Agner When using static volumes, the file size stored in the volume is determined at runtime. Currently the ubi command prints the file size specified on the console, which leads to a rather confusing series of messages:

[U-Boot] Pull request: u-boot-ubi/master

2018-07-12 Thread Heiko Schocher
Hello Tom, please pull from u-boot-ubi.git master The following changes since commit 1612ff0dfba57b1002d8c7a54778eb553ace98f4: Merge branch 'master' of git://git.denx.de/u-boot-mips (2018-07-11 21:55:20 -0400) are available in the Git repository at: git://git.denx.de/u-boot-ubi.git maste

Re: [U-Boot] ls1021a: problem with errata A009007

2018-07-12 Thread Ran Wang
Hi Heiko > -Original Message- > >> Subject: ls1021a: problem with errata A009007 > >> > >> Hello Ran Wang, > >> > >> I have ported successfully U-Boot to an ls1021a based board and works > >> nice for the HW I have access to. > >> > >> Now the customer reports problems on his HW with > >>

[U-Boot] [ v1 00/10] [INTERNAL REVIEW] splash screen on the stm32f769 disco board

2018-07-12 Thread Yannick Fertré
Version 1: - Initial commit: This serie contains all patchsets needed for displaying a splash screen on the stm32f769 disco board. A new config has been created configs/stm32f769-disco_defconfig. This is necessary due to the difference of panels between stm32f769-disco & stm32f746-disco boards.

[U-Boot] [ v1 03/10] dm: panel: get timings from panel

2018-07-12 Thread Yannick Fertré
Get timings from panel instead of read device tree. Signed-off-by: Yannick Fertré --- drivers/video/panel-uclass.c | 11 +++ include/panel.h | 18 ++ 2 files changed, 29 insertions(+) diff --git a/drivers/video/panel-uclass.c b/drivers/video/panel-uclass.c i

[U-Boot] [ v1 01/10] video: stm32: stm32_ltdc: add bridge to display controller

2018-07-12 Thread Yannick Fertré
Manage a bridge insert between the display controller & a panel. Signed-off-by: Yannick Fertré --- drivers/video/stm32/stm32_ltdc.c | 154 +++ 1 file changed, 92 insertions(+), 62 deletions(-) diff --git a/drivers/video/stm32/stm32_ltdc.c b/drivers/video/stm3

[U-Boot] [ v1 02/10] video: add support of MIPI DSI interface

2018-07-12 Thread Yannick Fertré
Mipi_display.c contains a set of dsi helpers. This file is a copy of file drm_mipi_dsi.c (linux kernel). Signed-off-by: Yannick Fertré --- drivers/video/Kconfig| 9 + drivers/video/Makefile | 1 + drivers/video/mipi_display.c | 817 +++ i

[U-Boot] [ v1 04/10] video: add support of panel OTM8009A

2018-07-12 Thread Yannick Fertré
Support for Orise Tech otm8009a 480p dsi 2dl video mode panel. Signed-off-by: Yannick Fertré --- drivers/video/Kconfig | 8 + drivers/video/Makefile | 1 + drivers/video/orisetech_otm8009a.c | 366 + 3 files changed, 375 insertions

[U-Boot] [ v1 09/10] arm: dts: stm32: add display for STM32F769 disco board

2018-07-12 Thread Yannick Fertré
Enable the display controller, mipi dsi bridge & panel. Set panel display timings. Signed-off-by: Yannick Fertré --- arch/arm/dts/stm32f769-disco.dts | 59 1 file changed, 59 insertions(+) diff --git a/arch/arm/dts/stm32f769-disco.dts b/arch/arm/dts/stm3

[U-Boot] [ v1 05/10] video: add support of panel RM68200

2018-07-12 Thread Yannick Fertré
Support for Raydium RM68200 720p dsi 2dl video mode panel. This rm68200 panel driver is based on the Linux Kernel driver from drivers/gpu/drm/panel/panel-raydium-rm68200.c. Signed-off-by: Yannick Fertré --- drivers/video/Kconfig | 8 + drivers/video/Makefile | 1 + drivers

[U-Boot] [ v1 06/10] video: add MIPI DSI host controller bridge

2018-07-12 Thread Yannick Fertré
Add a Synopsys Designware MIPI DSI host bridge driver, based on the Rockchip version from rockchip/dw-mipi-dsi.c with phy & bridge APIs. Signed-off-by: Yannick Fertré --- drivers/video/Kconfig | 9 + drivers/video/Makefile | 1 + drivers/video/dw_mipi_dsi.c | 826 +

[U-Boot] [ v1 07/10] video: add support of STM32 MIPI DSI controller driver

2018-07-12 Thread Yannick Fertré
Add the STM32 DSI controller driver that uses the Synopsys DesignWare MIPI DSI host controller bridge. Signed-off-by: Yannick Fertré --- drivers/video/stm32/Kconfig | 10 + drivers/video/stm32/Makefile| 1 + drivers/video/stm32/stm32_dsi.c | 427 +++

[U-Boot] [ v1 10/10] board: Add STM32F769 SoC, discovery board support

2018-07-12 Thread Yannick Fertré
Signed-off-by: Yannick Fertré --- configs/stm32f769-disco_defconfig | 67 +++ 1 file changed, 67 insertions(+) create mode 100644 configs/stm32f769-disco_defconfig diff --git a/configs/stm32f769-disco_defconfig b/configs/stm32f769-disco_defconfig new file mo

[U-Boot] [ v1 08/10] arm: dts: stm32: add dsi for STM32F746

2018-07-12 Thread Yannick Fertré
Add mipi dsi bridge node in device-tree. Signed-off-by: Yannick Fertré --- arch/arm/dts/stm32f746.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/dts/stm32f746.dtsi b/arch/arm/dts/stm32f746.dtsi index afa7832..005d267 100644 --- a/arch/arm/dts/stm32f746.dtsi +++ b

Re: [U-Boot] [PATCH 1/1] avb2.0: add proper dependencies to libavb

2018-07-12 Thread Eugeniu Rosca
Hi Igor, Thanks for the fix. See my comments below. On Thu, Jul 12, 2018 at 10:34:24AM +0300, Igor Opaniuk wrote: > Provide proper dependencies for LIBAVB: (FASTBOOT and !BLK): > 1. CONFIG_FASTBOOT is needed, as fastboot buffer is re-used (which > is initially used in the fastboot protocol for do

[U-Boot] [RFC PATCH v2] u-boot: remove driver lookup loop from env_save()

2018-07-12 Thread Nicholas Faustini
When called with ENVOP_SAVE, env_get_location() only returns the gd->env_load_location variable without actually checking for the environment location and priority. This behaviour causes env_save() to fall into an infinite loop when the low-level drv->save() call fails. The env_save() function sh

Re: [U-Boot] [RFC PATCH v2] u-boot: remove driver lookup loop from env_save()

2018-07-12 Thread Simon Goldschmidt
On 12.07.2018 12:52, Nicholas Faustini wrote: When called with ENVOP_SAVE, env_get_location() only returns the gd->env_load_location variable without actually checking for the environment location and priority. This behaviour causes env_save() to fall into an infinite loop when the low-level d

[U-Boot] [PATCH v3 0/9] Improve rockusb support in U-Boot

2018-07-12 Thread Alberto Panizzo
rockusb protocol has been introduced by Eddie Cai in U-Boot mainline allowing to write internal eMMC of RK3288 based boards (and potentially all other Rockchip's CPUs). On workstation side the open source project rkdeveloptool do implement the rockusb protocol. You can find it on GitHub here: http

[U-Boot] [PATCH v3 2/9] usb: rockchip: implement skeleton for K_FW_GET_CHIP_VER command

2018-07-12 Thread Alberto Panizzo
Chip Version is a string saved in BOOTROM address space Little Endian. Ex for rk3288: 0x33323041 0x32303134 0x30383133 0x56323030 which brings: 320A20140813V200 Note that memory version do invert MSB/LSB so printing the char buffer would show: A02341023180002V Signed-off-by: Alberto Panizzo --

[U-Boot] [PATCH v3 1/9] usb: rockchip: fix command failed on host side due to missing data

2018-07-12 Thread Alberto Panizzo
Two consecutive rockusb_tx_write without waiting for request complete do results in transfer reset of first request and thus no or incomplete data transfer. This because rockusb_tx_write do use just one USB request to keep serialization. So calls like: rockusb_tx_write_str(emmc_id); rockusb_tx_wri

[U-Boot] [PATCH v3 3/9] rockchip: rk3288: implement reading chip version from bootrom code

2018-07-12 Thread Alberto Panizzo
This allows rockusb code to reply correctly to K_FW_GET_CHIP_VER command. On RK3288 chip version is at 0x4ff0 and on tested hardware it corresponds at the string "320A20140813V200" Signed-off-by: Alberto Panizzo --- arch/arm/mach-rockchip/rk3288/Makefile | 1 + arch/arm/mach-rockch

[U-Boot] [PATCH v3 8/9] usb: rockchip: fix printing csw debug info

2018-07-12 Thread Alberto Panizzo
Workstation tool was happy while console on device were printing random numbers.. Signed-off-by: Alberto Panizzo --- drivers/usb/gadget/f_rockusb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/f_rockusb.c b/drivers/usb/gadget/f_rockusb.c index 0959b8c..5

[U-Boot] [PATCH v3 6/9] usb: rockchip: be quiet on serial port while transferring data

2018-07-12 Thread Alberto Panizzo
While downloading or uploading megabytes of data we had thousands of printf in console like: transfer 0x1 bytes done OR Uploading 0x1000 bytes This because transfers are chunked and there is no way on target side to know the overall transfer size (to print one string per overall transfer). A

[U-Boot] [PATCH v3 9/9] usb: rockchip: on K_FW_LBA_WRITE_10 remove magic block size of 512 bytes

2018-07-12 Thread Alberto Panizzo
As well as in K_FW_LBA_READ_10 and K_FW_LBA_ERASE_10 take device's block size from f_rkusb->desc->blksz instead of the fixed 512 bytes. Keep original behaviour of retry probing assigned block device on every host request to manage late SDCard plugs. Signed-off-by: Alberto Panizzo --- drivers/us

[U-Boot] [PATCH v3 5/9] usb: rockchip: implement K_FW_LBA_ERASE_10 command

2018-07-12 Thread Alberto Panizzo
This command is part of the write partition sequence performed by rkdeveloptool: one partition is first completely erased and than wrote. Signed-off-by: Alberto Panizzo --- arch/arm/include/asm/arch-rockchip/f_rockusb.h | 1 + doc/README.rockusb | 1 + drivers/usb/g

[U-Boot] [PATCH v3 4/9] usb: rockchip: implement K_FW_LBA_READ_10 command

2018-07-12 Thread Alberto Panizzo
This patch implement reading blocks form selected device with LBA addressing. Corresponding command on workstation is: rkdeveloptool rl While we support reading more than one blocks per K_FW_LBA_READ_10 request, rkdeveloptool and original rockchip tool do perform chunk reads limiting the maxim

[U-Boot] [PATCH v3 7/9] usb: rockchip: boost up write speed from 4MB/s to 15MB/s

2018-07-12 Thread Alberto Panizzo
Speedup transfers increasing the max chunk size. Buffers are allocated with memalign thus developer is noticed when heap is full and in current configuration a buffer allocation of 64K till now is safe. Signed-off-by: Alberto Panizzo --- arch/arm/include/asm/arch-rockchip/f_rockusb.h | 2 +- 1 f

[U-Boot] [PATCH] gpio: zynq: Fix typo in one error message

2018-07-12 Thread Michal Simek
Just fix error message. Signed-off-by: Michal Simek --- drivers/gpio/zynq_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/zynq_gpio.c b/drivers/gpio/zynq_gpio.c index afba4580f570..9a915544784d 100644 --- a/drivers/gpio/zynq_gpio.c +++ b/drivers/gpio/zynq

Re: [U-Boot] [PATCH v3 1/4] lib: fdtdec: Add new variable ram_start to global data

2018-07-12 Thread Michal Simek
On 12.7.2018 09:20, Marek Vasut wrote: > On 06/25/2018 02:56 PM, Tom Rini wrote: >> On Mon, Jun 25, 2018 at 08:15:34AM +0200, Michal Simek wrote: >>> Hi, >>> >>> On 22.6.2018 21:28, Simon Glass wrote: Hi, On 22 June 2018 at 01:41, Michal Simek wrote: > Hi Simon, > > On 1

[U-Boot] [PATCH] sysreset: dm: Support manual relocation for sysreset

2018-07-12 Thread Michal Simek
Relocate sysreset ops as was done by: "dm: Add support for all targets which requires MANUAL_RELOC" (sha1: 484fdf5ba058b07be5ca82763aa2b72063540ef3) Signed-off-by: Michal Simek --- drivers/sysreset/sysreset-uclass.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/s

[U-Boot] [PATCH] gpio: dm: Support manual relocation for gpio

2018-07-12 Thread Michal Simek
Relocate gpio ops as was done by: "dm: Add support for all targets which requires MANUAL_RELOC" (sha1: 484fdf5ba058b07be5ca82763aa2b72063540ef3) Signed-off-by: Michal Simek --- drivers/gpio/gpio-uclass.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/dr

[U-Boot] [PATCH] gpio: zynq: Read of mach data in platdata with dev_get_driver_data

2018-07-12 Thread Michal Simek
Remove bogus zynq_gpio_getplat_data() and read driver data directly. Signed-off-by: Michal Simek --- Driver should use platdata structure but this change should be fine before this is fixed. Simon: Is ofdata_to_platdata correct function where this should be read? --- drivers/gpio/zynq_gpio.c |

Re: [U-Boot] cmd: Kconfig: Move CONFIG_MP to Kconfig

2018-07-12 Thread Michal Simek
Hi Tom, On 11.7.2018 14:42, Tom Rini wrote: > On Tue, Jun 19, 2018 at 12:24:23PM +0200, Michal Simek wrote: > >> From: Siva Durga Prasad Paladugu >> >> This patch moves CONFIG_MP to Kconfig >> >> Signed-off-by: Siva Durga Prasad Paladugu >> Signed-off-by: Michal Simek > > Applied to u-boot/ma

Re: [U-Boot] UBI fixable bit-flip issue

2018-07-12 Thread Mark Spieth
On 12 July 2018 18:46:11 GMT+10:00, Richard Weinberger wrote: >Mark, > >Am Donnerstag, 12. Juli 2018, 07:22:13 CEST schrieb Heiko Schocher: >> Hello Mark, >> >> added Richard Weinberger to cc... >> >> Am 12.07.2018 um 02:28 schrieb Mark Spieth: >> > Hi >> > >> > In the process of investigatin

Re: [U-Boot] [PATCH v2 21/21] dt-bindings: Add bindings for SPI NAND devices

2018-07-12 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Thu, 12 Jul 2018 00:44:44 +0200: > On Wed, 11 Jul 2018 17:25:29 +0200 > Miquel Raynal wrote: > > > From: Boris Brezillon > > > > Add bindings for SPI NAND chips. > > > > Signed-off-by: Boris Brezillon > > Signed-off-by: Miquel Raynal > > --- > > doc/dev

Re: [U-Boot] [RFC PATCH v2] u-boot: remove driver lookup loop from env_save()

2018-07-12 Thread Nicholas
On gio, 2018-07-12 at 13:02 +0200, Simon Goldschmidt wrote: > > On 12.07.2018 12:52, Nicholas Faustini wrote: > > > > When called with ENVOP_SAVE, env_get_location() only returns the > > gd->env_load_location variable without actually checking for > > the environment location and priority. > > >

Re: [U-Boot] [PATCH v2 20/21] cmd: mtd: add 'mtd' command

2018-07-12 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Thu, 12 Jul 2018 00:42:13 +0200: > On Wed, 11 Jul 2018 17:25:28 +0200 > Miquel Raynal wrote: > > > + > > +static void mtd_show_device(struct mtd_info *mtd) > > +{ > > + printf("* %s", mtd->name); > > Printing the device type might be interesting? And may

Re: [U-Boot] [PATCH] mtd: nand: denali: Replace the ad-hoc cache management with bouncebuf

2018-07-12 Thread Marek Vasut
On 06/20/2018 09:14 AM, Masahiro Yamada wrote: > Hi Marek, Hi! > 2018-06-20 13:43 GMT+09:00 Marek Vasut : >> On 06/19/2018 08:39 AM, Masahiro Yamada wrote: >>> Hi Marek, >> >> Hi, >> >>> 2018-06-08 5:17 GMT+09:00 Marek Vasut : Replace the ad-hoc DMA cache management functions with common bou

Re: [U-Boot] [PATCH 1/1] avb2.0: add proper dependencies to libavb

2018-07-12 Thread Igor Opaniuk
Hi Eugeniu, Makes sense, will re-send this patch soon with changes based on your suggestions. Thanks Regards, Igor On 12 July 2018 at 12:27, Eugeniu Rosca wrote: > Hi Igor, > > Thanks for the fix. See my comments below. > > On Thu, Jul 12, 2018 at 10:34:24AM +0300, Igor Opaniuk wrote: >> Provid

Re: [U-Boot] [PATCH v2 20/21] cmd: mtd: add 'mtd' command

2018-07-12 Thread Miquel Raynal
Hi Boris, > > > + > > > + if (full_erase) { > > > + off = 0; > > > + len = mtd->size; > > > + } > > > + > > > + if ((u32)off % mtd->erasesize) { > > > > Sounds dangerous. We have 8GB NANDs on sunxi platforms... > > [...] > > > > + >

[U-Boot] [PATCH v3 00/21] SPI-NAND support

2018-07-12 Thread Miquel Raynal
During the last months, Boris Brezillon shared his work to support serial flashes within Linux. First, he delivered (and merged) a new layer called spi-mem. He also initiated in Linux MTD subsystem the move of all 'raw' NAND related code to a raw/ subdirectory, adding at the same time a NAND core t

[U-Boot] [PATCH v3 01/21] mtd: Fallback to ->_read/write_oob() when ->_read/write() is missing

2018-07-12 Thread Miquel Raynal
From: Boris Brezillon Some MTD sublayers/drivers are implementing ->_read/write_oob() and provide dummy wrappers for their ->_read/write() implementations. Let the core handle this case instead of duplicating the logic. Signed-off-by: Boris Brezillon Acked-by: Robert Jarzmik Acked-by: Brian No

[U-Boot] [PATCH v3 03/21] mtd: Add sanity checks in mtd_write/read_oob()

2018-07-12 Thread Miquel Raynal
From: Boris Brezillon Unlike what's done in mtd_read/write(), there are no checks to make sure the parameters passed to mtd_read/write_oob() are consistent, which forces implementers of ->_read/write_oob() to do it, which in turn leads to code duplication and possibly errors in the logic. Do gen

[U-Boot] [PATCH v3 02/21] mtd: Uninline mtd_write_oob and move it to mtdcore.c

2018-07-12 Thread Miquel Raynal
From: Ezequiel Garcia There's no reason for having mtd_write_oob inlined in mtd.h header. Move it to mtdcore.c where it belongs. Signed-off-by: Ezequiel Garcia Acked-by: Boris Brezillon Signed-off-by: Jacek Anaszewski Signed-off-by: Miquel Raynal --- drivers/mtd/mtdcore.c | 12 +++

[U-Boot] [PATCH v3 05/21] mtd: add get/set of_node/flash_node helpers

2018-07-12 Thread Miquel Raynal
From: Brian Norris We are going to begin using the mtd->dev.of_node field for MTD device nodes, so let's add helpers for it. Also, we'll be making some conversions on spi_nor (and nand_chip eventually) too, so get that ready with their own helpers. Signed-off-by: Brian Norris Reviewed-by: Boris

[U-Boot] [PATCH v3 10/21] mtd: rename nand into rawnand in Kconfig prompt

2018-07-12 Thread Miquel Raynal
Sync the Kconfig raw NAND entry title with the code architecture. Signed-off-by: Miquel Raynal --- drivers/mtd/nand/raw/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig index bdc272142e..118fae7620 100644 ---

[U-Boot] [PATCH v3 07/21] mtd: move definitions to enlarge their range

2018-07-12 Thread Miquel Raynal
Some helpers might be useful in a future 'mtd' U-Boot command to parse MTD device list. Signed-off-by: Miquel Raynal --- drivers/mtd/mtdcore.h | 6 -- include/linux/mtd/mtd.h | 6 ++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/mtd/mtdcore.h b/drivers/mtd/mtdc

[U-Boot] [PATCH v3 09/21] mtd: move NAND files into a raw/ subdirectory

2018-07-12 Thread Miquel Raynal
NAND flavors, like serial and parallel, have a lot in common and would benefit to share code. Let's move raw (parallel) NAND specific code in a raw/ subdirectory, to ease the addition of a core file in nand/ and the introduction of a spi/ subdirectory specific to SPI NANDs. Signed-off-by: Miquel R

[U-Boot] [PATCH v3 06/21] mtd: fix build issue with includes

2018-07-12 Thread Miquel Raynal
Fix build errors produced by mtd.h and dm/device.h if not included in the right order. Signed-off-by: Miquel Raynal Reviewed-by: Jagan Teki --- include/linux/mtd/mtd.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index 78eb745c04..32e3f31

[U-Boot] [PATCH v3 08/21] mtd: move all flash categories inside MTD submenu

2018-07-12 Thread Miquel Raynal
There is no reason to have NAND, SPI flashes and UBI sections outside of the MTD submenu in Kconfig. Signed-off-by: Miquel Raynal Reviewed-by: Jagan Teki --- drivers/mtd/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig ind

[U-Boot] [PATCH v3 04/21] mtd: Fallback to ->_read/write() when ->_read/write_oob() is missing

2018-07-12 Thread Miquel Raynal
Some MTD sublayers/drivers are implementing ->_read/write() and not ->_read/write_oob(). While for NAND devices both are usually valid, for NOR devices, using the _oob variant has no real meaning. But, as the MTD layer is supposed to hide as much as possible the flash complexity to the user, there

[U-Boot] [PATCH v3 17/21] mtd: spinand: Add initial support for the MX35LF1GE4AB chip

2018-07-12 Thread Miquel Raynal
From: Boris Brezillon Add minimal support for the MX35LF1GE4AB SPI NAND chip. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/spi/Makefile | 2 +- drivers/mtd/nand/spi/core.c | 1 + drivers/mtd/nand/spi/macronix.c | 138 include/linux/mtd/

[U-Boot] [PATCH v3 11/21] mtd: nand: Add core infrastructure to deal with NAND devices

2018-07-12 Thread Miquel Raynal
From: Boris Brezillon Add an intermediate layer to abstract NAND device interface so that some logic can be shared between SPI NANDs, parallel/raw NANDs, OneNANDs, ... Signed-off-by: Boris Brezillon Signed-off-by: Miquel Raynal --- drivers/mtd/nand/Kconfig | 3 + drivers/mtd/nand/Makefile

[U-Boot] [PATCH v3 16/21] mtd: spinand: Add initial support for Winbond W25M02GV

2018-07-12 Thread Miquel Raynal
From: Frieder Schrempf Add support for the W25M02GV chip. Signed-off-by: Frieder Schrempf Signed-off-by: Boris Brezillon Signed-off-by: Miquel Raynal --- drivers/mtd/nand/spi/Makefile | 2 +- drivers/mtd/nand/spi/core.c| 1 + drivers/mtd/nand/spi/winbond.c | 143

[U-Boot] [PATCH v3 19/21] mtd: uclass: add probe function

2018-07-12 Thread Miquel Raynal
The user might want to trigger the probe of any MTD device, export these functions so they can be called from a command source file. Signed-off-by: Miquel Raynal --- drivers/mtd/mtd-uclass.c | 9 + include/linux/mtd/mtd.h | 3 +++ 2 files changed, 12 insertions(+) diff --git a/drivers/

[U-Boot] [PATCH v3 15/21] mtd: spinand: Add initial support for Micron MT29F2G01ABAGD

2018-07-12 Thread Miquel Raynal
From: Peter Pan Add a basic driver for Micron SPI NANDs. Only one device is supported right now, but the driver will be extended to support more devices afterwards. Signed-off-by: Peter Pan Signed-off-by: Boris Brezillon Signed-off-by: Miquel Raynal --- drivers/mtd/nand/spi/Makefile | 2 +-

[U-Boot] [PATCH v3 14/21] mtd: nand: Add core infrastructure to support SPI NANDs

2018-07-12 Thread Miquel Raynal
From: Peter Pan Add a SPI NAND framework based on the generic NAND framework and the spi-mem infrastructure. In its current state, this framework supports the following features: - single/dual/quad IO modes - on-die ECC Signed-off-by: Peter Pan Signed-off-by: Boris Brezillon Signed-off-by: M

[U-Boot] [PATCH v3 18/21] mtd: spinand: Add initial support for the MX35LF2GE4AB chip

2018-07-12 Thread Miquel Raynal
Add support for the MX35LF2GE4AB chip, which is similar to its cousin MX35LF1GE4AB, with two planes instead of one. Signed-off-by: Miquel Raynal --- drivers/mtd/nand/spi/macronix.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/drivers/mtd/nand/spi/macr

[U-Boot] [PATCH v3 12/21] mtd: nand: Pass mode information to nand_page_io_req

2018-07-12 Thread Miquel Raynal
From: Boris Brezillon The NAND sub-layers are likely to need the MTD_OPS_XXX mode information in order to decide if they should enable/disable ECC or how they should place the OOB bytes in the provided OOB buffer. Add a field to nand_page_io_req to pass this information. Signed-off-by: Boris Br

[U-Boot] [PATCH v3 21/21] dt-bindings: Add bindings for SPI NAND devices

2018-07-12 Thread Miquel Raynal
From: Boris Brezillon Add bindings for SPI NAND chips. Signed-off-by: Boris Brezillon Signed-off-by: Miquel Raynal --- doc/device-tree-bindings/mtd/spi-nand.txt | 5 + 1 file changed, 5 insertions(+) create mode 100644 doc/device-tree-bindings/mtd/spi-nand.txt diff --git a/doc/device-tr

Re: [U-Boot] [PATCH v2 13/21] spi: Extend the core to ease integration of SPI memory controllers

2018-07-12 Thread Stefan Roese
Hi Miquel, just a quick comment below (something I stumbled upon while testing). On 11.07.2018 17:25, Miquel Raynal wrote: > From: Boris Brezillon > > Some controllers are exposing high-level interfaces to access various > kind of SPI memories. Unfortunately they do not fit in the current > spi

[U-Boot] [PATCH v3 20/21] cmd: mtd: add 'mtd' command

2018-07-12 Thread Miquel Raynal
There should not be a 'nand' command, a 'sf' command and certainly not another 'spi-nand'. Write a 'mtd' command instead to manage all MTD devices at once. This should be the preferred way to access any MTD device. Signed-off-by: Miquel Raynal --- cmd/Kconfig | 5 + cmd/Makefile

[U-Boot] [PATCH v3 13/21] spi: Extend the core to ease integration of SPI memory controllers

2018-07-12 Thread Miquel Raynal
From: Boris Brezillon Some controllers are exposing high-level interfaces to access various kind of SPI memories. Unfortunately they do not fit in the current spi_controller model and usually have drivers placed in drivers/mtd/spi-nor which are only supporting SPI NORs and not SPI memories in gen

Re: [U-Boot] cmd: Kconfig: Move CONFIG_MP to Kconfig

2018-07-12 Thread Tom Rini
On Thu, Jul 12, 2018 at 07:52:44AM +0200, Michal Simek wrote: > Hi Tom, > > On 11.7.2018 14:42, Tom Rini wrote: > > On Tue, Jun 19, 2018 at 12:24:23PM +0200, Michal Simek wrote: > > > >> From: Siva Durga Prasad Paladugu > >> > >> This patch moves CONFIG_MP to Kconfig > >> > >> Signed-off-by: Si

Re: [U-Boot] UBI fixable bit-flip issue

2018-07-12 Thread Mark Spieth
On 12 July 2018 18:46:11 GMT+10:00, Richard Weinberger wrote: Mark, Am Donnerstag, 12. Juli 2018, 07:22:13 CEST schrieb Heiko Schocher: Hello Mark, added Richard Weinberger to cc... Am 12.07.2018 um 02:28 schrieb Mark Spieth: > Hi > > In the process of investigating a boot failure on one

[U-Boot] [RFC PATCH] gpio: zynq: Setup bank_name to dev->name

2018-07-12 Thread Michal Simek
There should be proper bank name setup to distiguish between different gpio drivers. Use dev->name for it. Signed-off-by: Michal Simek --- drivers/gpio/zynq_gpio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpio/zynq_gpio.c b/drivers/gpio/zynq_gpio.c index 26f69b1a713f..f793e

Re: [U-Boot] [PATCH v2] arm: socfpga: Fixes: Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET

2018-07-12 Thread Marek Vasut
On 07/12/2018 01:12 PM, Ley Foon Tan wrote: > Commit bfc6bae8fa1f2d8a9c51548767b02f1a1e0ffe52 > > This commit rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET. Update > with new CONFIG name. > > Signed-off-by: Ley Foon Tan > Acked-by: Marek Vasut > > --- > v2: > - Rename commit title, ad

Re: [U-Boot] [PATCH V2 1/4] imx_lpi2c: Update lpi2c driver to support imx8

2018-07-12 Thread Heiko Schocher
Hello Peng, Am 08.07.2018 um 05:46 schrieb Peng Fan: From: Ye Li Add compatible string for i.MX8 and move imx_lpi2c.h from mx7ulp directory to u-boot include directory as a common header file. Signed-off-by: Ye Li Signed-off-by: Peng Fan Reviewed-by: Heiko Schocher --- V2: Add review tag

Re: [U-Boot] [PATCH V2 2/4] imx: lpi2c: fix clock issue when NACK detected

2018-07-12 Thread Heiko Schocher
Hello Peng, Am 08.07.2018 um 05:46 schrieb Peng Fan: From: Gao Pan For LPI2C IP, NACK is detected by the rising edge of the ninth clock. In current uboot driver, once NACK is detected, it will reset and then disable LPI2C master. As a result, we can never see the falling edge of the ninth cloc

Re: [U-Boot] [PATCH V2 4/4] lpi2c: Add bus busy error handling

2018-07-12 Thread Heiko Schocher
Hello Peng, Am 08.07.2018 um 05:46 schrieb Peng Fan: From: Ye Li When doing "i2c dev 4; i2c probe" with ENET daughter card connected on iMX8QXP MEK board, we met a i2c bus busy issue, that the BBF of lpi2c always show busy, but the master is idle, and stop is detected (SDF set). This patch ad

Re: [U-Boot] [PATCH V2 3/4] lpi2c: Fix bus stop problem in xfer

2018-07-12 Thread Heiko Schocher
Hello Peng, Am 08.07.2018 um 05:46 schrieb Peng Fan: From: Ye Li In xfer function, both bus_i2c_read and bus_i2c_write will send a STOP command. This causes a problem when reading register data from i2c device. Generally two operations comprise the register data reading: 1. Write the reg

[U-Boot] Please pull from u-boot-i2c

2018-07-12 Thread Heiko Schocher
Hello Tom, please pull from u-boot-i2c.git master The following changes since commit 1612ff0dfba57b1002d8c7a54778eb553ace98f4: Merge branch 'master' of git://git.denx.de/u-boot-mips (2018-07-11 21:55:20 -0400) are available in the Git repository at: git://git.denx.de/u-boot-i2c.git maste

[U-Boot] [PATCH] gpio: xilinx: Convert driver to DM

2018-07-12 Thread Michal Simek
This patch is enabling GPIO_DM support to have an option to use this driver together with zynq gpio driver. !DM part is kept there till Microblaze is cleanup which will be done hopefully soon. Just a note: There is no reason to initialize uc-priv->name because it is completely unused. Signed-off-

[U-Boot] Microblaze gpio reset handling

2018-07-12 Thread Michal Simek
Hi Simon, I have looked at converting the rest of microblaze drivers to DM and I am curious why I can't use top level compatible string in DM based drivers. I am looking at ways how to move gpio and microblaze soft reset to sysreset framework and I see that core is not able to find out my high lev

Re: [U-Boot] [PATCH v2 13/21] spi: Extend the core to ease integration of SPI memory controllers

2018-07-12 Thread Miquel Raynal
Hi Stefan, > > + memset(tx_buf + pos, 0xff, op->dummy.nbytes); > > + pos += op->dummy.nbytes; > > + } > > + > > + if (tx_data) > > + memcpy(tx_buf + pos, op->data.buf.out, op->data.nbytes); > > + > > + ret = spi_xfer(slave, xfer_len * 8, tx_buf, rx_buf, > > +

Re: [U-Boot] Please pull u-boot-dm

2018-07-12 Thread Stephen Warren
On 07/11/2018 06:12 PM, Simon Glass wrote: Hi Stephen, On 11 July 2018 at 16:01, Stephen Warren wrote: On 07/10/2018 02:24 PM, Simon Glass wrote: Hi Stephen, On 10 July 2018 at 13:53, Stephen Warren wrote: On 07/10/2018 12:47 PM, Tom Rini wrote: On Mon, Jul 09, 2018 at 01:53:43PM -060

  1   2   >