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

2018-08-01 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 Va

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

2018-08-01 Thread Marek Vasut
On 08/01/2018 09:29 AM, Goldschmidt Simon wrote: > > 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 confi

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

2018-08-01 Thread Laurentiu Tudor
Hi Horia, > -Original Message- > From: Horia Geanta > > On 7/31/2018 5:53 PM, laurentiu.tu...@nxp.com wrote: > > From: Laurentiu Tudor > > > > Add support for SEC ICID configuration and apply it for ls1046a. > > Also add code to make the necessary device tree fixups. > > > > Signed-off-b

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

2018-08-01 Thread Laurentiu Tudor
Hi Bharat, > -Original Message- > From: Bharat Bhushan > > > > On 7/31/2018 5:53 PM, laurentiu.tu...@nxp.com wrote: > > > From: Laurentiu Tudor > > > > > > Add support for SEC ICID configuration and apply it for ls1046a. > > > Also add code to make the necessary device tree fixups. > > >

Re: [U-Boot] [PATCH v1 9/9] ARM: Odroid XU3: Modify Odroid XU3 config to boot by default from SD card

2018-08-01 Thread Lukasz Majewski
On Tue, 31 Jul 2018 23:40:10 +0530 Anand Moon wrote: > Hi Lukasz, > > On 27 July 2018 at 15:26, Lukasz Majewski wrote: > > On Fri, 27 Jul 2018 14:42:32 +0530 > > Anand Moon wrote: > > > >> Hi Lukasz, > >> > >> On 27 July 2018 at 13:54, Lukasz Majewski wrote: > >> > On Fri, 27 Jul 2018 08:

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

2018-08-01 Thread Miquel Raynal
Hi Jagan, Jagan Teki wrote on Wed, 1 Aug 2018 11:55:19 +0530: > On Wed, Aug 1, 2018 at 12:55 AM, Boris Brezillon > wrote: > > Hi Jagan, > > > > On Tue, 31 Jul 2018 20:03:47 +0530 > > Jagan Teki wrote: > > > >> > Applied to u-boot-spi/master > >> > >> Look like we have some build issues [1]

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

2018-08-01 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 v6 00/27] SPI-NAND support

2018-08-01 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 v6 01/27] mtd: Fallback to ->_read/write_oob() when ->_read/write() is missing

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

2018-08-01 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 v6 06/27] mtd: fix build issue with includes

2018-08-01 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 ea659c354b..8def104

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

2018-08-01 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 v6 03/27] mtd: Add sanity checks in mtd_write/read_oob()

2018-08-01 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 v6 12/27] mtd: nand: Pass mode information to nand_page_io_req

2018-08-01 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 v6 05/27] mtd: add get/set of_node/flash_node helpers

2018-08-01 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 v6 10/27] mtd: rename nand into rawnand in Kconfig prompt

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

2018-08-01 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 v6 16/27] mtd: spinand: Add initial support for Winbond W25M02GV

2018-08-01 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 | 14

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

2018-08-01 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. Documentation, README*,

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

2018-08-01 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

[U-Boot] [PATCH v6 25/27] mtd: uclass: add probe function

2018-08-01 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 v6 14/27] mtd: nand: Add core infrastructure to support SPI NANDs

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

2018-08-01 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 + driv

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

2018-08-01 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. Signed-o

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

2018-08-01 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 --- drivers/mtd/nand

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

2018-08-01 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 Acked-by:

[U-Boot] [PATCH v6 19/27] dt-bindings: Add bindings for SPI NAND devices

2018-08-01 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 diff

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

2018-08-01 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 a/dri

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

2018-08-01 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 | 1

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

2018-08-01 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 a

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

2018-08-01 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 insert

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

2018-08-01 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 v6 27/27] cmd: mtdparts: try to probe the MTD devices as a fallback

2018-08-01 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 v6 26/27] cmd: mtd: add 'mtd' command

2018-08-01 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] openrd: Once again shrink binary size

2018-08-01 Thread Chris Packham
On Fri, Jul 27, 2018 at 11:59 PM Tom Rini wrote: > > With some recent changes to relevant drivers here the openrd board > (openrd_client in this case) does not fit within its size constraint. > We can however drop the slightly extended baudrate table and then the > duplication of mtdparts/mtdids i

[U-Boot] [PATCH] net: fman: Support both new and legacy FMan Compatibles

2018-08-01 Thread Zhao Qiang
Recently the FMan Port and MAC compatibles were changed. This patch aligns the FMan Port and MAC compatibles to the new FMan device tree binding document. The FMan device tree binding document can be found in the Linux kernel: ./Documentation/devicetree/bindings/net/fsl-fman.txt This patch doesn'

[U-Boot] Converting to SPL_OF_CONTROL

2018-08-01 Thread Alex Kiernan
I've long been trying to convert our board (AM3352) to all DM, after knocking out lots of problems, I've run into one I can't seem to configure my way around, when I enable SPL_OF_CONTROL. We have MMC2 as our boot device, with no MMC1 (and hence not present in the DTB). Once we're into full U-Boot

Re: [U-Boot] xyz-modem: Change getc timeout loop waiting

2018-08-01 Thread Alexander Sverdlin
Hi! On Wed, 1 Aug 2018 08:44:13 +0300 Tomas Melin wrote: > > This commit breaks YMODEM SPL->U-Boot boot on Beagle Bone, > > transfer is aborted (because of timeout) after 497kb > > (u-boot.img is around 570kb). > > Reverting the commit repairs YMODEM boot. > > Is the timeout a watchdog timeout

[U-Boot] [PATCH] Corrected checksum failure handling of FDT within FIT image

2018-08-01 Thread Patz, Heiko
Hello, I have observed, that if you have a corrupted FDT within a FIT image, then the error handling is not correct and you will fail to 'hang()'. To allow an error handling within scripts, the return value of the calling function 'fit_image_load()' has to be checked for negative values. On err

[U-Boot] [PATCH] ram: stm32_sdram: Adds stm32f746-disco fix for HardFault at booting

2018-08-01 Thread Mark Olsson
- changes ram start address to 0xC000 Signed-off-by: Mark Olsson Cc: Vipin Kumar --- include/configs/stm32f746-disco.h | 2 ++ 1 file changed, 2 insertions(+) mode change 100644 => 100755 include/configs/stm32f746-disco.h diff --git a/include/configs/stm32f746-disco.h b/include/configs/s

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

2018-08-01 Thread Tom Rini
On Tue, Jul 31, 2018 at 11:41:50PM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this PR. > > thanks, > Jagan. > > The following changes since commit 5a0007d481c0fcd2d422dd48b2a129dd8e8a272a: > > Prepare v2017.09-rc1 (2018-07-30 21:47:29 -0400) > > are available in the Git repository a

Re: [U-Boot] [PATCH] openrd: Once again shrink binary size

2018-08-01 Thread Tom Rini
On Wed, Aug 01, 2018 at 08:40:18PM +1200, Chris Packham wrote: > On Fri, Jul 27, 2018 at 11:59 PM Tom Rini wrote: > > > > With some recent changes to relevant drivers here the openrd board > > (openrd_client in this case) does not fit within its size constraint. > > We can however drop the slight

Re: [U-Boot] [PATCH v2 1/3] efi: Fix truncation of constant value

2018-08-01 Thread Eugeniu Rosca
Hello Tom, Simon, Alexander, Heinrich, On Wed, Jul 25, 2018 at 03:30:16PM +0200, Eugeniu Rosca wrote: > Hello Alexander, > > Heinrich was kind to have a look at [1] and already provided his > Reviewed-by. Could you please state your further expectations to accept > the patches? > > [1] https://p

Re: [U-Boot] Converting to SPL_OF_CONTROL

2018-08-01 Thread Johann Neuhauser
Hello Alex, have you tried to set "u-boot,spl-boot-order" in choosen node? Take a look into: doc/device-tree-bindings/chosen.txt Best regards Johann Neuhauser -Ursprüngliche Nachricht- Von: U-Boot [mailto:u-boot-boun...@lists.denx.de] Im Auftrag von Alex Kiernan Gesendet: Mittwoch, 1.

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

2018-08-01 Thread Jagan Teki
On Wed, Aug 1, 2018 at 4:43 PM, Tom Rini wrote: > On Tue, Jul 31, 2018 at 11:41:50PM +0530, Jagan Teki wrote: > >> Hi Tom, >> >> Please pull this PR. >> >> thanks, >> Jagan. >> >> The following changes since commit 5a0007d481c0fcd2d422dd48b2a129dd8e8a272a: >> >> Prepare v2017.09-rc1 (2018-07-30

[U-Boot] Two CRC32 implementation in U-Boot, why?

2018-08-01 Thread Bin Meng
Hi, Currently it seems that we have two CRC32 implementation in U-Boot. Two headers files are provided. 1. include/linux/crc32.h The implementation is drivers/mtd/ubi/crc32.c. Codes that use this implementation include: drivers/mtd/ubi/* drivers/mtd/ubispl/* fs/ubifs/* 2. include/u-boot/crc.h T

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

2018-08-01 Thread Chen-Yu Tsai
On Wed, Aug 1, 2018 at 7:47 PM, Jagan Teki wrote: > On Wed, Aug 1, 2018 at 4:43 PM, Tom Rini wrote: >> On Tue, Jul 31, 2018 at 11:41:50PM +0530, Jagan Teki wrote: >> >>> Hi Tom, >>> >>> Please pull this PR. >>> >>> thanks, >>> Jagan. >>> >>> The following changes since commit 5a0007d481c0fcd2d422

[U-Boot] [PATCH v2 0/8] ARM: Odroid XU3: Enable DM_MMC support which is necessary for CONFIG_BLK

2018-08-01 Thread Lukasz Majewski
This patch series provides following improvements to Odroid XU3: - Fix sdr_timing problem with DW_MMC running with DM - Clean up the defconfig file - Fix potential memory leak when running under DM (DW_MMC) - Rebase on newest ML - Remove the patch, which add support for booting only from SD card Tr

[U-Boot] [PATCH v2 1/8] ARM: dw_mmc: Exclude dwmci Exynos priv_data allocation from exynos_dwmci_get_config()

2018-08-01 Thread Lukasz Majewski
This commit prevents memory leak when this function is used with DM_MMC as the struct dwmci_exynos_priv_data is already allocated by DM. It is necessary for NON DM aware devices to allocate this struct first. Signed-off-by: Lukasz Majewski Tested-by: Anand Moon --- Changes in v2: - Add tested

[U-Boot] [PATCH v2 2/8] ARM: Odroid XU3: config: Disable SDHCI support in the Odroid XU3

2018-08-01 Thread Lukasz Majewski
The Exynos5422 is solely using DW MMC IP block to support eMMC/SD devices, hence the SDHCI code doesn't need to be compiled it. Signed-off-by: Lukasz Majewski Tested-by: Anand Moon --- Changes in v2: - Add tested-by - Rebase on the newest main line configs/odroid-xu3_defconfig | 2 -- 1 file

[U-Boot] [PATCH v2 5/8] ARM: Odroid XU3: Adjust BOOT_TARGET_DEVICES to allow booting from SD card (mmc2)

2018-08-01 Thread Lukasz Majewski
This change is necessary to allow booting the Odroid XU3 from SD card after enabling the DM_MMC support. After this change the SD card mmc IP block is correctly enumerated as mmc2 (and not as mmc1 as in the legacy code). Signed-off-by: Lukasz Majewski Tested-by: Anand Moon --- Changes in v2:

[U-Boot] [PATCH v2 3/8] ARM: Odroid XU3: Enable driver model support for MMC (DM_MMC)

2018-08-01 Thread Lukasz Majewski
This commit enables support for DW_MMC running with driver model. Signed-off-by: Lukasz Majewski Tested-by: Anand Moon --- Changes in v2: - Add tested-by - Rebase on the newest main line configs/odroid-xu3_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/odroid-xu3_defco

[U-Boot] [PATCH v2 6/8] ARM: Odroid XU3: MAINTAINERS: Add a co-maintainer for OdroidXU3

2018-08-01 Thread Lukasz Majewski
Signed-off-by: Lukasz Majewski Tested-by: Anand Moon --- Changes in v2: - Add tested-by - Rebase on the newest main line board/samsung/smdk5420/MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/board/samsung/smdk5420/MAINTAINERS b/board/samsung/smdk5420/MAINTAINERS index 590a11

[U-Boot] [PATCH v2 8/8] ARM: Odroid XU3: Modify exynos dw_mmc driver to support Odroid XU3 in DM MMC

2018-08-01 Thread Lukasz Majewski
This commit enables support for Exynos Designware MMC driver based on DM. Signed-off-by: Lukasz Majewski Tested-by: Anand Moon --- Changes in v2: - Add tested-by - Rebase on the newest main line drivers/mmc/exynos_dw_mmc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/exyno

[U-Boot] [PATCH v2 4/8] ARM: Odroid XU3: Fix autoboot.cmd to use ${mmcbootdev} instead of hardcoded 0

2018-08-01 Thread Lukasz Majewski
This commit adjusts the autoboot.cmd file to use ${mmcbootdev} instead of hardcoded value 0. This is necessary to allow booting this board from the SD card. Signed-off-by: Lukasz Majewski Tested-by: Anand Moon --- Changes in v2: - Add tested-by - Rebase on the newest main line board/samsung

[U-Boot] [PATCH v2 7/8] ARM: Odroid XU3: Fix the dwmci_exynos *priv data assignment for DM_MMC (sdr_timing)

2018-08-01 Thread Lukasz Majewski
By convention for DM_MMC the host->priv is used to store struct udevice *dev pointer. Unfortunately, the legacy Exynos DW MMC code uses this field to store pointer to dwmci_exynos_priv_data struct Hence, we do need to get data in other way - namely by using container_of when host pointer is presen

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

2018-08-01 Thread Tom Rini
On Wed, Aug 01, 2018 at 08:43:17PM +0800, Chen-Yu Tsai wrote: > On Wed, Aug 1, 2018 at 7:47 PM, Jagan Teki wrote: > > On Wed, Aug 1, 2018 at 4:43 PM, Tom Rini wrote: > >> On Tue, Jul 31, 2018 at 11:41:50PM +0530, Jagan Teki wrote: > >> > >>> Hi Tom, > >>> > >>> Please pull this PR. > >>> > >>> th

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

2018-08-01 Thread Anatolij Gustschin
On Mon, 30 Jul 2018 09:11:31 -0400 Luis Araneda luaran...@gmail.com wrote: > 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 librar

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

2018-08-01 Thread Chen-Yu Tsai
On Wed, Aug 1, 2018 at 8:55 PM, Tom Rini wrote: > On Wed, Aug 01, 2018 at 08:43:17PM +0800, Chen-Yu Tsai wrote: >> On Wed, Aug 1, 2018 at 7:47 PM, Jagan Teki >> wrote: >> > On Wed, Aug 1, 2018 at 4:43 PM, Tom Rini wrote: >> >> On Tue, Jul 31, 2018 at 11:41:50PM +0530, Jagan Teki wrote: >> >> >>

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

2018-08-01 Thread Tom Rini
On Wed, Aug 01, 2018 at 08:58:10PM +0800, Chen-Yu Tsai wrote: > On Wed, Aug 1, 2018 at 8:55 PM, Tom Rini wrote: > > On Wed, Aug 01, 2018 at 08:43:17PM +0800, Chen-Yu Tsai wrote: > >> On Wed, Aug 1, 2018 at 7:47 PM, Jagan Teki > >> wrote: > >> > On Wed, Aug 1, 2018 at 4:43 PM, Tom Rini wrote: >

Re: [U-Boot] [PATCH] efi_loader: don't allocate unusable RAM

2018-08-01 Thread Peter Robinson
>>> On 07/31/2018 02:03 PM, Alexander Graf wrote: > > Am 31.07.2018 um 21:44 schrieb Stephen Warren : > > From: Stephen Warren > > Some boards define a maximum usable RAM top that's more restrictive > than > the ranges defined by U-Boot's memory bank definitions[1].

[U-Boot] [PATCH] SPL: fit signature: don´t strip off signature node and sub nodes from dtb

2018-08-01 Thread Johann Neuhauser
Hello, I have implemented verified boot in SPL and build my SPL image with "make EXT_DTB=/path/to/dtb/with/embedded/pub-key SPL". In the build process all nodes except chosen and config are stripped off for SPL and TPL builds. Don´t know if this is a good behavior to remove everything except th

Re: [U-Boot] Converting to SPL_OF_CONTROL

2018-08-01 Thread Alex Kiernan
On Wed, Aug 1, 2018 at 12:30 PM Johann Neuhauser wrote: > > Hello Alex, > > have you tried to set "u-boot,spl-boot-order" in choosen node? > > Take a look into: > doc/device-tree-bindings/chosen.txt > Thanks, I totally failed to see that. Let me have an investigate! > Best regards > > Johann Ne

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

2018-08-01 Thread Peter Robinson
On Tue, Jul 10, 2018 at 4:04 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 EHCI error > messages, I'm thinking it might be related to the USB changes lately. > Not sure if any other SoCs (ex. A6

Re: [U-Boot] Two CRC32 implementation in U-Boot, why?

2018-08-01 Thread Heinrich Schuchardt
On 08/01/2018 02:13 PM, Bin Meng wrote: > Hi, > > Currently it seems that we have two CRC32 implementation in U-Boot. > Two headers files are provided. > > 1. include/linux/crc32.h > The implementation is drivers/mtd/ubi/crc32.c. > Codes that use this implementation include: > > drivers/mtd/ub

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

2018-08-01 Thread Simon Glass
Hi Patrice, On 31 July 2018 at 07:53, Patrice CHOTARD wrote: > > Hi Simon > > On 07/31/2018 01:52 PM, Simon Glass wrote: > > Hi Patrice, > > > > On 30 July 2018 at 09:23, Patrice Chotard wrote: > >> From: Patrick Delaunay > >> > >> Replace setparity by more generic setconfig ops > >> to allow u

Re: [U-Boot] Please pull u-boot-mpc85xx master

2018-08-01 Thread Tom Rini
On Tue, Jul 31, 2018 at 05:25:52PM +, York Sun wrote: > Tom, > > The following changes since commit 2547e91dc15e5203e15d4ebde9172174743b14a7: > > tegra: Indicate that binman makes all three output files (2018-07-26 > 15:49:40 -0400) > > are available in the git repository at: > > git:/

Re: [U-Boot] Please pull ARC changes or 2018.09-rc2

2018-08-01 Thread Tom Rini
On Tue, Jul 31, 2018 at 04:59:33AM +, Alexey Brodkin wrote: > Hi Tom, > > The following changes since commit 5a0007d481c0fcd2d422dd48b2a129dd8e8a272a: > > Prepare v2017.09-rc1 (2018-07-30 21:47:29 -0400) > > are available in the Git repository at: > > git://git.denx.de/u-boot-arc.git t

Re: [U-Boot] [ v2 02/10] video: stm32: stm32_ltdc: add bridge to display controller

2018-08-01 Thread Anatolij Gustschin
On Fri, 13 Jul 2018 14:11:10 +0200 Yannick Fertré yannick.fer...@st.com wrote: > 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 ins

Re: [U-Boot] Converting to SPL_OF_CONTROL

2018-08-01 Thread Alex Kiernan
Hi Johann On Wed, Aug 1, 2018 at 2:18 PM Alex Kiernan wrote: > > On Wed, Aug 1, 2018 at 12:30 PM Johann Neuhauser > wrote: > > > > Hello Alex, > > > > have you tried to set "u-boot,spl-boot-order" in choosen node? > > > > Take a look into: > > doc/device-tree-bindings/chosen.txt > > > > Thanks,

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

2018-08-01 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 --- Changes in v2: - Update stm32_serial_setconfig prototype drive

[U-Boot] [PATCH v2 3/3] sandbox: Add serial test

2018-08-01 Thread Patrice Chotard
Signed-off-by: Patrice Chotard --- Changes in v2: - Add sandbox serial test drivers/serial/sandbox.c | 14 ++ include/common.h | 1 + test/dm/Makefile | 1 + test/dm/serial.c | 26 ++ 4 files changed, 42 insertions(+) create mode

[U-Boot] [PATCH v2 0/3] Replace serial setparity by setconfig

2018-08-01 Thread Patrice Chotard
This series : - replace setparity ops by more complete setconfig in serial uclass - replace setparity by setconfig in STM32 serial driver Changes in v2: - Update SERIAL_BITS_MASK and SERIAL_STOP_MASK - Update serial_setconfig prototype - Update stm32_serial_setconfig prototype - Add s

[U-Boot] [PATCH v2 1/3] dm: serial: Replace setparity by setconfig

2018-08-01 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 --- Changes in v2: - Update SERIAL_BITS_MASK an

Re: [U-Boot] [ v2 01/10] dm: panel: get timings from panel

2018-08-01 Thread Anatolij Gustschin
On Fri, 13 Jul 2018 14:11:09 +0200 Yannick Fertré yannick.fer...@st.com wrote: > 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

Re: [U-Boot] [PATCH] efi_loader: don't allocate unusable RAM

2018-08-01 Thread Stephen Warren
On 08/01/2018 12:07 AM, Heinrich Schuchardt wrote: On 07/31/2018 09:44 PM, Stephen Warren wrote: From: Stephen Warren Some boards define a maximum usable RAM top that's more restrictive than the ranges defined by U-Boot's memory bank definitions[1]. In this case, the unusable RAM isn't mapped

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

2018-08-01 Thread Marek Vasut
On 08/01/2018 05:42 PM, Simon Goldschmidt wrote: > > > Marek Vasut mailto:ma...@denx.de>> schrieb am Mi., 1. > Aug. 2018, 09:35: > > On 08/01/2018 09:29 AM, Goldschmidt Simon wrote: > > > > On 30.07.2018 16:04, Marek Vasut wrote: > >> On 07/30/2018 04:03 PM, Simon Goldschmidt wro

[U-Boot] [PATCH v1 0/5] Add get_function_number ops

2018-08-01 Thread Patrice Chotard
This series : - Add new gpio ops get_function_number - Add get_function and get_function_number support to stm32 gpio driver - Add get_function_number test Christophe Kerello (1): gpio: stm32f7: Add ops get_function Patrice Chotard (2): gpio: sandbox: Rename GPIOF_(OUTPUT|HIGH|ODR) to

[U-Boot] [PATCH v1 1/5] dm: gpio: Add get_function_number ops

2018-08-01 Thread Patrice Chotard
From: Patrick Delaunay When a pin is not configured as a GPIO, it could have several alternate function. To be able to identify the alternate function, add ops get_function_number() to request the pin function index from the driver when pin is not used as gpio. Signed-off-by: Patrick Delaunay

[U-Boot] [PATCH v1 2/5] gpio: stm32f7: Add ops get_function

2018-08-01 Thread Patrice Chotard
From: Christophe Kerello This patch adds gpio get_function ops support. This function reports the state of a gpio. Signed-off-by: Christophe Kerello Signed-off-by: Patrice Chotard --- drivers/gpio/stm32f7_gpio.c | 20 1 file changed, 20 insertions(+) diff --git a/driver

[U-Boot] [PATCH v1 4/5] gpio: sandbox: Rename GPIOF_(OUTPUT|HIGH|ODR) to SDBX_GPIO_(OUTPUT|HIGH|ODR)

2018-08-01 Thread Patrice Chotard
To avoid confusion with enum gpio_func_t GPIOF_OUTPUT defined in asm-generic/gpio.h, rename all sandbox flags GPIOF_(OUTPUT|HIGH|ODR) to SDBX_GPIO_(OUTPUT|HIGH|ODR) Signed-off-by: Patrice Chotard --- drivers/gpio/sandbox.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deleti

[U-Boot] [PATCH v1 3/5] gpio: stm32f7: Add ops get_function_number

2018-08-01 Thread Patrice Chotard
From: Patrick Delaunay Allow to display function number using "gpio" command. Example, display all gpio state : gpio status -a GPIOD2: func: 12 GPIOD3: func: 9 GPIOE3: func: 9 GPIOG6: func: 10 It's useful to control pin configuration Signed-off-by: Patrick Delaunay Signed-off-by: Patr

[U-Boot] [PATCH v1 5/5] test: dm: Add gpio get_function_number ops test

2018-08-01 Thread Patrice Chotard
In order to test get_function_number ops, add sandbox_gpio_set_function() and sandbox_gpio_set_function_number() to be able to configure a pin not as a GPIO and to select the function number. Signed-off-by: Patrice Chotard --- arch/sandbox/include/asm/gpio.h | 23 +++ driver

Re: [U-Boot] [PATCH v3 1/6] drivers: Add OSD uclass

2018-08-01 Thread Anatolij Gustschin
Hi Mario, On Tue, 26 Jun 2018 13:28:49 +0200 Mario Six mario@gdsys.cc wrote: ... > --- > drivers/video/Kconfig| 8 ++ > drivers/video/Makefile | 2 +- > drivers/video/video_osd-uclass.c | 45 + > include/dm/uclass-id.h | 1 + > include/video_osd.

Re: [U-Boot] [PATCH v3 2/6] video_osd: Add ihs_video_out driver

2018-08-01 Thread Anatolij Gustschin
On Tue, 26 Jun 2018 13:28:50 +0200 Mario Six mario@gdsys.cc wrote: ... > --- > .../video/osd/gdsys,ihs_video_out.txt | 23 ++ > drivers/video/Kconfig | 9 + > drivers/video/Makefile | 1 + > drivers/video/ihs_video_out.

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

2018-08-01 Thread Stefan Herbrechtsmeier
Am 30.07.2018 um 10:00 schrieb Michal Simek: On 27.7.2018 11:14, Stefan Herbrechtsmeier wrote: Am 27.07.2018 um 08:42 schrieb Michal Simek: On 26.7.2018 22:04, Stefan Herbrechtsmeier wrote: Am 26.07.2018 um 10:22 schrieb Michal Simek: On 25.7.2018 21:17, Stefan Herbrechtsmeier wrote: Am 25.0

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

2018-08-01 Thread Stefan Herbrechtsmeier
Am 30.07.2018 um 21:34 schrieb Stefan Herbrechtsmeier: Am 30.07.2018 um 16:10 schrieb 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

[U-Boot] Problem booting uImage with u-boot

2018-08-01 Thread Saeed Abdoli
Hello I am working on a project in which I need to boot a customized linux kernel on my board. The board components are stm32f429 processor, 8Mbyte SDRAM and 32Mbyte flash memory which are connected to the processer via FMC. I've booted u-boot on the internal flash of the processor and I've install

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

2018-08-01 Thread Simon Goldschmidt
Marek Vasut schrieb am Mi., 1. Aug. 2018, 09:35: > On 08/01/2018 09:29 AM, Goldschmidt Simon wrote: > > > > 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 f

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

2018-08-01 Thread Simon Glass
Hi Tom. On 31 July 2018 at 06:42, Tom Rini wrote: > > On Mon, Jul 30, 2018 at 02:10:44PM -0600, Simon Glass wrote: > > > Hi Tom, > > > > Here are the binman changes, with the rename of the 'pos' property to > > 'offset'. > > > > > > The following changes since commit 0e8a8a311020d317fcfcf594e8e3

Re: [U-Boot] Problem booting uImage with u-boot

2018-08-01 Thread Michael Nazzareno Trimarchi
Hi On Wed, Aug 1, 2018 at 8:47 PM, Saeed Abdoli wrote: > Hello > I am working on a project in which I need to boot a customized linux kernel > on my board. The board components are stm32f429 processor, 8Mbyte SDRAM and > 32Mbyte flash memory which are connected to the processer via FMC. I've > bo

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

2018-08-01 Thread Tom Rini
On Wed, Aug 01, 2018 at 12:50:57PM -0600, Simon Glass wrote: > Hi Tom. > > On 31 July 2018 at 06:42, Tom Rini wrote: > > > > On Mon, Jul 30, 2018 at 02:10:44PM -0600, Simon Glass wrote: > > > > > Hi Tom, > > > > > > Here are the binman changes, with the rename of the 'pos' property to > > > 'off

Re: [U-Boot] Problem booting uImage with u-boot

2018-08-01 Thread Michael Nazzareno Trimarchi
Hi On Wed, Aug 1, 2018 at 9:08 PM, Saeed Abdoli wrote: > Hi Michael > Thank you for your quick response. > Can you please tell me how to solve the problem. Where can I change the > relocation address, in kernel config or somewhere else? > If you not top-post and keep it posted it's better. What

[U-Boot] [PATCH v2 02/29] binman: Rename 'position' to 'offset'

2018-08-01 Thread Simon Glass
After some thought, I believe there is an unfortunate naming flaw in binman. Entries have a position and size, but now that we support hierarchical sections it is unclear whether a position should be an absolute position within the image, or a relative position within its parent section. At presen

[U-Boot] [PATCH v2 07/29] binman: Add a new 'image-pos' property

2018-08-01 Thread Simon Glass
At present each entry has an offset within its parent section. This is useful for figuring out how entries relate to one another. However it is sometimes necessary to locate an entry within an image, regardless of which sections it is nested inside. Add a new 'image-pos' property to provide this i

Re: [U-Boot] [PATCH v3 03/13] regmap: Add documentation

2018-08-01 Thread Anatolij Gustschin
On Tue, 31 Jul 2018 12:01:00 +0200 Mario Six mario@gdsys.cc wrote: > Document the regmap_alloc() function. > > Signed-off-by: Mario Six Reviewed-by: Anatolij Gustschin ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-

Re: [U-Boot] [PATCH v3 01/13] test: regmap: Increase size of syscon0 memory

2018-08-01 Thread Anatolij Gustschin
On Tue, 31 Jul 2018 12:00:58 +0200 Mario Six mario@gdsys.cc wrote: > The upcoming changes to the regmap interface will contain a proper check > for plausibility when reading/writing from/to a register map. To still > have the current tests pass, increase the size of the memory region for > the

Re: [U-Boot] [PATCH v3 02/13] regmap: Fix documentation

2018-08-01 Thread Anatolij Gustschin
On Tue, 31 Jul 2018 12:00:59 +0200 Mario Six mario@gdsys.cc wrote: > The documentation in regmap.h is not in kernel-doc format. Correct this. > > Signed-off-by: Mario Six Reviewed-by: Anatolij Gustschin ___ U-Boot mailing list U-Boot@lists.denx.d

Re: [U-Boot] [PATCH v3 04/13] regmap: Improve error handling

2018-08-01 Thread Anatolij Gustschin
On Tue, 31 Jul 2018 12:01:01 +0200 Mario Six mario@gdsys.cc wrote: > ofnode_read_simple_addr_cells may fail and return a negative error code. > Check for this when initializing regmaps. > > Also check if both_len is zero, since this is perfectly possible, and > would lead to a division-by-zer

Re: [U-Boot] [PATCH v3 05/13] regmap: Introduce init_range

2018-08-01 Thread Anatolij Gustschin
On Tue, 31 Jul 2018 12:01:02 +0200 Mario Six mario@gdsys.cc wrote: > Both fdtdec_get_addr_size_fixed and of_address_to_resource can fail with > an error, which is not currently checked during regmap initialization. > > Since the indentation depth is already quite deep, extract a new > 'init_r

  1   2   >