Re: [U-Boot] [PATCH 1/1] README: U_BOOT_ENV_CALLBACK functions

2018-07-30 Thread Sam Protsenko
Hi Heinrich, On Sun, Jul 29, 2018 at 12:08 PM, Heinrich Schuchardt wrote: > Describe the interface of environment variable callback functions. > > Signed-off-by: Heinrich Schuchardt > --- > README | 11 +++ > 1 file changed, 11 insertions(+) > > diff --git a/README b/README > index

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

2018-07-30 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 v5 26/27] cmd: mtd: add 'mtd' command

2018-07-30 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 Acked-by: Jagan Teki --- cmd/Kconfig |

Re: [U-Boot] [PATCH v4 00/27] SPI-NAND support

2018-07-30 Thread Tom Rini
On Mon, Jul 30, 2018 at 05:23:18PM +0200, Miquel Raynal wrote: > Hi Stefan, Tom, > > Stefan Roese wrote on Mon, 30 Jul 2018 17:11:49 +0200: > > > Hi Miquel, > > Hi Jagan, > > > > On 26.07.2018 09:29, Miquel Raynal wrote: > > > Hi Jagan, > > > > Jagan Teki wrote on Thu, 26 Jul 2018 > > >

Re: [U-Boot] [PATCH v2 0/2] env: Make environment loading log more clear

2018-07-30 Thread Sam Protsenko
Hi Wolfgang, On Thu, Jul 26, 2018 at 4:28 PM, Wolfgang Denk wrote: > Dear Sam, > > In message > you > wrote: >> >> Does this series look ok to you? Can you please review? > > Sorry for the delay. > > Hm... I wonder if we should handle patch 1/2 in the same way as done > in 2/2, i. e. not

[U-Boot] [PATCH 2/2] FIT image: use compression = "none" for ramdisks

2018-07-30 Thread Simon Goldschmidt
To prepare supporting compression for all image types, change compression to "none" for ramdisks in all examples. Signed-off-by: Simon Goldschmidt --- arch/arm/cpu/armv8/fsl-layerscape/doc/README.falcon | 2 +- doc/README.bcm7xxx | 2 +-

Re: [U-Boot] [PATCH 1/2] doc: FIT image: clarify usage of "compression" property

2018-07-30 Thread Wolfgang Denk
Dear Simon, In message <20180730105319.79424-1-sgoldschm...@de.pepperl-fuchs.com> you wrote: > Compressed images should have their compression property > set to "none" if U-Boot should leave them compressed. > > This is especially the case for compressed ramdisks that > should be uncompressed by

[U-Boot] [PATCH 3/4] gpio: xilinx: Set value before changing direction

2018-07-30 Thread Michal Simek
Set a value before changing gpio direction. This will ensure that the old value is not propagated when direction has changed but new value is not written yet. Reported-by: Stefan Herbrechtsmeier Signed-off-by: Michal Simek --- drivers/gpio/xilinx_gpio.c | 4 ++-- 1 file changed, 2

[U-Boot] [PATCH 4/4] gpio: xilinx: Simplify logic in xilinx_gpio_set_value

2018-07-30 Thread Michal Simek
There is no reason to do read/write for if/else separately. Reported-by: Stefan Herbrechtsmeier Signed-off-by: Michal Simek --- drivers/gpio/xilinx_gpio.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/gpio/xilinx_gpio.c b/drivers/gpio/xilinx_gpio.c

[U-Boot] [PATCH 02/10] configs: Move CONFIG_FEC_MXC

2018-07-30 Thread Jagan Teki
- Move CONFIG_FEC_MXC to defconfigs - Add require depends on in kconfig Signed-off-by: Jagan Teki --- Note: - On top of "[PATCH] Convert CONFIG_MII et al to Kconfig" configs/apalis_imx6_defconfig | 1 + configs/apalis_imx6_nospl_com_defconfig | 1 +

Re: [U-Boot] [PATCH] spl: fit: Enable GZIP compression also for no kernel partitions

2018-07-30 Thread Michal Simek
On 26.7.2018 18:23, York Sun wrote: > On 07/25/2018 11:52 PM, Michal Simek wrote: >> On 25.7.2018 23:18, York Sun wrote: >>> On 07/24/2018 10:58 PM, Michal Simek wrote: On 24.7.2018 18:26, York Sun wrote: > On 07/24/2018 06:07 AM, Michal Simek wrote: >> There is no reason to limit

Re: [U-Boot] [PATCH 2/2] FIT image: use compression = "none" for ramdisks

2018-07-30 Thread Wolfgang Denk
Dear Simon, In message <0787afb7-2da1-4eaa-437e-6f7c75828...@de.pepperl-fuchs.com> you wrote: > > I'd still argue that the standard example in 'multi.its' should have > compression = "none" for the ramdisks. OK, this is your position then. I can only explain where we are coming from: in the

Re: [U-Boot] [PATCH v5 8/8] armv8: ls1046a: setup SEC ICIDs and fix up device tree

2018-07-30 Thread Laurentiu Tudor
Hello, On 27.07.2018 17:00, Horia Geanta wrote: > On 7/27/2018 2:18 PM, Bharat Bhushan wrote: >> >> >>> -Original Message- >>> From: laurentiu.tu...@nxp.com [mailto:laurentiu.tu...@nxp.com] >>> Sent: Friday, July 27, 2018 3:28 PM >>> To: u-boot@lists.denx.de; Prabhakar Kushwaha >>> ; York

Re: [U-Boot] [PATCH v4 00/27] SPI-NAND support

2018-07-30 Thread Stefan Roese
Hi Miquel, Hi Jagan, On 26.07.2018 09:29, Miquel Raynal wrote: Hi Jagan, Jagan Teki wrote on Thu, 26 Jul 2018 11:00:56 +0530: On Fri, Jul 13, 2018 at 6:01 PM, Miquel Raynal wrote: During the last months, Boris Brezillon shared his work to support serial flashes within Linux. First, he

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

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

Re: [U-Boot] [PATCH] ARM: socfpga: Convert to DM serial

2018-07-30 Thread Goldschmidt Simon
On 30.07.2018 16:04, Marek Vasut wrote: On 07/30/2018 04:03 PM, Simon Goldschmidt wrote: On 12.05.2018 22:28, Marek Vasut wrote: Pull the serial port configuration from DT and use DM serial instead of having the serial configuration in two places, DT and board config. Signed-off-by: Marek

[U-Boot] [PATCH] travis: give every job a name

2018-07-30 Thread Stephen Warren
From: Stephen Warren Travis CI now supports giving jobs an explicit name. Do this for all jobs. This allows more direct control over jobs names than the previous automatic or implicit naming based on the environment variables or script text. Signed-off-by: Stephen Warren --- .travis.yml | 231

[U-Boot] [PATCH v5 00/27] SPI-NAND support

2018-07-30 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 v5 11/27] mtd: nand: Add core infrastructure to deal with NAND devices

2018-07-30 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 Acked-by: Jagan Teki --- drivers/mtd/nand/Kconfig | 3 +

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

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

2018-07-30 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 v5 08/27] mtd: move all flash categories inside MTD submenu

2018-07-30 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 v5 16/27] mtd: spinand: Add initial support for Winbond W25M02GV

2018-07-30 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 Acked-by: Jagan Teki --- drivers/mtd/nand/spi/Makefile | 2 +- drivers/mtd/nand/spi/core.c| 1 + drivers/mtd/nand/spi/winbond.c |

[U-Boot] [PATCH v5 27/27] cmd: mtdparts: try to probe the MTD devices as a fallback

2018-07-30 Thread Miquel Raynal
Current implementation of mtdparts command errors out if the desired MTD device is not found. Fallback to the new probe function in this case before erroring out. This will the save the user the need to call something like 'mtd list' before mtdparts. Signed-off-by: Miquel Raynal Acked-by: Jagan

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

2018-07-30 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 Acked-by: Jagan Teki --- drivers/mtd/nand/spi/macronix.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git

Re: [U-Boot] [PATCH v2 0/2] env: Make environment loading log more clear

2018-07-30 Thread Sam Protsenko
Hi Yaniv, On Wed, Jul 25, 2018 at 2:05 PM, Yaniv Levinsky wrote: > On 07/20/2018 06:18 PM, Sam Protsenko wrote: >> This patch series intended to make boot log better. Basically here we >> just remove unwanted error messages, relying on the message from most >> deep API to be printed (like mmc

[U-Boot] [PATCH v5 23/27] cmd: mtdparts: add a generic 'mtdparts' parser

2018-07-30 Thread Miquel Raynal
The current parser is very specific to U-Boot mtdparts implementation. It does not use MTD structures like mtd_info and mtd_partition. Write some kind of a wrapper around the current implementation to allow other commands to benefit from this parsing in a user-friendly way. This new command will

[U-Boot] [PATCH v5 24/27] cmd: mtdparts: remove useless 'mtdparts=' prefix

2018-07-30 Thread Miquel Raynal
All U-Boot users must define the mtdparts environment variable with: setenv mtdparts mtdparts=... This is a pure software limitation and is a complete non-sense. Remove this limitation but keep the backward compatibility. Signed-off-by: Miquel Raynal Acked-by: Jagan Teki --- cmd/mtdparts.c |

[U-Boot] [PATCH v3 1/2] env: Don't show "Failed" error message

2018-07-30 Thread Sam Protsenko
"Failed" error message from env_load() only clutters the log with unnecessary details, as we already have all needed warnings by that time. Example: Loading Environment from FAT... MMC: no card present ** Bad device mmc 0 ** Failed (-5) Let's only print it in case when DEBUG is

[U-Boot] [PATCH v3 2/2] disk: part: Don't show redundant error message

2018-07-30 Thread Sam Protsenko
Underlying API should already print some meaningful error message, so this one is just brings more noise. E.g. we can see log like this: MMC: no card present ** Bad device mmc 0 ** Obviously, second error message is unwanted. Let's only print it in case when DEBUG is defined to keep log

[U-Boot] [PATCH v3 0/2] env: Make environment loading log more clear

2018-07-30 Thread Sam Protsenko
This patch series intended to make boot log better. Basically here we just remove unwanted error messages, relying on the message from most deep API to be printed (like mmc subsystem). At the moment this looks like most clean solution to cluttered log problem, as any other solution will be

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

2018-07-30 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 v5 19/27] dt-bindings: Add bindings for SPI NAND devices

2018-07-30 Thread Miquel Raynal
From: Boris Brezillon Add bindings for SPI NAND chips. Signed-off-by: Boris Brezillon Signed-off-by: Miquel Raynal Acked-by: Jagan Teki --- 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

Re: [U-Boot] [PULL] efi patch queue 2018-07-25

2018-07-30 Thread Tom Rini
On Mon, Jul 30, 2018 at 06:14:16PM +0200, Alexander Graf wrote: > On 07/30/2018 06:05 PM, Simon Glass wrote: > >Hi, > > > >On 28 July 2018 at 09:55, Tom Rini wrote: > >>On Wed, Jul 25, 2018 at 03:04:27PM +0200, Alexander Graf wrote: > >> > >>>Hi Tom, > >>> > >>>This is my current patch queue for

Re: [U-Boot] [PATCH] spl: fit: Enable GZIP compression also for no kernel partitions

2018-07-30 Thread York Sun
On 07/30/2018 05:46 AM, Michal Simek wrote: >>> I am expecting when you put "none" there than you will boot in falcon >>> mode without any issue. >> >> That will work. I can put "none" for the images I don't want U-Boot to >> uncompress. > > ok. Can you please retest this patch with none and

[U-Boot] [PATCH v1 1/2] dm: serial: Replace setparity by setconfig

2018-07-30 Thread Patrice Chotard
From: Patrick Delaunay Replace setparity by more generic setconfig ops to allow uart parity, bits word length and stop bits number change. Adds SERIAL_GET_PARITY/BITS/STOP macros. Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard --- drivers/serial/serial-uclass.c | 14

[U-Boot] [PATCH v1 2/2] serial: stm32: Replace setparity by setconfig

2018-07-30 Thread Patrice Chotard
Replace stm32_serial_setparity by stm32_serial_setconfig which allows to set serial bits number, parity and stop bits number. Only parity setting is implemented. Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard --- drivers/serial/serial_stm32.c | 21 +++-- 1 file

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

2018-07-30 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 v5 03/27] mtd: Add sanity checks in mtd_write/read_oob()

2018-07-30 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 v5 25/27] mtd: uclass: add probe function

2018-07-30 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 Acked-by: Jagan Teki --- drivers/mtd/mtd-uclass.c | 9 + include/linux/mtd/mtd.h | 3 +++ 2 files changed, 12 insertions(+)

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

2018-07-30 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 1e4ea7bdd4..008f7b4b4b 100644 ---

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

2018-07-30 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 v5 14/27] mtd: nand: Add core infrastructure to support SPI NANDs

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

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

2018-07-30 Thread Simon Glass
Hi Michal, On 30 July 2018 at 07:30, Michal Simek wrote: > On 30.7.2018 15:26, Simon Glass wrote: >> Hi, >> >> On 27 July 2018 at 02:40, Chee, Tien Fong wrote: >>> >>> On Thu, 2018-07-26 at 11:03 +0200, Michal Simek wrote: On 25.7.2018 18:03, Tom Rini wrote: > > On Wed, Jul 25,

Re: [U-Boot] [PULL] efi patch queue 2018-07-25

2018-07-30 Thread Simon Glass
Hi, On 28 July 2018 at 09:55, Tom Rini wrote: > On Wed, Jul 25, 2018 at 03:04:27PM +0200, Alexander Graf wrote: > >> Hi Tom, >> >> This is my current patch queue for efi. Please pull. >> >> Alex >> >> >> The following changes since commit 323a73adc9a1bf2de43fe03bdd9c3038ce7c2784: >> >> mtd:

Re: [U-Boot] [PATCH v4 00/27] SPI-NAND support

2018-07-30 Thread Miquel Raynal
Hi Stefan, Tom, Stefan Roese wrote on Mon, 30 Jul 2018 17:11:49 +0200: > Hi Miquel, > Hi Jagan, > > On 26.07.2018 09:29, Miquel Raynal wrote: > > Hi Jagan, > > > Jagan Teki wrote on Thu, 26 Jul 2018 > > 11:00:56 +0530: > > >> On Fri, Jul 13, 2018 at 6:01 PM, Miquel Raynal > >> wrote:

[U-Boot] [PATCH v1 0/2] Replace serial setparity by setconfig

2018-07-30 Thread Patrice Chotard
This series : _ replace setparity ops by more complete setconfig in serial uclass _ replace setparity by setconfig in STM32 serial driver Patrice Chotard (1): serial: stm32: Replace setparity by setconfig Patrick Delaunay (1): dm: serial: Replace setparity by setconfig

[U-Boot] [PATCH v5 06/27] mtd: fix build issue with includes

2018-07-30 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 v5 07/27] mtd: move definitions to enlarge their range

2018-07-30 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 v5 15/27] mtd: spinand: Add initial support for Micron MT29F2G01ABAGD

2018-07-30 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 Acked-by: Jagan Teki ---

[U-Boot] [PATCH v5 20/27] mtd: declare MTD_PARTITIONS symbol in Kconfig

2018-07-30 Thread Miquel Raynal
UBI selects MTD_PARTITIONS which is the symbol to compile drivers/mtd/mtdpart.c. Unfortunately, the symbol was not defined in Kconfig and this worked only with board files defining it. Fix this by adding a boolean in Kconfig so boards defined by defconfig files only will work as expected.

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

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

[U-Boot] [PATCH v5 21/27] cmd: ubi: delete useless and misleading definitions

2018-07-30 Thread Miquel Raynal
These definitions are simply not used and are misleading because similar definitions exist in jffs2/load_kernel.h and are used widely to define MTD device types (which is, by the way, totally redundant with what the MTD core does). Remove these definitions. Signed-off-by: Miquel Raynal ---

[U-Boot] [PATCH v5 22/27] cmd: mtdparts: accept spi-nand devices

2018-07-30 Thread Miquel Raynal
Let spi-nand devices be recognized by mtdparts. This is superfluous but a full mtdparts rework would be very time-consuming. Signed-off-by: Miquel Raynal Acked-by: Jagan Teki --- cmd/mtdparts.c | 13 - include/jffs2/load_kernel.h | 7 +-- 2 files changed, 13

Re: [U-Boot] [PULL] efi patch queue 2018-07-25

2018-07-30 Thread Tom Rini
On Sun, Jul 29, 2018 at 09:42:14AM +0200, Heinrich Schuchardt wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > On 07/29/2018 03:33 AM, Tom Rini wrote: > > On Sat, Jul 28, 2018 at 11:32:56PM +0200, Heinrich Schuchardt > > wrote: > >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 >

Re: [U-Boot] [PULL] efi patch queue 2018-07-25

2018-07-30 Thread Alexander Graf
On 07/30/2018 06:05 PM, Simon Glass wrote: Hi, On 28 July 2018 at 09:55, Tom Rini wrote: On Wed, Jul 25, 2018 at 03:04:27PM +0200, Alexander Graf wrote: Hi Tom, This is my current patch queue for efi. Please pull. Alex The following changes since commit

[U-Boot] [PATCH] armv8: fsl-layerscape: Update README.falcon for compression

2018-07-30 Thread York Sun
Update README.falcon to use "none" for compression property for ramdisk image to avoid being uncompressed upon loading. Signed-off-by: York Sun --- This change is needed after merging patch http://patchwork.ozlabs.org/patch/948462/ and http://patchwork.ozlabs.org/patch/950822/

Re: [U-Boot] [PATCH 2/2] FIT image: use compression = "none" for ramdisks

2018-07-30 Thread Wolfgang Denk
Dear Simon, In message <20180730105319.79424-2-sgoldschm...@de.pepperl-fuchs.com> you wrote: > To prepare supporting compression for all image types, change > compression to "none" for ramdisks in all examples. What makes you think this is a correct thing to do? There are different approaches

Re: [U-Boot] [PATCH 3/4] gpio: xilinx: Not read output values via regs

2018-07-30 Thread Michal Simek
On 27.7.2018 10:41, Stefan Herbrechtsmeier wrote: > Am 27.07.2018 um 09:05 schrieb Michal Simek: >> On 26.7.2018 21:46, Stefan Herbrechtsmeier wrote: >>> Am 26.07.2018 um 10:41 schrieb Michal Simek: On 25.7.2018 20:21, Stefan Herbrechtsmeier wrote: > Am 25.07.2018 um 08:39 schrieb Michal

Re: [U-Boot] [PATCH] video: kconfig: remove DM_I2C dependency of I2C_EDID

2018-07-30 Thread Luis Araneda
Hi, On Wed, Jul 4, 2018 at 2:40 AM Luis Araneda wrote: > > Drop the DM_I2C dependency, as the library only implements > the parsing of EDID data and doesn't depend on any driver > > One user of this library, the i2c command, implements > support for legacy and DM I2C drivers > > Tested on a Zynq

Re: [U-Boot] [PATCH 4/4] gpio: xilinx: Simplify logic in xilinx_gpio_set_value

2018-07-30 Thread Stefan Herbrechtsmeier
Hi Michal, Am 30.07.2018 um 14:34 schrieb Michal Simek: There is no reason to do read/write for if/else separately. Reported-by: Stefan Herbrechtsmeier Signed-off-by: Michal Simek --- drivers/gpio/xilinx_gpio.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff

Re: [U-Boot] [PATCH 2/2] FIT image: use compression = "none" for ramdisks

2018-07-30 Thread Simon Goldschmidt
On 30.07.2018 15:25, Wolfgang Denk wrote: Dear Simon, In message <0787afb7-2da1-4eaa-437e-6f7c75828...@de.pepperl-fuchs.com> you wrote: I'd still argue that the standard example in 'multi.its' should have compression = "none" for the ramdisks. OK, this is your position then. I can only

Re: [U-Boot] [PATCH 3/4] gpio: xilinx: Set value before changing direction

2018-07-30 Thread Stefan Herbrechtsmeier
Am 30.07.2018 um 14:34 schrieb Michal Simek: Set a value before changing gpio direction. This will ensure that the old value is not propagated when direction has changed but new value is not written yet. Reported-by: Stefan Herbrechtsmeier Signed-off-by: Michal Simek ---

[U-Boot] [PATCH 1/2] doc: FIT image: clarify usage of "compression" property

2018-07-30 Thread Simon Goldschmidt
Compressed images should have their compression property set to "none" if U-Boot should leave them compressed. This is especially the case for compressed ramdisks that should be uncompressed by the kernel only. Signed-off-by: Simon Goldschmidt --- doc/uImage.FIT/source_file_format.txt | 4

[U-Boot] [PATCH 03/10] net: fec: Use PHY_INTERFACE_MODE_ for xcv_type

2018-07-30 Thread Jagan Teki
Use existing PHY_INTERFACE_MODE_ for xcv_type, this eventually - remove CONFIG_FEC_XCV_TYPE in DM_ETH boards since the phy interface is grabbing from DT phy-mode. - prefix PHY_INTERFACE_MODE_ for CONFIG_FEC_XCV_TYPE in non DM_ETH boards - added MII100, SEVENWIRE PHY mode Signed-off-by: Jagan

[U-Boot] [PATCH 10/10] net: fec: Setup common eth_ops code for dm and non-dm

2018-07-30 Thread Jagan Teki
Setting up common code for dm and non-dm will easy and understandable for adding new features, debugging in both the code area. Signed-off-by: Jagan Teki --- drivers/net/fec_mxc.c | 225 -- drivers/net/fec_mxc.h | 3 + 2 files changed, 108

[U-Boot] [PATCH 09/10] dm: net: fec: Add support for PHY reset

2018-07-30 Thread Jagan Teki
Add PHY reset code for DM_ETH by retrieving phy-reset-gpios and phy-reset-duration in fec node. Signed-off-by: Jagan Teki --- drivers/net/fec_mxc.c | 50 +-- drivers/net/fec_mxc.h | 7 ++ 2 files changed, 51 insertions(+), 6 deletions(-) diff --git

[U-Boot] [PATCH 0/8] i.MX: Add initial CLK support

2018-07-30 Thread Jagan Teki
This is first version for previous RFC[1] and on top of fec_mxc series [2] One of the blocking area where fec_mxc is unlikely to move dm can be CLK support, this series trying to add support for it and concentrated on ENET clocking for i.MX6QDL and i.MX6UL. Tested on i.MX6QDL For i.MX6UL, need

[U-Boot] [PATCH 7/8] imx6ul: engicam: Enable CLK_IMX

2018-07-30 Thread Jagan Teki
CLK support for imx6ul is available, so enable CLK_IMX for Engicam i.MX6UL boards. Signed-off-by: Jagan Teki --- arch/arm/mach-imx/mx6/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-imx/mx6/Kconfig b/arch/arm/mach-imx/mx6/Kconfig index 521fad74b5..388d2a2069 100644

Re: [U-Boot] [PATCH 1/2] doc: FIT image: clarify usage of "compression" property

2018-07-30 Thread Simon Goldschmidt
On 30.07.2018 13:19, Wolfgang Denk wrote: Dear Simon, In message <20180730105319.79424-1-sgoldschm...@de.pepperl-fuchs.com> you wrote: Compressed images should have their compression property set to "none" if U-Boot should leave them compressed. This is especially the case for compressed

Re: [U-Boot] [PATCH 1/2] doc: FIT image: clarify usage of "compression" property

2018-07-30 Thread Simon Goldschmidt
Dear Wolfgang, On 30.07.2018 13:46, Wolfgang Denk wrote: Dear Simon, In message <6009778b-1c55-d67b-26a5-7d9039c85...@de.pepperl-fuchs.com> you wrote: It might seem obvious to you, but given the examples had both "none" and "gzip" for ramdisk, it seems it has not been obvious for everybody.

Re: [U-Boot] [PATCH 1/2] doc: FIT image: clarify usage of "compression" property

2018-07-30 Thread Wolfgang Denk
Dear Simon, In message you wrote: > > > These may be different examples, documenting different use cases > > which do exactly what they say? > > That might well be, but given that compression in FIT images only works > for kernel sub-images up to now, I strongly doubt that. This might

[U-Boot] [PATCH 05/10] net: fec: Use PHY_ADDR instead of FEC_MXC_PHYADDR

2018-07-30 Thread Jagan Teki
- use PHY_ADDR_ENABLE and PHY_ADDR - few boards are using FEC_MXC_PHYADDR without PHYLIB enable the same. Signed-off-by: Jagan Teki --- board/compulab/cl-som-imx7/cl-som-imx7.c | 2 +- board/freescale/mx6sxsabreauto/mx6sxsabreauto.c | 3 +--

Re: [U-Boot] [PATCH 1/2] doc: FIT image: clarify usage of "compression" property

2018-07-30 Thread Simon Goldschmidt
On 30.07.2018 14:44, Wolfgang Denk wrote: Dear Simon, In message <642b8dae-f941-5255-42c7-3761e12d0...@de.pepperl-fuchs.com> you wrote: As I'm not that long with U-Boot, can you point me to a rough date of a release that I could check to see if it worked at that time? I can only

Re: [U-Boot] [PATCH] spl: fit: Enable GZIP compression also for no kernel partitions

2018-07-30 Thread Simon Goldschmidt
On 30.07.2018 10:54, Michal Simek wrote: On 26.7.2018 19:16, Tom Rini wrote: On Thu, Jul 26, 2018 at 04:23:14PM +, York Sun wrote: On 07/25/2018 11:52 PM, Michal Simek wrote: On 25.7.2018 23:18, York Sun wrote: On 07/24/2018 10:58 PM, Michal Simek wrote: On 24.7.2018 18:26, York Sun

Re: [U-Boot] [PATCH 1/2] doc: FIT image: clarify usage of "compression" property

2018-07-30 Thread Wolfgang Denk
Dear Simon, In message <6009778b-1c55-d67b-26a5-7d9039c85...@de.pepperl-fuchs.com> you wrote: > > It might seem obvious to you, but given the examples had both "none" and > "gzip" for ramdisk, it seems it has not been obvious for everybody. These may be different examples, documenting

Re: [U-Boot] [PATCH] ARM: socfpga: Convert to DM serial

2018-07-30 Thread Marek Vasut
On 07/30/2018 04:03 PM, Simon Goldschmidt wrote: > > > On 12.05.2018 22:28, Marek Vasut wrote: >> Pull the serial port configuration from DT and use DM serial instead >> of having the serial configuration in two places, DT and board config. >> >> Signed-off-by: Marek Vasut >> Cc: Chin Liang See

Re: [U-Boot] [PATCH] ARM: socfpga: Convert to DM serial

2018-07-30 Thread Simon Goldschmidt
On 12.05.2018 22:28, Marek Vasut wrote: Pull the serial port configuration from DT and use DM serial instead of having the serial configuration in two places, DT and board config. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen --- arch/arm/Kconfig

Re: [U-Boot] [PATCH v5 8/8] armv8: ls1046a: setup SEC ICIDs and fix up device tree

2018-07-30 Thread Horia Geanta
On 7/30/2018 4:58 PM, Laurentiu Tudor wrote: >> The only way to implement a *mechanism* is to provide different ICIDs for all >> the blocks. >> Any other solution would be imposing a *policy*, thus restricting user's >> possibilities. Admittedly there are use cases less "popular" than others, >>

Re: [U-Boot] [U-Boot, 1/2] snapdragon: Add DRAM detection & FDT fixup

2018-07-30 Thread Tom Rini
On Sun, Jul 22, 2018 at 09:46:05PM +0300, Ramon Fried wrote: > Fixup the Linux FDT with the detection of onboard DRAM as > provided by SBL (Secondary boot loader) by reading > the shared-memory region. > > Signed-off-by: Ramon Fried This breaks 820c and adds a warning on 410c (this is with 2/2

Re: [U-Boot] [PATCH 2/2] FIT image: use compression = "none" for ramdisks

2018-07-30 Thread Simon Goldschmidt
Dear Wolfgang, On 30.07.2018 13:45, Wolfgang Denk wrote: Dear Simon, In message <20180730105319.79424-2-sgoldschm...@de.pepperl-fuchs.com> you wrote: To prepare supporting compression for all image types, change compression to "none" for ramdisks in all examples. What makes you think this

[U-Boot] [PATCH 1/4] gpio: xilinx: Find out bank before use in xilinx_gpio_get_function()

2018-07-30 Thread Michal Simek
Call xilinx_gpio_get_bank_pin() before use. Reported-by: Stefan Herbrechtsmeier Signed-off-by: Michal Simek --- drivers/gpio/xilinx_gpio.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/xilinx_gpio.c b/drivers/gpio/xilinx_gpio.c index

[U-Boot] [PATCH 2/4] gpio: xilinx: Remove !DM driver

2018-07-30 Thread Michal Simek
There is no user for !DM driver that's why remove it. Signed-off-by: Michal Simek --- drivers/gpio/xilinx_gpio.c | 338 + 1 file changed, 2 insertions(+), 336 deletions(-) diff --git a/drivers/gpio/xilinx_gpio.c b/drivers/gpio/xilinx_gpio.c index

[U-Boot] [PATCH 04/10] net: fec: Add default CONFIG_FEC_MXC_PHYADDR for few boards

2018-07-30 Thread Jagan Teki
Usually PHYADDR is used while PHYLIB is defined, but boards like apx4devkit, mx6qarm2 are not using PHYLIB but they are using CONFIG_FEC_MXC_PHYADDR. So, future patches will convert CONFIG_FEC_MXC_PHYADDR to generic CONFIG_PHY_ADDR and that will depends on PHYLIB. Handle this special case for

[U-Boot] [PATCH 6/8] net: fec_mxc: Add clock support via CLK

2018-07-30 Thread Jagan Teki
Now enet clock support available for imx6qdl and imx6ul, via CLK framework, so add enable, set_rate support in drivers. Signed-off-by: Jagan Teki Acked-by: Joe Hershberger --- drivers/net/fec_mxc.c | 58 ++- drivers/net/fec_mxc.h | 5 2 files

[U-Boot] [PATCH 3/8] clk: imx: imx6q: Implement ENET clocks

2018-07-30 Thread Jagan Teki
Add support for ENET clock on i.MX6QDL platform. Signed-off-by: Jagan Teki Reviewed-by: Joe Hershberger --- drivers/clk/imx/clk_imx6q.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/drivers/clk/imx/clk_imx6q.c b/drivers/clk/imx/clk_imx6q.c index

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

2018-07-30 Thread Simon Glass
Hi, On 27 July 2018 at 02:40, Chee, Tien Fong wrote: > > On Thu, 2018-07-26 at 11:03 +0200, Michal Simek wrote: > > On 25.7.2018 18:03, Tom Rini wrote: > > > > > > On Wed, Jul 25, 2018 at 09:47:17AM -0600, Simon Glass wrote: > > > > > > > > Hi, > > > > > > > > On 25 July 2018 at 03:48, Michal

Re: [U-Boot] [PATCH 2/3] enable fpga loadfs

2018-07-30 Thread Simon Glass
Hi, On 27 July 2018 at 02:57, Chee, Tien Fong wrote: > On Thu, 2018-07-26 at 10:10 +0200, Marek Vasut wrote: >> On 07/26/2018 09:54 AM, tien.fong.c...@intel.com wrote: >> > >> > From: Tien Fong Chee >> > >> > Signed-off-by: Tien Fong Chee >> > --- >> > arch/arm/dts/socfpga_arria10.dtsi

Re: [U-Boot] [PATCH V2 1/4] power-domain: add dummy functions when CONFIG_POWER_DOMAIN not defined

2018-07-30 Thread Simon Glass
On 26 July 2018 at 20:20, Peng Fan wrote: > Add dummy functions when CONFIG_POWER_DOMAIN not defined. > > Signed-off-by: Peng Fan > --- > > V2: Use CONFIG_IS_ENABLED > > include/power-domain.h | 28 > 1 file changed, 28 insertions(+) Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH 3/4] gpio: xilinx: Not read output values via regs

2018-07-30 Thread Michal Simek
On 30.7.2018 15:32, Stefan Herbrechtsmeier wrote: > Am 30.07.2018 um 14:40 schrieb Michal Simek: >> On 27.7.2018 10:41, Stefan Herbrechtsmeier wrote: >>> Am 27.07.2018 um 09:05 schrieb Michal Simek: On 26.7.2018 21:46, Stefan Herbrechtsmeier wrote: > Am 26.07.2018 um 10:41 schrieb Michal

Re: [U-Boot] [U-Boot, 1/2] snapdragon: Add DRAM detection & FDT fixup

2018-07-30 Thread Ramon Fried
On July 30, 2018 2:18:17 PM GMT+03:00, Tom Rini wrote: >On Sun, Jul 22, 2018 at 09:46:05PM +0300, Ramon Fried wrote: > >> Fixup the Linux FDT with the detection of onboard DRAM as >> provided by SBL (Secondary boot loader) by reading >> the shared-memory region. >> >> Signed-off-by: Ramon Fried

[U-Boot] [PATCH 2/8] clk: Add DM CLK driver template for i.MX6QDL

2018-07-30 Thread Jagan Teki
Add DM CLK driver for iMX6QDL platform. - basic template for clk_imx6qdl.c - Kconfig support Signed-off-by: Jagan Teki --- drivers/clk/Kconfig | 1 + drivers/clk/Makefile| 1 + drivers/clk/imx/Kconfig | 18 + drivers/clk/imx/Makefile| 7

[U-Boot] [PATCH 1/8] clk: Kconfig: Ascending order to sub directiory kconfigs

2018-07-30 Thread Jagan Teki
sourcing of sub directiory kconfig files are not in proper order, so keep them in ascending order. Signed-off-by: Jagan Teki --- drivers/clk/Kconfig | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index 18bf8a6d28..a99abed9e9

[U-Boot] [PATCH 8/8] configs: icorem6_rqs: Enable CLK_IMX

2018-07-30 Thread Jagan Teki
CLK support for imx6qdl is available, so enable CLK_IMX for Engicam i.CoreM6 QDL RQS boards. Signed-off-by: Jagan Teki --- configs/imx6qdl_icore_rqs_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imx6qdl_icore_rqs_defconfig b/configs/imx6qdl_icore_rqs_defconfig index

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

2018-07-30 Thread Michal Simek
On 30.7.2018 15:26, Simon Glass wrote: > Hi, > > On 27 July 2018 at 02:40, Chee, Tien Fong wrote: >> >> On Thu, 2018-07-26 at 11:03 +0200, Michal Simek wrote: >>> On 25.7.2018 18:03, Tom Rini wrote: On Wed, Jul 25, 2018 at 09:47:17AM -0600, Simon Glass wrote: > > Hi, >

Re: [U-Boot] [PATCH 4/4] gpio: xilinx: Simplify logic in xilinx_gpio_set_value

2018-07-30 Thread Stefan Herbrechtsmeier
Am 30.07.2018 um 15:42 schrieb Michal Simek: On 30.7.2018 15:31, Stefan Herbrechtsmeier wrote: Hi Michal, Am 30.07.2018 um 14:34 schrieb Michal Simek: There is no reason to do read/write for if/else separately. Reported-by: Stefan Herbrechtsmeier Signed-off-by: Michal Simek ---  

[U-Boot] [PATCH 00/10] net: fec: Code Improvement/cleanups

2018-07-30 Thread Jagan Teki
dm code in fec_mxc has some quite few issues with mdio handling and the dm vs non-dm code in fec_mxc looks very uncomfortable to read and add new support. This series is trying to fixe all necessary issues regarding fec_mxc, along with necessary CONFIG options are moved into defconfig. Require

[U-Boot] [PATCH 01/10] configs: Drop imx27lite-common.h

2018-07-30 Thread Jagan Teki
This file not used by any config file, hence droped. Cc: Adam Ford Signed-off-by: Jagan Teki --- include/configs/imx27lite-common.h | 172 - 1 file changed, 172 deletions(-) delete mode 100644 include/configs/imx27lite-common.h diff --git

[U-Boot] [PATCH 08/10] dm: net: fec: Refactor mdio_init code

2018-07-30 Thread Jagan Teki
mdio initialization in dm code is assigning bus->priv with pointer to struct ethernet_regs which leads to improper mii. Add proper udevice to store mii_bus priv and reuse the same in mdio ops. Also refactor mdio code, to make common ops for dm and non-dm. Signed-off-by: Jagan Teki ---

Re: [U-Boot] [PATCH] spl: fit: Enable GZIP compression also for no kernel partitions

2018-07-30 Thread Michal Simek
On 30.7.2018 13:28, Simon Goldschmidt wrote: > > > On 30.07.2018 10:54, Michal Simek wrote: >> On 26.7.2018 19:16, Tom Rini wrote: >>> On Thu, Jul 26, 2018 at 04:23:14PM +, York Sun wrote: On 07/25/2018 11:52 PM, Michal Simek wrote: > On 25.7.2018 23:18, York Sun wrote: >> On

  1   2   >