Re: [U-Boot] Problems to boot i.MX8QXP EVK board

2019-01-18 Thread Peng Fan
Hi Fabio, Breno > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2019年1月17日 19:30 > To: Breno Matheus Lima ; Peng Fan > > Cc: Breno Matheus Lima ; Fabio Estevam > ; U-Boot-Denx ; > dl-uboot-imx > Subject: Re: Problems to boot i.MX8QXP EVK board > > Hi Peng,

[U-Boot] [PATCH 0/2] Board support updates for topic-miamiplus modules

2019-01-18 Thread Mike Looijmans
Patches rebased for re-submission, were sent earlier as part of a longer series. This improves performance and functionality for the topic-miamiplus boards with Zynq 7035/7045/7100. Mike Looijmans (2): topic-miamiplus: Run CPU at 800MHz for speedgrade-2 board: topic-miamiplus: Run IO PLL at 1

[U-Boot] [PATCH 2/2] board: topic-miamiplus: Run IO PLL at 1000 MHz

2019-01-18 Thread Mike Looijmans
The miamiplus can use GEM0 through MIO pins, which requires a 125 MHz TX clock to be generated. With the IO PLL at 1200 MHz this isn't possible, so change it to run at 1000 and adjust the divisors accordingly. Also set the GEM0 clock source to MIO instead of EMIO. Signed-off-by: Mike Looijmans --

[U-Boot] [PATCH 1/2] topic-miamiplus: Run CPU at 800MHz for speedgrade-2

2019-01-18 Thread Mike Looijmans
The miamiplus contains a speedgrade-2 device, which may run the CPU at 800MHz. Change the PLL setting to 800MHz, and adapt the setpoints in the devicetree. Signed-off-by: Mike Looijmans --- arch/arm/dts/zynq-topic-miamiplus.dts| 9 + board/topic/zynq/zynq-topic-miamiplus/

Re: [U-Boot] Test failures in u-boot/master on NVIDIA HW with recent push

2019-01-18 Thread Simon Goldschmidt
Hi, Am Fr., 18. Jan. 2019, 07:29 hat Stephen Warren geschrieben: > On 1/17/19 6:15 PM, Tom Rini wrote: > > On Thu, Jan 17, 2019 at 05:50:27PM -0700, Stephen Warren wrote: > >> On 1/17/19 5:42 PM, Tom Rini wrote: > >>> On Thu, Jan 17, 2019 at 05:34:57PM -0700, Stephen Warren wrote: > >>> > T

Re: [U-Boot] [PATCH v2] ARM: mvebu: sync Armada-38x dts with Linux 4.20

2019-01-18 Thread Chris Packham
On Mon, Dec 10, 2018 at 8:08 PM Chris Packham wrote: > > Sync the Armada-38x device tree files with Linux 4.20-rc5. The changes > not taken are new compatible strings for the uart and nand flash > controller. The nand binding is best updated if/when the mtd/nand > infrastructure is updated. > > Si

Re: [U-Boot] [PATCH 2/4] board: topic_miamilite: Support cost-reduced version

2019-01-18 Thread Mike Looijmans
On 07-09-18 11:30, Michal Simek wrote: > On 24.8.2018 14:00, Mike Looijmans wrote: >> To reduce board cost, the topic-miamilite board hardware was adapted. It now >> only has single QSPI NOR flash and a single DDR RAM chip. This reduces the >> memory interface to 16-bit and halves the available RAM

[U-Boot] commit 9a9d66f5ef break U-Boot Env

2019-01-18 Thread Heiko Schocher
Hello Horatiu, just tried current mainline U-Boot on imx6ull based board with Env in SPI NOR. Your commit "9a9d66f5eff0" env: add spi_flash_read_env function breaks reading Env from SPI NOR in my case... If I interprete your patch correct, you only read until the 2 0x0 in the env ... but for t

Re: [U-Boot] [PATCH] ARM: at91: Convert SPL_GENERATE_ATMEL_PMECC_HEADER to Kconfig

2019-01-18 Thread Eugen.Hristev
On 11.01.2019 18:53, Derald Woods wrote: > > > On Fri, Jan 11, 2019, 10:51 AM Derald Woods wrote: > > > On Fri, Jan 11, 2019, 5:27 AM wrote: > > > > On 10.01.2019 03:00, Derald Woods wrote: >

Re: [U-Boot] [PATCH 1/2] pci: pci_mvebu: Add DM_PCI support and move CONFIG_PCI_MVEBU to defconfig

2019-01-18 Thread Chris Packham
Hi Stefan, On Fri, Jan 18, 2019 at 2:35 AM Stefan Roese wrote: > > This patch adds DM_PCI support to the MVEBU PCIe driver. This is > necessary, since all PCI drivers have to be moved to DM (driver model) > until the v2019.07 release. > > To not break git bisect'ablility, this patch also moves CO

[U-Boot] [PATCH] imx8: cpu: restrict checking ROM passover info for revA

2019-01-18 Thread Peng Fan
Passover info only for revA. move get_cpu_rev out of CONFIG_CPU to avoid build failure when using get_cpu_rev in SPL. Add a CONFIG_SPL_BUILD for passover usage, no need to execute it again in normal U-Boot stage. Also if still checking passover info in normal U-Boot stage, need to make the passove

Re: [U-Boot] commit 9a9d66f5ef break U-Boot Env

2019-01-18 Thread Horatiu Vultur
Hi Heiko, The 01/18/2019 09:34, Heiko Schocher wrote: > Hello Horatiu, > > just tried current mainline U-Boot on imx6ull based board with > Env in SPI NOR. Your commit "9a9d66f5eff0" > > env: add spi_flash_read_env function > > breaks reading Env from SPI NOR in my case... > > If I interprete

Re: [U-Boot] commit 9a9d66f5ef break U-Boot Env

2019-01-18 Thread Heiko Schocher
Hello Horatiu, Am 18.01.2019 um 10:18 schrieb Horatiu Vultur: Hi Heiko, The 01/18/2019 09:34, Heiko Schocher wrote: Hello Horatiu, just tried current mainline U-Boot on imx6ull based board with Env in SPI NOR. Your commit "9a9d66f5eff0" env: add spi_flash_read_env function breaks reading En

[U-Boot] [RFC PATCH] dm: device: Do not probe parents which are probed already

2019-01-18 Thread Michal Simek
From the first look there is no reason to probe parent nodes if they are active already. Signed-off-by: Michal Simek --- I have created this just for showing status of parent device. Maybe there is any strong reason to do this but I just wanted to check this because it looks like just wasting of

Re: [U-Boot] [PATCH v2] ARM: mvebu: sync Armada-38x dts with Linux 4.20

2019-01-18 Thread Stefan Roese
On 18.01.19 09:28, Chris Packham wrote: On Mon, Dec 10, 2018 at 8:08 PM Chris Packham wrote: Sync the Armada-38x device tree files with Linux 4.20-rc5. The changes not taken are new compatible strings for the uart and nand flash controller. The nand binding is best updated if/when the mtd/nand

[U-Boot] [PATCH] env: sf: fix environment in SPI NOR

2019-01-18 Thread Heiko Schocher
commit 9a9d66f5eff0 ("env: add spi_flash_read_env function") breaks Environment functionality, as it reads only until 2 \0 are found, but fills the buffer with 0x0 instead 0xff which leads in an incorrect crc sum. Fix: init the read buffer with 0xff instead 0x00 Signed-off-by: Heiko Schocher --

[U-Boot] [PATCH] i2c: cdns: Covert to livetree function

2019-01-18 Thread Michal Simek
Update cadence i2c driver to support livetree Similar changes were done by: "net: zynq_gem: convert to use livetree" (sha1: 26026e695afa794ac018a09e79a48120d322b60d) Signed-off-by: Michal Simek --- drivers/i2c/i2c-cdns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver

Re: [U-Boot] [PATCH v2] ARM: mvebu: sync Armada-38x dts with Linux 4.20

2019-01-18 Thread Chris Packham
On Fri, 18 Jan 2019, 10:44 PM Stefan Roese On 18.01.19 09:28, Chris Packham wrote: > > On Mon, Dec 10, 2018 at 8:08 PM Chris Packham > wrote: > >> > >> Sync the Armada-38x device tree files with Linux 4.20-rc5. The changes > >> not taken are new compatible strings for the uart and nand flash > >>

[U-Boot] should "BUILD_DIR" say "KBUILD_OUTPUT" in manual?

2019-01-18 Thread Robert P. J. Day
pretty sure it should, but on manual wiki page: http://www.denx.de/wiki/view/DULG/UBootConfiguration should references to "BUILD_DIR" actually refer to "KBUILD_OUTPUT"? i can fix that, just want to make sure it's correct. rday --

[U-Boot] [PATCH v2 00/11] SiFive FU540 Support

2019-01-18 Thread Anup Patel
This patchset adds SiFive Freedom Unleashed (FU540) support to RISC-V U-Boot. The patches are based upon latest RISC-V U-Boot tree (git://git.denx.de/u-boot-riscv.git) at commit id 91882c472d8c0aef4db699d3f2de55bf43d4ae4b All drivers namely: SiFive PRCI, SiFive Serial, and Cadance MACB Ethernet w

[U-Boot] [PATCH v2 01/11] riscv: Rename cpu/qemu to cpu/generic

2019-01-18 Thread Anup Patel
The QEMU CPU support under arch/riscv is pretty much generic and works fine for SiFive Unleashed as well. In fact, there will be quite a few RISC-V SOCs for which QEMU CPU support will work fine. This patch renames cpu/qemu to cpu/generic to indicate the above fact. If there are SOC specific errat

[U-Boot] [PATCH v2 02/11] riscv: Add asm/dma-mapping.h for DMA mappings

2019-01-18 Thread Anup Patel
This patch adds asm/dma-mapping.h for Linux-like DMA mappings APIs required by some of the drivers (such as, Cadance MACB Ethernet driver). Signed-off-by: Anup Patel Reviewed-by: Bin Meng Reviewed-by: Alexander Graf --- arch/riscv/include/asm/dma-mapping.h | 38 1

[U-Boot] [PATCH v2 03/11] riscv: generic: Ensure that U-Boot runs within 4GB for 64bit systems

2019-01-18 Thread Anup Patel
On 64bit systems, the DRAM top can be easily beyond 4GB and U-Boot DMA mapping APIs will generate DMA addresses beyond 4GB. This breaks DMA programming in 32bit DMA capable devices (such as Cadence MACB ethernet). For example, If DRAM is more then 2GB on QEMU sifive_u machine then Cadence MACB ethe

[U-Boot] [PATCH v2 04/11] net: macb: Fix clk API usage for RISC-V systems

2019-01-18 Thread Anup Patel
This patch does following fixes in MACB ethernet driver for using it on RISC-V systems (particularly QEMU sifive_u machine): 1. asm/arch/clk.h is not available on RISC-V port so include it only for non-RISC-V systems. 2. Don't fail in macb_enable_clk() if clk_enable() returns -ENOSYS because

[U-Boot] [PATCH v2 06/11] clk: Add SiFive FU540 PRCI clock driver

2019-01-18 Thread Anup Patel
Add driver code for the SiFive FU540 PRCI IP block. This IP block handles reset and clock control for the SiFive FU540 device and implements SoC-level clock tree controls and dividers. Based on code written by Wesley Terpstra found in commit 999529edf517ed75b56659d456d221b2ee56bb60 of: https://g

[U-Boot] [PATCH v2 08/11] drivers: serial_sifive: Fix baud rate calculation

2019-01-18 Thread Anup Patel
From: Atish Patra Compute the baud rate multipler with more precision. Signed-off-by: Atish Patra Reviewed-by: Alexander Graf --- drivers/serial/serial_sifive.c | 28 ++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/drivers/serial/serial_sifive.c b/d

[U-Boot] [PATCH v2 07/11] clk: Add fixed-factor clock driver

2019-01-18 Thread Anup Patel
This patch adds fixed-factor clock driver which derives clock rate by dividing (div) and multiplying (mult) fixed factors to a parent clock. Signed-off-by: Atish Patra Signed-off-by: Anup Patel --- drivers/clk/Makefile | 4 +- drivers/clk/clk_fixed_factor.c | 74 +

[U-Boot] [PATCH v2 05/11] net: macb: Fix GEM hardware detection

2019-01-18 Thread Anup Patel
From: Atish Patra Fix MID bit field check to correctly identify all GEM hardwares. The check is updated as per macb driver in Linux location: /drivers/net/ethernet/cadence/macb_main.c:259 Signed-off-by: Atish Patra Reviewed-by: Alexander Graf --- drivers/net/macb.c | 2 +- 1 file changed, 1

[U-Boot] [PATCH v2 09/11] drivers: serial_sifive: Skip baudrate config if no input clock

2019-01-18 Thread Anup Patel
From: Atish Patra It is possible that input clock is not available because clk device was not available and 'clock-frequency' DT property is also not available. In this case, instead of failing we should just skip baudrate config by returning zero. Signed-off-by: Atish Patra Signed-off-by: Anu

[U-Boot] [PATCH v2 10/11] cpu: Bind timer driver for boot hart

2019-01-18 Thread Anup Patel
From: Atish Patra Currently, timer driver is bound only for hart0. There is no mandatory requirement that hart0 should always come up. In fact, HiFive Unleashed SoC hart0 doesn't boot in S-mode because it only has M-mode. The timer driver should be bound for boot hart. Signed-off-by: Atish Pat

[U-Boot] [PATCH v2 11/11] riscv: Add SiFive FU540 board support

2019-01-18 Thread Anup Patel
This patch adds SiFive FU540 board support. For now, only SiFive serial, SiFive PRCI, and Cadance MACB drivers are only enabled. The SiFive FU540 defconfig by default builds U-Boot for S-Mode because U-Boot on SiFive FU540 will run in S-Mode as payload of BBL or OpenSBI. Signed-off-by: Atish Patra

[U-Boot] [PATCH 1/1] efi_loader: eliminate duplicate function hex2mem()

2019-01-18 Thread Heinrich Schuchardt
Use existing inline function hex2bin() instead of defining a new one. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_variable.c | 44 +++ 1 file changed, 3 insertions(+), 41 deletions(-) diff --git a/lib/efi_loader/efi_variable.c b/lib/efi_loader/efi_v

Re: [U-Boot] [PATCH 04/11] net: macb: Fix clk API usage for RISC-V systems

2019-01-18 Thread Alexander Graf
> Am 18.01.2019 um 07:05 schrieb Anup Patel : > > > >> -Original Message- >> From: Alexander Graf [mailto:ag...@suse.de] >> Sent: Thursday, January 17, 2019 11:37 PM >> To: Anup Patel ; Rick Chen ; >> Bin Meng ; Joe Hershberger >> ; Lukas Auer ; >> Masahiro Yamada ; Simon Glass >> >>

[U-Boot] [PATCH] pci: Add PCI_SLOT macro to include/pci.h

2019-01-18 Thread Stefan Roese
This macro will be used the by the Marvell Armada XP/38x PCIe driver, which is moved to DM right now. Signed-off-by: Stefan Roese Cc: Bin Meng Cc: Simon Glass --- include/pci.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/pci.h b/include/pci.h index 785d7d28b7..f4a9e025b3 100644

[U-Boot] [PATCH] core: ofnode: Add ofnode_pci_get_devfn()

2019-01-18 Thread Stefan Roese
This function will be used by the Marvell Armada XP/38x PCIe driver, which is moved to DM right now. It's mostly copied from the Linux version. Signed-off-by: Stefan Roese Cc: Simon Glass --- drivers/core/ofnode.c | 12 include/dm/ofnode.h | 11 +++ 2 files changed, 23 in

[U-Boot] [PATCH 3/3 v2] arm: mvebu: armada-xp-theadorable.dts: Enable PCIe DT nodes

2019-01-18 Thread Stefan Roese
Now that the PCIe driver supports DM and DT parsing, enable the PCIe DT nodes that are used by this board. Signed-off-by: Stefan Roese Cc: Dirk Eibach Cc: Mario Six Cc: Chris Packham Cc: Phil Sutter Cc: Marek Behún Cc: VlaoMao --- v2: - New file arch/arm/dts/armada-xp-theadorable.dts | 14

[U-Boot] [PATCH 2/3 v2] arm: mvebu: armada-xp/37x.dtsi: Sync PCIe DT nodes with Linux v4.20

2019-01-18 Thread Stefan Roese
This patch sync's the PCIe DT nodes with the recent Linux v4.20 version. This change makes it easier to reference specific PCIe nodes in the board dts files to e.g. enable a PCIe port as this is now necessary with the new DM PCI driver for these platforms. Signed-off-by: Stefan Roese Cc: Dirk Eib

[U-Boot] [PATCH 1/3 v2] pci: pci_mvebu: Add DM_PCI support and move CONFIG_PCI_MVEBU to defconfig

2019-01-18 Thread Stefan Roese
This patch adds DM_PCI support to the MVEBU PCIe driver. This is necessary, since all PCI drivers have to be moved to DM (driver model) until the v2019.07 release. To not break git bisect'ablility, this patch also moves CONFIG_PCI_MVEBU from config headers to the defconfig files. Signed-off-by: S

Re: [U-Boot] [PATCH v2 08/11] drivers: serial_sifive: Fix baud rate calculation

2019-01-18 Thread Alexander Graf
On 18.01.19 12:19, Anup Patel wrote: > From: Atish Patra > > Compute the baud rate multipler with more precision. > > Signed-off-by: Atish Patra Same here. Alex ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v2 05/11] net: macb: Fix GEM hardware detection

2019-01-18 Thread Alexander Graf
On 18.01.19 12:19, Anup Patel wrote: > From: Atish Patra > > Fix MID bit field check to correctly identify all GEM hardwares. > > The check is updated as per macb driver in Linux location: > /drivers/net/ethernet/cadence/macb_main.c:259 > > Signed-off-by: Atish Patra This is missing your So

Re: [U-Boot] [PATCH v2 10/11] cpu: Bind timer driver for boot hart

2019-01-18 Thread Alexander Graf
On 18.01.19 12:19, Anup Patel wrote: > From: Atish Patra > > Currently, timer driver is bound only for hart0. > > There is no mandatory requirement that hart0 should always > come up. In fact, HiFive Unleashed SoC hart0 doesn't boot > in S-mode because it only has M-mode. > > The timer driver

Re: [U-Boot] [PATCH v2 0/7] mmc: sunxi: Enable DM_MMC

2019-01-18 Thread Andre Przywara
On Thu, 17 Jan 2019 22:39:44 +0530 Jagan Teki wrote: > V2 for previous version[1] changes, for enabling DM_MMC > on Allwinner platform. So this is a neat and simple solution to the DM_MMC problem, to the point where I am wondering why we actually need all those DT driven clock and reset drivers

Re: [U-Boot] [PATCH v2 0/7] mmc: sunxi: Enable DM_MMC

2019-01-18 Thread Tom Rini
On Fri, Jan 18, 2019 at 11:53:49AM +, Andre Przywara wrote: > On Thu, 17 Jan 2019 22:39:44 +0530 > Jagan Teki wrote: > > > V2 for previous version[1] changes, for enabling DM_MMC > > on Allwinner platform. > > So this is a neat and simple solution to the DM_MMC problem, to the > point where

Re: [U-Boot] Problems to boot i.MX8QXP EVK board

2019-01-18 Thread Fabio Estevam
Hi Peng, On Fri, Jan 18, 2019 at 6:02 AM Peng Fan wrote: > My log: > U-Boot SPL 2019.01-rc3-00052-gc74bdbad65-dirty (Jan 18 2019 - 16:05:58 +0800) > Normal Boot > Trying to boot from MMC2_2 Could you try a clean 2019.01 instead? There is no SPL support in 2019.01, so I guess you are testing on

Re: [U-Boot] [PATCH v2 0/7] mmc: sunxi: Enable DM_MMC

2019-01-18 Thread Andre Przywara
On Fri, 18 Jan 2019 07:17:41 -0500 Tom Rini wrote: > On Fri, Jan 18, 2019 at 11:53:49AM +, Andre Przywara wrote: > > On Thu, 17 Jan 2019 22:39:44 +0530 > > Jagan Teki wrote: > > > > > V2 for previous version[1] changes, for enabling DM_MMC > > > on Allwinner platform. > > > > So this i

Re: [U-Boot] Problems to boot i.MX8QXP EVK board

2019-01-18 Thread Peng Fan
> -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2019年1月18日 20:27 > To: Peng Fan > Cc: Breno Matheus Lima ; Breno Matheus Lima > ; Fabio Estevam ; > U-Boot-Denx ; dl-uboot-imx > Subject: Re: Problems to boot i.MX8QXP EVK board > > Hi Peng, > > On Fri, Jan

Re: [U-Boot] Problems to boot i.MX8QXP EVK board

2019-01-18 Thread Fabio Estevam
Hi Peng, On Fri, Jan 18, 2019 at 10:31 AM Peng Fan wrote: > oh, I missed that > https://patchwork.ozlabs.org/project/uboot/list/?submitter=67896 has not been > merged. > The patch will break booting without SPL. If we revert f7e475db4011("tools: imx8image: set dcd_skip to true") will it break

Re: [U-Boot] Problems to boot i.MX8QXP EVK board

2019-01-18 Thread Peng Fan
Hi Fabio, > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2019年1月18日 20:41 > To: Peng Fan > Cc: Breno Matheus Lima ; Breno Matheus Lima > ; Fabio Estevam ; > U-Boot-Denx ; dl-uboot-imx > Subject: Re: Problems to boot i.MX8QXP EVK board > > Hi Peng, > > On

[U-Boot] [PATCH] Revert "tools: imx8image: set dcd_skip to true"

2019-01-18 Thread Fabio Estevam
This reverts commit f7e475db4011d18b4ae974154eb022c3af6a4d16. This commit breaks the boot on imx8qxp evk and it should only be re-applied after imx8qxp evk is converted to SPL. Revert it for now, so that imx8qxp evk can be functional. Reported-by: Breno Lima Signed-off-by: Fabio Estevam --- t

Re: [U-Boot] [PATCH] Revert "tools: imx8image: set dcd_skip to true"

2019-01-18 Thread Peng Fan
> -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2019年1月18日 21:00 > To: sba...@denx.de > Cc: Peng Fan ; u-boot@lists.denx.de; Breno Matheus > Lima ; dl-uboot-imx ; Fabio > Estevam > Subject: [PATCH] Revert "tools: imx8image: set dcd_skip to true" > > This r

Re: [U-Boot] [PATCH v2 05/11] net: macb: Fix GEM hardware detection

2019-01-18 Thread Anup Patel
> -Original Message- > From: Alexander Graf [mailto:ag...@suse.de] > Sent: Friday, January 18, 2019 5:22 PM > To: Anup Patel ; Rick Chen ; > Bin Meng ; Joe Hershberger > ; Lukas Auer ; > Masahiro Yamada ; Simon Glass > > Cc: Palmer Dabbelt ; Paul Walmsley > ; Atish Patra ; > Christoph He

Re: [U-Boot] [PATCH v2 10/11] cpu: Bind timer driver for boot hart

2019-01-18 Thread Anup Patel
> -Original Message- > From: Alexander Graf [mailto:ag...@suse.de] > Sent: Friday, January 18, 2019 5:22 PM > To: Anup Patel ; Rick Chen ; > Bin Meng ; Joe Hershberger > ; Lukas Auer ; > Masahiro Yamada ; Simon Glass > > Cc: Palmer Dabbelt ; Paul Walmsley > ; Atish Patra ; > Christoph He

Re: [U-Boot] [PATCH v2 08/11] drivers: serial_sifive: Fix baud rate calculation

2019-01-18 Thread Anup Patel
> -Original Message- > From: Alexander Graf [mailto:ag...@suse.de] > Sent: Friday, January 18, 2019 5:22 PM > To: Anup Patel ; Rick Chen ; > Bin Meng ; Joe Hershberger > ; Lukas Auer ; > Masahiro Yamada ; Simon Glass > > Cc: Palmer Dabbelt ; Paul Walmsley > ; Atish Patra ; > Christoph He

Re: [U-Boot] [PATCH v2 05/11] net: macb: Fix GEM hardware detection

2019-01-18 Thread Alexander Graf
On 18.01.19 14:03, Anup Patel wrote: > > >> -Original Message- >> From: Alexander Graf [mailto:ag...@suse.de] >> Sent: Friday, January 18, 2019 5:22 PM >> To: Anup Patel ; Rick Chen ; >> Bin Meng ; Joe Hershberger >> ; Lukas Auer ; >> Masahiro Yamada ; Simon Glass >> >> Cc: Palmer Dabb

Re: [U-Boot] Problems to boot i.MX8QXP EVK board

2019-01-18 Thread Fabio Estevam
Hi Peng, On Fri, Jan 18, 2019 at 10:54 AM Peng Fan wrote: > > If we revert f7e475db4011("tools: imx8image: set dcd_skip to true") will it > > break imx8m evk boot? > > No. i.MX8M use imx8mimage.c not imx8image.c. > > It is ok to revert that patch. And it will not impact the coming SPL booting.

Re: [U-Boot] [PATCH] Revert "tools: imx8image: set dcd_skip to true"

2019-01-18 Thread Breno Matheus Lima
Hi Fabio, Em sex, 18 de jan de 2019 às 11:00, Fabio Estevam escreveu: > > This reverts commit f7e475db4011d18b4ae974154eb022c3af6a4d16. > > This commit breaks the boot on imx8qxp evk and it should only > be re-applied after imx8qxp evk is converted to SPL. > > Revert it for now, so that imx8qxp e

Re: [U-Boot] [PATCH v2 05/11] net: macb: Fix GEM hardware detection

2019-01-18 Thread Anup Patel
> -Original Message- > From: Alexander Graf [mailto:ag...@suse.de] > Sent: Friday, January 18, 2019 6:41 PM > To: Anup Patel ; Rick Chen ; > Bin Meng ; Joe Hershberger > ; Lukas Auer ; > Masahiro Yamada ; Simon Glass > > Cc: Palmer Dabbelt ; Paul Walmsley > ; Atish Patra ; > Christoph He

Re: [U-Boot] [PATCH 04/11] net: macb: Fix clk API usage for RISC-V systems

2019-01-18 Thread Anup Patel
> -Original Message- > From: Alexander Graf [mailto:ag...@suse.de] > Sent: Friday, January 18, 2019 5:05 PM > To: Anup Patel > Cc: Rick Chen ; Bin Meng ; > Joe Hershberger ; Lukas Auer > ; Masahiro Yamada > ; Simon Glass ; > Palmer Dabbelt ; Paul Walmsley > ; Atish Patra ; > Christoph He

Re: [U-Boot] [PATCH 04/11] net: macb: Fix clk API usage for RISC-V systems

2019-01-18 Thread Alexander Graf
On 18.01.19 14:28, Anup Patel wrote: > > >> -Original Message- >> From: Alexander Graf [mailto:ag...@suse.de] >> Sent: Friday, January 18, 2019 5:05 PM >> To: Anup Patel >> Cc: Rick Chen ; Bin Meng ; >> Joe Hershberger ; Lukas Auer >> ; Masahiro Yamada >> ; Simon Glass ; >> Palmer Dabb

Re: [U-Boot] [PULL] u-boot-mips

2019-01-18 Thread Tom Rini
On Wed, Jan 16, 2019 at 07:26:02PM +0100, Daniel Schwierzeck wrote: > Hi Tom, > > please pull updates for MIPS > > https://travis-ci.org/danielschwierzeck/u-boot/builds/480371326 > > > The following changes since commit d3689267f92c5956e09cc7d1baa4700141662bff: > > Prepare v2019.01 (2019-01

[U-Boot] [PATCH] Makefile: have "make distclean" remove CHANGELOG

2019-01-18 Thread Robert P. J. Day
Ensure that "make distclean" deletes an existing CHANGELOG file. Signed-off-by: Robert P. J. Day --- diff --git a/Makefile b/Makefile index 3be9fc5c34..b9e8b0952c 100644 --- a/Makefile +++ b/Makefile @@ -1795,7 +1795,7 @@ distclean: mrproper -o -name '.*.rej' -o -name '*%' -o -

[U-Boot] [RESEND] videomodes: Relax EDID validation checks for hsync/vsync pulse width

2019-01-18 Thread Priit Laes
From: Priit Laes Current EDID detailed timing parser errors out when either horizontal or vertical pulse sync width is 0, thus not allowing a display with EDID listed below work properly. EDID below works ok within Linux although it warns about these two fields being 0. Therefore relax the check

[U-Boot] Bad block present before NAND flash partition offset

2019-01-18 Thread Madhu koriginja
Hi All, In my NAND flash one bad block present before some 'X' binary offset, after this binary partition kernel and rootfs partitions are present. In U-Boot when I access this x binary using the offset address it is not getting binary file content, because of one bad block the 'X' binary flashed i

[U-Boot] [PATCH 00/26] mx6sabre: Add DM and SPL FIT support

2019-01-18 Thread Abel Vesa
This comes as a next iteration to the followin RFC: https://lists.denx.de/pipermail/u-boot/2019-January/354834.html Changes since that RFC: * Add all the dl/qp/q dts and dtsi files from linux as suggested by Fabio Estevam * Removed the ENET reset gpio handling from board file since relying

[U-Boot] [PATCH 01/26] usb: Rename SPL_USB_SUPPORT to SPL_USB_STORAGE

2019-01-18 Thread Abel Vesa
Since there is the SPL_USB_HOST_SUPPORT for enabling USB support in SPL, makes more sense to rename the SPL_USB_SUPPORT as SPL_USB_STORAGE. Everything that is not part of the usb storage support in SPL is now build under SPL_USB_HOST_SUPPORT. Signed-off-by: Abel Vesa --- arch/arm/include/asm/arc

[U-Boot] [PATCH 03/26] configs: imx6sabreauto: Add DM_MMC support

2019-01-18 Thread Abel Vesa
Add DM_MMC config to imx6sabreauto defconfig. Signed-off-by: Abel Vesa --- configs/mx6sabreauto_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index 8856567..23cb47e 100644 --- a/configs/mx6sabreauto_defconfig +++ b/c

[U-Boot] [PATCH 07/26] arm: dts: Add devicetree for i.MX6QP

2019-01-18 Thread Abel Vesa
Add i.MX6QP dtsi support from Linux. Signed-off-by: Abel Vesa --- arch/arm/dts/imx6qp.dtsi | 89 1 file changed, 89 insertions(+) create mode 100644 arch/arm/dts/imx6qp.dtsi diff --git a/arch/arm/dts/imx6qp.dtsi b/arch/arm/dts/imx6qp.dtsi new fi

[U-Boot] [PATCH 02/26] usb: ehci-mx6: Make regulator DM_REGULATOR dependent

2019-01-18 Thread Abel Vesa
Do the regulator related work only if the build has the DM_REGULATOR. Signed-off-by: Abel Vesa --- drivers/usb/host/ehci-mx6.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index 1acf08d..9483947 100644 --- a/d

[U-Boot] [PATCH 05/26] mmc: fsl_esdhc: Fix DM_REGULATOR ifdefs for SPL builds

2019-01-18 Thread Abel Vesa
Since the fsl_esdhc will also be used by SPL, make the preprocessor switches more generic to allow any kind of build. Signed-off-by: Abel Vesa --- drivers/mmc/fsl_esdhc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c

[U-Boot] [PATCH 04/26] configs: imx6sabreauto: Add DM_USB support

2019-01-18 Thread Abel Vesa
Add the DM support for USB. For that, DM_REGULATOR is needed. Signed-off-by: Abel Vesa --- configs/mx6sabreauto_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index 23cb47e..e55c2d9 100644 --- a/configs/mx6sabreauto

[U-Boot] [PATCH 15/26] arm: dts: Add imx6qp-sabreauto dts file

2019-01-18 Thread Abel Vesa
Add imx6qp-sabreauto dts support from Linux. Signed-off-by: Abel Vesa --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/imx6qp-sabreauto.dts | 93 +++ 2 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/imx6qp-sabreauto.

[U-Boot] [PATCH 19/26] configs: mx6sabresd: Add SPL FIT and DM support

2019-01-18 Thread Abel Vesa
Enable all the necessary configs for SPL DM and FIT support for mx6sabresd. Signed-off-by: Abel Vesa --- configs/mx6sabresd_defconfig | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/configs/mx6sabresd_defconfig b/configs/mx6sabresd_defconfig index 1857c18

[U-Boot] [PATCH 10/26] arm: dts: Add all imx6sabre u-boot dtsi files

2019-01-18 Thread Abel Vesa
Add imx6 sabreauto and sabresd u-boot dtsi files which take care of the u-boot,dm-spl property and leave the other dts and dtsi files be linux alike. Signed-off-by: Abel Vesa --- arch/arm/dts/imx6dl-sabreauto-u-boot.dtsi | 6 ++ arch/arm/dts/imx6q-sabreauto-u-boot.dtsi | 6 ++ arch/

[U-Boot] [PATCH 25/26] board: mx6sabresd: Remove non-DM code

2019-01-18 Thread Abel Vesa
Since the mx6sabreauto has DM support, remove the unused non-DM code from mx6sabresd board file. Signed-off-by: Abel Vesa --- board/freescale/mx6sabresd/mx6sabresd.c | 50 - 1 file changed, 50 deletions(-) diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/b

[U-Boot] [PATCH 21/26] mx6sabresd: Add DM_GPIO support

2019-01-18 Thread Abel Vesa
Add the DM_GPIO related config for mx6sabresd. Also add the gpio request calls. Signed-off-by: Abel Vesa --- board/freescale/mx6sabresd/mx6sabresd.c | 5 + configs/mx6sabresd_defconfig| 1 + 2 files changed, 6 insertions(+) diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b

[U-Boot] [PATCH 16/26] arm: dts: Add imx6qp-sabresd dts file

2019-01-18 Thread Abel Vesa
Add imx6qp-sabresd dts support from Linux. Signed-off-by: Abel Vesa --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/imx6qp-sabresd.dts | 93 + 2 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/imx6qp-sabresd.dts d

[U-Boot] [PATCH 09/26] arm: dts: Add imx6qdl-sabresd dtsi file

2019-01-18 Thread Abel Vesa
Add imx6qdl-sabresd dtsi support from Linux. Signed-off-by: Abel Vesa --- arch/arm/dts/imx6qdl-sabresd.dtsi | 623 ++ 1 file changed, 623 insertions(+) create mode 100644 arch/arm/dts/imx6qdl-sabresd.dtsi diff --git a/arch/arm/dts/imx6qdl-sabresd.dtsi b/arc

[U-Boot] [PATCH 17/26] arm: imx: Add FIT SPL its

2019-01-18 Thread Abel Vesa
Add simple its in order to allow SPL to boot u-boot proper via FIT table. Signed-off-by: Abel Vesa --- arch/arm/mach-imx/mx6/fit_spl.its | 41 +++ 1 file changed, 41 insertions(+) create mode 100644 arch/arm/mach-imx/mx6/fit_spl.its diff --git a/arch/arm/mac

[U-Boot] [PATCH 06/26] arm: imx: Add board_fit_config_name_match to support FIT in SPL

2019-01-18 Thread Abel Vesa
This function is necessary to enable FIT support in SPL. Doesn't really do anything. Signed-off-by: Abel Vesa --- arch/arm/mach-imx/spl.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/mach-imx/spl.c b/arch/arm/mach-imx/spl.c index 397d6d4..2e770c0 100644 --- a/arch/arm

[U-Boot] [PATCH 24/26] board: mx6sabreauto: Remove the non-DM code

2019-01-18 Thread Abel Vesa
Since the mx6sabreauto has DM support, remove the unused non-DM code from mx6sabreauto board file. Signed-off-by: Abel Vesa --- board/freescale/mx6sabreauto/mx6sabreauto.c | 70 - 1 file changed, 70 deletions(-) diff --git a/board/freescale/mx6sabreauto/mx6sabreauto.

[U-Boot] [PATCH 08/26] arm: dts: Add imx6qdl-sabreauto dtsi file

2019-01-18 Thread Abel Vesa
Add imx6qdl-sabreauto dtsi support from Linux. Signed-off-by: Abel Vesa --- arch/arm/dts/imx6qdl-sabreauto.dtsi | 634 1 file changed, 634 insertions(+) create mode 100644 arch/arm/dts/imx6qdl-sabreauto.dtsi diff --git a/arch/arm/dts/imx6qdl-sabreauto.dtsi

Re: [U-Boot] [PATCH 01/26] usb: Rename SPL_USB_SUPPORT to SPL_USB_STORAGE

2019-01-18 Thread Tom Rini
On Fri, Jan 18, 2019 at 02:53:15PM +, Abel Vesa wrote: > Since there is the SPL_USB_HOST_SUPPORT for enabling USB support in SPL, > makes more sense to rename the SPL_USB_SUPPORT as SPL_USB_STORAGE. > Everything that is not part of the usb storage support in SPL is now > build under SPL_USB_HO

[U-Boot] [PATCH 12/26] arm: dts: Add imx6q-sabresd dts file

2019-01-18 Thread Abel Vesa
Add imx6q-sabresd dts support from Linux. Signed-off-by: Abel Vesa --- arch/arm/dts/Makefile | 3 ++- arch/arm/dts/imx6q-sabresd.dts | 25 + 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/imx6q-sabresd.dts diff --git a/arch/ar

[U-Boot] [PATCH 23/26] configs: mx6sabresd: Add DM_SPI_FLASH necessary configs

2019-01-18 Thread Abel Vesa
Enable all neceassary configs to support DM_SPI_FLASH on mx6sabresd. Signed-off-by: Abel Vesa --- configs/mx6sabresd_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/mx6sabresd_defconfig b/configs/mx6sabresd_defconfig index 9451bbd..7fbfddb 100644 --- a/configs/mx6sabresd_

[U-Boot] [PATCH 22/26] configs: mx6sabreauto: Add DM_SPI_FLASH necessary configs

2019-01-18 Thread Abel Vesa
Enable all neceassary configs to support DM_SPI_FLASH on mx6sabreauto. Signed-off-by: Abel Vesa --- configs/mx6sabreauto_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index bcd6ff0..a4d051a 100644 --- a/configs/mx6

[U-Boot] [PATCH 18/26] configs: mx6sabreauto: Add SPL FIT and DM support

2019-01-18 Thread Abel Vesa
Enable all the necessary configs for SPL DM and FIT support for mx6sabreauto. Signed-off-by: Abel Vesa --- configs/mx6sabreauto_defconfig | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index e55c2

[U-Boot] [PATCH 11/26] arm: dts: Add imx6q-sabreauto dts file

2019-01-18 Thread Abel Vesa
Add imx6q-sabreauto dts support from Linux. Signed-off-by: Abel Vesa --- arch/arm/dts/Makefile| 3 ++- arch/arm/dts/imx6q-sabreauto.dts | 25 + 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/imx6q-sabreauto.dts diff --git a

[U-Boot] [PATCH 20/26] mx6sabreauto: Add DM_GPIO support

2019-01-18 Thread Abel Vesa
Add the DM_GPIO related config for mx6sabreauto. Also add the gpio request calls. Signed-off-by: Abel Vesa --- board/freescale/mx6sabreauto/mx6sabreauto.c | 3 +++ configs/mx6sabreauto_defconfig | 1 + 2 files changed, 4 insertions(+) diff --git a/board/freescale/mx6sabreauto/mx6sa

[U-Boot] [PATCH 14/26] arm: dts: Add imx6dl-sabresd dts file

2019-01-18 Thread Abel Vesa
Add imx6dl-sabresd dts support from Linux. Signed-off-by: Abel Vesa --- arch/arm/dts/Makefile | 3 ++- arch/arm/dts/imx6dl-sabresd.dts | 17 + 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/imx6dl-sabresd.dts diff --git a/arch/arm/dt

[U-Boot] [PATCH 13/26] arm: dts: Add imx6dl-sabreauto dts file

2019-01-18 Thread Abel Vesa
Add imx6dl-sabreauto dts support from Linux. Signed-off-by: Abel Vesa --- arch/arm/dts/Makefile | 3 ++- arch/arm/dts/imx6dl-sabreauto.dts | 17 + 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/imx6dl-sabreauto.dts diff --git a/arc

Re: [U-Boot] [PATCH 00/26] mx6sabre: Add DM and SPL FIT support

2019-01-18 Thread Fabio Estevam
Hi Abel, On Fri, Jan 18, 2019 at 12:53 PM Abel Vesa wrote: > > This comes as a next iteration to the followin RFC: > https://lists.denx.de/pipermail/u-boot/2019-January/354834.html > > Changes since that RFC: > * Add all the dl/qp/q dts and dtsi files from linux as suggested >by Fabio Esteva

[U-Boot] [PATCH 26/26] board: mx6sabresd: Remove the enet reset gpio handling

2019-01-18 Thread Abel Vesa
Rely on the phy-reset-gpios which is set in imx6qdl-sabresd dtsi and get rid of the enet reset gpio handling from the board file. Signed-off-by: Abel Vesa --- board/freescale/mx6sabresd/mx6sabresd.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/board/freescale/mx6sabresd/mx6sabresd.c

Re: [U-Boot] [PATCH v3 2/4] net: add MSCC Ocelot switch support

2019-01-18 Thread Daniel Schwierzeck
Am 17.01.19 um 17:07 schrieb Gregory CLEMENT: > This patch adds support for the Microsemi Ethernet switch present on > Ocelot SoCs. > > Signed-off-by: Gregory CLEMENT > --- > MAINTAINERS | 1 + > drivers/net/Kconfig | 7 + > drivers/net/Makefile| 1 + > dr

[U-Boot] [PATCH 0/4] Align U-Boot I2C DM bus ID handling with Linux

2019-01-18 Thread Michal Simek
U-Boot with I2C_DM enabled is not capable to list i2c busses connected to i2c mux. For getting this work there is a need to find out highest alias ID and use this uniq number for new buses connected to I2C mux. This series is making this happen. There is only one missing piece which is that also i

[U-Boot] [PATCH 1/4] dm: core: Add of_alias_get_highest_id()

2019-01-18 Thread Michal Simek
The same functionality was added to Linux for i2c bus registration with this commit message: " of: base: add function to get highest id of an alias stem I2C supports adding adapters using either a dynamic or fixed id. The latter is provided by aliases in the DT case. To prevent id collisions of t

[U-Boot] [PATCH 4/4] i2c: mux: Add support for not listed sub-buses

2019-01-18 Thread Michal Simek
Before this patch is applied all i2c sub-buses are using number -1 and they can't be addresses(switch to). If all busses are listed in DT alias they will get proper numbers and U-Boot can work with them. In Linux buses which are not listed in DT alias get uniq number which starts from the first hig

[U-Boot] [PATCH 3/4] i2c: dm: Record maximum id of devices before probing devices

2019-01-18 Thread Michal Simek
There is a need to find out the first free i2c ID which can be used for i2s buses (including i2c buses connected to i2c mux). Do it early in init and share this variable with other i2c classes for uniq bus identification. Signed-off-by: Michal Simek --- drivers/i2c/i2c-uclass.c | 19 +++

[U-Boot] [PATCH 2/4] fdt: Introduce fdtdec_get_alias_highest_id()

2019-01-18 Thread Michal Simek
Find out the highest alias ID used for certain subsystem. This call will be used for alocating IDs for i2c buses which are not described in DT. Signed-off-by: Michal Simek --- include/fdtdec.h | 13 + lib/fdtdec.c | 33 + 2 files changed, 46 inser

Re: [U-Boot] [PATCH 19/26] configs: mx6sabresd: Add SPL FIT and DM support

2019-01-18 Thread Fabio Estevam
Hi Abel, On Fri, Jan 18, 2019 at 12:59 PM Abel Vesa wrote: > +CONFIG_OF_CONTROL=y > +CONFIG_SPL_OF_CONTROL=y > +CONFIG_DEFAULT_DEVICE_TREE="imx6q-sabresd" Does this mean that only imx6q-sabresd variant is supported after this series is applied? We still need to support imx6dl/imx6qp sabresd in

Re: [U-Boot] [PATCH 0/2] Board support updates for topic-miamiplus modules

2019-01-18 Thread Michal Simek
On 18. 01. 19 9:02, Mike Looijmans wrote: > Patches rebased for re-submission, were sent earlier as part of a longer > series. > > This improves performance and functionality for the topic-miamiplus > boards with Zynq 7035/7045/7100. > > Mike Looijmans (2): > topic-miamiplus: Run CPU at 800MHz

  1   2   >