Re: [U-Boot] [PATCH 7/8] usb: musb-new: sunxi: Add proper musb exit support

2018-07-11 Thread Vasily Khoruzhick
On Mon, Jul 9, 2018 at 12:17 PM, Jagan Teki wrote: > musb have platform ops to do proper graceful exit, > so add the exit call and move musb platform exit code > instead of keeping it in driver remove. > This make proper shutdown of musb where .remove will > call disable, exit serially via

Re: [U-Boot] [PATCH 5/8] phy: sun4i-usb: Update PHY#3 rst_mask only for H3_H5

2018-07-11 Thread Jagan Teki
On Wed, Jul 11, 2018 at 12:44 PM, Maxime Ripard wrote: > On Wed, Jul 11, 2018 at 12:37:04PM +0530, Jagan Teki wrote: >> On Wed, Jul 11, 2018 at 12:23 PM, Vasily Khoruzhick >> wrote: >> > On Mon, Jul 9, 2018 at 12:17 PM, Jagan Teki >> > wrote: >> >> Only H3 and H5 have 4 PHYS so restrict

[U-Boot] U-Boot release statistics

2018-07-11 Thread Wolfgang Denk
Hi all, with each release a number of people ask about which tool is used to generate the statisticcs, and/or how they can be added to the list of know employer names, here the summary: The tool used is Jonathan Corbet's gitdm [1] script with a U-Boot specific configuration, which can be found

[U-Boot] [PATCH] watchdog: dm: Change uclass name to watchdog and enable DM_UC_FLAG_SEQ_ALIAS

2018-07-11 Thread Michal Simek
uclass name is used by dev_read_alias_seq which return seq number when aliases are used. Code fragment: 168 int dev_read_alias_seq(struct udevice *dev, int *devnump) 169 { 170 ofnode node = dev_ofnode(dev); 171 const char *uc_name = dev->uclass->uc_drv->name; 172 int ret;

[U-Boot] [PATCH 1/2] arm64: zynqmp: Try to enable the first watchdog via aliases

2018-07-11 Thread Michal Simek
Add support for enabling the first watchdog pointed via aliases. DT fragment: aliases { ... watchdog0 = watchdog1 = _lpd; ... }; dm tree fragment for above configuration with patch applied: ZynqMP> dm tree Class

[U-Boot] [PATCH 2/2] arm: zynq: Try to enable the first watchdog via aliases

2018-07-11 Thread Michal Simek
The same change as was done for zynqmp with this description: Add support for enabling the first watchdog pointed via aliases. DT fragment: aliases { ... watchdog0= watchdog1 = _lpd; ... }; Till this patch the

Re: [U-Boot] U-Boot 2018.07 Still Broken for Allwinner H3 SoCs

2018-07-11 Thread Jagan Teki
On Wed, Jul 11, 2018 at 12:28 PM, Chen-Yu Tsai wrote: > On Wed, Jul 11, 2018 at 11:53 AM, Chen-Yu Tsai wrote: >> On Tue, Jul 10, 2018 at 2:13 PM, Jagan Teki wrote: >>> On Tue, Jul 10, 2018 at 8:34 AM, Chen-Yu Tsai wrote: This is on a Libre Computer ALL-H3-CC H3 variant. Still running a

Re: [U-Boot] [PATCH 5/8] phy: sun4i-usb: Update PHY#3 rst_mask only for H3_H5

2018-07-11 Thread Vasily Khoruzhick
On Mon, Jul 9, 2018 at 12:17 PM, Jagan Teki wrote: > Only H3 and H5 have 4 PHYS so restrict rst_mask only for them. > > Signed-off-by: Jagan Teki > --- > drivers/phy/allwinner/phy-sun4i-usb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [U-Boot] U-Boot 2018.07 Still Broken for Allwinner H3 SoCs

2018-07-11 Thread Chen-Yu Tsai
On Wed, Jul 11, 2018 at 11:53 AM, Chen-Yu Tsai wrote: > On Tue, Jul 10, 2018 at 2:13 PM, Jagan Teki wrote: >> On Tue, Jul 10, 2018 at 8:34 AM, Chen-Yu Tsai wrote: >>> This is on a Libre Computer ALL-H3-CC H3 variant. Still running a >>> bisect, but v2018.07-rc1 is a working version. From the

Re: [U-Boot] [PATCH 5/8] phy: sun4i-usb: Update PHY#3 rst_mask only for H3_H5

2018-07-11 Thread Jagan Teki
On Wed, Jul 11, 2018 at 12:23 PM, Vasily Khoruzhick wrote: > On Mon, Jul 9, 2018 at 12:17 PM, Jagan Teki > wrote: >> Only H3 and H5 have 4 PHYS so restrict rst_mask only for them. >> >> Signed-off-by: Jagan Teki >> --- >> drivers/phy/allwinner/phy-sun4i-usb.c | 2 +- >> 1 file changed, 1

Re: [U-Boot] [PATCH 5/8] phy: sun4i-usb: Update PHY#3 rst_mask only for H3_H5

2018-07-11 Thread Maxime Ripard
On Wed, Jul 11, 2018 at 12:37:04PM +0530, Jagan Teki wrote: > On Wed, Jul 11, 2018 at 12:23 PM, Vasily Khoruzhick > wrote: > > On Mon, Jul 9, 2018 at 12:17 PM, Jagan Teki > > wrote: > >> Only H3 and H5 have 4 PHYS so restrict rst_mask only for them. > >> > >> Signed-off-by: Jagan Teki > >>

Re: [U-Boot] raspberrypi compute module3 emmc not usable

2018-07-11 Thread Belisko Marek
Hi Peter, On Wed, Jul 11, 2018 at 10:01 AM Peter Robinson wrote: > > On Tue, Jul 10, 2018 at 9:37 PM, Belisko Marek > wrote: > > Hello, > > > > I'm trying to use u-boot on CM3 (which contains eMMC) to boot kernel. > > I'm using u-boot 2018.05 and it can start fine like: > > U-Boot 2018.05 (Jul

[U-Boot] [PATCH v3 2/3] rtc: pl031: convert the driver to driver model

2018-07-11 Thread AKASHI Takahiro
With this patch, PL031 driver is converted to driver-model-compliant driver. In addition, CONFIG_SYS_RTC_PL031_BASE is no longer valid. Signed-off-by: AKASHI Takahiro --- drivers/rtc/Kconfig | 6 ++ drivers/rtc/pl031.c | 126 ++-

[U-Boot] [PATCH v3 1/3] rtc: compile date.c if DM_RTC

2018-07-11 Thread AKASHI Takahiro
rtc_to_tm() and rtc_mktime() are required for some RTC drivers, at least PL031. Without this patch, we also need to enable CONFIG_CMD_DATE even if we don't want or need this command. Signed-off-by: AKASHI Takahiro --- drivers/rtc/date.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[U-Boot] [PATCH v3 0/3] subject: arm: qemu-arm: enable PL031 (RTC)

2018-07-11 Thread AKASHI Takahiro
Virtual Machines provided by qemu for arm are already equipped with RTCdevice (PL031). With this patch set, PL031 driver is converted to driver model and by default enabled on qemu-arm. It allows us not only to use date command but also to enable UEFI's GetTime/SetTime() services. This work is

Re: [U-Boot] raspberrypi compute module3 emmc not usable

2018-07-11 Thread Peter Robinson
On Tue, Jul 10, 2018 at 9:37 PM, Belisko Marek wrote: > Hello, > > I'm trying to use u-boot on CM3 (which contains eMMC) to boot kernel. > I'm using u-boot 2018.05 and it can start fine like: > U-Boot 2018.05 (Jul 10 2018 - 20:32:05 +) > > DRAM: 948 MiB > RPI Compute Module 3 (0xa220a0) >

Re: [U-Boot] [PATCH v1 1/6] microblaze: Use default implementation from include/linux/io.h

2018-07-11 Thread Michal Simek
On 29.6.2018 23:51, Shreenidhi Shedi wrote: > Signed-off-by: Shreenidhi Shedi > --- > > Changes in v1: > - Removed few macros which aren't needed anymore > - Few cosmetic changes > - Converted Xilinx Axi Watchdog driver to driver model > > arch/microblaze/include/asm/io.h | 3 --- > 1 file

Re: [U-Boot] [PATCH v1 2/6] microblaze: Guard do_reset by CONFIG_SYSRESET

2018-07-11 Thread Michal Simek
On 29.6.2018 23:51, Shreenidhi Shedi wrote: > Signed-off-by: Shreenidhi Shedi > --- > > Changes in v1: None > > board/xilinx/microblaze-generic/microblaze-generic.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/board/xilinx/microblaze-generic/microblaze-generic.c >

Re: [U-Boot] [PATCH v1 3/6] microblaze: Cosmetic changes in Microblaze related files

2018-07-11 Thread Michal Simek
Here should be a description what you are changing. And you can send this out of this watchdog series. Thanks, Michal On 29.6.2018 23:51, Shreenidhi Shedi wrote: > Signed-off-by: Shreenidhi Shedi > --- > > Changes in v1: None > > arch/microblaze/include/asm/io.h | 92

Re: [U-Boot] [PATCH v1 4/6] microblaze: Delete Xilinx watchdog related macros

2018-07-11 Thread Michal Simek
please put here proper description. patch itself is fine. M On 29.6.2018 23:51, Shreenidhi Shedi wrote: > Signed-off-by: Shreenidhi Shedi > --- > > Changes in v1: None > > board/xilinx/microblaze-generic/xparameters.h | 4 > include/configs/microblaze-generic.h | 10

Re: [U-Boot] SoCFPGA PL330 DMA driver and ECC scrubbing

2018-07-11 Thread Marek Vasut
On 07/11/2018 05:11 AM, Jason Rush wrote: [...] > However, if I press the HPS_RST push button on the SoCKit (which is > connected > to power on reset), occasionally U-Boot will lock up while booting.  It > always > boots and operates correctly from the initial power on, but

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

2018-07-11 Thread Maxime Ripard
Hi, On Wed, Jul 11, 2018 at 10:33:28AM +0200, Nicholas wrote: > Hi Simon, > > thanks for your comments and clarifications. I realize that I was not > super clear when describing the problem. > > On mer, 2018-07-11 at 07:09 +0200, Simon Goldschmidt wrote: > > Hi, > > > > sorry for the

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

2018-07-11 Thread Ley Foon Tan
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 --- arch/arm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/Kconfig

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

2018-07-11 Thread Marek Vasut
On 07/11/2018 11:57 AM, 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 Needs Fixes: tag , otherwise Acked-by: Marek Vasut > --- >

[U-Boot] [PATCH] mach-stm32: Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET

2018-07-11 Thread Ley Foon Tan
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 --- arch/arm/mach-stm32/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

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

2018-07-11 Thread Simon Goldschmidt
On 11.07.2018 11:48, Maxime Ripard wrote: Hi, On Wed, Jul 11, 2018 at 10:33:28AM +0200, Nicholas wrote: Hi Simon, thanks for your comments and clarifications. I realize that I was not super clear when describing the problem. On mer, 2018-07-11 at 07:09 +0200, Simon Goldschmidt wrote: Hi,

Re: [U-Boot] [PATCH v3 1/3] rtc: compile date.c if DM_RTC

2018-07-11 Thread Heinrich Schuchardt
On 07/11/2018 11:06 AM, AKASHI Takahiro wrote: > rtc_to_tm() and rtc_mktime() are required for some RTC drivers, at least > PL031. Without this patch, we also need to enable CONFIG_CMD_DATE even if > we don't want or need this command. > > Signed-off-by: AKASHI Takahiro Reviewed-by: Heinrich

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

2018-07-11 Thread Wolfgang Denk
Dear Maxime, In message <20180711094838.zyczks6iksp772ir@flea> you wrote: > > I don't really see a use-case for overriding wherever the environment > at the user-level actually. At the board level, for redundancy or > transition, yes, definitely, but we can already do that. If the feature is

[U-Boot] [PATCH v3 3/3] arm: qemu-arm: enable RTC (PL031) by default

2018-07-11 Thread AKASHI Takahiro
Virtual machine provided by qemu-arm has a ARM PL031 Real Time Clock device. With this patch, the driver is enabled by default. Signed-off-by: AKASHI Takahiro --- arch/arm/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index

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

2018-07-11 Thread Ley Foon Tan
On Wed, Jul 11, 2018 at 5:57 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 > --- > arch/arm/Kconfig | 2 +- > 1 file changed, 1

Re: [U-Boot] [PATCH 5/8] phy: sun4i-usb: Update PHY#3 rst_mask only for H3_H5

2018-07-11 Thread Maxime Ripard
On Wed, Jul 11, 2018 at 12:52:07PM +0530, Jagan Teki wrote: > On Wed, Jul 11, 2018 at 12:44 PM, Maxime Ripard > wrote: > > On Wed, Jul 11, 2018 at 12:37:04PM +0530, Jagan Teki wrote: > >> On Wed, Jul 11, 2018 at 12:23 PM, Vasily Khoruzhick > >> wrote: > >> > On Mon, Jul 9, 2018 at 12:17 PM,

Re: [U-Boot] [PATCH v3 3/3] arm: qemu-arm: enable RTC (PL031) by default

2018-07-11 Thread Heinrich Schuchardt
On 07/11/2018 11:06 AM, AKASHI Takahiro wrote: > Virtual machine provided by qemu-arm has a ARM PL031 Real Time Clock > device. With this patch, the driver is enabled by default. > > Signed-off-by: AKASHI Takahiro Reviewed-by: Heinrich Schuchardt ___

Re: [U-Boot] [PATCH v3 2/3] rtc: pl031: convert the driver to driver model

2018-07-11 Thread Heinrich Schuchardt
On 07/11/2018 11:06 AM, AKASHI Takahiro wrote: > With this patch, PL031 driver is converted to driver-model-compliant > driver. In addition, CONFIG_SYS_RTC_PL031_BASE is no longer valid. > > Signed-off-by: AKASHI Takahiro Tested-by: Heinrich Schuchardt

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

2018-07-11 Thread Lukasz Majewski
Hi Simon, > Hi Nicholas, > > On 10 July 2018 at 06:57, 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 allows saving the > >

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

2018-07-11 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 v4 6/6] common: Generic loader for file system

2018-07-11 Thread Chee, Tien Fong
On Wed, 2018-07-11 at 08:02 -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 v1 6/6] watchdog: Convert Xilinx Axi watchdog driver to driver model

2018-07-11 Thread Michal Simek
please fill commit message. On 29.6.2018 23:51, Shreenidhi Shedi wrote: > Signed-off-by: Shreenidhi Shedi > --- > > Changes in v1: None > > drivers/watchdog/Kconfig | 8 +++ > drivers/watchdog/xilinx_tb_wdt.c | 107 --- > 2 files changed, 91

Re: [U-Boot] [PATCH v1 5/6] microblaze: Support for watchdog_reset in Microblaze init

2018-07-11 Thread Michal Simek
On 29.6.2018 23:51, Shreenidhi Shedi wrote: > Signed-off-by: Shreenidhi Shedi > --- > > Changes in v1: None > > .../microblaze-generic/microblaze-generic.c | 43 +-- > 1 file changed, 39 insertions(+), 4 deletions(-) > > diff --git

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

2018-07-11 Thread Michal Simek
Relocate watchdog ops as was done by: "dm: Add support for all targets which requires MANUAL_RELOC" (sha1: 484fdf5ba058b07be5ca82763aa2b72063540ef3) Signed-off-by: Michal Simek --- based on https://lists.denx.de/pipermail/u-boot/2018-July/334227.html --- drivers/watchdog/wdt-uclass.c | 23

Re: [U-Boot] [RFC PATCH 10/20] spi: Extend the core to ease integration of SPI memory controllers

2018-07-11 Thread Miquel Raynal
Hi Jagan, Jagan Teki wrote on Wed, 11 Jul 2018 20:07:19 +0530: > On Wed, Jul 11, 2018 at 7:25 PM, Miquel Raynal > wrote: > > Hi Jagan, > > > > Jagan Teki wrote on Fri, 6 Jul 2018 17:02:22 > > +0530: > > > >> On Wed, Jun 6, 2018 at 9:00 PM, Miquel Raynal > >> wrote: > >> > From: Boris

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

2018-07-11 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

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

2018-07-11 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

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

2018-07-11 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

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

2018-07-11 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

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

2018-07-11 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

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

2018-07-11 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

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

2018-07-11 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:

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

2018-07-11 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

Re: [U-Boot] [PATCH v4 3/6] block: Add a function to find block device descriptor

2018-07-11 Thread Chee, Tien Fong
On Wed, 2018-07-11 at 08:02 -0600, Simon Glass wrote: > Hi Tien, > > On 6 July 2018 at 02:26,   wrote: > > > > From: Tien Fong Chee > > > > Add a function to find the block device descriptor of the parent > > device. > > > > Signed-off-by: Tien Fong Chee > > --- > >  

[U-Boot] [PATCH] microblaze: Do not call timer init that early

2018-07-11 Thread Michal Simek
Timer needs to be converted to DM but as of now it can't be called so early because intc controller is not ready. Call it later in board_r.c. Before this patch timer_init is called twice which is wrong. Signed-off-by: Michal Simek --- common/board_f.c | 2 +- 1 file changed, 1 insertion(+), 1

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

2018-07-11 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

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

2018-07-11 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 v2 04/21] mtd: Fallback to ->_read/write() when ->_read/write_oob() is missing

2018-07-11 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,

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

2018-07-11 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:

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

2018-07-11 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

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

2018-07-11 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

[U-Boot] [PATCH] arm: tegra: Restore host1x/dc dm-pre-reloc properties

2018-07-11 Thread Nicolas Chauvet
Since commit f2faffecbd, tegra: Convert to use binman the dm-pre-reloc properties are removed. This lead uboot not to enable the display on paz00 This patch restore the dm-pre-reloc properties allowing the bootloader to output to the display panel Signed-off-by: Nicolas Chauvet ---

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

2018-07-11 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

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

2018-07-11 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

Re: [U-Boot] [PATCH V3 1/2] spl: Fix redundant image of uboot

2018-07-11 Thread Michael Nazzareno Trimarchi
Hi Lothar On Fri, Jul 6, 2018 at 5:09 PM, Michael Trimarchi wrote: > We need to address the redundat image case and undestand if the > image is corrupted or not. In error case we need to try the fallback copy. > The function used before was always return 0 without any evaluation of the > error.

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

2018-07-11 Thread Nicholas
Hi Simon, thanks for your comments and clarifications. I realize that I was not super clear when describing the problem. On mer, 2018-07-11 at 07:09 +0200, Simon Goldschmidt wrote: > Hi, > > sorry for the disclaimer in the last mail. Still don't know why this > is  > the default here :-( > >

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

2018-07-11 Thread Nicholas
On mer, 2018-07-11 at 12:01 +0200, Simon Goldschmidt wrote: > > On 11.07.2018 11:48, Maxime Ripard wrote: > > > > Hi, > > > > On Wed, Jul 11, 2018 at 10:33:28AM +0200, Nicholas wrote: > > > > > > Hi Simon, > > > > > > thanks for your comments and clarifications. I realize that I was > > > not

Re: [U-Boot] [PATCH v3 7/7] cmd: Add bind/unbind commands to bind a device to a driver from the command line

2018-07-11 Thread Michal Simek
On 11.7.2018 14:46, Tom Rini wrote: > On Wed, Jul 11, 2018 at 07:57:13AM +0200, Michal Simek wrote: >> On 10.7.2018 18:40, Tom Rini wrote: >>> On Mon, Jul 09, 2018 at 11:59:57AM -0500, Joe Hershberger wrote: On Mon, Jul 9, 2018 at 9:43 AM, Tom Rini wrote: > On Mon, Jul 09, 2018 at

Re: [U-Boot] [PATCH v3 7/7] cmd: Add bind/unbind commands to bind a device to a driver from the command line

2018-07-11 Thread Jagan Teki
On Fri, Jun 22, 2018 at 5:55 PM, Jean-Jacques Hiblot wrote: > In some cases it can be useful to be able to bind a device to a driver from > the command line. > The obvious example is for versatile devices such as USB gadget. > Another use case is when the devices are not yet ready at startup and

Re: [U-Boot] [RFC PATCH 17/20] cmd: mtd: add 'mtd' command

2018-07-11 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Wed, 11 Jul 2018 16:01:09 +0200: > On Wed, 11 Jul 2018 15:51:39 +0200 > Miquel Raynal wrote: > > > > > + > > > > + argc -= 3; > > > > + argv += 3; > > > > + > > > > + /* Do the parsing */ > > > > + if (!strncmp(cmd, "read", 4) ||

Re: [U-Boot] [PATCH v4 4/6] doc: Add new doc for file system firmware loader driver model

2018-07-11 Thread Chee, Tien Fong
On Wed, 2018-07-11 at 08:02 -0600, Simon Glass wrote: > Hi Tien, > > On 6 July 2018 at 02:27,   wrote: > > > > From: Tien Fong Chee > > > > Provide information about > > > > - overview of file system firmware loader driver model > > - describe storage device and partition in device tree

Re: [U-Boot] [RFC PATCH 10/20] spi: Extend the core to ease integration of SPI memory controllers

2018-07-11 Thread Jagan Teki
On Wed, Jul 11, 2018 at 7:25 PM, Miquel Raynal wrote: > Hi Jagan, > > Jagan Teki wrote on Fri, 6 Jul 2018 17:02:22 > +0530: > >> On Wed, Jun 6, 2018 at 9:00 PM, Miquel Raynal >> wrote: >> > From: Boris Brezillon >> > >> > Some controllers are exposing high-level interfaces to access various

Re: [U-Boot] [RFC] Make U-Boot log great again

2018-07-11 Thread Sam Protsenko
On Tue, Jul 10, 2018 at 5:38 PM, Tom Rini wrote: > On Tue, Jul 10, 2018 at 11:01:14AM +0800, Bin Meng wrote: >> Hello, >> >> On Fri, Mar 23, 2018 at 1:44 PM, Bin Meng wrote: >> > Hi, >> > >> > On Sat, Feb 17, 2018 at 3:49 AM, Robert Nelson >> > wrote: >> >> On Fri, Feb 16, 2018 at 1:01 PM, Sam

Re: [U-Boot] [UBOOT PATCH] usb: dwc3: convert to livetree

2018-07-11 Thread Marek Vasut
On 06/11/2018 11:39 AM, Vipul Kumar wrote: > Update the DWC3 USB driver to support a live tree. > > Signed-off-by: Vipul Kumar What about systems which do not use live tree, does it work on those ? -- Best regards, Marek Vasut ___ U-Boot mailing

Re: [U-Boot] [PATCH 0/4] fix propagation of flags from do_env_default()

2018-07-11 Thread Yaniv Levinsky
Gentle ping. On 06/24/2018 07:16 PM, Yaniv Levinsky wrote: > The function do_env_default() doesn't propagate flags to himport_r(). It > causes > the "-f" option to have no effect on the execution of "env default" commands. > > Fix the call paths from do_env_default() to himport_r() to pass

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

2018-07-11 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 v2 10/21] mtd: rename nand into rawnand in Kconfig prompt

2018-07-11 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 a820af61ce..6ef82cab88 100644 ---

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

2018-07-11 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 v2 20/21] cmd: mtd: add 'mtd' command

2018-07-11 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 v2 16/21] mtd: spinand: Add initial support for Winbond W25M02GV

2018-07-11 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

Re: [U-Boot] [PATCH] arm: tegra: Restore host1x/dc dm-pre-reloc properties

2018-07-11 Thread Simon Glass
On 11 July 2018 at 09:19, Nicolas Chauvet wrote: > Since commit f2faffecbd, tegra: Convert to use binman > the dm-pre-reloc properties are removed. > > This lead uboot not to enable the display on paz00 This leads U-Boot ... > > This patch restore the dm-pre-reloc properties allowing > the

[U-Boot] [PATCH] arm: tegra: Restore host1x/dc dm-pre-reloc properties

2018-07-11 Thread Nicolas Chauvet
Since commit f2faffecb016, tegra: Convert to use binman the dm-pre-reloc properties are removed. This leads uboot not to enable the display on paz00 This patch restore the dm-pre-reloc properties allowing the bootloader to output to the display panel v3: - Fix few typos v2: - Add more

[U-Boot] [PATCH] arm: tegra: Restore host1x/dc dm-pre-reloc properties

2018-07-11 Thread Nicolas Chauvet
Since commit f2faffecb016, tegra: Convert to use binman the dm-pre-reloc properties are removed. This lead uboot not to enable the display on paz00 This patch restore the dm-pre-reloc properties allowing the bootloader to output to the display panel v2: - Add more character to commit hash

Re: [U-Boot] SoCFPGA PL330 DMA driver and ECC scrubbing

2018-07-11 Thread Trent Piepho
On Wed, 2018-07-11 at 08:56 -0500, Jason Rush wrote: > On 7/11/2018 8:48 AM, Marek Vasut wrote: > > On 07/11/2018 03:49 PM, Jason Rush wrote: > > > > > > My mistake. I did disable the dcache after scrubbing too. The > > > code is almost identical to the Arria10 code where after > > > scrubbing

Re: [U-Boot] [PATCH] arm: tegra: Restore host1x/dc dm-pre-reloc properties

2018-07-11 Thread Simon Glass
On 11 July 2018 at 11:24, Nicolas Chauvet wrote: > Since commit f2faffecb016, tegra: Convert to use binman > the dm-pre-reloc properties are removed. > > This leads uboot not to enable the display on paz00 U-Boot :-) > > This patch restore the dm-pre-reloc properties allowing > the bootloader

[U-Boot] [PATCH] arm: tegra: Restore host1x/dc dm-pre-reloc properties

2018-07-11 Thread Nicolas Chauvet
Since commit f2faffecb016, tegra: Convert to use binman the dm-pre-reloc properties are removed. This leads uboot not to enable the display on paz00 This patch restore the dm-pre-reloc properties allowing the bootloader to output to the display panel v3: - Fix few typos v2: - Add more

[U-Boot] [PATCH] arm: tegra: Restore host1x/dc dm-pre-reloc properties

2018-07-11 Thread Nicolas Chauvet
Since commit f2faffecb016, tegra: Convert to use binman the dm-pre-reloc properties are removed. This leads U-Boot not to enable the display on paz00 This patch restore the dm-pre-reloc properties allowing the bootloader to output to the display panel v4: - Spell project name as appropriate v3:

Re: [U-Boot] [PATCH v2 1/5] net: phy: add ofnode node to struct phy_device

2018-07-11 Thread Joe Hershberger
On Thu, Jul 5, 2018 at 12:02 PM, Grygorii Strashko wrote: > Now the UCLASS_ETH device "node" field is owerwritten by some network drivers > in > case of Ethernet PHYs which are linked to UCLASS_ETH device using > "phy-handle" DT property and when Ethernet PHY driver needs to read some >

Re: [U-Boot] [PATCH 3/3] net: zynq_gem: convert to use livetree

2018-07-11 Thread Joe Hershberger
Hi Siva, On Fri, Jul 6, 2018 at 5:10 AM, Siva Durga Prasad Paladugu wrote: > This patch updates the zynq gem driver to support > livetree. > > Signed-off-by: Siva Durga Prasad Paladugu > Signed-off-by: Vipul Kumar > --- > drivers/net/zynq_gem.c | 29 ++--- > 1 file

Re: [U-Boot] SoCFPGA PL330 DMA driver and ECC scrubbing

2018-07-11 Thread Marek Vasut
On 07/11/2018 07:30 PM, Trent Piepho wrote: > On Wed, 2018-07-11 at 08:56 -0500, Jason Rush wrote: >> On 7/11/2018 8:48 AM, Marek Vasut wrote: >>> On 07/11/2018 03:49 PM, Jason Rush wrote: My mistake. I did disable the dcache after scrubbing too. The code is almost identical to

[U-Boot] [PATCH] mtd: add spi flash id s25fl128l

2018-07-11 Thread Clément Laigle
From: Clement Laigle Add support for SPANSION s25fl128l 256k and 64k Signed-off-by: Clément Laigle --- drivers/mtd/spi/spi_flash_ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi_flash_ids.c b/drivers/mtd/spi/spi_flash_ids.c index 9212373dae..f7e9e92955 100644

Re: [U-Boot] [PATCH 1/2] mips: dbau1x00: Remove this board

2018-07-11 Thread Daniel Schwierzeck
Hi Manuel, from Linux Git history I see that you have contributied to Alchemy boards. Are those boards still available? Do you use U-Boot and have interest in keeping this platform supported? On 09.07.2018 21:09, Tom Rini wrote: > This platform has been marked as orphan since June of 2016 and

Re: [U-Boot] fit: Verify all configuration signatures

2018-07-11 Thread Tom Rini
On Thu, May 31, 2018 at 05:59:07PM +0200, Marek Vasut wrote: > Rather than verifying configuration signature of the configuration node > containing the kernel image types, verify all configuration nodes, even > those that do not contain kernel images. This is useful when the nodes > contain ie.

Re: [U-Boot] spl: spi: Support full fitImage handling

2018-07-11 Thread Tom Rini
On Thu, May 31, 2018 at 05:59:29PM +0200, Marek Vasut wrote: > Handle the case where the full fitImage support is enabled. In this > case, the whole fitImage must be loaded up front as some parts of the > fitImage code require memory-mapped access to the entire fitImage. > > Signed-off-by: Marek

Re: [U-Boot] [PATCH 2/2] mips: au1x00: Remove support for these SoCs

2018-07-11 Thread Tom Rini
On Wed, Jul 11, 2018 at 02:33:37PM +0200, Daniel Schwierzeck wrote: > > > On 09.07.2018 21:09, Tom Rini wrote: > > The only platform left for the AU1x00 SoCs was the pb1x00 platform, an > > apparent clone of the dbau1x00 platform. As pb1x00 had no listed > > maintainer I am assuming that it is

Re: [U-Boot] [U-Boot,v2] vboot: Do not use hashed-strings offset

2018-07-11 Thread Tom Rini
On Sat, Jun 09, 2018 at 11:45:20AM -0400, Teddy Reed wrote: > The hashed-strings signature property includes two uint32_t values. > The first is unneeded as there should never be a start offset into the > strings region. The second, the size, is needed because the added > signature node appends

Re: [U-Boot] [U-Boot, RFC] gpio: omap_gpio: Convert to auto-alloc feature when DT is supported

2018-07-11 Thread Tom Rini
On Sun, Jun 10, 2018 at 09:29:51AM -0500, Adam Ford wrote: > The omap_gpio driver has a TODO that says when every board is converted > to DM and DT, the omap_gpio_bind can stop using calloc and switch > to auto-alloc. > > This patch converts this driver to auto-calloc when DT is enabled. > >

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

2018-07-11 Thread Maxime Ripard
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 best working

Re: [U-Boot] SoCFPGA PL330 DMA driver and ECC scrubbing

2018-07-11 Thread Jason Rush
On 7/11/2018 8:48 AM, Marek Vasut wrote: > On 07/11/2018 03:49 PM, Jason Rush wrote: >> On 7/11/2018 3:55 AM, Marek Vasut wrote: >>> On 07/11/2018 05:11 AM, Jason Rush wrote: >>> [...] >>> However, if I press the HPS_RST push button on the SoCKit (which is connected to

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

2018-07-11 Thread Wolfgang Denk
Dear Maxime, In message <20180711134735.vhhc7quuzcp42bo7@flea> you wrote: > > > If the feature is available, use cases will spring into mind. ... > > Right, but that would bring a much more significant rework as to how > the environments are handled than just the changes that are being >

Re: [U-Boot] [PATCH v4 3/6] block: Add a function to find block device descriptor

2018-07-11 Thread Simon Glass
Hi Tien, On 6 July 2018 at 02:26, wrote: > From: Tien Fong Chee > > Add a function to find the block device descriptor of the parent > device. > > Signed-off-by: Tien Fong Chee > --- > drivers/block/blk-uclass.c | 23 +++ > include/blk.h | 9 + > 2

Re: [U-Boot] [PATCH v4 4/6] doc: Add new doc for file system firmware loader driver model

2018-07-11 Thread Simon Glass
Hi Tien, On 6 July 2018 at 02:27, wrote: > From: Tien Fong Chee > > Provide information about > > - overview of file system firmware loader driver model > - describe storage device and partition in device tree source > - describe fie system firmware loader API > > Signed-off-by: Tien Fong Chee

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

2018-07-11 Thread Simon Glass
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 | 21 + > doc/device-tree-bindings/misc/fs_loader.txt | 48

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

2018-07-11 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 allows saving the environment into the same location that has been previously loaded. This behaviour causes env_save() to fall

Re: [U-Boot] [PATCH V3 1/2] spl: Fix redundant image of uboot

2018-07-11 Thread Lothar Waßmann
Michael Nazzareno Trimarchi wrote: > Hi Lothar > > On Fri, Jul 6, 2018 at 5:09 PM, Michael Trimarchi > wrote: > > We need to address the redundat image case and undestand if the > > image is corrupted or not. In error case we need to try the fallback copy. > > The function used before was

  1   2   >