Re: [U-Boot] [PATCH 2/2] i2c: mxc_i2c: Fix read and read->write xfers in DM mode

2019-04-30 Thread Trent Piepho
On Tue, 2019-04-30 at 06:34 +0200, Heiko Schocher wrote: > Hello Trent, > > Am 16.04.2019 um 00:02 schrieb Trent Piepho: > > This is an old driver that supports both device mapped and non-mapped > > mode, and covers a wide range of hardware. It's hard to change without > > risking breaking

[U-Boot] [PATCH 2/2 v2] i2c: mxc_i2c: Fix read and read->write xfers in DM mode

2019-04-30 Thread Trent Piepho
This is an old driver that supports both device mapped and non-mapped mode, and covers a wide range of hardware. It's hard to change without risking breaking something. I have to tried to be exceedingly detailed in this patch, so please excuse the length of the commit essay that follows. In

Re: [U-Boot] [PATCH 2/2] ti: Add am335x-pocketbeagle to am335x_evm_defconfig.

2019-04-30 Thread Vagrant Cascadian
On 2019-04-30, Tom Rini wrote: > On Mon, Apr 29, 2019 at 04:12:30PM -0700, Vagrant Cascadian wrote: > >> Add am335x-pocketbeagle to CONFIG_OF_LIST in am335x_evm_defconfig. >> >> Signed-off-by: Vagrant Cascadian > > We need to update include/configs/am335x_evm.h too so that it detects > this

Re: [U-Boot] [PATCH V2 1/2] usb: ohci: ohci-da8xx: Enable da850-ohci driver with DM support

2019-04-30 Thread Marek Vasut
On 4/30/19 12:21 PM, Adam Ford wrote: [..] > +#if CONFIG_IS_ENABLED(DM_USB) > +static int ohci_da8xx_probe(struct udevice *dev) > +{ > + struct ohci_regs *regs = (struct ohci_regs *)devfdt_get_addr(dev); > + struct da8xx_ohci *priv = dev_get_priv(dev); > + int i, err, ret, clock_nb; >

[U-Boot] [PATCH v2 2/4] ARM: dts: stm32mp: Add iwdg2 support for stm32mp157c

2019-04-30 Thread Patrice Chotard
This patch adds independent watchdog support for stm32mp157c in SPL. Signed-off-by: Patrice Chotard --- Changes in v2: None arch/arm/dts/stm32mp157-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/stm32mp157-u-boot.dtsi b/arch/arm/dts/stm32mp157-u-boot.dtsi

[U-Boot] [PATCH v2 1/4] watchdog: Kconfig: Sort entry alphabetically

2019-04-30 Thread Patrice Chotard
To make adding new entry easier, sort Kconfig entries in alphabetical order. Signed-off-by: Patrice Chotard Reviewed-by: Stefan Roese --- Changes in v2: None drivers/watchdog/Kconfig | 87 1 file changed, 44 insertions(+), 43 deletions(-)

Re: [U-Boot] [PATCH 3/4] cmd: gpt: fix and tidy up help message

2019-04-30 Thread Heinrich Schuchardt
On 4/30/19 4:53 AM, Eugeniu Rosca wrote: Apply the following changes: - Guard the 'gpt read' command by 'ifdef CONFIG_CMD_GPT_RENAME', since 'gpt read' is not available on CMD_GPT_RENAME=n - Prefix the {read,swap,rename} commands with one space for consistency - Prefix the 'guid'

Re: [U-Boot] [PATCH v2 2/2] RISCV: image: Parse Image.gz support in booti.

2019-04-30 Thread Marek Vasut
On 4/30/19 8:13 PM, Atish Patra wrote: > On 4/30/19 2:52 AM, Marek Vasut wrote: >> On 4/30/19 3:27 AM, Atish Patra wrote: >> >> [...] >> > Yes. FIT image parsing can be done in that way. However, the idea was > here to load Image.gz directly. Image.gz is default compressed Linux >

[U-Boot] [PATCH] net: davinci_emac: use driver model (CONFIG_DM_ETH)

2019-04-30 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Add support for CONFIG_DM_ETH to the davinci_emac driver. Optimally we should only support DM-enabled platforms but there are several non-DT boards that still use it so either we need to keep supporting it or drop the boards from u-boot. For now we're stuck with ugly

Re: [U-Boot] Booting MX6 via Serial Download after DM conversion

2019-04-30 Thread Fabio Estevam
Hi Tom, On Mon, Apr 29, 2019 at 2:57 PM Tom Rini wrote: > imx_usb is doing some checking of the second binary it sends along? > That sounds odd to start with, is there some specific history there? My understanding is that imx_usb_loader expects to find a valid IVT entry. After the conversion

Re: [U-Boot] cyclone5 reboot: warm or cold reset?

2019-04-30 Thread Marek Vasut
On 4/30/19 9:19 PM, Simon Goldschmidt wrote: > Am 30.04.2019 um 21:08 schrieb Marek Vasut: >> On 4/30/19 8:56 PM, Simon Goldschmidt wrote: >>> Hi all, >> >> Hi, >> >>> I added some of those I think worth discussing this. >>> >>> I was chasing a reboot problem on one of our cyclone5 boards today.

Re: [U-Boot] [PATCH] test/py: don't use mmc_rd config for other mmc tests

2019-04-30 Thread Stephen Warren
On 4/16/19 4:04 PM, Stephen Warren wrote: From: Stephen Warren Fix test_mmc_dev(), test_mmc_rescan(), test_mmc_info() not to use the same configuration data that test_mmc_rd() does. Doing so causes the following issues: * The new code uncondtionally expects certain keys to exist in the

[U-Boot] [PATCH v2 0/4] Add watchdog support for STM32MP1

2019-04-30 Thread Patrice Chotard
This series: - sorts Kconfig entries in alphabetical order - enable watchdog support in SPL for STM32MP1 - adds watchdog support to STM32MP1 boards Changes in v2: - Rename timeout variable in timeout_ms in stm32mp_wdt_start() Patrice Chotard (4): watchdog: Kconfig: Sort entry

[U-Boot] [PATCH 1/2 v2] i2c: mxc_i2c: Document how non-DM functions work

2019-04-30 Thread Trent Piepho
It is not very clear how these work in relation to the exact I2C xfers they produce. In paticular, the address length is somewhat overloaded in the read method. Clearly document the existing behavior. Maybe this will help the next person who needs to work on this driver and not break non-DM

Re: [U-Boot] [PATCH 2/4] disk: efi: Fix memory leak on 'gpt verify'

2019-04-30 Thread Heinrich Schuchardt
On 4/30/19 4:53 AM, Eugeniu Rosca wrote: Below is what happens on R-Car H3ULCB-KF using clean U-Boot v2019.04-00810-g6aebc0d11a10 and r8a7795_ulcb_defconfig: => ### interrupt autoboot => gpt verify mmc 1 No partition list provided - only basic check Verify GPT: success! => ### keep

Re: [U-Boot] cyclone5 reboot: warm or cold reset?

2019-04-30 Thread Simon Goldschmidt
Am 30.04.2019 um 22:01 schrieb Marek Vasut: On 4/30/19 9:19 PM, Simon Goldschmidt wrote: Am 30.04.2019 um 21:08 schrieb Marek Vasut: On 4/30/19 8:56 PM, Simon Goldschmidt wrote: Hi all, Hi, I added some of those I think worth discussing this. I was chasing a reboot problem on one of our

[U-Boot] [PATCH 1/3] clk: stm32mp1: Add SPI1 clock entry

2019-04-30 Thread Patrice Chotard
Add missing SPI1 clock needed by SPI1 instance. Signed-off-by: Patrice Chotard --- drivers/clk/clk_stm32mp1.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/clk/clk_stm32mp1.c b/drivers/clk/clk_stm32mp1.c index 24859fd..800ded7 100644 --- a/drivers/clk/clk_stm32mp1.c +++

[U-Boot] [PATCH 0/3] Add SPI driver suport for STM32MP1

2019-04-30 Thread Patrice Chotard
This series: - adds SPI1 clock entry in clock driver - adds STM32MP1 SPI driver - enables SPI for STM32MP1 Patrice Chotard (3): clk: stm32mp1: Add SPI1 clock entry spi: stm32: Add Serial Peripheral Interface driver for STM32MP configs: stm32mp15: Enable SPI relative flags MAINTAINERS

Re: [U-Boot] [PATCH] Makefile: Create single image for imx6 socs based boards

2019-04-30 Thread Jagan Teki
Hi Stefano, On Tue, Apr 30, 2019 at 9:36 PM Stefano Babic wrote: > > Hi Shyam, > > On 30/04/19 12:33, Shyam Saini wrote: > > IMX6 platform has two stage boot loaders like SPL and > > U-Boot proper. For each stage we need to burn the image > > on to flash with respective offsets. > > > > This

Re: [U-Boot] cyclone5 reboot: warm or cold reset?

2019-04-30 Thread Marek Vasut
On 4/30/19 8:56 PM, Simon Goldschmidt wrote: > Hi all, Hi, > I added some of those I think worth discussing this. > > I was chasing a reboot problem on one of our cyclone5 boards today. That > board boots from a "n25q256a" qspi flash. Up to now, U-Boot configures > the boot ROM to just jump to

Re: [U-Boot] cyclone5 reboot: warm or cold reset?

2019-04-30 Thread Simon Goldschmidt
Am 30.04.2019 um 21:08 schrieb Marek Vasut: On 4/30/19 8:56 PM, Simon Goldschmidt wrote: Hi all, Hi, I added some of those I think worth discussing this. I was chasing a reboot problem on one of our cyclone5 boards today. That board boots from a "n25q256a" qspi flash. Up to now, U-Boot

Re: [U-Boot] [PATCH] Makefile: Create single image for imx6 socs based boards

2019-04-30 Thread Stefano Babic
Hi Shyam, On 30/04/19 12:33, Shyam Saini wrote: > IMX6 platform has two stage boot loaders like SPL and > U-Boot proper. For each stage we need to burn the image > on to flash with respective offsets. > > This patch create a single image using binman, so that > user can get rid of burning

Re: [U-Boot] [PATCH 2/4] crypto/fsl: Use __sec_set_jr_context_normal

2019-04-30 Thread Breno Matheus Lima
Hi Bryan, Em ter, 30 de abr de 2019 às 05:13, Bryan O'Donoghue escreveu: > > > > On 30/04/2019 02:28, Bryan O'Donoghue wrote: > > > > > > On 25/04/2019 04:24, Breno Matheus Lima wrote: > >> I couldn't get encrypted boot working in my first attempt, doing the > >> exact same procedure with commit

[U-Boot] [PATCH 2/3] spi: stm32: Add Serial Peripheral Interface driver for STM32MP

2019-04-30 Thread Patrice Chotard
Add SPI driver support for STM32MP SoCs family. Signed-off-by: Patrice Chotard --- MAINTAINERS | 1 + drivers/spi/Kconfig | 8 + drivers/spi/Makefile| 1 + drivers/spi/stm32_spi.c | 615 4 files changed, 625

[U-Boot] [PATCH 3/3] configs: stm32mp15: Enable SPI relative flags

2019-04-30 Thread Patrice Chotard
Enable STM32_SPI, SPI, DM_SPI and CMD_SPI flags. This enables the SPI support for STM32MP15. Signed-off-by: Patrice Chotard --- configs/stm32mp15_basic_defconfig | 4 configs/stm32mp15_trusted_defconfig | 4 2 files changed, 8 insertions(+) diff --git

Re: [U-Boot] [PATCH] test/py: don't use mmc_rd config for other mmc tests

2019-04-30 Thread Marek Vasut
On 4/30/19 5:29 PM, Stephen Warren wrote: > On 4/16/19 4:04 PM, Stephen Warren wrote: >> From: Stephen Warren >> >> Fix test_mmc_dev(), test_mmc_rescan(), test_mmc_info() not to use the >> same configuration data that test_mmc_rd() does. Doing so causes the >> following issues: >> >> * The new

Re: [U-Boot] [PATCH] Makefile: Create single image for imx6 socs based boards

2019-04-30 Thread Stefano Babic
On 30/04/19 18:56, Jagan Teki wrote: > Hi Stefano, > > On Tue, Apr 30, 2019 at 9:36 PM Stefano Babic wrote: >> >> Hi Shyam, >> >> On 30/04/19 12:33, Shyam Saini wrote: >>> IMX6 platform has two stage boot loaders like SPL and >>> U-Boot proper. For each stage we need to burn the image >>> on to

Re: [U-Boot] [PATCH] Makefile: Create single image for imx6 socs based boards

2019-04-30 Thread Stefano Babic
On 30/04/19 19:08, Jagan Teki wrote: > On Tue, Apr 30, 2019 at 10:30 PM Stefano Babic wrote: >> >> On 30/04/19 18:56, Jagan Teki wrote: >>> Hi Stefano, >>> >>> On Tue, Apr 30, 2019 at 9:36 PM Stefano Babic wrote: Hi Shyam, On 30/04/19 12:33, Shyam Saini wrote: > IMX6

Re: [U-Boot] [PATCH 2/2] ti: Add am335x-pocketbeagle to am335x_evm_defconfig.

2019-04-30 Thread Tom Rini
On Tue, Apr 30, 2019 at 10:02:11AM -0700, Vagrant Cascadian wrote: > On 2019-04-30, Tom Rini wrote: > > On Mon, Apr 29, 2019 at 04:12:30PM -0700, Vagrant Cascadian wrote: > > > >> Add am335x-pocketbeagle to CONFIG_OF_LIST in am335x_evm_defconfig. > >> > >> Signed-off-by: Vagrant Cascadian > > >

[U-Boot] cyclone5 reboot: warm or cold reset?

2019-04-30 Thread Simon Goldschmidt
Hi all, I added some of those I think worth discussing this. I was chasing a reboot problem on one of our cyclone5 boards today. That board boots from a "n25q256a" qspi flash. Up to now, U-Boot configures the boot ROM to just jump to OCRAM when rebooting and hope that the SPL is still there

[U-Boot] [PATCH v2 4/4] configs: stm32mp15: Enable WDT flags

2019-04-30 Thread Patrice Chotard
This allows to enable WATCHDOG and WDT flags to be able to reset the watchdog and to support watchdog driver model. Signed-off-by: Patrice Chotard --- Changes in v2: None configs/stm32mp15_basic_defconfig | 2 ++ configs/stm32mp15_trusted_defconfig | 2 ++ 2 files changed, 4 insertions(+)

[U-Boot] [PATCH v2 3/4] watchdog: stm32mp: Add watchdog driver

2019-04-30 Thread Patrice Chotard
This patch adds IWDG (Independent WatchDoG) support for STM32MP platform. Signed-off-by: Christophe Kerello Signed-off-by: Patrice Chotard --- Changes in v2: - Rename timeout variable in timeout_ms in stm32mp_wdt_start() MAINTAINERS| 1 +

Re: [U-Boot] [PATCH v2 2/2] RISCV: image: Parse Image.gz support in booti.

2019-04-30 Thread Atish Patra
On 4/30/19 2:52 AM, Marek Vasut wrote: On 4/30/19 3:27 AM, Atish Patra wrote: [...] Yes. FIT image parsing can be done in that way. However, the idea was here to load Image.gz directly. Image.gz is default compressed Linux kernel image format in RISC-V. Sigh, and the image header is

Re: [U-Boot] [PATCH] i2c: mxc: Hide kconfig based control in DM_I2C mode

2019-04-30 Thread Trent Piepho
On Tue, 2019-04-30 at 09:20 +0200, Heiko Schocher wrote: > > Am 12.04.2019 um 21:19 schrieb Trent Piepho: > > > These options only apply when not using DM_I2C. When using device > > > trees, the dt will enable and control the speeds of the I2C > > > controller(s) and these configuration options

Re: [U-Boot] [PATCH 1/4] disk: efi: Fix memory leak on 'gpt guid'

2019-04-30 Thread Heinrich Schuchardt
On 4/30/19 4:53 AM, Eugeniu Rosca wrote: Below is what happens on R-Car H3ULCB-KF using clean U-Boot v2019.04-00810-g6aebc0d11a10 and r8a7795_ulcb_defconfig: => ### interrupt autoboot => gpt guid mmc 1 21200400-0804-0146-9dcc-a8c51255994f success! => ### keep calling 'gpt guid mmc 1'

Re: [U-Boot] [PATCH 4/4] lib: uuid: Improve randomness of uuid values on RANDOM_UUID=y

2019-04-30 Thread Heinrich Schuchardt
On 4/30/19 4:53 AM, Eugeniu Rosca wrote: The random uuid values (enabled via CONFIG_RANDOM_UUID=y) on our platform are always the same. Below is consistent on each cold boot: => ### interrupt autoboot => env default -a; gpt write mmc 1 $partitions; print uuid_gpt_misc ...

Re: [U-Boot] Booting MX6 via Serial Download after DM conversion

2019-04-30 Thread Tom Rini
On Tue, Apr 30, 2019 at 02:39:17PM -0300, Fabio Estevam wrote: > Hi Tom, > > On Mon, Apr 29, 2019 at 2:57 PM Tom Rini wrote: > > > imx_usb is doing some checking of the second binary it sends along? > > That sounds odd to start with, is there some specific history there? > > My understanding

[U-Boot] [PATCH] board: stm32mp1: Update power supply check via USB TYPE-C

2019-04-30 Thread Patrice Chotard
Add 2 new checks: - detect when USB TYPE-C cable is not plugged correctly. In this case, GND and VBUS pins are connected but not CC1 and CC2 pins. - detect is an USB Type-C charger supplies more than 3 Amps which is not compliant with the USB Type-C specification In these 2

[U-Boot] Pull request: u-boot-imx u-boot-imx-20190426

2019-04-30 Thread Stefano Babic
Hi Tom, next chunk of patches, another big chunk will follow. Please pull from u-boot-imx, thanks ! Travis: --- https://travis-ci.org/sbabic/u-boot-imx/builds/524580462 The following changes since commit 3fbd2dce351ab5d40d3244f26bd713caa4f826e2: Merge branch '2019-04-22-master-imports'

Re: [U-Boot] [PATCH] Makefile: Create single image for imx6 socs based boards

2019-04-30 Thread Jagan Teki
On Tue, Apr 30, 2019 at 10:30 PM Stefano Babic wrote: > > On 30/04/19 18:56, Jagan Teki wrote: > > Hi Stefano, > > > > On Tue, Apr 30, 2019 at 9:36 PM Stefano Babic wrote: > >> > >> Hi Shyam, > >> > >> On 30/04/19 12:33, Shyam Saini wrote: > >>> IMX6 platform has two stage boot loaders like SPL

Re: [U-Boot] [PATCH 1/2 v2] fit: Support compression for non-kernel components (e.g. FDT)

2019-04-30 Thread Simon Goldschmidt
Am 30.04.2019 um 06:05 schrieb Simon Goldschmidt: Julius Werner mailto:jwer...@chromium.org>> schrieb am Di., 30. Apr. 2019, 02:38: > However, compared to my above mentioned RFC patch, this here somehow > fails when loading something from the image, e.g. using the cmd 'fpga >

Re: [U-Boot] [PATCH 1/2 v2] fit: Support compression for non-kernel components (e.g. FDT)

2019-04-30 Thread Simon Goldschmidt
Am 18.04.2019 um 23:08 schrieb Julius Werner: This patch adds support for compressing non-kernel image nodes in a FIT image (kernel nodes could already be compressed previously). This can reduce the size of FIT images and therefore improve boot times (especially when an image bundles many

Re: [U-Boot] [PATCH] Convert CONFIG_SUPPORT_EMMC_BOOT to Kconfig

2019-04-30 Thread Sébastien Szymanski
Hi, On 4/19/19 6:38 AM, Alex Kiernan wrote: > This converts the following to Kconfig: >CONFIG_SUPPORT_EMMC_BOOT > > Signed-off-by: Alex Kiernan > --- > Green travis build: > > https://travis-ci.org/akiernan/u-boot/builds/521906850 > > Testing affected boards for configuration changes: >

Re: [U-Boot] Pull request: u-boot-net.git master

2019-04-30 Thread Tom Rini
On Tue, Apr 30, 2019 at 09:15:33PM +, Joe Hershberger wrote: > On Tue, Mar 19, 2019 at 5:41 PM Tom Rini wrote: > > > > On Tue, Mar 12, 2019 at 01:15:46PM -0500, Joe Hershberger wrote: > > > > > Hi Tom, > > > > > > These patches passed the CI build here: > > >

Re: [U-Boot] cyclone5 reboot: warm or cold reset?

2019-04-30 Thread Marek Vasut
On 4/30/19 10:05 PM, Simon Goldschmidt wrote: > Am 30.04.2019 um 22:01 schrieb Marek Vasut: >> On 4/30/19 9:19 PM, Simon Goldschmidt wrote: >>> Am 30.04.2019 um 21:08 schrieb Marek Vasut: On 4/30/19 8:56 PM, Simon Goldschmidt wrote: > Hi all, Hi, > I added some of those

Re: [U-Boot] Pull request: u-boot-net.git master

2019-04-30 Thread Joe Hershberger
On Tue, Mar 19, 2019 at 5:41 PM Tom Rini wrote: > > On Tue, Mar 12, 2019 at 01:15:46PM -0500, Joe Hershberger wrote: > > > Hi Tom, > > > > These patches passed the CI build here: > > https://travis-ci.org/jhershbe/u-boot/builds/501807294 > > > > The following changes since commit

Re: [U-Boot] cyclone5 reboot: warm or cold reset?

2019-04-30 Thread Westergreen, Dalon
On Tue, 2019-04-30 at 22:09 +0200, Marek Vasut wrote: > On 4/30/19 10:05 PM, Simon Goldschmidt wrote: > > Am 30.04.2019 um 22:01 schrieb Marek Vasut: > > > On 4/30/19 9:19 PM, Simon Goldschmidt wrote: > > > > Am 30.04.2019 um 21:08 schrieb Marek Vasut: > > > > > On 4/30/19 8:56 PM, Simon

[U-Boot] [BUG] test_avb_persistent_values() fails

2019-04-30 Thread Heinrich Schuchardt
Hello Igor, when I run `make tests` with current origin/master commit a69120a0d7c8d4044cdaceea9eb03913ba4e49c7 I get an error. I think your submitted this test recently: commit fc1fe01b08ce ("avb: add support for named persistent values") u_boot_console =

Re: [U-Boot] [PATCH 1/2 v2] fit: Support compression for non-kernel components (e.g. FDT)

2019-04-30 Thread Julius Werner
On Tue, Apr 30, 2019 at 11:25 AM Simon Goldschmidt wrote: > > Am 18.04.2019 um 23:08 schrieb Julius Werner: > > This patch adds support for compressing non-kernel image nodes in a FIT > > image (kernel nodes could already be compressed previously). This can > > reduce the size of FIT images and

Re: [U-Boot] Pull request: u-boot-net.git master

2019-04-30 Thread Joe Hershberger
On Tue, Apr 30, 2019 at 4:29 PM Tom Rini wrote: > > On Tue, Apr 30, 2019 at 09:15:33PM +, Joe Hershberger wrote: > > On Tue, Mar 19, 2019 at 5:41 PM Tom Rini wrote: > > > > > > On Tue, Mar 12, 2019 at 01:15:46PM -0500, Joe Hershberger wrote: > > > > > > > Hi Tom, > > > > > > > > These

Re: [U-Boot] [PATCH v4 5/5] riscv: configs: AE350 will use CONFIG_OF_SEPARATE when boots from flash

2019-04-30 Thread Auer, Lukas
Hi Rick, On Tue, 2019-04-30 at 13:49 +0800, Andes wrote: > From: Rick Chen > > When AE350 boots from flash, use CONFIG_OF_SEPARATE instead of > CONFIG_OF_BOARD. > > Also remove unused code about prior_stage_fdt_address. > And modify CONFIG_SYS_FDT_BASE as flash address. > > Signed-off-by:

Re: [U-Boot] [PATCH 3/3] common: bouncebuf: handle address in sram for rockchip platform

2019-04-30 Thread Christoph Müllner
Hi Kever, On 4/2/19 10:46 AM, Kever Yang wrote: > Rockchip SOC's mmc controller does not support read data > from mmc to sram, we need a bounce buffer(in sdram), and then > copy to sram. what exactly is the limitation here? I mean a DMA engine does not care where it is copying to. Additionally

Re: [U-Boot] [PATCH v2 2/2] RISCV: image: Parse Image.gz support in booti.

2019-04-30 Thread Atish Patra
On 4/30/19 2:42 PM, Marek Vasut wrote: On 4/30/19 10:38 PM, Atish Patra wrote: On 4/30/19 12:11 PM, Marek Vasut wrote: On 4/30/19 8:13 PM, Atish Patra wrote: On 4/30/19 2:52 AM, Marek Vasut wrote: On 4/30/19 3:27 AM, Atish Patra wrote: [...] Yes. FIT image parsing can be done in that way.

Re: [U-Boot] [RESEND PATCH 0/3] arm: Introduce writel/readl_relaxed accessors

2019-04-30 Thread André Przywara
On 29/04/2019 18:16, Jagan Teki wrote: Hi, > On Sun, Feb 10, 2019 at 9:49 PM Andre Przywara wrote: >> >> Hi, this is a resend of what I posted some weeks ago, just adding the >> missing Signed-off-by: in patch 2/3, as pointed out by Philipp. I used >> the opportunity to add his Reviewed-by:

Re: [U-Boot] [PATCH 8/8] spi: Kconfig: Mark LPC32XX_SSP has BROKEN

2019-04-30 Thread Vladimir Zapolskiy
Hi Jagan, On 04/28/2019 11:48 PM, Jagan Teki wrote: > Mark LPC32XX_SSP has BROKEN, this so the resulting build shows > warning for broken configuration enabled and associated code > will remove in v2019.07 release. > > Cc: Vladimir Zapolskiy > Cc: Albert ARIBAUD > Signed-off-by: Jagan Teki >

Re: [U-Boot] [PATCH v4 3/5] riscv: prior_stage_fdt_address should only be used when OF_PRIOR_STAGE is enabled

2019-04-30 Thread Auer, Lukas
On Tue, 2019-04-30 at 13:49 +0800, Andes wrote: > From: Rick Chen > > This patch will fix prior_stage_fdt_address write failure problem, when > AE350 boots from flash. > > When AE350 boots from flash, prior_stage_fdt_address will be flash > address, we shall avoid it to be written. > >

Re: [U-Boot] [PATCH v2 2/2] RISCV: image: Parse Image.gz support in booti.

2019-04-30 Thread Marek Vasut
On 4/30/19 10:38 PM, Atish Patra wrote: > On 4/30/19 12:11 PM, Marek Vasut wrote: >> On 4/30/19 8:13 PM, Atish Patra wrote: >>> On 4/30/19 2:52 AM, Marek Vasut wrote: On 4/30/19 3:27 AM, Atish Patra wrote: [...] >>> Yes. FIT image parsing can be done in that way. However,

Re: [U-Boot] Pull request: u-boot-net.git master

2019-04-30 Thread Tom Rini
On Wed, May 01, 2019 at 12:56:30AM +, Joe Hershberger wrote: > On Tue, Apr 30, 2019 at 4:29 PM Tom Rini wrote: > > > > On Tue, Apr 30, 2019 at 09:15:33PM +, Joe Hershberger wrote: > > > On Tue, Mar 19, 2019 at 5:41 PM Tom Rini wrote: > > > > > > > > On Tue, Mar 12, 2019 at 01:15:46PM

Re: [U-Boot] [PATCH v2 2/2] RISCV: image: Parse Image.gz support in booti.

2019-04-30 Thread Atish Patra
On 4/30/19 12:11 PM, Marek Vasut wrote: On 4/30/19 8:13 PM, Atish Patra wrote: On 4/30/19 2:52 AM, Marek Vasut wrote: On 4/30/19 3:27 AM, Atish Patra wrote: [...] Yes. FIT image parsing can be done in that way. However, the idea was here to load Image.gz directly. Image.gz is default

Re: [U-Boot] [EXT] Re: [PATCH 2/2] fsl_qspi: Improve QSPI driver to incorporate 4 byte commands

2019-04-30 Thread Ashish Kumar
> -Original Message- > From: U-Boot On Behalf Of Schrempf Frieder > Sent: Tuesday, April 30, 2019 1:14 PM > To: Vignesh Raghavendra ; Rajat Srivastava > ; u-boot@lists.denx.de; ja...@openedev.com > Subject: [EXT] Re: [U-Boot] [PATCH 2/2] fsl_qspi: Improve QSPI driver to > incorporate 4

Re: [U-Boot] [PATCH 2/2] ti: Add am335x-pocketbeagle to am335x_evm_defconfig.

2019-04-30 Thread Tom Rini
On Mon, Apr 29, 2019 at 04:12:30PM -0700, Vagrant Cascadian wrote: > Add am335x-pocketbeagle to CONFIG_OF_LIST in am335x_evm_defconfig. > > Signed-off-by: Vagrant Cascadian We need to update include/configs/am335x_evm.h too so that it detects this variant and loads the right dtb. -- Tom

Re: [U-Boot] [PATCH 1/2] ti: Add device-tree for am335x-pocketbeagle.

2019-04-30 Thread Tom Rini
On Mon, Apr 29, 2019 at 04:12:29PM -0700, Vagrant Cascadian wrote: > Add device-tree files from linux 5.1-rc7 needed to complete support > for PocketBeagle. > > Signed-off-by: Vagrant Cascadian Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

[U-Boot] [PATCH 6/6] board: toradex: add apalis imx8qm 4gb wb it v1.0b module support

2019-04-30 Thread Marcel Ziswiler
From: Marcel Ziswiler This commit adds initial support for the Toradex Apalis iMX8QM 4GB WB IT V1.0B module. Unlike the V1.0A early access samples exclusively booting from SD card, they are now strapped to boot from eFuses which are factory fused to properly boot from their on-module eMMC.

[U-Boot] [PATCH 1/6] arm: dts: imx8qm: add lpuart1, lpuart2, lpuart3, lpuart4

2019-04-30 Thread Marcel Ziswiler
From: Marcel Ziswiler Add support for lpuart1, lpuart2, lpuart3 and lpuart4. Signed-off-by: Marcel Ziswiler --- arch/arm/dts/fsl-imx8qm.dtsi | 80 1 file changed, 80 insertions(+) diff --git a/arch/arm/dts/fsl-imx8qm.dtsi b/arch/arm/dts/fsl-imx8qm.dtsi

[U-Boot] [i.MX8MM+CCF 00/41] i.MX8MM + CCF

2019-04-30 Thread Peng Fan
This patch set is based Lukasz V3 CCF patchset, [PATCH v3 00/11] clk: Port Linux common clock framework [CCF] to U-boot (tag: 5.0-rc3) https://github.com/lmajewski/u-boot-dfu/commits/CCF-v3 Added a few fixes to Lukasz's v3 patchset. Introduced clk-gate/composite Added set rate support Per my

[U-Boot] [i.MX8MM+CCF 02/41] clk: fixed-factor: fix get clk_fixed_factor

2019-04-30 Thread Peng Fan
driver data is not clk, not clk_fixed_factor, fix it. Signed-off-by: Peng Fan --- drivers/clk/clk-fixed-factor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c index acbc0909b4..c535aadc48 100644 ---

[U-Boot] [i.MX8MM+CCF 01/41] clk: correct get clk_x pointer

2019-04-30 Thread Peng Fan
Directly use driver data is wrong, need to the helper to get the correct clk_divider and etc Signed-off-by: Peng Fan --- drivers/clk/clk-divider.c | 2 +- drivers/clk/imx/clk-gate2.c | 4 ++-- drivers/clk/imx/clk-pfd.c | 2 +- drivers/clk/imx/clk-pllv3.c | 2 +- 4 files changed, 5

[U-Boot] [i.MX8MM+CCF 05/41] clk-provider: sync more clk flags from Linux Kernel

2019-04-30 Thread Peng Fan
Sync more clk flags that might be used in U-Boot CCF. Signed-off-by: Peng Fan --- include/linux/clk-provider.h | 21 + 1 file changed, 21 insertions(+) diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index eac045c5f8..3458746a60 100644 ---

[U-Boot] [i.MX8MM+CCF 03/41] clk: introduce clk_dev_binded

2019-04-30 Thread Peng Fan
When support Clock Common Framework, U-Boot use dev for clk tree information, there is no clk->parent. When support composite clk, it contains mux/gate/divider, but the mux/gate/divider is not binded with device. So we could not use dev_get_driver_data to get the correct clk_mux/gate/divider. So

[U-Boot] [i.MX8MM+CCF 06/41] cmd: clk: print err value when clk_get_rate failed

2019-04-30 Thread Peng Fan
Print err value when clk_get_rate failed Signed-off-by: Peng Fan --- cmd/clk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/clk.c b/cmd/clk.c index 2ea82176aa..73d963184d 100644 --- a/cmd/clk.c +++ b/cmd/clk.c @@ -41,6 +41,8 @@ int __weak soc_clk_dump(void) rate =

[U-Boot] [i.MX8MM+CCF 10/41] divider set rate supporrt

2019-04-30 Thread Peng Fan
Signed-off-by: Peng Fan --- drivers/clk/clk-divider.c | 88 +++ 1 file changed, 88 insertions(+) diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c index 2f09e0bb58..8615f9815d 100644 --- a/drivers/clk/clk-divider.c +++

[U-Boot] [i.MX8MM+CCF 09/41] clk: add clk-gate support

2019-04-30 Thread Peng Fan
Import clk-gate support from Linux Kernel 5.1-rc5 Signed-off-by: Peng Fan --- drivers/clk/Makefile | 2 +- drivers/clk/clk-gate.c | 151 +++ include/linux/clk-provider.h | 18 ++ 3 files changed, 170 insertions(+), 1 deletion(-)

[U-Boot] [i.MX8MM+CCF 08/41] clk: export mux/divider ops

2019-04-30 Thread Peng Fan
Export mux/divider ops for composite usage Signed-off-by: Peng Fan --- include/linux/clk-provider.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 216095d28c..a60cf6e833 100644 --- a/include/linux/clk-provider.h +++

[U-Boot] [i.MX8MM+CCF 04/41] clk: use clk_dev_binded

2019-04-30 Thread Peng Fan
Preparing to support composite clk. Signed-off-by: Peng Fan --- drivers/clk/clk-divider.c | 4 ++-- drivers/clk/clk-mux.c | 6 -- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c index 1d2c1b1ec4..2f09e0bb58 100644 ---

[U-Boot] [i.MX8MM+CCF 13/41] clk: imx: import clk heplers

2019-04-30 Thread Peng Fan
Import some clk helpers from Linux Kernel for i.MX8MM usage Signed-off-by: Peng Fan --- drivers/clk/imx/clk.h | 81 +++ 1 file changed, 81 insertions(+) diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index 864a215a22..aa6e81ff13

[U-Boot] [i.MX8MM+CCF 14/41] clk: imx: gate2 add set rate

2019-04-30 Thread Peng Fan
Add set rate for imx clk-gate2 Signed-off-by: Peng Fan --- drivers/clk/imx/clk-gate2.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/clk/imx/clk-gate2.c b/drivers/clk/imx/clk-gate2.c index 83589b9206..75b6b85e07 100644 --- a/drivers/clk/imx/clk-gate2.c +++

[U-Boot] [i.MX8MM+CCF 07/41] clk: mux: add set parent support

2019-04-30 Thread Peng Fan
Add set parent support for clk mux Signed-off-by: Peng Fan --- drivers/clk/clk-mux.c| 70 ++-- include/linux/clk-provider.h | 2 ++ 2 files changed, 70 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk-mux.c b/drivers/clk/clk-mux.c

[U-Boot] [i.MX8MM+CCF 19/41] imx: add IMX8MM kconfig entry

2019-04-30 Thread Peng Fan
Add IMX8MM kconfig entry Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/Kconfig b/arch/arm/mach-imx/imx8m/Kconfig index 9c487870a6..35c978e863 100644 --- a/arch/arm/mach-imx/imx8m/Kconfig +++

[U-Boot] [i.MX8MM+CCF 20/41] imx: imx8mm: add clock bindings header

2019-04-30 Thread Peng Fan
Add i.MX8MM clock binding header for i.MX8MM Signed-off-by: Peng Fan --- include/dt-bindings/clock/imx8mm-clock.h | 244 +++ 1 file changed, 244 insertions(+) create mode 100644 include/dt-bindings/clock/imx8mm-clock.h diff --git

[U-Boot] [i.MX8MM+CCF 11/41] clk: fixed_rate: export clk_fixed_rate

2019-04-30 Thread Peng Fan
Export the structure for others to use. Signed-off-by: Peng Fan --- drivers/clk/clk_fixed_rate.c | 8 +--- include/linux/clk-provider.h | 7 +++ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/clk/clk_fixed_rate.c b/drivers/clk/clk_fixed_rate.c index

[U-Boot] [i.MX8MM+CCF 12/41] clk: fixed_rate: add pre reloc flag

2019-04-30 Thread Peng Fan
Add pre reloc flag to use this driver before relocation Signed-off-by: Peng Fan --- drivers/clk/clk_fixed_rate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/clk_fixed_rate.c b/drivers/clk/clk_fixed_rate.c index 069e643fbc..debada1463 100644 --- a/drivers/clk/clk_fixed_rate.c

[U-Boot] [i.MX8MM+CCF 15/41] linux: compat: guard PAGE_SIZE

2019-04-30 Thread Peng Fan
Some archs defined PAGE_SIZE, such as ARMv8, to avoid build warning, guard PAGE_SIZE. Signed-off-by: Peng Fan --- include/linux/compat.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/compat.h b/include/linux/compat.h index d0f51baab4..c1f8bdf8f2 100644 ---

[U-Boot] [i.MX8MM+CCF 22/41] imx: spl: add spl_board_boot_device for i.MX8MM

2019-04-30 Thread Peng Fan
Differnet board has different controller used, it is hard to use one layout for them all. Signed-off-by: Peng Fan --- arch/arm/mach-imx/spl.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/mach-imx/spl.c b/arch/arm/mach-imx/spl.c index 9f1e0f6a72..a6d7b69ad8 100644 ---

[U-Boot] [i.MX8MM+CCF 36/41] clk: imx: add Kconfig entry for i.MX8MM

2019-04-30 Thread Peng Fan
Add Kconfig entry for i.MX8MM, select CLK_CCF and SPL_CLK_CCF Signed-off-by: Peng Fan --- drivers/clk/imx/Kconfig | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig index 469768b5c3..0e4c68659c 100644 --- a/drivers/clk/imx/Kconfig +++

[U-Boot] [i.MX8MM+CCF 16/41] drivers: core: use strcmp when find device by name

2019-04-30 Thread Peng Fan
`if (!strncmp(dev->name, name, strlen(name)))` might find out the wrong device, it might find out `dram_pll_ref_sel`, when name is `dram_pll`. So use strcmp to avoid such issue. Signed-off-by: Peng Fan --- drivers/core/uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [i.MX8MM+CCF 37/41] clk: imx: add pll14xx driver

2019-04-30 Thread Peng Fan
Add pll14xx driver Signed-off-by: Peng Fan --- drivers/clk/imx/clk-pll14xx.c | 377 ++ drivers/clk/imx/clk.h | 25 +++ 2 files changed, 402 insertions(+) create mode 100644 drivers/clk/imx/clk-pll14xx.c diff --git

[U-Boot] [i.MX8MM+CCF 39/41] clk: imx: add i.MX8MM composite clk support

2019-04-30 Thread Peng Fan
Import i.MX8MM composite clk from Linux Kernel Signed-off-by: Peng Fan --- drivers/clk/imx/clk-composite-8m.c | 170 + include/linux/clk-provider.h | 3 + 2 files changed, 173 insertions(+) create mode 100644 drivers/clk/imx/clk-composite-8m.c diff

[U-Boot] [i.MX8MM+CCF 33/41] imx8m: Configure trustzone region 0 for non-secure access

2019-04-30 Thread Peng Fan
From: Ye Li Set trustzone region 0 to allow both non-secure and secure access when trust zone is enabled. We found USB controller fails to access DDR if the default region 0 is secure access only. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 6 ++ 1

[U-Boot] [i.MX8MM+CCF 29/41] imx8m: add pin header for i.MX8MM

2019-04-30 Thread Peng Fan
Add pin header file for i.MX8MM To IMX8MM_PAD_NAND_WE_B_USDHC3_CLK, IOMUX_CONFIG_SION needs to be selected. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/imx8mm_pins.h | 691 ++ 1 file changed, 691 insertions(+) create mode 100644

[U-Boot] [i.MX8MM+CCF 27/41] imx8m: add clk support for i.MX8MM

2019-04-30 Thread Peng Fan
Introduce clk implementation for i.MX8MM, including pll configuration, ccm configuration. Mostly will be done clk dm driver, but such as DRAM part, we still use non clk dm driver, because we have limited sram. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/clock.h| 2 +

[U-Boot] [i.MX8MM+CCF 17/41] ddr: imx8m: fix ddr firmware location when enable SPL OF

2019-04-30 Thread Peng Fan
With SPL_OF_SPERATE, the device tree will be padded to end of the u-boot-spl-nodtb.bin, however we also put the ddr firmware file to this location, so need to adapt the code with SPL OF and align to 16bytes to ease copy firmware. Signed-off-by: Peng Fan --- drivers/ddr/imx/imx8m/helper.c | 12

[U-Boot] [i.MX8MM+CCF 32/41] imx8m: set BYPASS ID SWAP to avoid AXI bus errors

2019-04-30 Thread Peng Fan
set the BYPASS ID SWAP bit (GPR10 bit 1) in order for GPU not to generated AXI bus errors with TZC380 enabled. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index

[U-Boot] [i.MX8MM+CCF 23/41] imx8m: update imx-regs for i.MX8MM

2019-04-30 Thread Peng Fan
i.MX8MM has similar architecture with i.MX8MQ, but it has totally different PLL design and some register layout change. Note: Some registers in this file are not updated because not used now. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/imx-regs.h | 75

[U-Boot] [i.MX8MM+CCF 38/41] clk: add composite clk support

2019-04-30 Thread Peng Fan
Import clk composite clk support from Linux Kernel 5.1-rc5 Signed-off-by: Peng Fan --- drivers/clk/Kconfig | 14 drivers/clk/Makefile | 1 + drivers/clk/clk-composite.c | 165 +++ include/linux/clk-provider.h | 22 ++ 4

[U-Boot] [PATCH 2/2] ARM: da850evm: Enable da850-ohci USB host controller

2019-04-30 Thread Adam Ford
The DA850 EVM has one USB 1.1 OHCI Host controller. With the host controller now support DM_USB, this patch enables the respective functions for the da850evm. Signed-off-by: Adam Ford --- V2: No changes diff --git a/configs/da850evm_defconfig b/configs/da850evm_defconfig index

Re: [U-Boot] [PATCH] README: davinci: update the documentation for DaVinci

2019-04-30 Thread Adam Ford
On Tue, Apr 30, 2019 at 2:39 AM Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > The DM* family of SOCs is no longer supported. We now support the > omap-l138 lcdk board and Lego EV3 platform. Reflect those changes Don't forget about the da850 EVM > in the README. > >

Re: [U-Boot] [PATCH] README: davinci: update the documentation for DaVinci

2019-04-30 Thread Bartosz Golaszewski
wt., 30 kwi 2019 o 11:08 Adam Ford napisał(a): > > On Tue, Apr 30, 2019 at 2:39 AM Bartosz Golaszewski wrote: > > > > From: Bartosz Golaszewski > > > > The DM* family of SOCs is no longer supported. We now support the > > omap-l138 lcdk board and Lego EV3 platform. Reflect those changes > >

[U-Boot] [PATCH v3 3/3] arm: socfpga: Move Stratix 10 SDRAM driver to DM

2019-04-30 Thread Ley Foon Tan
Convert Stratix 10 SDRAM driver to device model. Get rid of call to socfpga_per_reset() and use reset framework. SPL is changed from calling function in SDRAM driver directly to just probing UCLASS_RAM. Move sdram_s10.h from arch to driver/ddr/altera directory. Signed-off-by: Ley Foon Tan ---

[U-Boot] [PATCH v3 2/3] arm: dts: Stratix10: Add SDRAM node

2019-04-30 Thread Ley Foon Tan
Add SDRAM device tree node to support SDRAM DM driver. Signed-off-by: Ley Foon Tan --- arch/arm/dts/socfpga_stratix10.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/dts/socfpga_stratix10.dtsi b/arch/arm/dts/socfpga_stratix10.dtsi index d1ae2fabae..bd68a78a37 100755

Re: [U-Boot] [PATCH 3/4] usb: ohci: ohci-da8xx: Enable da850-ohci driver with DM support

2019-04-30 Thread Marek Vasut
On 4/30/19 11:24 AM, Adam Ford wrote: > On Mon, Apr 29, 2019 at 4:54 AM Marek Vasut wrote: >> >> On 4/28/19 11:45 PM, Adam Ford wrote: >>> This patch reuses some former code for the hawkboard, combines it >>> with some some similar DM_USB compatible code for the OHCI driver, >>> and enables the

  1   2   >