Re: [U-Boot] [PATCH] sf: ensure flash device is in 3-byte address mode

2018-05-18 Thread Simon Goldschmidt
On 14.05.2018 09:47, Simon Goldschmidt wrote: On 14.05.2018 09:22, Jagan Teki wrote: On Mon, May 14, 2018 at 12:34 PM, Simon Goldschmidt wrote: + Marek for the socfpga platform, see below On 07.12.2017 06:49, Jagan Teki wrote: On Tue, Dec 5, 2017 at 11:50 AM, Goldschmidt Simon wrote:

Re: [U-Boot] IMX6 NAND booting failure

2018-05-18 Thread Lukasz Majewski
Hi Rasheed, > Hi, > I am working on VAR-SOM-MX6 SOC. I'm trying to boot a custom SPL from > NAND. After programming NAND with custom SPL, system goes to serial > downloader mode. I have taken the ROM code buffer log (also attached > below). It shows that authentication fails. My boot security sett

[U-Boot] [PATCH v2 00/16] Add Intel Stratix 10 SoC support

2018-05-18 Thread Ley Foon Tan
This is 2nd version of patchset to adds support for Intel Stratix 10 SoC. This patchset is work on top of patchset in [1]. Changes: - update base addresses header - use reset framework for periperhals (16550 UART, MMC, EMAC) - change to use serial DM driver - move bridge command to misc common dri

[U-Boot] [PATCH v2 02/16] arm: socfpga: stratix10: Add clock manager driver for Stratix10 SoC

2018-05-18 Thread Ley Foon Tan
Add Clock Manager driver support for Stratix SoC Signed-off-by: Chin Liang See Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/Makefile |4 + arch/arm/mach-socfpga/clock_manager.c |4 +- arch/arm/mach-socfpga/clock_manager_s10.c | 380 +++

[U-Boot] [PATCH v2 01/16] arm: socfpga: stratix10: Add watchdog and firewall base addresses

2018-05-18 Thread Ley Foon Tan
Add the base address for watchdog and firewall. Signed-off-by: Chin Liang See Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/include/mach/base_addr_s10.h | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-socfpga/include/mach/base_addr_s10.h

[U-Boot] [PATCH v2 03/16] arm: socfpga: stratix10: Add reset manager driver for Stratix10 SoC

2018-05-18 Thread Ley Foon Tan
Add Reset Manager driver support for Stratix SoC Signed-off-by: Chin Liang See Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/Makefile |1 + arch/arm/mach-socfpga/include/mach/reset_manager.h |2 + .../mach-socfpga/include/mach/reset_manager_s10.h | 116

[U-Boot] [PATCH v2 05/16] arm: socfpga: misc: Add CONFIG_SYS_L2_PL310 switch

2018-05-18 Thread Ley Foon Tan
Preparation for Stratix 10 enablement. In ARM64, L2 cache controller is accessed through processor registers. So, add CONFIG_SYS_L2_PL310 switch conditional build in order this file can by shared across other SOCFPGAs. Signed-off-by: Chin Liang See Signed-off-by: Ley Foon Tan --- arch/arm/mach-

[U-Boot] [PATCH v2 06/16] arm: socfpga: misc: Move bridge command to misc common

2018-05-18 Thread Ley Foon Tan
Move bridge command to misc common driver, in preparation to used by other platforms. Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/include/mach/misc.h |2 + arch/arm/mach-socfpga/misc.c | 31 + arch/arm/mach-socfpga/misc_gen5.c |

[U-Boot] [PATCH v2 04/16] arm: socfpga: stratix10: Add pinmux support for Stratix10 SoC

2018-05-18 Thread Ley Foon Tan
Add pinmux driver support for Stratix SoC Signed-off-by: Chin Liang See Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/Makefile |2 + .../arm/mach-socfpga/include/mach/system_manager.h |5 +- .../mach-socfpga/include/mach/system_manager_s10.h | 176 ++

[U-Boot] [PATCH v2 08/16] arm: socfpga: stratix10: Add mailbox support for Stratix10 SoC

2018-05-18 Thread Ley Foon Tan
Add mailbox support for Stratix SoC Signed-off-by: Ley Foon Tan Signed-off-by: Chin Liang See --- arch/arm/mach-socfpga/Makefile |1 + arch/arm/mach-socfpga/include/mach/mailbox_s10.h | 144 arch/arm/mach-socfpga/mailbox_s10.c | 380

[U-Boot] [PATCH v2 07/16] arm: socfpga: stratix10: Add misc support for Stratix10 SoC

2018-05-18 Thread Ley Foon Tan
Add misc support such as EMAC and cpu info printout for Stratix SoC Signed-off-by: Chin Liang See Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/Makefile |1 + arch/arm/mach-socfpga/misc_s10.c | 133 ++ 2 files changed, 134 insertions(+), 0 dele

[U-Boot] [PATCH v2 09/16] arm: socfpga: stratix10: Add MMU support for Stratix10 SoC

2018-05-18 Thread Ley Foon Tan
Add MMU memory mapping table for Stratix SoC. Signed-off-by: Chin Liang See Signed-off-by: Ley Foon Tan Acked-by: Marek Vasut --- arch/arm/mach-socfpga/Makefile|1 + arch/arm/mach-socfpga/mmu-arm64_s10.c | 71 + 2 files changed, 72 insertions(+), 0

[U-Boot] [PATCH v2 12/16] arm: socfpga: stratix10: Add timer support for Stratix10 SoC

2018-05-18 Thread Ley Foon Tan
Add timer support for Stratix SoC Signed-off-by: Chin Liang See Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/Makefile|4 +++- arch/arm/mach-socfpga/timer_s10.c | 26 ++ 2 files changed, 29 insertions(+), 1 deletions(-) create mode 100644 arch/arm/mach

[U-Boot] [PATCH v2 16/16] arm: socfpga: stratix10: Enable Stratix10 SoC build

2018-05-18 Thread Ley Foon Tan
Add build support for Stratix SoC Signed-off-by: Chin Liang See Signed-off-by: Ley Foon Tan --- arch/arm/Kconfig |9 +- arch/arm/mach-socfpga/Kconfig | 16 ++ configs/socfpga_stratix10_defconfig | 58 include/configs/socfpga_stratix10_

[U-Boot] [PATCH v2 10/16] arm: socfpga: Restructure the SPL file

2018-05-18 Thread Ley Foon Tan
Restructure the SPL so each devices such as CV, A10 and S10 will have their own dedicated SPL file. SPL file determine the HW initialization flow which is device specific Signed-off-by: Chin Liang See Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/Makefile |5 +- arch/ar

[U-Boot] [PATCH v2 14/16] board: altera: stratix10: Add socdk board support for Stratix10 SoC

2018-05-18 Thread Ley Foon Tan
Add socdk board support for Stratix SoC Signed-off-by: Chin Liang See Signed-off-by: Ley Foon Tan --- board/altera/stratix10-socdk/MAINTAINERS |7 +++ board/altera/stratix10-socdk/Makefile|7 +++ board/altera/stratix10-socdk/socfpga.c |7 +++ 3 files changed, 21 in

[U-Boot] [PATCH v2 15/16] arm: dts: socfpga: stratix10: update dtsi and dts

2018-05-18 Thread Ley Foon Tan
Update dtsi and dts files for resets, phy node and other properties. Signed-off-by: Ley Foon Tan --- arch/arm/dts/socfpga_stratix10.dtsi | 22 +- arch/arm/dts/socfpga_stratix10_socdk.dts |3 +++ 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/arch/a

[U-Boot] [PATCH v2 13/16] ddr: altera: stratix10: Add DDR support for Stratix10 SoC

2018-05-18 Thread Ley Foon Tan
Add DDR support for Stratix SoC Signed-off-by: Chin Liang See Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/include/mach/sdram_s10.h | 183 +++ arch/arm/mach-socfpga/misc.c | 11 +- drivers/ddr/altera/Makefile|1 + drivers/ddr/altera/

[U-Boot] [PATCH v2 11/16] arm: socfpga: stratix10: Add SPL driver for Stratix10 SoC

2018-05-18 Thread Ley Foon Tan
Add SPL driver support for Stratix SoC Signed-off-by: Chin Liang See Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/Makefile|4 + arch/arm/mach-socfpga/include/mach/firewall_s10.h | 120 + arch/arm/mach-socfpga/spl_s10.c | 199 +

Re: [U-Boot] [PATCH v6 7/7] sunxi: DT: A64: add Pine64-LTS support

2018-05-18 Thread Maxime Ripard
Hi Andre, On Wed, May 16, 2018 at 09:00:50AM +0100, Andre Przywara wrote: > The Pine64-LTS board is a new board version of the Pine64, though > actually it's a non-SoM version of the SoPine and its baseboard. > In contrast to the original Pine64 it features LPDDR3 DRAM, an eMMC > socket and a SPI

[U-Boot] [PATCH V2] pylibfdt: Add missing CC and LD to Makefile

2018-05-18 Thread Marek Vasut
Add missing CC and LDSHARED variables to the Makefile to pass the correct C compiler and linker path to the build of _libfdt.so . Signed-off-by: Marek Vasut Cc: Tom Rini Cc: Masahiro Yamada Cc: Simon Glass --- Note: This fixes the long standing issue when building U-Boot with OE for qemu

Re: [U-Boot] [PATCH 01/12] ARM: socfpga: Sync A10 clock manager binding parser

2018-05-18 Thread Marek Vasut
On 05/18/2018 06:41 AM, Chee, Tien Fong wrote: > On Thu, 2018-05-17 at 11:38 +0200, Marek Vasut wrote: >> On 05/17/2018 10:44 AM, Chee, Tien Fong wrote: >>> >>> On Thu, 2018-05-17 at 10:24 +0200, Marek Vasut wrote: On 05/17/2018 06:38 AM, Chee, Tien Fong wrote: > > > On Sat, 2

Re: [U-Boot] [PATCH] pylibfdt: Add missing CC and LD to Makefile

2018-05-18 Thread Marek Vasut
On 05/18/2018 03:38 AM, Simon Glass wrote: > On 17 May 2018 at 14:18, Marek Vasut wrote: >> >> Add missing CC and LDSHARED variables to the Makefile to pass the >> correct C compiler and linker path to the build of _libfdt.so . >> >> Signed-off-by: Marek Vasut >> Cc: Tom Rini >> Cc: Masahiro Yam

Re: [U-Boot] [PATCH V2] pylibfdt: Add missing CC and LD to Makefile

2018-05-18 Thread Masahiro Yamada
Hi Marek 2018-05-18 16:56 GMT+09:00 Marek Vasut : > Add missing CC and LDSHARED variables to the Makefile to pass the > correct C compiler and linker path to the build of _libfdt.so . > > Signed-off-by: Marek Vasut > Cc: Tom Rini > Cc: Masahiro Yamada > Cc: Simon Glass > --- > Note: This fixes

Re: [U-Boot] [PATCH] arm: dts: sunxi: enable Ethernet on NanoPi Neo Plus2

2018-05-18 Thread Maxime Ripard
Hi, On Thu, May 17, 2018 at 04:03:33PM -0500, Jonathan A. Kollasch wrote: > Signed-off-by: Jonathan A. Kollasch > --- > > arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts | 15 +++ > 1 file changed, 15 insertions(+) > > diff --git a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts > b/arch/

[U-Boot] [PATCH v2] arm64: zynqmp: Show reset reason

2018-05-18 Thread Michal Simek
Read reset reason reg and show it in log and also save it as variable. Clearing reset reason when it is read to show only one status Signed-off-by: Michal Simek --- Changes in v2: - Clear stats after read - Remove print argument - Sync table order to fit with macros arch/arm/include/asm/arch-z

Re: [U-Boot] [PATCH 01/12] ARM: socfpga: Sync A10 clock manager binding parser

2018-05-18 Thread Chee, Tien Fong
On Fri, 2018-05-18 at 09:50 +0200, Marek Vasut wrote: > On 05/18/2018 06:41 AM, Chee, Tien Fong wrote: > > > > On Thu, 2018-05-17 at 11:38 +0200, Marek Vasut wrote: > > > > > > On 05/17/2018 10:44 AM, Chee, Tien Fong wrote: > > > > > > > > > > > > On Thu, 2018-05-17 at 10:24 +0200, Marek Vasut

[U-Boot] [PATCH v1] arm64: zynqmp: Setup the first boot_target at run time

2018-05-18 Thread Michal Simek
Detect mmc alias at run time for setting up proper boot_targets sequence. The first target has to correspond with boot mode. The purpose of this patch is to get rid of CONFIG_ZYNQ_SDHCI0/1 parameters in full U-Boot. Unfortunately this patch can't remove it because there is missing mmc implementati

Re: [U-Boot] UBIFS Problems with U-boot 2018.1 & 4.14 Linux

2018-05-18 Thread Heiko Schocher
Hello Otto, Am 17.05.2018 um 23:12 schrieb Otto Blom: Hi There ! I'm seeing a strange problem with u-boot 2018.1 and Linux 4.14 (Xilinx Petalinux 2018.1). If I write a ubifs image to flash using Linux 4.9 I can mount and read files from the image in both u-boot 2018.1 and Linux 4.14. However as

[U-Boot] [PATCH 0/4] Use live-tree functions in some xilinx drivers

2018-05-18 Thread Michal Simek
Hi, this patchset is changing ttc, mmc, watchdog and serial to use live-tree functions. Others Xilinx drivers will be fixed later. Thanks, Michal Michal Simek (4): serial: zynq: Use live-tree functions mmc: zynq: Use live-tree functions watchdog: cadence: Use live-tree functions timer:

[U-Boot] [PATCH 2/4] mmc: zynq: Use live-tree functions

2018-05-18 Thread Michal Simek
Use live-tree functions. Signed-off-by: Michal Simek --- drivers/mmc/zynq_sdhci.c | 22 +- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c index f99731fb1ffe..1f6d053f96b3 100644 --- a/drivers/mmc/zynq_sdhci.

[U-Boot] [PATCH 1/4] serial: zynq: Use live-tree functions

2018-05-18 Thread Michal Simek
Use live-tree functions. Signed-off-by: Michal Simek --- drivers/serial/serial_zynq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/serial/serial_zynq.c b/drivers/serial/serial_zynq.c index 06f0a48e6709..3650af215731 100644 --- a/drivers/serial/serial_zynq.c +++

[U-Boot] [PATCH 3/4] watchdog: cadence: Use live-tree functions

2018-05-18 Thread Michal Simek
Use live-tree functions. Signed-off-by: Michal Simek --- drivers/watchdog/cdns_wdt.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/watchdog/cdns_wdt.c b/drivers/watchdog/cdns_wdt.c index 9a07fa10fd9b..f7618f86da15 100644 --- a/drivers/watchdog/cdns_wdt.c +

[U-Boot] [PATCH 4/4] timer: cadence: Use live-tree functions

2018-05-18 Thread Michal Simek
Use live-tree functions. Reported-by: Simon Glass Signed-off-by: Michal Simek --- drivers/timer/cadence-ttc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/timer/cadence-ttc.c b/drivers/timer/cadence-ttc.c index 5b91c8a90b34..3541e5c84127 100644 --- a/drivers/t

Re: [U-Boot] [PATCH v2 07/16] arm: socfpga: stratix10: Add misc support for Stratix10 SoC

2018-05-18 Thread Marek Vasut
On 05/18/2018 04:05 PM, Ley Foon Tan wrote: > Add misc support such as EMAC and cpu info printout for Stratix SoC > > Signed-off-by: Chin Liang See > Signed-off-by: Ley Foon Tan > --- > arch/arm/mach-socfpga/Makefile |1 + > arch/arm/mach-socfpga/misc_s10.c | 133 > +

Re: [U-Boot] [PATCH v2 06/16] arm: socfpga: misc: Move bridge command to misc common

2018-05-18 Thread Marek Vasut
On 05/18/2018 04:05 PM, Ley Foon Tan wrote: > Move bridge command to misc common driver, in preparation to used by > other platforms. > > Signed-off-by: Ley Foon Tan > --- > arch/arm/mach-socfpga/include/mach/misc.h |2 + > arch/arm/mach-socfpga/misc.c | 31 >

Re: [U-Boot] [PATCH v2 12/16] arm: socfpga: stratix10: Add timer support for Stratix10 SoC

2018-05-18 Thread Marek Vasut
On 05/18/2018 04:05 PM, Ley Foon Tan wrote: > Add timer support for Stratix SoC > > Signed-off-by: Chin Liang See > Signed-off-by: Ley Foon Tan Reviewed-by: Marek Vasut Just rebase it on u-boot-socfpga/master please -- Best regards, Marek Vasut __

Re: [U-Boot] [PATCH v2 05/16] arm: socfpga: misc: Add CONFIG_SYS_L2_PL310 switch

2018-05-18 Thread Marek Vasut
On 05/18/2018 04:05 PM, Ley Foon Tan wrote: > Preparation for Stratix 10 enablement. In ARM64, L2 cache controller is > accessed through processor registers. So, add CONFIG_SYS_L2_PL310 switch > conditional build in order this file can by shared across other SOCFPGAs. > > Signed-off-by: Chin Liang

Re: [U-Boot] [PATCH v2 15/16] arm: dts: socfpga: stratix10: update dtsi and dts

2018-05-18 Thread Marek Vasut
On 05/18/2018 04:05 PM, Ley Foon Tan wrote: > Update dtsi and dts files for resets, phy node and other properties. > > Signed-off-by: Ley Foon Tan Applied, thanks. I'll run whatever I could pick through CI and push up for this release. -- Best regards, Marek Vasut

Re: [U-Boot] [PATCH] malloc: Use malloc simple before malloc is fully initialized in memalign()

2018-05-18 Thread Marek Vasut
On 05/18/2018 12:03 PM, Ley Foon Tan wrote: > Follow implementation in mALLOc(). Check GD_FLG_FULL_MALLOC_INIT flag and use > malloc_simple if GD_FLG_FULL_MALLOC_INIT is unset. Adjust the malloc bytes > to align with the requested alignment. > > The original memalign() function will access mchunkp

Re: [U-Boot] [PATCH v2 08/16] arm: socfpga: stratix10: Add mailbox support for Stratix10 SoC

2018-05-18 Thread Marek Vasut
On 05/18/2018 04:05 PM, Ley Foon Tan wrote: > Add mailbox support for Stratix SoC > > Signed-off-by: Ley Foon Tan > Signed-off-by: Chin Liang See Reviewed-by: Marek Vasut Just rebase it on u-boot-socfpga/master please -- Best regards, Marek Vasut

Re: [U-Boot] [PATCH 01/12] ARM: socfpga: Sync A10 clock manager binding parser

2018-05-18 Thread Marek Vasut
On 05/18/2018 10:39 AM, Chee, Tien Fong wrote: > On Fri, 2018-05-18 at 09:50 +0200, Marek Vasut wrote: >> On 05/18/2018 06:41 AM, Chee, Tien Fong wrote: >>> >>> On Thu, 2018-05-17 at 11:38 +0200, Marek Vasut wrote: On 05/17/2018 10:44 AM, Chee, Tien Fong wrote: > > > On Thu, 2

Re: [U-Boot] [PATCH v2 09/16] arm: socfpga: stratix10: Add MMU support for Stratix10 SoC

2018-05-18 Thread Marek Vasut
On 05/18/2018 04:05 PM, Ley Foon Tan wrote: > Add MMU memory mapping table for Stratix SoC. > > Signed-off-by: Chin Liang See > Signed-off-by: Ley Foon Tan > Acked-by: Marek Vasut > --- > arch/arm/mach-socfpga/Makefile|1 + > arch/arm/mach-socfpga/mmu-arm64_s10.c | 71 >

Re: [U-Boot] [PATCH 01/12] ARM: socfpga: Sync A10 clock manager binding parser

2018-05-18 Thread Chee, Tien Fong
On Fri, 2018-05-18 at 10:42 +0200, Marek Vasut wrote: > On 05/18/2018 10:39 AM, Chee, Tien Fong wrote: > > > > On Fri, 2018-05-18 at 09:50 +0200, Marek Vasut wrote: > > > > > > On 05/18/2018 06:41 AM, Chee, Tien Fong wrote: > > > > > > > > > > > > On Thu, 2018-05-17 at 11:38 +0200, Marek Vasut

Re: [U-Boot] [PATCH v1] arm64: zynqmp: Setup the first boot_target at run time

2018-05-18 Thread Alexander Graf
On 05/18/2018 10:43 AM, Michal Simek wrote: Detect mmc alias at run time for setting up proper boot_targets sequence. The first target has to correspond with boot mode. The purpose of this patch is to get rid of CONFIG_ZYNQ_SDHCI0/1 parameters in full U-Boot. Unfortunately this patch can't remov

[U-Boot] [RFC][PATCH] block: Enable block cache by default

2018-05-18 Thread Marek Vasut
The recent ext4 cache discussion would indicate that the block cache is a desired feature, yet hidden and not enabled most of the time. Enable the block cache by default since it provides significant block device access performance improvement and if there are some users who cannot enable it ie. du

Re: [U-Boot] [PATCH 01/12] ARM: socfpga: Sync A10 clock manager binding parser

2018-05-18 Thread Marek Vasut
On 05/18/2018 10:53 AM, Chee, Tien Fong wrote: > On Fri, 2018-05-18 at 10:42 +0200, Marek Vasut wrote: >> On 05/18/2018 10:39 AM, Chee, Tien Fong wrote: >>> >>> On Fri, 2018-05-18 at 09:50 +0200, Marek Vasut wrote: On 05/18/2018 06:41 AM, Chee, Tien Fong wrote: > > > On Thu, 2

Re: [U-Boot] [PATCH v1] arm64: zynqmp: Setup the first boot_target at run time

2018-05-18 Thread Michal Simek
On 18.5.2018 11:18, Alexander Graf wrote: > On 05/18/2018 10:43 AM, Michal Simek wrote: >> Detect mmc alias at run time for setting up proper boot_targets sequence. >> The first target has to correspond with boot mode. >> >> The purpose of this patch is to get rid of CONFIG_ZYNQ_SDHCI0/1 >> paramet

Re: [U-Boot] mtd: spi-nor: new NXP FlexSPI driver location & framework to use ?

2018-05-18 Thread Prabhakar Kushwaha
Hi Jagan, > -Original Message- > From: Jagan Teki [mailto:jagannadh.t...@gmail.com] > Sent: Friday, May 18, 2018 11:54 AM > To: Prabhakar Kushwaha > Cc: u-boot@lists.denx.de > Subject: Re: mtd: spi-nor: new NXP FlexSPI driver location & framework to use > ? > > On Fri, May 18, 2018 at 1

[U-Boot] [PATCH v2] arm64: zynqmp: Get rid of emulation platforms

2018-05-18 Thread Michal Simek
ZynqMP emulation platforms are no longer tested and supported that's why remove macros and code around. Signed-off-by: Michal Simek --- Changes in v2: - s/emulatio/emulations/ in subject - Also fix clk.c for freq below 1MHz arch/arm/cpu/armv8/zynqmp/clk.c | 10 +- arch/arm/

[U-Boot] [PATCH v2] add FIT data-position & data-offset property support

2018-05-18 Thread Kelvin Cheung
Add FIT data-position & data-offset property support for bootm, which were already supported in SPL. Signed-off-by: Kelvin Cheung --- Changes for v2: create fit_image_get_data_and_size() to remove duplicated code --- common/image-fit.c | 54 ++

Re: [U-Boot] UBIFS Problems with U-boot 2018.1 & 4.14 Linux

2018-05-18 Thread Richard Weinberger
Otto, Heiko, Am Freitag, 18. Mai 2018, 10:44:43 CEST schrieb Heiko Schocher: > Hello Otto, > > Am 17.05.2018 um 23:12 schrieb Otto Blom: > > Hi There ! > > > > I'm seeing a strange problem with u-boot 2018.1 and Linux 4.14 (Xilinx > > Petalinux 2018.1). > > If I write a ubifs image to flash usin

Re: [U-Boot] [PATCH v6 0/7] sunxi: sync H3, H5, A64 DTs from mainline Linux

2018-05-18 Thread Peter Robinson
On Wed, May 16, 2018 at 9:00 AM, Andre Przywara wrote: > This is an updated version of the series which brings the exact mainline > Linux device tree files for various Allwinner boards into U-Boot. > Apart from using the usually more correct reference DT files, this offers > the big benefit of bei

[U-Boot] [PATCH v2] drivers: usb: dwc3: remove devm_zalloc from linux_compact

2018-05-18 Thread Michal Simek
From: Mugunthan V N devm_zalloc() is already defined in dm/device.h header, so devm_zalloc can be removed from linux_compact.h beader file. Signed-off-by: Mugunthan V N Signed-off-by: Michal Simek --- Changes in v2: - Add dm.h in dwc3-omap.c - reported by Travis Taken from https://patchwork.

[U-Boot] [PATCH v2 0/6] Convert Xilinx ZynqMP to DM_USB with generic DWC3 glue logic driver

2018-05-18 Thread Michal Simek
Hi, this patchset is based on unfinished series send to ML 06/13/2017 by Vignesh "[U-Boot] [PATCH v2 00/13] driver model bring-up of dwc3 usb peripheral" We have taken some part of this to Xilinx tree and use it for a while but it is time to review it and upstream it. The patchset has 2 patches

[U-Boot] [PATCH v2 1/6] usb: dwc3: Add dwc3_init/remove with DM_USB

2018-05-18 Thread Michal Simek
From: Mugunthan V N The patch is preparing dwc3 core for enabling DM_USB with peripheral driver with using driver model support. The driver will be bound by the DWC3 wrapper driver based on the dr_mode device tree entry. Signed-off-by: Mugunthan V N (Remove dwc3-omap changes) Signed-off-by: Mic

[U-Boot] [PATCH v2 4/6] usb: xhci: zynqmp: Add support for DM_USB

2018-05-18 Thread Michal Simek
The patch is adding support for DM_USB for xhci driver. Signed-off-by: Michal Simek --- Changes in v2: None drivers/usb/host/xhci-zynqmp.c | 69 ++ 1 file changed, 69 insertions(+) diff --git a/drivers/usb/host/xhci-zynqmp.c b/drivers/usb/host/xhci-zynqmp.c ind

[U-Boot] [PATCH v2 6/6] usb: xhci: zynqmp: Remove support for !DM_USB

2018-05-18 Thread Michal Simek
Switch to DM_USB was done and there is no need to keep !DM_USB code in tree. Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- Changes in v2: None drivers/usb/host/Kconfig | 1 + drivers/usb/host/xhci-zynqmp.c | 46 -- scripts/config_whitelist.txt

[U-Boot] [PATCH v2 3/6] usb: dwc3: Add generic DWC3 glue logic driver

2018-05-18 Thread Michal Simek
By enabling BLK by default this is the next driver which needs to get support for DM_USB. Adding generic DWC3 glue logic which only parse nodes and read device mode. Based on it probe proper host/peripheral DWC3 drivers for it. Signed-off-by: Michal Simek --- Changes in v2: - Change style to avo

[U-Boot] [PATCH v2 2/6] usb: common: add support to get maximum speed from dt

2018-05-18 Thread Michal Simek
From: Mugunthan V N Add support to get maximum speed from dt so that usb drivers makes use of it for DT parsing. Signed-off-by: Mugunthan V N Signed-off-by: Michal Simek (rebase and fix errors) Reviewed-by: Simon Glass --- Changes in v2: None drivers/usb/common/common.c | 29 ++

[U-Boot] [PATCH v2 5/6] arm64: zynqmp: Use DWC3 generic driver and DM_USB

2018-05-18 Thread Michal Simek
Remove harcoded XHCI lists and detect mode, speed based on DT. Signed-off-by: Michal Simek Serial-changes: 2 - Remove also XHCI macros from hardware.h - Remove additional new line in zcu106 --- Changes in v2: None arch/arm/include/asm/arch-zynqmp/hardware.h | 3 -- board/xilinx/zynqmp/zynqm

Re: [U-Boot] [PATCH v2 0/6] Convert Xilinx ZynqMP to DM_USB with generic DWC3 glue logic driver

2018-05-18 Thread Marek Vasut
On 05/18/2018 01:15 PM, Michal Simek wrote: > Hi, > > this patchset is based on unfinished series send to ML 06/13/2017 > by Vignesh > "[U-Boot] [PATCH v2 00/13] driver model bring-up of dwc3 usb peripheral" > We have taken some part of this to Xilinx tree and use it for a while > but it is time t

[U-Boot] [PATCH] arm64: zynqmp: Remove empty configuration file

2018-05-18 Thread Michal Simek
There is no reason to keep empty config file in the tree that's why remove it. Signed-off-by: Michal Simek --- Depends on https://lists.denx.de/pipermail/u-boot/2018-May/328993.html --- configs/xilinx_zynqmp_zc1751_xm016_dc2_defconfig | 1 - include/configs/xilinx_zynqmp_zc1751_xm016_dc2.h | 1

Re: [U-Boot] [PATCH v7 06/35] musb: sunxi: Add OTG device clkgate and reset for H3/H5

2018-05-18 Thread Maxime Ripard
On Mon, May 14, 2018 at 11:13:54AM +0200, Marek Vasut wrote: > > And I don't really know what the constraints are on the SPL side, but > > it's really tight on our end. So maybe I'm exagerating, but you're > > definitely understating it too. > > You can fit into 16k , can you not ? We have 13k.

Re: [U-Boot] [PATCH] sunxi: Enable fitImage support on OrangePi Zero

2018-05-18 Thread Maxime Ripard
On Thu, May 17, 2018 at 11:13:38PM +0200, Marek Vasut wrote: > Enable modern fitImage format on OrangePi Zero. > > Signed-off-by: Marek Vasut > Cc: Maxime Ripard > Cc: Tom Rini What's the point of enabling it on one board out of the ~120 we have? You'd be better off selecting/implying it at t

Re: [U-Boot] [PATCH] sunxi: Enable fitImage support on OrangePi Zero

2018-05-18 Thread Marek Vasut
On 05/18/2018 01:52 PM, Maxime Ripard wrote: > On Thu, May 17, 2018 at 11:13:38PM +0200, Marek Vasut wrote: >> Enable modern fitImage format on OrangePi Zero. >> >> Signed-off-by: Marek Vasut >> Cc: Maxime Ripard >> Cc: Tom Rini > > What's the point of enabling it on one board out of the ~120 w

Re: [U-Boot] [PATCH v7 06/35] musb: sunxi: Add OTG device clkgate and reset for H3/H5

2018-05-18 Thread Marek Vasut
On 05/18/2018 01:51 PM, Maxime Ripard wrote: > On Mon, May 14, 2018 at 11:13:54AM +0200, Marek Vasut wrote: >>> And I don't really know what the constraints are on the SPL side, but >>> it's really tight on our end. So maybe I'm exagerating, but you're >>> definitely understating it too. >> >> You

[U-Boot] [PATCH] arm64: dts: allwinner: h5: NanoPi NEO Plus2 : add EMAC support

2018-05-18 Thread Jonathan A. Kollasch
add arm64 H5 dwmac-sun8i support for this board commit arm64: dts: allwinner: h5: NanoPi NEO Plus2 : add EMAC support ("27d7f929702739c186e72a4dcd255e0faa3beefc") from torvalds/linux Signed-off-by: Jonathan A. Kollasch --- arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts | 17 + 1 f

Re: [U-Boot] [PATCH v2 1/6] usb: dwc3: Add dwc3_init/remove with DM_USB

2018-05-18 Thread Jean-Jacques Hiblot
Hi Michal, I've been trying your series on DRA7 platforms. Thanks for the work. I have a few comments though. On 18/05/2018 13:15, Michal Simek wrote: From: Mugunthan V N The patch is preparing dwc3 core for enabling DM_USB with peripheral driver with using driver model support. The driver

Re: [U-Boot] [PATCH v2 3/6] usb: dwc3: Add generic DWC3 glue logic driver

2018-05-18 Thread Jean-Jacques Hiblot
On 18/05/2018 13:15, Michal Simek wrote: By enabling BLK by default this is the next driver which needs to get support for DM_USB. Adding generic DWC3 glue logic which only parse nodes and read device mode. Based on it probe proper host/peripheral DWC3 drivers for it. Signed-off-by: Michal Sim

Re: [U-Boot] [PATCH] arm64: dts: allwinner: h5: NanoPi NEO Plus2 : add EMAC support

2018-05-18 Thread Antony Antony
Hi Jonathan, I got an error with the patch. arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dtb: ERROR (phandle_references): Reference to non-existent node or label "reg_gmac_3v3" the attached patch, with reg_gmac_3v3, works for me. -antony On Fri, May 18, 2018 at 07:56:07AM -0500, Jonathan A. Kollas

Re: [U-Boot] [PATCH v2 3/6] usb: dwc3: Add generic DWC3 glue logic driver

2018-05-18 Thread Jean-Jacques Hiblot
On 18/05/2018 15:24, Jean-Jacques Hiblot wrote: On 18/05/2018 13:15, Michal Simek wrote: By enabling BLK by default this is the next driver which needs to get support for DM_USB. Adding generic DWC3 glue logic which only parse nodes and read device mode. Based on it probe proper host/periphe

Re: [U-Boot] [PATCH v6 0/7] sunxi: sync H3, H5, A64 DTs from mainline Linux

2018-05-18 Thread Andre Przywara
Hi, On 18/05/18 11:41, Peter Robinson wrote: > On Wed, May 16, 2018 at 9:00 AM, Andre Przywara > wrote: >> This is an updated version of the series which brings the exact mainline >> Linux device tree files for various Allwinner boards into U-Boot. >> Apart from using the usually more correct re

[U-Boot] [PATCH v2 2/2] test/py: add test for whitelist of variables while importing environment

2018-05-18 Thread Quentin Schulz
This tests that the importing of an environment with a specified whitelist works as intended. If the variable whitelisted_vars is not set, the env importing should fail with a given message. For each variable separated by spaces in whitelisted_vars, if - foo is bar in current env and bar2 in exp

[U-Boot] [PATCH v2 1/2] cmd: nvedit: add whitelist option for env import

2018-05-18 Thread Quentin Schulz
While the `env export` can take as parameters variables to be exported, `env import` does not have such a mechanism of variable selection. Let's add a `-w` option that asks `env import` to look for the `whitelisted_vars` env variable for a space-separated list of variables that are whitelisted. E

Re: [U-Boot] [PATCH] arm: dts: sunxi: enable Ethernet on NanoPi Neo Plus2

2018-05-18 Thread Jonathan A. Kollasch
I'm abandoning these, as I see that there's already a patch series that covers this. (sunxi: sync H3, H5, A64 DTs from mainline Linux) Jonathan Kollasch On Fri, May 18, 2018 at 10:18:37AM +0200, Maxime Ripard wrote: > Hi, > > On Thu, May 17, 2018 at 04:03:33PM -0500, Jonathan A. Kollasc

Re: [U-Boot] [PATCH] sunxi: Enable fitImage support on OrangePi Zero

2018-05-18 Thread Maxime Ripard
On Fri, May 18, 2018 at 01:54:38PM +0200, Marek Vasut wrote: > On 05/18/2018 01:52 PM, Maxime Ripard wrote: > > On Thu, May 17, 2018 at 11:13:38PM +0200, Marek Vasut wrote: > >> Enable modern fitImage format on OrangePi Zero. > >> > >> Signed-off-by: Marek Vasut > >> Cc: Maxime Ripard > >> Cc: To

Re: [U-Boot] [PATCH v7 06/35] musb: sunxi: Add OTG device clkgate and reset for H3/H5

2018-05-18 Thread Maxime Ripard
On Fri, May 18, 2018 at 01:55:31PM +0200, Marek Vasut wrote: > On 05/18/2018 01:51 PM, Maxime Ripard wrote: > > On Mon, May 14, 2018 at 11:13:54AM +0200, Marek Vasut wrote: > >>> And I don't really know what the constraints are on the SPL side, but > >>> it's really tight on our end. So maybe I'm e

Re: [U-Boot] [PATCH v2 1/2] cmd: nvedit: add whitelist option for env import

2018-05-18 Thread Stephen Warren
On 05/18/2018 08:44 AM, Quentin Schulz wrote: While the `env export` can take as parameters variables to be exported, `env import` does not have such a mechanism of variable selection. Let's add a `-w` option that asks `env import` to look for the `whitelisted_vars` env variable for a space-sepa

Re: [U-Boot] [PATCH v2 2/2] test/py: add test for whitelist of variables while importing environment

2018-05-18 Thread Stephen Warren
On 05/18/2018 08:45 AM, Quentin Schulz wrote: This tests that the importing of an environment with a specified whitelist works as intended. If the variable whitelisted_vars is not set, the env importing should fail with a given message. For each variable separated by spaces in whitelisted_vars,

[U-Boot] [PATCH 1/2] efi_selftest: allow building relocation code on x86_64

2018-05-18 Thread Heinrich Schuchardt
Variables EFI_RELOC and EFI_CRT0 have to be defined to build the EFI unit tests. This patch ensures this for the x86 architecure. If we compile with EFI_STUB, the bitness depends on CONFIG_EFI_STUB_64BIT. Otherwise the bitness depends on CONFIG_X86_64. Signed-off-by: Heinrich Schuchardt --- arc

[U-Boot] [PATCH 2/2] efi_loader: build CRT0 and RELOC on x86_64

2018-05-18 Thread Heinrich Schuchardt
The efi selftest and the hello application require CRT0 and RELOC to be built. Signed-off-by: Heinrich Schuchardt --- arch/x86/lib/Makefile | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/x86/lib/Makefile b/arch/x86/lib/Makefile index 51d451f9522..5a64f6eddc

[U-Boot] [PATCH 0/2] Allow building EFI binaries on x86_64

2018-05-18 Thread Heinrich Schuchardt
With the patch series EFI binaries needed for the EFI selftests can be built on x86_64. But we still lack setjmp support so we cannot activate the StartImage selftest. We should handle this series via Alex's efi-next tree. Heinrich Schuchardt (2): efi_selftest: allow building relocation code o

Re: [U-Boot] [RFC PATCH v2 1/2] usb: fastboot: Convert USB f_fastboot to shared fastboot

2018-05-18 Thread Sam Protsenko
On 17 May 2018 at 19:13, Alex Kiernan wrote: > Convert USB fastboot code to use shared fastboot protocol. > > Signed-off-by: Alex Kiernan > --- > > Changes in v2: > - remove redundant version.h > - use new fastboot_get_bytes_remaining() function > > drivers/fastboot/Makefile | 4 +- > dr

Re: [U-Boot] [U-Boot, v2, 1/2] common: Add support for Android DT image

2018-05-18 Thread Sam Protsenko
On 16 May 2018 at 15:08, Tom Rini wrote: > On Thu, Apr 19, 2018 at 11:51:36PM +0300, Sam Protsenko wrote: > >> Android documentation recommends new image format for storing DTB/DTBO >> files: [1]. To support that format, two things should be done: >> >> 1. Add dt_table.h file from Android (BSD-3 r

Re: [U-Boot] [PATCH] sunxi: Enable fitImage support on OrangePi Zero

2018-05-18 Thread Marek Vasut
On 05/18/2018 05:29 PM, Maxime Ripard wrote: > On Fri, May 18, 2018 at 01:54:38PM +0200, Marek Vasut wrote: >> On 05/18/2018 01:52 PM, Maxime Ripard wrote: >>> On Thu, May 17, 2018 at 11:13:38PM +0200, Marek Vasut wrote: Enable modern fitImage format on OrangePi Zero. Signed-off-by:

Re: [U-Boot] UBIFS Problems with U-boot 2018.1 & 4.14 Linux

2018-05-18 Thread Otto Blom
Hallo Heiko & Richard ! Turns out the len and out_len do not match, much like you suspected. Out_len is 2 bytes short (4094 vs 4096) See log below UBIFS DBG tnc: search key (5725, data, 124) UBIFS DBG tnc: found 1, lvl 0, n 2 UBIFS DBG tnc: LEB 566:61864, key (5725, data, 124) UBIFS DBG io: LEB 5

Re: [U-Boot] [RFC PATCH v2 1/2] usb: fastboot: Convert USB f_fastboot to shared fastboot

2018-05-18 Thread Alex Kiernan
Hi Sam On Fri, May 18, 2018 at 7:32 PM Sam Protsenko wrote: > On 17 May 2018 at 19:13, Alex Kiernan wrote: > > Convert USB fastboot code to use shared fastboot protocol. > > > > Signed-off-by: Alex Kiernan > > --- > > > > Changes in v2: > > - remove redundant version.h > > - use new fastboot_ge

Re: [U-Boot] UBIFS Problems with U-boot 2018.1 & 4.14 Linux

2018-05-18 Thread Otto Blom
Hi Richard ! Correct, the first error is printed in U-boot 2018.1 (which also matches the error I see if I try to read the file in Linux 4.9). The ubi file is created using Yocto 2.4.1 (comes with PetaLinux 2018.1) with the following settings MKUBIFS_ARGS = " -m 2048 -e 126976 -c 4096 -x lzo " U

[U-Boot] Enabling i.mx6 high assurance boot appears to breaks u-boot verified-boot

2018-05-18 Thread Davis Roman
Hello, We're currently using i.mx6 with u-boot 2017.03 and kernel 4.9 and our goal is to implement a chain of trust in our product. So far we've done the following: 1. We're using u-boot fitimage in our system in order to put our kernel, initramfs and 10 device trees into a boot.itb container.

[U-Boot] [xHCI] Controller failure with USB 3.0 hub

2018-05-18 Thread Marek Vasut
Hello Bin, I noticed a potential bug in the U-Boot xHCI implementation. I observe this one Renesas RCar Gen3 platform. If I plug a USB 3.0 hub into the root port, I see the following error: ERROR: Configure Endpoint command returned completion code 5. If I plug a USB 3.0 stick into the root por

Re: [U-Boot] Enabling i.mx6 high assurance boot appears to breaks u-boot verified-boot

2018-05-18 Thread Marek Vasut
On 05/19/2018 02:40 AM, Davis Roman wrote: > Hello, Hi, > We're currently using i.mx6 with u-boot 2017.03 Is there any reason why you wouldn't use something newer ? Or is that the NXP fork of U-Boot ? > and kernel 4.9 and our > goal is to implement a chain of trust in our product. > > So far w

Re: [U-Boot] [PULL] Please pull u-boot-imx

2018-05-18 Thread Tom Rini
On Fri, May 18, 2018 at 08:51:42AM +0200, Stefano Babic wrote: > Hi Tom, > > please pull from u-boot-imx, thanks ! > > The following changes since commit f2d0f5e7ab3b8a7b4bf6e2ac499b4867c701d52d: > > ARM: re-enable MVGBE for edminiv2 (2018-05-16 11:38:08 -0400) > > are available in the git r

[U-Boot] [BUG] efi_loader: LUV test and SCT test fail on minnowboard

2018-05-18 Thread Heinrich Schuchardt
Hello Shubha, On 05/17/2018 09:40 PM, Macheeri Ramaswamy, ShubhashreeX wrote: > I could successfully install build and flash the uboot with uefi over > minnowboard (from Intel) and could use a serial console to see > the prints. On 05/18/2018 12:39 AM, Macheeri Ramaswamy, ShubhashreeX wrote: > We