Re: [U-Boot] [PATCH 0/9] phy: atheros: cleanup and device tree bindings

2019-10-25 Thread Adam Ford
On Fri, Oct 25, 2019 at 10:20 PM Adam Ford wrote: > > On Fri, Oct 25, 2019 at 7:27 PM Michael Walle wrote: > > > > This series cleans up the Atheros PHY AR803x PHY driver and adds a > > device tree binding for the most commonly used PHY settings like clock > > output. > > > > If you're a board ma

Re: [U-Boot] [PATCH 0/9] phy: atheros: cleanup and device tree bindings

2019-10-25 Thread Adam Ford
On Fri, Oct 25, 2019 at 7:27 PM Michael Walle wrote: > > This series cleans up the Atheros PHY AR803x PHY driver and adds a > device tree binding for the most commonly used PHY settings like clock > output. > > If you're a board maintainer you're getting this mail because you probably > use an AR8

[U-Boot] [PATCH 2/2] drivers: net: fsl_enetc: fix RGMII configuration

2019-10-25 Thread Michael Walle
Add the missing RGMII PHY modes in which case the MAC has configure its RGMII settings. The only difference between these modes is the RX and TX delay configuration. A user might choose any RGMII mode in the device tree. Signed-off-by: Michael Walle --- drivers/net/fsl_enetc.c | 3 +++ 1 file ch

[U-Boot] [PATCH 1/2] drivers: net: fsl_enetc: set phydev->node

2019-10-25 Thread Michael Walle
The saved ofnode is used by some PHY drivers to access the device tree node of the PHY. Signed-off-by: Michael Walle --- drivers/net/fsl_enetc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/fsl_enetc.c b/drivers/net/fsl_enetc.c index e7c5062c39..86b80c8941 100644 --- a/drivers

[U-Boot] [PATCH 5/9] phy: atheros: don't overwrite debug register values

2019-10-25 Thread Michael Walle
Instead of doing a hard write, do a read-modify-write. Signed-off-by: Michael Walle --- drivers/net/phy/atheros.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c index 113374f03f..4b7a1fb9c4 100644 --- a/drive

[U-Boot] [PATCH 3/9] phy: atheros: ar8035: remove extra delay config

2019-10-25 Thread Michael Walle
Remove the hard-coded delay configuration. The AR8035 config() always enabled the TX delay mode, although it will be set according to the PHY interface mode, too. If bisecting shows that this commit breaks your board you probably have a wrong PHY interface mode. You probably want the PHY_INTERFACE

[U-Boot] [PATCH 8/9] phy: atheros: ar8035: remove static clock config

2019-10-25 Thread Michael Walle
We can configure the clock output in the device tree. Disable the hardcoded one in here. This is highly board-specific and should have never been enabled in the PHY driver. If bisecting shows that this commit breaks your board it probably depends on the clock output of your Atheros AR8035 PHY. Ple

[U-Boot] [PATCH 6/9] phy: atheros: fix delay configuration

2019-10-25 Thread Michael Walle
The delay_config() code could only set the delay bit. Thus, it could only enable the delay mode, but not disable it. To make things worse, the RX delay mode is enabled by default after a hardware reset, so it could never be disabled. Fix this, by always setting or clearing the bits. This is also ho

[U-Boot] [PATCH 9/9] phy: atheros: consolidate {ar8031|ar8035}_config()

2019-10-25 Thread Michael Walle
The two functions are now exactly the same, remove one of them. Signed-off-by: Michael Walle --- drivers/net/phy/atheros.c | 30 +++--- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c index 91fcbf912a..9

[U-Boot] [PATCH 7/9] phy: atheros: Add device tree bindings and config

2019-10-25 Thread Michael Walle
Add support for configuring the CLK_25M pin as well as the RGMII I/O voltage by the device tree. By default the AT803x PHYs outputs the 25MHz clock of the XTAL input. But this output can also be changed by software to other frequencies. This commit introduces a generic way to configure this output

[U-Boot] [PATCH 4/9] phy: atheros: ar8035: use phy_{read|write}_mmd()

2019-10-25 Thread Michael Walle
Signed-off-by: Michael Walle --- drivers/net/phy/atheros.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c index 629c6b192a..113374f03f 100644 --- a/drivers/net/phy/atheros.c +++ b/drivers/net/phy/atheros.c @@ -

[U-Boot] [PATCH 1/9] phy: atheros: introduce debug read and write functions

2019-10-25 Thread Michael Walle
Provide functions to read and write the Atheros debug registers. Signed-off-by: Michael Walle --- drivers/net/phy/atheros.c | 72 --- 1 file changed, 53 insertions(+), 19 deletions(-) diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c index 37

[U-Boot] [PATCH 2/9] phy: atheros: move delay config to common function

2019-10-25 Thread Michael Walle
Signed-off-by: Michael Walle --- drivers/net/phy/atheros.c | 44 +++ 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c index b25aa02108..402998c8d5 100644 --- a/drivers/net/phy/atheros.c +++ b/

[U-Boot] [PATCH 0/9] phy: atheros: cleanup and device tree bindings

2019-10-25 Thread Michael Walle
This series cleans up the Atheros PHY AR803x PHY driver and adds a device tree binding for the most commonly used PHY settings like clock output. If you're a board maintainer you're getting this mail because you probably use an AR803x PHY on your board. Please have a look at your board specific co

Re: [U-Boot] [PATCH 1/3] armv7r: dts: am654-base-board: Rename 1600MHz to 1600MTs in dtsi filename

2019-10-25 Thread Tom Rini
On Mon, Oct 07, 2019 at 02:04:25PM +0530, Lokesh Vutla wrote: > From: James Doublesin > > The current configuration of DDR on AM654 base board is for 1600MTs but > the file name is specified as k3-am654-base-board-ddr4-1600MHz.dtsi. > Since 1600MHz is misleading, rename it to > k3-am654-base-boa

Re: [U-Boot] [PATCH 2/4] ram: k3-j721e: Add support for J721E DDR controller

2019-10-25 Thread Tom Rini
On Mon, Oct 07, 2019 at 07:26:36PM +0530, Lokesh Vutla wrote: > From: Kevin Scholz > > The J721E DDR subsystem comprises DDR controller, DDR PHY and wrapper > logic to integrate these blocks in the device. The DDR subsystem is > used to provide an interface to external SDRAM devices which can be

Re: [U-Boot] [RESEND PATCH v1 1/3] ARM: dts: dra7: Add usb peripheral nodes in spl

2019-10-25 Thread Tom Rini
On Wed, Oct 09, 2019 at 12:35:18PM +0200, Jean-Jacques Hiblot wrote: > From: Faiz Abbas > > Add usb peripheral and usb phy nodes in spl to enable SPL_DFU bootmode. > > Signed-off-by: Faiz Abbas > Signed-off-by: Jean-Jacques Hiblot Applied to u-boot/master, thanks! -- Tom signature.asc De

Re: [U-Boot] [PATCH 1/4] dt-bindings: memory-controller: Introduce J721E DDRSS bindings

2019-10-25 Thread Tom Rini
On Mon, Oct 07, 2019 at 07:26:35PM +0530, Lokesh Vutla wrote: > Add DT binding documentation for DDR sub system present on J721E device. > > Signed-off-by: Lokesh Vutla Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [PATCH] arm: dts: k3-am65: Add R5F ranges in interconnect nodes

2019-10-25 Thread Tom Rini
On Thu, Oct 17, 2019 at 09:03:08AM +0530, Lokesh Vutla wrote: > From: Suman Anna > > Add the address spaces for the R5F cores in MCU domain to the ranges > property of the cbass_mcu interconnect node so that the addresses > within the R5F nodes can be translated properly by the relevant OF > add

Re: [U-Boot] [PATCH 4/4] armv7R: K3: j721e: Add support for triggering ddr init from SPL

2019-10-25 Thread Tom Rini
On Mon, Oct 07, 2019 at 07:26:38PM +0530, Lokesh Vutla wrote: > In SPL, DDR should be made available by the end of board_init_f() > so that apis in board_init_r() can use ddr. Adding support for > triggering DDR initialization from board_init_f(). > > Signed-off-by: Lokesh Vutla Applied to u-bo

Re: [U-Boot] [PATCH 3/4] arm: dts: k3-j721e: Add ddr node

2019-10-25 Thread Tom Rini
On Mon, Oct 07, 2019 at 07:26:37PM +0530, Lokesh Vutla wrote: > Use the 3733MTs DDR configuration that is auto generated from > DDR_Regconfig tool. > > Signed-off-by: Lokesh Vutla > Signed-off-by: Kevin Scholz Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signatur

Re: [U-Boot] [RESEND PATCH v1 2/3] configs: dra7xx_evm: Add Kconfigs for SPL_DFU bootmode

2019-10-25 Thread Tom Rini
On Wed, Oct 09, 2019 at 12:35:19PM +0200, Jean-Jacques Hiblot wrote: > From: Faiz Abbas > > Enable configs for supporting SPL_DFU bootmode. > > Signed-off-by: Faiz Abbas > Signed-off-by: Jean-Jacques Hiblot Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [PATCH 2/3] ram: k3-am654: add support for LPDDR4 and DDR3L DDRs

2019-10-25 Thread Tom Rini
On Mon, Oct 07, 2019 at 02:04:26PM +0530, Lokesh Vutla wrote: > From: James Doublesin > > Added training support for LPDDR4 and DDR3L DDRs. Also added/changed > some register configuration to support all 3 DDR types > > Signed-off-by: James Doublesin > Signed-off-by: Lokesh Vutla Applied to

Re: [U-Boot] [PATCH 1/3] boot: arm: Enable support for custom board_prep_linux

2019-10-25 Thread Tom Rini
On Mon, Oct 07, 2019 at 01:52:15PM +0530, Lokesh Vutla wrote: > Once the arch specific boot_prepare_linux completes, boards wants to > have a custom preparation for linux. Add support for a custom > board_prep_linux. > > Signed-off-by: Lokesh Vutla Applied to u-boot/master, thanks! -- Tom s

Re: [U-Boot] [RESEND PATCH v1 3/3] configs: dra7xx_evm: Increase the size of SPL_MULTI_DTB_FIT

2019-10-25 Thread Tom Rini
On Wed, Oct 09, 2019 at 12:35:20PM +0200, Jean-Jacques Hiblot wrote: > From: Faiz Abbas > > Expand SPL_MULTI_DTB_FIT to accommodate usb peripheral nodes being > added to support SPL_DFU bootmode. > > Signed-off-by: Faiz Abbas > > Signed-off-by: Jean-Jacques Hiblot Applied to u-boot/master,

Re: [U-Boot] [PATCH 3/3] arm: K3: Clean and invalidate Linux Image before jumping to Linux

2019-10-25 Thread Tom Rini
On Mon, Oct 07, 2019 at 01:52:17PM +0530, Lokesh Vutla wrote: > U-Boot cleans and invalidate L1 and L2 caches before jumping to Linux > by set/way in cleanup_before_linux(). Additionally there is a custom > hook provided to clean and invalidate L3 cache. > > Unfortunately on K3 devices(having a c

Re: [U-Boot] [PATCH 3/3] ram: k3-am654: Do not rely on default values for certain DDR register

2019-10-25 Thread Tom Rini
On Mon, Oct 07, 2019 at 02:04:27PM +0530, Lokesh Vutla wrote: > From: James Doublesin > > Added the following registers to the DDR configuration: > - ACIOCR0, > - ACIOCR3, > - V2H_CTL_REG, > - DX8SLxDQSCTL. > > Modified enable_dqs_pd and disable_dqs_pd to only touch the associated > bit fields

Re: [U-Boot] [PULL] u-boot-usb/master

2019-10-25 Thread Tom Rini
On Fri, Oct 25, 2019 at 01:19:04PM +0200, Marek Vasut wrote: > The following changes since commit 680023c5fab6b1777c0c6f2e76e5d2effb7903a0: > > Merge tag 'u-boot-stm32-2019-10-23' of > https://gitlab.denx.de/u-boot/custodians/u-boot-stm (2019-10-23 14:04:02 > -0400) > > are available in the Gi

Re: [U-Boot] [PULL] u-boot-atmel-2020.01-b

2019-10-25 Thread Tom Rini
On Fri, Oct 25, 2019 at 08:58:56AM +, eugen.hris...@microchip.com wrote: > Hi Tom, > > Please pull tag u-boot-atmel-2020.01-b , the second set of features and > fixes for the 2020.01 cycle. > > This feature set includes my work on a new tiny flexcom driver and > eeprom mac retrieval for th

Re: [U-Boot] [PATCH 2/3] cmd: booti: Store OS start and end info in images structure

2019-10-25 Thread Tom Rini
On Mon, Oct 07, 2019 at 01:52:16PM +0530, Lokesh Vutla wrote: > Store the start and end of the OS image that is loaded in images > structure. > > Signed-off-by: Lokesh Vutla Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] [GIT PULL] Xilinx patches for v2020.01 part 2

2019-10-25 Thread Tom Rini
On Fri, Oct 25, 2019 at 08:57:47AM +0200, Michal Simek wrote: > Hi Tom, > > this is the second pull request because I found a lot of stuff missing > in mainline. > I have also included one minor dtbo clean up because I have started to > use it to support different modules. And also very important

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

2019-10-25 Thread Daniel Schwierzeck
Hi Tom, please pull MIPS updates for 2020.01. Gitlab: https://gitlab.denx.de/u-boot/custodians/u-boot-mips/pipelines/1101 Travis CI: https://travis-ci.org/danielschwierzeck/u-boot/builds/602882075 The following changes since commit 17fd9915a4c639381804ed28274fa136ae3b0bee: Merge branch '2019

Re: [U-Boot] [PATCH v2] spl: fix SPI config dependencies

2019-10-25 Thread Lukasz Majewski
On Fri, 25 Oct 2019 16:22:09 +0200 Simon Goldschmidt wrote: > As SPL_SPI_FLASH_SUPPORT cannot work without SPL_SPI_SUPPORT, fix > dependencies to prevent enabling SPI flash support without basic SPI > support. > > Signed-off-by: Simon Goldschmidt > --- > > Changes in v2: > - move SYS_SPI_U_BOO

Re: [U-Boot] [PATCH v2 36/41] serial: mxc: add imx53 and imx21 compatible string

2019-10-25 Thread Lukasz Majewski
Hi Robert, > On Thu, 2019-10-24 at 09:38 +0200, Lukasz Majewski wrote: > > Hi Robert, > > > > > Add compatible string for imx53 and imx21. > > > > > > Signed-off-by: Robert Beckett > > > --- > > > drivers/serial/serial_mxc.c | 2 ++ > > > 1 file changed, 2 insertions(+) > > > > > > diff --g

[U-Boot] [PATCH] dlmalloc: calloc: fix zeroing early allocations

2019-10-25 Thread Simon Goldschmidt
When full malloc is enabled and SYS_MALLOC_F is also enabled, the simple pre-reloc heap is used before relocation. In this case, calloc() uses the MALLOC_ZERO macro to zero out the allocated memory. However, since this macro is specially crafted for the dlmalloc implementation, it does not always w

Re: [U-Boot] [PATCH v1 2/3] lib: rsa: generate additional parameters for public key

2019-10-25 Thread Simon Glass
Hi, On Fri, 25 Oct 2019 at 12:27, Tom Rini wrote: > > On Thu, Oct 24, 2019 at 03:36:07PM -0600, Simon Glass wrote: > > Hi, > > > > On Tue, 22 Oct 2019 at 23:23, AKASHI Takahiro > > wrote: > > > > > > On Mon, Oct 21, 2019 at 06:17:03PM -0600, Simon Glass wrote: > > > > Hi Takahiro, > > > > > > >

Re: [U-Boot] [PATCH v1 2/3] lib: rsa: generate additional parameters for public key

2019-10-25 Thread Tom Rini
On Thu, Oct 24, 2019 at 03:36:07PM -0600, Simon Glass wrote: > Hi, > > On Tue, 22 Oct 2019 at 23:23, AKASHI Takahiro > wrote: > > > > On Mon, Oct 21, 2019 at 06:17:03PM -0600, Simon Glass wrote: > > > Hi Takahiro, > > > > > > On Tue, 8 Oct 2019 at 23:27, AKASHI Takahiro > > > wrote: > > > > > >

Re: [U-Boot] [PATCH v6 1/1] cmd: env: extend "env [set|print] -e" to manage UEFI variables

2019-10-25 Thread Heinrich Schuchardt
On 10/24/19 8:17 AM, AKASHI Takahiro wrote: > With this patch, when setting UEFI variable with "env set -e" command, > we will be able to > - specify vendor guid with "-guid guid", > - specify variable attributes, BOOTSERVICE_ACCESS, RUNTIME_ACCESS, > respectively with "-bs" and "-rt", > - appen

Re: [U-Boot] [PATCH v2 00/41] convert GE boards to DM

2019-10-25 Thread Robert Beckett
On Thu, 2019-10-24 at 14:00 -0300, Fabio Estevam wrote: > On Wed, Oct 23, 2019 at 3:23 PM Robert Beckett > wrote: > > This patch series converts GE boards to use DM features. > > Most of the patches are GE board specific to modify the board code > > to > > use the DM drivers, or modify the device

Re: [U-Boot] [PATCH v2 36/41] serial: mxc: add imx53 and imx21 compatible string

2019-10-25 Thread Robert Beckett
On Thu, 2019-10-24 at 09:38 +0200, Lukasz Majewski wrote: > Hi Robert, > > > Add compatible string for imx53 and imx21. > > > > Signed-off-by: Robert Beckett > > --- > > drivers/serial/serial_mxc.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/drivers/serial/serial_mxc.c > >

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

2019-10-25 Thread Tom Rini
On Fri, Oct 25, 2019 at 02:08:12PM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this PR. > > Summary: > - SPL_SPI_FLASH_MTD (Frieder) > - SPI NOR IDs' fixes, additions (Vignesh) > - cs_info change (Bin) > - Enable sunxi spi (Jagan) > > Travis-CI: > https://travis-ci.org/openedev/u-boot-am

Re: [U-Boot] [PATCH v2 36/41] serial: mxc: add imx53 and imx21 compatible string

2019-10-25 Thread Robert Beckett
On Wed, 2019-10-23 at 15:38 -0300, Fabio Estevam wrote: > On Wed, Oct 23, 2019 at 3:36 PM Robert Beckett > wrote: > > Add compatible string for imx53 and imx21. > > > > Signed-off-by: Robert Beckett > > --- > > drivers/serial/serial_mxc.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > dif

Re: [U-Boot] [PATCH v2 14/41] board: ge: mx53ppd: use DM I2C

2019-10-25 Thread Robert Beckett
On Thu, 2019-10-24 at 09:21 -0300, Fabio Estevam wrote: > Hi Robert, > > On Wed, Oct 23, 2019 at 3:22 PM Robert Beckett > wrote: > > > + > > +&gpio1 { > > + u-boot,dm-pre-reloc; > > For these specific U-Boot properties it is recommended to place them > inside a specifc u-boot.dtsi file. >

Re: [U-Boot] [PATCH v2 07/41] board: ge: bx50v3: use imx wdt

2019-10-25 Thread Robert Beckett
On Wed, 2019-10-23 at 17:33 -0300, Fabio Estevam wrote: > On Wed, Oct 23, 2019 at 3:22 PM Robert Beckett > wrote: > > Enable DM imx WDT > > Enable SYSRESET_WATCHDOG to maintain WDT based reset ability > > > > Signed-off-by: Robert Beckett > > --- > > arch/arm/dts/imx6q-bx50v3.dts | 4 > >

[U-Boot] [PATCH v6 1/3] cmd: nand/sf: isolate legacy code

2019-10-25 Thread Miquel Raynal
The 'sf' command is not supposed to rely on the MTD stack, but both 'sf' and 'nand' commands use helpers located in mtd_uboot.c. Despite their location, these functions do not depend at all on the MTD stack. This file (drivers/mtd/mtd_uboot.c) is only compiled if CONFIG_MTD is selected, which is i

[U-Boot] [PATCH v6 2/3] cmd: make MTD commands depend on MTD

2019-10-25 Thread Miquel Raynal
Defconfigs have been fixed, now we can add proper dependencies in Kconfig. SPI FLASH is still not dependent on MTD (deeper rework needed). Signed-off-by: Miquel Raynal --- cmd/Kconfig | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index 3

[U-Boot] [PATCH v6 0/3] End of the MTD makefile cleanup

2019-10-25 Thread Miquel Raynal
As rightfully pointed by Jagan, I should have dropped the dependency of cmd/sf.c and cmd/nand.c on mtd_uboot.c in patch 24/26 of the "MTD defconfigs/Kconfigs/Makefiles heavy cleanup" v5 series. Instead of sending the 40 patches again, here are only the last three patches with: * patch 1 (24/26) be

[U-Boot] [PATCH v6 3/3] mtd: Makefile: deep cleanup

2019-10-25 Thread Miquel Raynal
Move MTD-related lines out of the root Makefile. Put them in their respective directories. Enclose some of these new lines to skip them when building the SPL. MTD core files and some MTD device drivers are compiled in a mtd.o object and included in the final object only if MTD support is required (

Re: [U-Boot] [PATCH v5 24/26] cmd: nand/sf: isolate legacy code

2019-10-25 Thread Miquel Raynal
Hi Jagan, Jagan Teki wrote on Fri, 25 Oct 2019 15:16:38 +0530: > On Fri, Oct 25, 2019 at 3:06 PM Miquel Raynal > wrote: > > > > Hi Jagan, > > > > Jagan Teki wrote on Fri, 25 Oct 2019 > > 14:57:36 +0530: > > > > > Hi Miquel, > > > > > > On Fri, Oct 25, 2019 at 2:55 PM Miquel Raynal > > > w

Re: [U-Boot] [PATCH v2 01/17] linux_compat: move kmemdup() from ubifs.c to linux_compat.c

2019-10-25 Thread Heinrich Schuchardt
On 10/25/19 12:07 PM, AKASHI Takahiro wrote: > linux_compat.c is the best place for kmemdup(), which is currenly used > only in ubifs.c, but will also be used when other kernel files > (in my case, lib/crypto/x509_cert_parser.c and pkcs7_parser.c) will be > imported. So just move it. > > Signed-off

Re: [U-Boot] [PATCH] usb: composite: add BOS descriptor support to composite framework

2019-10-25 Thread T Karthik Reddy
Hi Vignesh, > -Original Message- > From: Vignesh Raghavendra > Sent: Friday, October 25, 2019 10:13 AM > To: Michal Simek ; u-boot@lists.denx.de; git > > Cc: Marek Vasut ; T Karthik Reddy > Subject: Re: [U-Boot] [PATCH] usb: composite: add BOS descriptor support to > composite framework

[U-Boot] [PATCH] usb: ehci: add ehci max xfer size ehci config entry

2019-10-25 Thread Gilles DOFFE
Some USB sticks cannot handle SIZE_MAX bytes (65535) blocks transfer, leading to 'EHCI timed out on TD' errors. As it is hardly predictable, this commit adds a configuration option to easily reduce this EHCI max transfer size. The default value is 65535 which corresponds to size_t max value (SIZE_M

Re: [U-Boot] [RESEND PATCH v2 12/13] davinci: omapl138-lcdk: enable driver-model in SPL

2019-10-25 Thread Rizvi, Mohammad Faiz Abbas
Hi Barotz, On 10/25/2019 9:40 PM, Bartosz Golaszewski wrote: > czw., 26 wrz 2019 o 01:21 Faiz Abbas napisał(a): >> >> Hi, >> >> On 29/07/19 12:28 PM, Bartosz Golaszewski wrote: >>> From: Bartosz Golaszewski >>> >>> Enable CONFIG_SPL_DM and enable the driver model for serial by defining >>> an ap

Re: [U-Boot] [PATCH 01/14] net: eth-uclass: eth_get_dev based on SEQ_ALIAS instead of probe order

2019-10-25 Thread keerthy
On 10/25/2019 5:35 PM, Tom Rini wrote: On Tue, Aug 06, 2019 at 04:08:31PM +0530, Keerthy wrote: In case of multiple eth interfaces currently eth_get_dev fetches the device based on the probe order which can be random hence try with the alias. Signed-off-by: Keerthy --- net/eth-uclass.c |

Re: [U-Boot] [PATCH] Makefile: fix dependency for imx targets

2019-10-25 Thread Tom Rini
On Fri, Oct 25, 2019 at 02:46:54PM +0200, Heiko Schocher wrote: > imx targets are defined in arch/arm/mach-imx/Makefile. > Some of them are dependent on targets defined in main > Makefile. For the Makefile in arch/arm/mach-imx this > targets must be finished before the imx targets are > build, if

Re: [U-Boot] [RESEND PATCH v2 12/13] davinci: omapl138-lcdk: enable driver-model in SPL

2019-10-25 Thread Bartosz Golaszewski
czw., 26 wrz 2019 o 01:21 Faiz Abbas napisał(a): > > Hi, > > On 29/07/19 12:28 PM, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > Enable CONFIG_SPL_DM and enable the driver model for serial by defining > > an appropriate device in the board file for da850-lcdk. > > > > This brea

Re: [U-Boot] [PATCH v2 16/17] test: add lib specific Kconfig

2019-10-25 Thread Tom Rini
On Fri, Oct 25, 2019 at 07:07:48PM +0900, AKASHI Takahiro wrote: > Adding new unit tests for library routines will make test/Kconfig > messy. So just create a Kconfig file under lib. > > Signed-off-by: AKASHI Takahiro > --- > test/Kconfig | 8 +--- > test/lib/Kconfig | 7 +++ > 2 fil

Re: [U-Boot] [PATCH 1/1] dwc3-generic: Don't fail probe if clk/reset entries are absent

2019-10-25 Thread Marek Vasut
On 10/25/19 10:18 AM, Vignesh Raghavendra wrote: > Some boards don't populate clk/reset entries as these are are optional > as per binding documentation. Therefore, don't fail driver probe if > clk/reset entries are absent in DT. > > This fixes fastboot failures seen due to enabling of CONFIG_CLK

Re: [U-Boot] Cavium/Marvell Octeon Support

2019-10-25 Thread Daniel Schwierzeck
Hi Aaron, Am 23.10.19 um 05:50 schrieb Aaron Williams: > Hi all, > > I have been tasked with porting our Octeon U-Boot to the latest U-Boot > and merging it upstream. This will involve a very significant amount of > code that generally will not be compatible with other MIPS processors > due to ou

[U-Boot] [PATCH v2] spl: fix SPI config dependencies

2019-10-25 Thread Simon Goldschmidt
As SPL_SPI_FLASH_SUPPORT cannot work without SPL_SPI_SUPPORT, fix dependencies to prevent enabling SPI flash support without basic SPI support. Signed-off-by: Simon Goldschmidt --- Changes in v2: - move SYS_SPI_U_BOOT_OFFS out of the SPL_SPI_FLASH_SUPPORT guard since that broke sunxi SPL (whic

Re: [U-Boot] [PATCH 3/3] board: tbs2910: Convert eth to driver model

2019-10-25 Thread Fabio Estevam
Hi Soeren, On Tue, Oct 15, 2019 at 11:11 AM Soeren Moch wrote: > The build system still complaints about missing DM_VIDEO conversion for > this board. Are there any examples available, where i.MX6Q boards with > HDMI output are converted to DM_VIDEO? Yes, please check wandboard for an example.

Re: [U-Boot] [PATCH v5 00/19] efi_loader: non-volatile variables support

2019-10-25 Thread Wolfgang Denk
Dear Takahiro, In message <20191025075645.gj10...@linaro.org> you wrote: > > I won't and cannot make replies on every comment that you gave me > below because we are very different at some basic points and > other comments are just details. Can you please at least comment on the size impact? How

Re: [U-Boot] [PATCH] sunxi: set PIO voltage to hardware-detected value on startup on H6

2019-10-25 Thread Ondřej Jirman
Hi, On Wed, Apr 24, 2019 at 01:44:12PM +0800, Icenowy Zheng wrote: > The Allwinner H6 SoC has a register to set the PIO banks' voltage. When > it mismatches the real voltage supplied to the VCC to the PIO supply, > the PIO will work improperly. > > The PIO controller also has a register that cont

[U-Boot] [PATCH] Makefile: fix dependency for imx targets

2019-10-25 Thread Heiko Schocher
imx targets are defined in arch/arm/mach-imx/Makefile. Some of them are dependent on targets defined in main Makefile. For the Makefile in arch/arm/mach-imx this targets must be finished before the imx targets are build, if not you get for example the error: make -f /home/hs/abb/mainlining/u-boot/

Re: [U-Boot] [PATCH 01/14] net: eth-uclass: eth_get_dev based on SEQ_ALIAS instead of probe order

2019-10-25 Thread Tom Rini
On Tue, Aug 06, 2019 at 04:08:31PM +0530, Keerthy wrote: > In case of multiple eth interfaces currently eth_get_dev > fetches the device based on the probe order which can be > random hence try with the alias. > > Signed-off-by: Keerthy > --- > net/eth-uclass.c | 4 ++-- > 1 file changed, 2 ins

Re: [U-Boot] [PATCH] usb: composite: add BOS descriptor support to composite framework

2019-10-25 Thread Roger Quadros
On 24/10/2019 18:44, Jean-Jacques Hiblot wrote: + Vignesh and Roger On 24/10/2019 13:22, Michal Simek wrote: po 14. 10. 2019 v 14:52 odesílatel Michal Simek napsal: From: T Karthik Reddy To add usb-3.0 support to peripheral device add BOS & SS capability descriptors to gadget composite fr

[U-Boot] RK3399 NanoPI-M4 boot issues

2019-10-25 Thread robert
I'm trying to build a linux from source on a RK3399 nanopi-m4. I did the below steps:   *###  Download and compile ARM-TF ### *$ git clone https://github.com/ARM-software/arm-trusted-firmware.git $ make CROSS_COMPILE=aarch64-linux-gnu- PLAT=rk3399 bl31   *### Download and complie U-Boot ### *$ cd .

[U-Boot] [PULL] u-boot-usb/master

2019-10-25 Thread Marek Vasut
The following changes since commit 680023c5fab6b1777c0c6f2e76e5d2effb7903a0: Merge tag 'u-boot-stm32-2019-10-23' of https://gitlab.denx.de/u-boot/custodians/u-boot-stm (2019-10-23 14:04:02 -0400) are available in the Git repository at: git://git.denx.de/u-boot-usb.git master for you to fetc

[U-Boot] [PATCH 6/6] rockchip: mkimage: add support for RK3308

2019-10-25 Thread Andy Yan
Usage: (1) tools/mkimage -n rk3308 -T rksd -d tpl/u-boot-tpl.bin idbloader.img (2) cat spl/u-boot-spl.bin >> idbloader.img (3) upgrade_tool wl 0x40 idbloader.img Note: When use a ddr binary from rkbin as tpl, use it replace u-boot-tpl.bin in (1) Signed-off-by: Andy Yan --- tools/rkcommon

[U-Boot] [PATCH 5/6] rockchip: rk3308: Add sdram driver

2019-10-25 Thread Andy Yan
A dm based dram driver for rk3308 u-boot to get capacity. Signed-off-by: Andy Yan --- drivers/ram/rockchip/Makefile | 1 + drivers/ram/rockchip/sdram_rk3308.c | 55 + 2 files changed, 56 insertions(+) create mode 100644 drivers/ram/rockchip/sdram_rk3308.c di

[U-Boot] [PATCH 4/6] board: rockchip: Add rk3308 evb support

2019-10-25 Thread Andy Yan
Add support for rk3308 evaluation board. Signed-off-by: Andy Yan --- arch/arm/mach-rockchip/rk3308/Kconfig | 8 +++ board/rockchip/evb_rk3308/Kconfig | 15 + board/rockchip/evb_rk3308/MAINTAINERS | 6 ++ board/rockchip/evb_rk3308/Makefile | 7 +++ board/rockchip/evb_rk3308/evb

[U-Boot] [PATCH v2 17/17] test: add asn1 unit test

2019-10-25 Thread AKASHI Takahiro
This test will exercise asn1 compiler as well as asn1 decoder functions via various parsers. Signed-off-by: AKASHI Takahiro --- test/lib/Kconfig | 18 ++- test/lib/Makefile | 2 + test/lib/asn1.c | 392 ++ 3 files changed, 411 insertions(+), 1 de

[U-Boot] [PATCH 2/6] rockchip: clk: Add clk driver for rk3308

2019-10-25 Thread Andy Yan
From: Finley Xiao Add clk controller driver for RK3308 SOC. Signed-off-by: Andy Yan --- drivers/clk/rockchip/Makefile |1 + drivers/clk/rockchip/clk_rk3308.c | 1078 include/dt-bindings/clock/rk3308-cru.h | 387 + 3 files changed, 1466 inser

[U-Boot] [PATCH 0/6] Add support for RK3308 SOC

2019-10-25 Thread Andy Yan
RK3308 is a quad Cortex A35 based SOC with rich audio interfaces(I2S/PCM/TDM/PDM/SPDIF/VAD/HDMI ARC), which designed for intelligent voice interaction and audio input/output processing. This path set add basic support for it, test with a emmc board. More boards support such as Firefly ROC-RK3308

Re: [U-Boot] [PATCH 1/1] dwc3-generic: Don't fail probe if clk/reset entries are absent

2019-10-25 Thread Sam Protsenko
+ Praneeth On Fri, Oct 25, 2019 at 1:08 PM Sam Protsenko wrote: > > Hi Vignesh, > > On Fri, Oct 25, 2019 at 11:17 AM Vignesh Raghavendra wrote: > > > > Some boards don't populate clk/reset entries as these are are optional > > as per binding documentation. Therefore, don't fail driver probe if >

[U-Boot] [PATCH 1/1] blk: set log2blksz in blk_create_device()

2019-10-25 Thread Heinrich Schuchardt
The ext4 file system requires log2blksz to be set. So when setting the block size on the block descriptor we should fill this field too. This fixes a problem with EFI block devices providing ext4 partitions, cf. https://lists.denx.de/pipermail/u-boot/2019-October/387702.html. Signed-off-by: Heinr

[U-Boot] [PATCH 3/6] arm: dts: rockchip: Add dts for rk3308 evb

2019-10-25 Thread Andy Yan
Add dts for rk3308 evb, sync from the linux kernel upstream list [0]. [0]https://patchwork.kernel.org/patch/11201555/ Signed-off-by: Andy Yan --- arch/arm/dts/Makefile |3 + arch/arm/dts/rk3308-evb-u-boot.dtsi | 17 + arch/arm/dts/rk3308-evb.dts | 230 arch/ar

[U-Boot] [PATCH 1/6] arm: rockchip: Add RK3308 SOC support

2019-10-25 Thread Andy Yan
RK3308 is a quad Cortex A35 based SOC with rich audio interfaces(I2S/PCM/TDM/PDM/SPDIF/VAD/HDMI ARC), which designed for intelligent voice interaction and audio input/output processing. Signed-off-by: Andy Yan --- arch/arm/include/asm/arch-rk3308/boot0.h | 11 + arch/arm/include/asm/arch

[U-Boot] [PATCH v2 14/17] lib: crypto: add x509 parser

2019-10-25 Thread AKASHI Takahiro
Imported from linux kernel v5.3: x509.asn1 without changes x509_akid.asn1 without changes x509_parser.h without changes x509_cert_parser.c with changes marked as __UBOOT__ x509_public_key.c with changes marked as __UBOOT__ Signed-off-by: AKASHI Takahiro --- lib/Kconfig |

[U-Boot] [PATCH v2 15/17] lib: crypto: add pkcs7 message parser

2019-10-25 Thread AKASHI Takahiro
Imported from linux kernel v5.3: pkcs7.asn1 without changes pkcs7.h with changes marked as __UBOOT__ pkcs7_parser.h without changes pkcs7_parser.c with changes marked as __UBOOT__ Signed-off-by: AKASHI Takahiro --- include/crypto/pkcs7.h| 47 +++ lib/crypto/Kconfig| 10 + lib/c

[U-Boot] [PATCH v2 11/17] lib: add oid registry utility

2019-10-25 Thread AKASHI Takahiro
Imported from linux kernel v5.3: build_OID_registry without changes oid_registry.h without changes oid_registry.c with changes marked as __UBOOT__ Signed-off-by: AKASHI Takahiro --- include/linux/oid_registry.h | 117 lib/Kconfig | 5 + lib/Makefile

[U-Boot] [PATCH v2 16/17] test: add lib specific Kconfig

2019-10-25 Thread AKASHI Takahiro
Adding new unit tests for library routines will make test/Kconfig messy. So just create a Kconfig file under lib. Signed-off-by: AKASHI Takahiro --- test/Kconfig | 8 +--- test/lib/Kconfig | 7 +++ 2 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 test/lib/Kconfig

[U-Boot] [PATCH v2 09/17] lib: add asn1 decoder

2019-10-25 Thread AKASHI Takahiro
Imported from linux kernel v5.3: lib/asn1_decoder.c with changes marked as __UBOOT__ Signed-off-by: AKASHI Takahiro --- lib/Kconfig| 5 + lib/Makefile | 1 + lib/asn1_decoder.c | 527 + 3 files changed, 533 insertions(+) create mode

Re: [U-Boot] [PATCH 1/1] dwc3-generic: Don't fail probe if clk/reset entries are absent

2019-10-25 Thread Sam Protsenko
Hi Vignesh, On Fri, Oct 25, 2019 at 11:17 AM Vignesh Raghavendra wrote: > > Some boards don't populate clk/reset entries as these are are optional > as per binding documentation. Therefore, don't fail driver probe if > clk/reset entries are absent in DT. > > This fixes fastboot failures seen due

[U-Boot] [PATCH v2 12/17] lib: crypto: add public key utility

2019-10-25 Thread AKASHI Takahiro
Imported from linux kernel v5.3: asymmetric-type.h with changes marked as __UBOOT__ asymmetric_type.c with changes marked as __UBOOT__ public_key.h with changes marked as __UBOOT__ public_key.c with changes marked as __UBOOT__ Signed-off-by: AKASHI Takahiro --- include/crypto/public_key.h

[U-Boot] [PATCH v2 13/17] lib: crypto: add rsa public key parser

2019-10-25 Thread AKASHI Takahiro
Imported from linux kernel v5.3: rsapubkey.asn1 without changes rsa.h without changes rsa_helper.c with changes marked as __UBOOT__ Signed-off-by: AKASHI Takahiro --- include/crypto/internal/rsa.h | 57 ++ lib/crypto/Kconfig| 11 ++ lib/crypto/Makefile | 11 ++ l

[U-Boot] [PATCH v2 10/17] doc: add README for asn1 compiler and decoder

2019-10-25 Thread AKASHI Takahiro
This document gives a brief description about ASN1 compiler as well as ASN1 decoder. Signed-off-by: AKASHI Takahiro --- doc/README.asn1 | 40 1 file changed, 40 insertions(+) create mode 100644 doc/README.asn1 diff --git a/doc/README.asn1 b/doc/README.a

[U-Boot] [PATCH v2 08/17] Makefile: add build script for asn1 parsers

2019-10-25 Thread AKASHI Takahiro
This rule will be used to build x509 and pkcs7 parsers. Signed-off-by: AKASHI Takahiro --- Makefile | 1 + scripts/Makefile.build | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 54da5cd51cea..66ef4503e606 100644 --- a/Makefile +++ b

[U-Boot] [PATCH v2 05/17] include: kernel.h: include printk.h

2019-10-25 Thread AKASHI Takahiro
Adding "printk.h" will help improve portability from linux kernel code (in my case, lib/asn1_decoder.c and others) where printf and pr_* variant functions are used. Signed-off-by: AKASHI Takahiro --- include/linux/kernel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inclu

[U-Boot] [PATCH v2 07/17] cmd: add asn1_compiler

2019-10-25 Thread AKASHI Takahiro
Imported from linux kernel v5.3: asn1.h without changes asn1_ber_bytecode.h without changes asn1_decoder.h without changes asn1_compiler.c without changes This host command will be used to create a ASN1 parser, for example, for pkcs7 messages or x509 certificates. More specifically, it will ge

[U-Boot] [PATCH v2 06/17] linux/time.h: include vsprintf.h

2019-10-25 Thread AKASHI Takahiro
Without this commit, time.h possibly causes a build error as asctime_r() uses sprintf(). Signed-off-by: AKASHI Takahiro --- include/linux/time.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/time.h b/include/linux/time.h index dc9344a6d97b..702dd276aea5 100644 --- a/include/l

[U-Boot] [PATCH v2 02/17] rtc.h: add struct udevice declaration

2019-10-25 Thread AKASHI Takahiro
Without this change, including rtc.h solely will cause a build error. Signed-off-by: AKASHI Takahiro --- include/rtc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/rtc.h b/include/rtc.h index 7386d52db1d7..8aabfc1162a4 100644 --- a/include/rtc.h +++ b/include/rtc.h @@ -18,6 +18,

[U-Boot] [PATCH v2 01/17] linux_compat: move kmemdup() from ubifs.c to linux_compat.c

2019-10-25 Thread AKASHI Takahiro
linux_compat.c is the best place for kmemdup(), which is currenly used only in ubifs.c, but will also be used when other kernel files (in my case, lib/crypto/x509_cert_parser.c and pkcs7_parser.c) will be imported. So just move it. Signed-off-by: AKASHI Takahiro --- fs/ubifs/ubifs.c | 19 +

[U-Boot] [PATCH v2 03/17] rtc: move date.c from drivers/rtc/ to lib/

2019-10-25 Thread AKASHI Takahiro
In the next commit, rtc_mktime(), for compatibility with linux, will be implemented using rtc_mktime(), which is no longer drivers/rtc specific. So move this file under lib/. Signed-off-by: AKASHI Takahiro --- cmd/Kconfig | 1 + drivers/rtc/Kconfig | 1 + drivers/rtc/Make

[U-Boot] [PATCH v2 04/17] lib: add mktime64() for linux compatibility

2019-10-25 Thread AKASHI Takahiro
This function will be used in lib/crypto/x509_cert_parser.c, which will also be imported from linux code in a later commit. Signed-off-by: AKASHI Takahiro --- include/linux/time.h | 10 ++ lib/date.c | 20 2 files changed, 30 insertions(+) diff --git a/in

[U-Boot] [PATCH v2 00/17] import x509/pkcs7 parsers from linux

2019-10-25 Thread AKASHI Takahiro
# This patch set should be merged first prior to my rsa extension patch # due to some dependency. I plan to send out a new version of rsa # extension next week. Asn1 parsers of x509 certificates and pkcs7 messages are required to implement image authentication and variable authentication as part o

[U-Boot] [PATCH V4 5/6] net: fec_mxc: support i.MX8M with CLK_CCF

2019-10-25 Thread Peng Fan
Add more clks for fec_mxc according to Linux Kernel 5.4.0-rc1 drivers/net/ethernet/freescale/fec_main.c. Since i.MX8MQ not support CLK_CCF, so add a check to restrict the code only effect when CONFIG_IMX8M and CONFIG_CLK_CCF both defined. Reviewed-by: Frieder Schrempf Signed-off-by: Peng Fan --

Re: [U-Boot] [PATCH v5 24/26] cmd: nand/sf: isolate legacy code

2019-10-25 Thread Jagan Teki
On Fri, Oct 25, 2019 at 3:06 PM Miquel Raynal wrote: > > Hi Jagan, > > Jagan Teki wrote on Fri, 25 Oct 2019 > 14:57:36 +0530: > > > Hi Miquel, > > > > On Fri, Oct 25, 2019 at 2:55 PM Miquel Raynal > > wrote: > > > > > > Hi Jagan, > > > > > > Jagan Teki wrote on Fri, 25 Oct 2019 > > > 14:44:38

Re: [U-Boot] [PATCH 4/5] dm: regmap: Fix mask in regmap_update_bits()

2019-10-25 Thread Jean-Jacques Hiblot
On 12/10/2019 00:16, Simon Glass wrote: This function assumes that the 'val' parameter has no masked bits set. This is not defined by the function prototype though. Fix the function to mask the value and update the documentation. Signed-off-by: Simon Glass --- drivers/core/regmap.c | 2 +-

Re: [U-Boot] [PATCH v4 2/4] arm: socfpga: Convert reset manager from struct to defines

2019-10-25 Thread Simon Goldschmidt
On Fri, Oct 25, 2019 at 11:17 AM Ley Foon Tan wrote: > > On Wed, Oct 23, 2019 at 2:11 AM Simon Goldschmidt > wrote: > > > > Am 10.10.2019 um 09:37 schrieb Ley Foon Tan: > > > Convert reset manager for Gen5, Arria 10 and Stratix 10 from struct > > > to defines. > > > > > > Change to get reset mana

  1   2   >