Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-13 Thread Marek Vasut
On 08/13/2018 03:39 PM, Tom Rini wrote: [...] Next step is to upstream the DT changes to Linux kernel, then sync the changes to U-Boot to satisfy this obsession - using exactly the same DT as Linux. >>> >>> This is not gonna happen. >>> >>> Sorry, you're really just wasting my time

Re: [U-Boot] [PATCH] fdt_support: Use VLA instead of MEMORY_BANKS_MAX

2018-08-13 Thread Ramon Fried
On Mon, Aug 13, 2018 at 5:52 PM Tom Rini wrote: > On Mon, Aug 13, 2018 at 08:20:03AM +0100, Peter Robinson wrote: > > > On Sun, Aug 12, 2018 at 9:37 PM, Ramon Fried > wrote: > > > From: Ramon Fried > > > > > > Instead of relaying on user to configure MEMORY_BANKS_MAX > > > correctly, use VLA

[U-Boot] [PATCH 09/10] tee: optee: support AVB trusted application

2018-08-13 Thread Jens Wiklander
Adds configuration option OPTEE_TA_AVB and a header file describing the interface to the AVB trusted application provided by OP-TEE. Signed-off-by: Jens Wiklander --- MAINTAINERS| 1 + drivers/tee/optee/Kconfig | 16 + include/tee.h | 7 ++

[U-Boot] [PATCH 06/10] tee: add OP-TEE driver

2018-08-13 Thread Jens Wiklander
Adds a OP-TEE driver. * Targets ARM and ARM64 * Supports using any u-boot memory as shared memory * Probes OP-TEE version using SMCs * Uses OPTEE message protocol version 2 to communicate with secure world Signed-off-by: Jens Wiklander --- drivers/tee/Kconfig | 10 +

[U-Boot] [PATCH 08/10] optee: support routing of rpmb data frames to mmc

2018-08-13 Thread Jens Wiklander
Adds support in optee supplicant to route signed (MACed) RPMB frames from OP-TEE Secure OS to MMC and vice versa to manipulate the RPMB partition. Signed-off-by: Jens Wiklander --- drivers/tee/optee/Makefile| 1 + drivers/tee/optee/core.c | 8 ++

[U-Boot] [PATCH 07/10] arm: dt: hikey: Add optee node

2018-08-13 Thread Jens Wiklander
Sync with 14e21cb8f811 ("arm64: dt: hikey: Add optee node" from Linux kernel. Signed-off-by: Jens Wiklander --- arch/arm/dts/hi6220-hikey.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/dts/hi6220-hikey.dts b/arch/arm/dts/hi6220-hikey.dts index 818525197508..24f09257af00

[U-Boot] [PATCH 10/10] avb_verify: support using OP-TEE TA AVB

2018-08-13 Thread Jens Wiklander
With CONFIG_OPTEE_TA_AVB use the trusted application AVB provided by OP-TEE to manage rollback indexes and device lock status. Signed-off-by: Jens Wiklander --- common/avb_verify.c | 132 ++- include/avb_verify.h | 4 ++ 2 files changed, 135

[U-Boot] [PATCH 03/10] mmc: rpmb: add mmc_rpmb_route_frames()

2018-08-13 Thread Jens Wiklander
Adds mmc_rpmb_route_frames() to route RPMB data frames from/to an external entity. Signed-off-by: Jens Wiklander --- drivers/mmc/rpmb.c | 160 + include/mmc.h | 2 + 2 files changed, 162 insertions(+) diff --git a/drivers/mmc/rpmb.c

[U-Boot] [PATCH 05/10] dt/bindings: add bindings for optee

2018-08-13 Thread Jens Wiklander
Sync with c8bfafb15944 ("dt/bindings: add bindings for optee") from Linux kernel. Introduces linaro prefix and adds bindings for ARM TrustZone based OP-TEE implementation. Signed-off-by: Jens Wiklander --- .../firmware/linaro,optee-tz.txt | 31 +++ 1 file changed,

[U-Boot] [PATCH 02/10] cmd: avb read_rb: print rb_idx in hexadecimal

2018-08-13 Thread Jens Wiklander
Prior to this patch was do_avb_write_rb() reading supplied rb_idx as a hexadecimal number while do_avb_read_rb() printed the read out rb_idx as decimal number. For consistency change do_avb_read_rb() to print rb_idx as a hexadeciaml number too. Signed-off-by: Jens Wiklander --- cmd/avb.c | 2 +-

[U-Boot] [PATCH 04/10] Add UCLASS_TEE for Trusted Execution Environment

2018-08-13 Thread Jens Wiklander
Adds a uclass to interface with a TEE (Trusted Execution Environment). A TEE driver is a driver that interfaces with a trusted OS running in some secure environment, for example, TrustZone on ARM cpus, or a separate secure co-processor etc. The TEE subsystem can serve a TEE driver for a Global

[U-Boot] [PATCH 01/10] dm: fdt: scan for devices under /firmware too

2018-08-13 Thread Jens Wiklander
Just as /chosen may contain devices /firmware may contain devices, scan for devices under /firmware too. Signed-off-by: Jens Wiklander --- drivers/core/root.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/core/root.c b/drivers/core/root.c index

[U-Boot] [PATCH 00/10] AVB using OP-TEE

2018-08-13 Thread Jens Wiklander
Hi, This adds support for storing AVB rollback indexes in the RPMB partition. The RPMB partition (content and key) is managed by OP-TEE (https://www.op-tee.org/) which is a secure OS leveraging ARM TrustZone. The Linux kernel can already support OP-TEE with reading and updating rollback indexes

[U-Boot] [PATCH] tools: kwboot: Make kwboot more robust on a38x

2018-08-13 Thread Baruch Siach
From: Jon Nettleton This patch accomplishes 2 things to make the kwboot procedure on the a38x more reliable. 1) We fill the tty with 1K of the magic bootparam. This helps with the timing of where the microcode picks up in the read of the line to ensure we actually catch the break to go into

[U-Boot] [PATCH] doc/git-mailrc: add Stefan Roese to the kirkwood alias

2018-08-13 Thread Baruch Siach
Stefan is listed as a kirkwood maintainer since commit f822d8578ba3 (MAINTAINERS: Update Marvell custodianship). Signed-off-by: Baruch Siach --- doc/git-mailrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/git-mailrc b/doc/git-mailrc index bf8f2a5b69a9..5d835d4de5bb

Re: [U-Boot] [PATCH] fdt_support: Use VLA instead of MEMORY_BANKS_MAX

2018-08-13 Thread Tom Rini
On Mon, Aug 13, 2018 at 08:20:03AM +0100, Peter Robinson wrote: > On Sun, Aug 12, 2018 at 9:37 PM, Ramon Fried wrote: > > From: Ramon Fried > > > > Instead of relaying on user to configure MEMORY_BANKS_MAX > > correctly, use VLA (variable length array) to accommodate the > > required banks. >

Re: [U-Boot] [PATCH v3 1/1] avb2.0: add get_size_of_partition()

2018-08-13 Thread Sam Protsenko
On Fri, Aug 10, 2018 at 5:14 PM, Igor Opaniuk wrote: > Sam, > > Could you please double-check this patch and confirm that your tag can > be still applied? > Sure. Reviewed-by: Sam Protsenko > Thanks! > > On 10 August 2018 at 17:06, Andrew F. Davis wrote: >> On 08/10/2018 08:59 AM, Igor

Re: [U-Boot] [PATCH v3 7/8] arm: socfpga: fix SPL booting from fpga OnChip RAM

2018-08-13 Thread Marek Vasut
On 08/13/2018 03:32 PM, Simon Goldschmidt wrote: > > > Marek Vasut mailto:ma...@denx.de>> schrieb am Mo., 13. > Aug. 2018, 15:29: > > On 08/13/2018 09:33 AM, Simon Goldschmidt wrote: > > To boot from fpga OnChip RAM, some changes are required in SPL > > to ensure the code is linked

Re: [U-Boot] [PATCH v3 5/8] arm: socfpga: fix U-Boot running from fpga OnChip RAM

2018-08-13 Thread Marek Vasut
On 08/13/2018 03:33 PM, Simon Goldschmidt wrote: > > > Marek Vasut mailto:ma...@denx.de>> schrieb am Mo., 13. > Aug. 2018, 15:29: > > On 08/13/2018 09:33 AM, Simon Goldschmidt wrote: > > gd->env_addr points to pre-relocation address even after > > relocation. This leads to an abort

Re: [U-Boot] [PATCH v3 2/8] arm: socfpga: fix device trees to work with DM serial

2018-08-13 Thread Simon Goldschmidt
Tom Rini schrieb am Mo., 13. Aug. 2018, 15:41: > On Mon, Aug 13, 2018 at 03:36:35PM +0200, Simon Goldschmidt wrote: > > Tom Rini schrieb am Mo., 13. Aug. 2018, 15:33: > > > > > On Mon, Aug 13, 2018 at 03:29:30PM +0200, Marek Vasut wrote: > > > > On 08/13/2018 03:28 PM, Tom Rini wrote: > > > > >

Re: [U-Boot] [PATCH v3 2/8] arm: socfpga: fix device trees to work with DM serial

2018-08-13 Thread Marek Vasut
On 08/13/2018 03:41 PM, Tom Rini wrote: > On Mon, Aug 13, 2018 at 03:36:35PM +0200, Simon Goldschmidt wrote: >> Tom Rini schrieb am Mo., 13. Aug. 2018, 15:33: >> >>> On Mon, Aug 13, 2018 at 03:29:30PM +0200, Marek Vasut wrote: On 08/13/2018 03:28 PM, Tom Rini wrote: > On Mon, Aug 13,

Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-13 Thread Marek Vasut
On 08/13/2018 04:24 AM, Bin Meng wrote: > Hi Marek, > > On Fri, Aug 10, 2018 at 8:38 PM, Marek Vasut wrote: >> On 08/10/2018 02:01 PM, Tom Rini wrote: >>> On Wed, Aug 08, 2018 at 09:37:25PM +0200, Marek Vasut wrote: On 08/08/2018 05:32 PM, Bin Meng wrote: > Hi Marek, > > On Wed,

Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-13 Thread Marek Vasut
On 08/13/2018 04:07 AM, Bin Meng wrote: [...] > Sorry this is terribly wrong. Imagine someone > writes another OS, and all he has is the device tree spec. He follows > the spec and writes some codes to parse a valid DT, and it's done. How > his OS makes use of the DT is his

Re: [U-Boot] [PATCH] spi: davinci: Full dm conversion

2018-08-13 Thread Alex Kiernan
On Mon, Aug 13, 2018 at 1:40 PM Adam Ford wrote: > > On Sat, Aug 11, 2018 at 3:09 PM Adam Ford wrote: > > > > > > > > On Sat, Aug 11, 2018, 1:24 PM Jagan Teki wrote: > >> > >> On Sat, Aug 11, 2018 at 6:12 PM, Adam Ford wrote: > >> > On Fri, Aug 10, 2018 at 2:58 PM Adam Ford wrote: > >> >> >

Re: [U-Boot] [PATCH v3 2/8] arm: socfpga: fix device trees to work with DM serial

2018-08-13 Thread Tom Rini
On Mon, Aug 13, 2018 at 03:36:35PM +0200, Simon Goldschmidt wrote: > Tom Rini schrieb am Mo., 13. Aug. 2018, 15:33: > > > On Mon, Aug 13, 2018 at 03:29:30PM +0200, Marek Vasut wrote: > > > On 08/13/2018 03:28 PM, Tom Rini wrote: > > > > On Mon, Aug 13, 2018 at 03:25:19PM +0200, Simon Goldschmidt

Re: [U-Boot] [PATCH] pci: Support parsing PCI controller DT subnodes

2018-08-13 Thread Tom Rini
On Mon, Aug 13, 2018 at 10:07:03AM +0800, Bin Meng wrote: > Hi Marek, > > On Fri, Aug 10, 2018 at 6:32 PM, Marek Vasut wrote: > > On 08/10/2018 05:42 AM, Bin Meng wrote: > >> Hi Marek, > >> > >> On Thu, Aug 9, 2018 at 6:25 PM, Marek Vasut wrote: > >>> On 08/09/2018 11:41 AM, Bin Meng wrote: >

Re: [U-Boot] [PATCH v3 2/8] arm: socfpga: fix device trees to work with DM serial

2018-08-13 Thread Simon Goldschmidt
Tom Rini schrieb am Mo., 13. Aug. 2018, 15:33: > On Mon, Aug 13, 2018 at 03:29:30PM +0200, Marek Vasut wrote: > > On 08/13/2018 03:28 PM, Tom Rini wrote: > > > On Mon, Aug 13, 2018 at 03:25:19PM +0200, Simon Goldschmidt wrote: > > >> On Mon, Aug 13, 2018 at 3:17 PM Tom Rini wrote: > > >>> > >

Re: [U-Boot] [PATCH v3 0/8] Get socfpga gen5 SPL working again.

2018-08-13 Thread Simon Goldschmidt
Marek Vasut schrieb am Mo., 13. Aug. 2018, 15:29: > On 08/13/2018 09:33 AM, Simon Goldschmidt wrote: > > Socfpga gen5 SPL has been broken since moving to DM serial with > > v2018.07. Also, U-Boot console output has been broken since then. > > This series fixes this and makes some related small

Re: [U-Boot] [PATCH v3 5/8] arm: socfpga: fix U-Boot running from fpga OnChip RAM

2018-08-13 Thread Simon Goldschmidt
Marek Vasut schrieb am Mo., 13. Aug. 2018, 15:29: > On 08/13/2018 09:33 AM, Simon Goldschmidt wrote: > > gd->env_addr points to pre-relocation address even after > > relocation. This leads to an abort in env_callback_init > > when loading the environment. > > > > Fix this by enabling

Re: [U-Boot] [PATCH v3 2/8] arm: socfpga: fix device trees to work with DM serial

2018-08-13 Thread Tom Rini
On Mon, Aug 13, 2018 at 03:29:30PM +0200, Marek Vasut wrote: > On 08/13/2018 03:28 PM, Tom Rini wrote: > > On Mon, Aug 13, 2018 at 03:25:19PM +0200, Simon Goldschmidt wrote: > >> On Mon, Aug 13, 2018 at 3:17 PM Tom Rini wrote: > >>> > >>> On Mon, Aug 13, 2018 at 09:33:45AM +0200, Simon

Re: [U-Boot] [PATCH v3 7/8] arm: socfpga: fix SPL booting from fpga OnChip RAM

2018-08-13 Thread Simon Goldschmidt
Marek Vasut schrieb am Mo., 13. Aug. 2018, 15:29: > On 08/13/2018 09:33 AM, Simon Goldschmidt wrote: > > To boot from fpga OnChip RAM, some changes are required in SPL > > to ensure the code is linked to the correct address (in contrast > > to QSPI and MMC boot, FPGA boot executes SPL in place

Re: [U-Boot] [PATCH v3 2/8] arm: socfpga: fix device trees to work with DM serial

2018-08-13 Thread Marek Vasut
On 08/13/2018 03:28 PM, Tom Rini wrote: > On Mon, Aug 13, 2018 at 03:25:19PM +0200, Simon Goldschmidt wrote: >> On Mon, Aug 13, 2018 at 3:17 PM Tom Rini wrote: >>> >>> On Mon, Aug 13, 2018 at 09:33:45AM +0200, Simon Goldschmidt wrote: >>> Device trees need to have the serial console device

Re: [U-Boot] [PATCH v3 7/8] arm: socfpga: fix SPL booting from fpga OnChip RAM

2018-08-13 Thread Marek Vasut
On 08/13/2018 09:33 AM, Simon Goldschmidt wrote: > To boot from fpga OnChip RAM, some changes are required in SPL > to ensure the code is linked to the correct address (in contrast > to QSPI and MMC boot, FPGA boot executes SPL in place instead of > copying it to SRAM) and that fpga OnChip RAM

Re: [U-Boot] [PATCH v3 0/8] Get socfpga gen5 SPL working again.

2018-08-13 Thread Marek Vasut
On 08/13/2018 09:33 AM, Simon Goldschmidt wrote: > Socfpga gen5 SPL has been broken since moving to DM serial with > v2018.07. Also, U-Boot console output has been broken since then. > This series fixes this and makes some related small improvements. > > Changes in v3: > - moved uart0's

Re: [U-Boot] [PATCH v3 6/8] arm: socfpga: gen5: combine some init code for SPL and U-Boot

2018-08-13 Thread Marek Vasut
On 08/13/2018 09:33 AM, Simon Goldschmidt wrote: > Some of the code for low level system initialization in SPL's > board_init_f() and U-Boot's arch_early_init_r() is the same, > so let's combine it into a single function called from both. > > Signed-off-by: Simon Goldschmidt > --- > > Changes

Re: [U-Boot] [PATCH v3 5/8] arm: socfpga: fix U-Boot running from fpga OnChip RAM

2018-08-13 Thread Marek Vasut
On 08/13/2018 09:33 AM, Simon Goldschmidt wrote: > gd->env_addr points to pre-relocation address even after > relocation. This leads to an abort in env_callback_init > when loading the environment. > > Fix this by enabling CONFIG_SYS_EXTRA_ENV_RELOC. Doesn't this apply to gen10 too ? >

Re: [U-Boot] [PATCH v3 2/8] arm: socfpga: fix device trees to work with DM serial

2018-08-13 Thread Tom Rini
On Mon, Aug 13, 2018 at 03:25:19PM +0200, Simon Goldschmidt wrote: > On Mon, Aug 13, 2018 at 3:17 PM Tom Rini wrote: > > > > On Mon, Aug 13, 2018 at 09:33:45AM +0200, Simon Goldschmidt wrote: > > > > > Device trees need to have the serial console device available > > > before relocation and

Re: [U-Boot] [PATCH] kconfig: fix typo 'parition'

2018-08-13 Thread Simon Goldschmidt
On Mon, Aug 13, 2018 at 12:46 PM Dr. Philipp Tomsich wrote: > > > > On 13 Aug 2018, at 11:34, Simon Goldschmidt > > wrote: > > > > %s/parition/partition > > Make this a whole sentence to make it easier to read. Sure I can. I was only following example of other such patches... Simon > > > >

Re: [U-Boot] [PATCH v3 2/8] arm: socfpga: fix device trees to work with DM serial

2018-08-13 Thread Simon Goldschmidt
On Mon, Aug 13, 2018 at 3:17 PM Tom Rini wrote: > > On Mon, Aug 13, 2018 at 09:33:45AM +0200, Simon Goldschmidt wrote: > > > Device trees need to have the serial console device available > > before relocation and require a stdout-path in chosen at least > > for SPL to have a console. > > > >

Re: [U-Boot] [PATCH v3 2/8] arm: socfpga: fix device trees to work with DM serial

2018-08-13 Thread Tom Rini
On Mon, Aug 13, 2018 at 09:33:45AM +0200, Simon Goldschmidt wrote: > Device trees need to have the serial console device available > before relocation and require a stdout-path in chosen at least > for SPL to have a console. > > Signed-off-by: Simon Goldschmidt > --- > > Changes in v3: > -

Re: [U-Boot] [PATCH v2] cmd: fastboot: Validate user input

2018-08-13 Thread Sam Protsenko
Hi Lukasz, On Wed, Jul 25, 2018 at 12:22 AM, Lukasz Majewski wrote: > > Hi Sam, > > > On Sat, Jun 30, 2018 at 7:20 AM, Simon Glass wrote: > > > On 29 June 2018 at 11:59, Sam Protsenko > > > wrote: > > >> In case when user provides '-' as USB controller index, like this: > > >> > > >> =>

Re: [U-Boot] [PATCH] spi: davinci: Full dm conversion

2018-08-13 Thread Adam Ford
On Sat, Aug 11, 2018 at 3:09 PM Adam Ford wrote: > > > > On Sat, Aug 11, 2018, 1:24 PM Jagan Teki wrote: >> >> On Sat, Aug 11, 2018 at 6:12 PM, Adam Ford wrote: >> > On Fri, Aug 10, 2018 at 2:58 PM Adam Ford wrote: >> >> >> >> On Fri, Aug 10, 2018 at 7:42 AM Jagan Teki >> >> wrote: >> >> >

[U-Boot] [PATCH V2 3/3] bcm968380gerg: enable pinctrl

2018-08-13 Thread Philippe Reynes
Signed-off-by: Philippe Reynes --- Changelog: v2: - patch unchanged configs/bcm968380gerg_ram_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/bcm968380gerg_ram_defconfig b/configs/bcm968380gerg_ram_defconfig index 3354a5e..7c83d43 100644 ---

[U-Boot] [PATCH V2 1/3] pinctrl: bcm6838: add pinctrl support

2018-08-13 Thread Philippe Reynes
Add pinctrl support for broadcom bcm6838 SoC. Signed-off-by: Philippe Reynes --- Changelog: v2: - rename property pins-count to brcm,pins-count (feedback Daniel Schwierzeck) - rename property functions-count to brcm,functions-count (feedback Daniel Schwierzeck) - clean dev_err message

[U-Boot] [PATCH V2 2/3] dt: bcm6838: add pinctrl

2018-08-13 Thread Philippe Reynes
Add pinctrl node and related syscon node for broadcom bcm6838 SoC. Signed-off-by: Philippe Reynes --- Changelog: v2: - rename property pins-count to brcm,pins-count (feedback Daniel Schwierzeck) - rename property functions-count to brcm,functions-count (feedback Daniel Schwierzeck)

Re: [U-Boot] [PATCH] arm: socfpga: make socfpga_socrates_defconfig boot from QSPI

2018-08-13 Thread Marek Vasut
On 08/12/2018 10:04 PM, Simon Goldschmidt wrote: > On Sun, Aug 12, 2018 at 12:05 AM Marek Vasut wrote: >> >> On 08/11/2018 09:26 PM, Simon Goldschmidt wrote: >>> On Fri, Aug 10, 2018 at 10:32 PM Marek Vasut wrote: On 08/10/2018 10:11 PM, Simon Goldschmidt wrote: > On 10.08.2018

Re: [U-Boot] [linux-sunxi] [PATCH] sunxi: A64: fix default DRAM_ODT_EN symbol

2018-08-13 Thread Jagan Teki
On Mon, Aug 13, 2018 at 4:25 PM, Chen-Yu Tsai wrote: > On Mon, Aug 13, 2018 at 6:29 PM, Jagan Teki > wrote: >> On Wed, Jul 25, 2018 at 5:32 AM, Andre Przywara >> wrote: >>> "default" lines in Kconfig are processed in order, the first hit will >>> stop considering subsequent lines. In the case

[U-Boot] [PATCH] common: add board specific hook for os preboot config

2018-08-13 Thread Gerard Salvatella
Some boards require specific configuration prior to booting the kernel. For instance, our boards require shutting down the display to avoid fading transitions before the drivers are reloaded by the kernel. This could be facilitated by adding an extra hook during the os booting process.

[U-Boot] sunxi: USB gadget does not work on H2+ after 92a30692b2b18f45aae6fdaae38d67ed03dd2d11

2018-08-13 Thread Nuno Gonçalves
After this commit usb gadget does not work anymore for me on the Orange Pi Zero (H2+). Thanks, Nuno commit 92a30692b2b18f45aae6fdaae38d67ed03dd2d11 Author: Jagan Teki Date: Fri Jul 20 12:34:20 2018 +0530 phy: sun4i-usb: Call phy_passby even for PHY#0 On newer Allwinner SoC, there is

Re: [U-Boot] [PATCH 1/1] mtd: nand: fsl_ifc: Fix handling of bitflips in erased pages

2018-08-13 Thread Kurt Kanzenbach
On Thu, Aug 09, 2018 at 07:58:02PM +, York Sun wrote: > On 08/08/2018 04:55 AM, Kurt Kanzenbach wrote: > > Hi York, > > > > On Tue, Aug 07, 2018 at 09:52:46PM +, York Sun wrote: > >> On 08/02/2018 01:03 AM, Kurt Kanzenbach wrote: > >>> From: Darwin Dingel > >>> > >>> This is a fix made

Re: [U-Boot] [PATCH v4 0/7] Fixes/Addition to use the USB Ethernet gadget with the DWC3 gadget controller

2018-08-13 Thread Jean-Jacques Hiblot
On 11/08/2018 14:04, Lukasz Majewski wrote: Hi Jean-Jacques, This series implements 2 fixes to be able to use USB Ethernet gadget with the dwc3 driver. It also adds new commands to bind/unbind a device to/from a driver and update the 'dm tree' command to make it easier to use those new

Re: [U-Boot] [PATCH v2 0/6] musb-new: Improve shutdown code

2018-08-13 Thread Chen-Yu Tsai
On Fri, Jul 20, 2018 at 3:13 PM, Jagan Teki wrote: > This is v2 for previous series[1], by excluding sunxi phy changes. > > One patch mark it as 'RFC' about "including UCLASS_USB_DEV_GENERIC > into shutdown caller" so expecting some inputs on the same > > [1]

Re: [U-Boot] [linux-sunxi] [PATCH] sunxi: A64: fix default DRAM_ODT_EN symbol

2018-08-13 Thread Chen-Yu Tsai
On Mon, Aug 13, 2018 at 6:29 PM, Jagan Teki wrote: > On Wed, Jul 25, 2018 at 5:32 AM, Andre Przywara > wrote: >> "default" lines in Kconfig are processed in order, the first hit will >> stop considering subsequent lines. In the case of the DRAM_ODT_EN symbol >> that means that everything

Re: [U-Boot] [PATCH] spl: fix debug print in spl_common_init()

2018-08-13 Thread Dr. Philipp Tomsich
> On 13 Aug 2018, at 11:24, Simon Goldschmidt > wrote: > > spl_common_init() debug-prints "spl_early_init()\n" but it is > called both from spl_early_init() and spl_init(). > > Fix this by moving the debug() statement to the calling functions > which now print their name. > > Signed-off-by:

Re: [U-Boot] [PATCH] kconfig: fix typo 'parition'

2018-08-13 Thread Dr. Philipp Tomsich
> On 13 Aug 2018, at 11:34, Simon Goldschmidt > wrote: > > %s/parition/partition Make this a whole sentence to make it easier to read. > > Signed-off-by: Simon Goldschmidt Reviewed-by: Philipp Tomsich ___ U-Boot mailing list

Re: [U-Boot] [PATCH 6/7] ARM: dts: sun8i: Update A83T dts(i) files from Linux

2018-08-13 Thread Jagan Teki
On Sun, Aug 5, 2018 at 12:40 AM, Jagan Teki wrote: > Update all A83T devicetree dtsi and dtsi files from Linux-v4.18-rc3 > with below commit: > commit 221cb9fd2ee3042689fe0e6613d0f34eb46a5af6 > Author: Mylène Josserand > Date: Fri May 4 21:05:44 2018 +0200 > > ARM: dts: sun8i: Add

Re: [U-Boot] [PATCH v2 01/53] clk: Kconfig: Ascending order to sub directiory kconfigs

2018-08-13 Thread Jagan Teki
On Fri, Aug 10, 2018 at 11:36 AM, Jagan Teki wrote: > sourcing of sub directiory kconfig files are not in > proper order, so keep them in ascending order. > > Signed-off-by: Jagan Teki > Reviewed-by: Joe Hershberger > --- Since it's a generic change and require for any clk related patches.

Re: [U-Boot] [PATCH v2 7/7] ARM: dts: sun8i: Update R40/V40 dts(i) files from Linux-v4.18-rc3

2018-08-13 Thread Jagan Teki
On Mon, Aug 13, 2018 at 1:12 PM, Jagan Teki wrote: > On Thu, Aug 9, 2018 at 6:38 PM, Jagan Teki wrote: >> Update all R40/V40 devicetree dtsi and dtsi files from Linux-v4.18-rc3 >> with below commit: >> >> R40: >> commit c36fd5a48bd20820855e3e91a89297eeaa31836e >> Author: Chen-Yu Tsai >> Date:

Re: [U-Boot] [linux-sunxi] [PATCH] sunxi: A64: fix default DRAM_ODT_EN symbol

2018-08-13 Thread Jagan Teki
On Wed, Jul 25, 2018 at 5:32 AM, Andre Przywara wrote: > "default" lines in Kconfig are processed in order, the first hit will > stop considering subsequent lines. In the case of the DRAM_ODT_EN symbol > that means that everything following the first two lines will never be > checked: >

[U-Boot] [PATCH 2/2] Add user alias for Simon Goldschmidt

2018-08-13 Thread Simon Goldschmidt
Since I cannot use my work address to send patches from at home, add an alias for my gmail address. Signed-off-by: Simon Goldschmidt --- u-boot-config/aliases | 1 + 1 file changed, 1 insertion(+) diff --git a/u-boot-config/aliases b/u-boot-config/aliases index ee1e014..da59298 100644 ---

[U-Boot] [PATCH 1/2] Add domain mapping for Pepperl+Fuchs

2018-08-13 Thread Simon Goldschmidt
Signed-off-by: Simon Goldschmidt --- u-boot-config/domain-map | 1 + 1 file changed, 1 insertion(+) diff --git a/u-boot-config/domain-map b/u-boot-config/domain-map index f2abba9..74c1538 100644 --- a/u-boot-config/domain-map +++ b/u-boot-config/domain-map @@ -262,6 +262,7 @@ parallels.com

[U-Boot] [PATCH] kconfig: fix typo 'parition'

2018-08-13 Thread Simon Goldschmidt
%s/parition/partition Signed-off-by: Simon Goldschmidt --- common/spl/Kconfig| 2 +- drivers/i2c/muxes/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 0ad1e049a9..b44b7412fd 100644 --- a/common/spl/Kconfig

[U-Boot] [PATCH] spl: fix debug print in spl_common_init()

2018-08-13 Thread Simon Goldschmidt
spl_common_init() debug-prints "spl_early_init()\n" but it is called both from spl_early_init() and spl_init(). Fix this by moving the debug() statement to the calling functions which now print their name. Signed-off-by: Simon Goldschmidt --- common/spl/spl.c | 6 -- 1 file changed, 4

Re: [U-Boot] [PATCH v2 7/7] ARM: dts: sun8i: Update R40/V40 dts(i) files from Linux-v4.18-rc3

2018-08-13 Thread Jagan Teki
On Thu, Aug 9, 2018 at 6:38 PM, Jagan Teki wrote: > Update all R40/V40 devicetree dtsi and dtsi files from Linux-v4.18-rc3 > with below commit: > > R40: > commit c36fd5a48bd20820855e3e91a89297eeaa31836e > Author: Chen-Yu Tsai > Date: Wed May 2 00:12:25 2018 +0800 > > ARM: dts: sun8i: r40:

[U-Boot] [PATCH v3 5/8] arm: socfpga: fix U-Boot running from fpga OnChip RAM

2018-08-13 Thread Simon Goldschmidt
gd->env_addr points to pre-relocation address even after relocation. This leads to an abort in env_callback_init when loading the environment. Fix this by enabling CONFIG_SYS_EXTRA_ENV_RELOC. Signed-off-by: Simon Goldschmidt --- Changes in v3: this patch is new in v3 Changes in v2: None

[U-Boot] [PATCH v3 2/8] arm: socfpga: fix device trees to work with DM serial

2018-08-13 Thread Simon Goldschmidt
Device trees need to have the serial console device available before relocation and require a stdout-path in chosen at least for SPL to have a console. Signed-off-by: Simon Goldschmidt --- Changes in v3: - moved uart0's "u-boot,dm-pre-reloc;" from socfpga.dtsi to board specific dts files

[U-Boot] [PATCH v3 7/8] arm: socfpga: fix SPL booting from fpga OnChip RAM

2018-08-13 Thread Simon Goldschmidt
To boot from fpga OnChip RAM, some changes are required in SPL to ensure the code is linked to the correct address (in contrast to QSPI and MMC boot, FPGA boot executes SPL in place instead of copying it to SRAM) and that fpga OnChip RAM stays accessible while SPL runs (don't disable fpga

[U-Boot] [PATCH v3 6/8] arm: socfpga: gen5: combine some init code for SPL and U-Boot

2018-08-13 Thread Simon Goldschmidt
Some of the code for low level system initialization in SPL's board_init_f() and U-Boot's arch_early_init_r() is the same, so let's combine it into a single function called from both. Signed-off-by: Simon Goldschmidt --- Changes in v3: this patch is new in v3 Changes in v2: None

[U-Boot] [PATCH v3 8/8] malloc_simple: calloc: don't call memset if malloc failed

2018-08-13 Thread Simon Goldschmidt
malloc_simple() can return 0 if out of memory. Don't call memset from calloc() in this case but rely on the caller checking the return value. Signed-off-by: Simon Goldschmidt Reviewed-by: Marek Vasut --- Changes in v3: None Changes in v2: None common/malloc_simple.c | 3 ++- 1 file changed,

[U-Boot] [PATCH v3 4/8] arm: socfpga: cyclone5: handle debug uart

2018-08-13 Thread Simon Goldschmidt
If CONFIG_DEBUG_UART is enabled, correctly initialize the debug uart before console is initialized to debug early boot problems in SPL. Signed-off-by: Simon Goldschmidt --- Changes in v3: None Changes in v2: - don't change printf() to debug() in reset_manager_gen5.c socfpga_bridges_reset()

[U-Boot] [PATCH v3 1/8] arm: socfpga: fix SPL on gen5 after moving to DM serial

2018-08-13 Thread Simon Goldschmidt
There were NULL pointers dereferenced because DM was used too early without correct initialization: - malloc_simple returned NULL when called from preloader_console_init() because gd->malloc_limit was 0 - uclass_add dereferenced gd->uclass_root members which were NULL because dm_init (or one

[U-Boot] [PATCH v3 3/8] arm: socfpga: spl_gen5: clean up malloc_base assignment

2018-08-13 Thread Simon Goldschmidt
From: Simon Goldschmidt In spl_gen5's board_init_f(), gd->malloc_base is manually assigned at the end of the function to point to sdram. This code is outdated as by now, the heap is switched to sdram by the common function spl_relocate_stack_gd() if the appropriate defines are set. As it was,

[U-Boot] [PATCH v3 0/8] Get socfpga gen5 SPL working again.

2018-08-13 Thread Simon Goldschmidt
Socfpga gen5 SPL has been broken since moving to DM serial with v2018.07. Also, U-Boot console output has been broken since then. This series fixes this and makes some related small improvements. Changes in v3: - moved uart0's "u-boot,dm-pre-reloc;" from socfpga.dtsi to board specific dts

Re: [U-Boot] [PATCH] fdt_support: Use VLA instead of MEMORY_BANKS_MAX

2018-08-13 Thread Peter Robinson
On Sun, Aug 12, 2018 at 9:37 PM, Ramon Fried wrote: > From: Ramon Fried > > Instead of relaying on user to configure MEMORY_BANKS_MAX > correctly, use VLA (variable length array) to accommodate the > required banks. With the kernel actively removing VLAs [1] does it make sense for us to use

[U-Boot] [PATCH v6 7/8] armv7: ls1021a: enable esdhc

2018-08-13 Thread Yinbo Zhu
This patch is to enable eSDHC for ls1021a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/ls1021a.dtsi |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/arm/dts/ls1021a.dtsi b/arch/arm/dts/ls1021a.dtsi index 5b3fc6a..59c97d5 100644 --- a/arch/arm/dts/ls1021a.dtsi +++

[U-Boot] [PATCH v6 3/8] armv8: ls2088a: add eSDHC node

2018-08-13 Thread Yinbo Zhu
This patch is to add eSDHC node for ls2088a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/fsl-ls2080a.dtsi |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls2080a.dtsi b/arch/arm/dts/fsl-ls2080a.dtsi index b0f8517..2d537ae 100644 ---

[U-Boot] [PATCH v6 8/8] Enable CONFIG_BLK and CONFIG_DM_MMC to Kconfig

2018-08-13 Thread Yinbo Zhu
This enables the folowing to Kconfig: CONFIG_BLK CONFIG_DM_MMC Signed-off-by: Yinbo Zhu --- configs/ls1021atwr_nor_SECURE_BOOT_defconfig |2 ++ configs/ls1021atwr_nor_defconfig |2 ++ configs/ls1021atwr_nor_lpuart_defconfig|2 ++

[U-Boot] [PATCH v6 6/8] armv8: ls1046a: add eSDHC node

2018-08-13 Thread Yinbo Zhu
This patch is to add eSDHC node for ls1046a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/fsl-ls1046a.dtsi |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls1046a.dtsi b/arch/arm/dts/fsl-ls1046a.dtsi index 4acbaf7..7687d12 100644 ---

[U-Boot] [PATCH v6 5/8] armv8: ls1043a: add eSDHC node

2018-08-13 Thread Yinbo Zhu
This patch is to add eSDHC node for ls1043a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/fsl-ls1043a.dtsi |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls1043a.dtsi b/arch/arm/dts/fsl-ls1043a.dtsi index ff40122..a804f51 100644 ---

[U-Boot] [PATCH v6 4/8] armv8: ls1088a: add eSDHC node

2018-08-13 Thread Yinbo Zhu
This patch is to add eSDHC node for ls1088a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/fsl-ls1088a.dtsi |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls1088a.dtsi b/arch/arm/dts/fsl-ls1088a.dtsi index 077caf3..72d755a 100644 ---

[U-Boot] [PATCH v6 2/8] armv8/ls1088a/ls2088a: esdhc: Add esdhc clock support

2018-08-13 Thread Yinbo Zhu
This patch adds esdhc clock support for ls1088a and ls2088a. Signed-off-by: Yinbo Zhu --- .../arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c

[U-Boot] [PATCH v6 1/8] dm: mmc: use block layer in mmc driver

2018-08-13 Thread Yinbo Zhu
At present the MMC subsystem maintains its own list of MMC devices. This cannot work with driver model when CONFIG_BLK is enabled, use blk_dread to replace previous mmc read interface, use mmc_get_blk_desc to get the mmc device property Signed-off-by: Yinbo Zhu --- Change in v6:

[U-Boot] [PATCH v6 14/14] misc: Add IHS FPGA driver

2018-08-13 Thread Mario Six
Add a driver for gdsys IHS (Integrated Hardware Systems) FPGAs, which supports initialization of the FPGA, as well as information gathering. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v5 -> v6: No changes v4 -> v5: No changes v3 -> v4: * Switched from 'res' as the name for return

[U-Boot] [PATCH v6 10/14] regmap: Define regmap_{get,set}

2018-08-13 Thread Mario Six
It would be convenient if one could use the regmap API in conjunction with register maps defined as structs (i.e. structs that directly mirror the memory layout of the registers in question). A similar approach was planned with the regmap_write32/regmap_read32 macros, but was never used. Hence,

[U-Boot] [PATCH v6 11/14] test: regmap: Add test for regmap_{set, get}

2018-08-13 Thread Mario Six
Add test for regmap_{set,get} functions. Reviewed-by: Anatolij Gustschin Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v5 -> v6: No changes v4 -> v5: No changes v3 -> v4: No changes v2 -> v3: New in v3 --- test/dm/regmap.c | 28 1 file changed, 28

[U-Boot] [PATCH v6 13/14] misc: Add gdsys_soc driver

2018-08-13 Thread Mario Six
This patch adds a driver for the bus associated with a IHS FPGA. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v5 -> v6: No changes v4 -> v5: No changes v3 -> v4: No changes v2 -> v3: * Fixed style violations * Added bindings file * Added more debug output in case of errors *

[U-Boot] [PATCH v6 12/14] misc: Sort Makefile entries

2018-08-13 Thread Mario Six
Makefile entries should be sorted. Reviewed-by: Anatolij Gustschin Reviewed-by: Simon Glass Signed-off-by: Mario Six Signed-off-by: Anatolij Gustschin --- v5 -> v6: No changes v4 -> v5: Drop re-ordered entries that are not in mainline (e.g. CONFIG_GDSYS_IOEP, CONFIG_MPC83XX_SERDES,

[U-Boot] [PATCH v6 09/14] regmap: Support reading from specific range

2018-08-13 Thread Mario Six
It is useful to be able to treat the different ranges of a regmap separately to be able to use distinct offset for them, but this is currently not implemented in the regmap API. To preserve backwards compatibility, add regmap_read_range and regmap_write_range functions that take an additional

[U-Boot] [PATCH v6 04/14] regmap: Improve error handling

2018-08-13 Thread Mario Six
ofnode_read_simple_addr_cells may fail and return a negative error code. Check for this when initializing regmaps. Also check if both_len is zero, since this is perfectly possible, and would lead to a division-by-zero further down the line. Reviewed-by: Anatolij Gustschin Reviewed-by: Simon

[U-Boot] [PATCH v6 02/14] regmap: Fix documentation

2018-08-13 Thread Mario Six
The documentation in regmap.h is not in kernel-doc format. Correct this. Reviewed-by: Anatolij Gustschin Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v5 -> v6: No changes v4 -> v5: No changes v3 -> v4: No changes v2 -> v3: New in v3 --- include/regmap.h | 48

[U-Boot] [PATCH v6 05/14] regmap: Introduce init_range

2018-08-13 Thread Mario Six
Both fdtdec_get_addr_size_fixed and of_address_to_resource can fail with an error, which is not currently checked during regmap initialization. Since the indentation depth is already quite deep, extract a new 'init_range' method to do the initialization. Reviewed-by: Anatolij Gustschin

[U-Boot] [PATCH v6 08/14] regmap: Add raw read/write functions

2018-08-13 Thread Mario Six
The regmap functions currently assume that all register map accesses have a data width of 32 bits, but there are maps that have different widths. To rectify this, implement the regmap_raw_read and regmap_raw_write functions from the Linux kernel API that specify the width of a desired read or

[U-Boot] [PATCH v6 03/14] regmap: Add documentation

2018-08-13 Thread Mario Six
Document the regmap_alloc() function. Reviewed-by: Anatolij Gustschin Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v5 -> v6: No changes v4 -> v5: No changes v3 -> v4: No changes v2 -> v3: New in v3 --- drivers/core/regmap.c | 6 ++ 1 file changed, 6 insertions(+) diff

[U-Boot] [PATCH v6 07/14] mips: Implement {in, out}_{le, be}_{16, 32, 64} and {in, out}_8

2018-08-13 Thread Mario Six
MIPS is the only architecture currently supported by U-Boot that does not implement any of the in/out register access functions. To have a interface that is useable across architectures, add the functions to the MIPS architecture (implemented using the __raw_write and __raw_read functions).

[U-Boot] [PATCH v6 06/14] regmap: Add error output

2018-08-13 Thread Mario Six
Add some debug output in cases where the initialization of a regmap fails. Reviewed-by: Anatolij Gustschin Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v5 -> v6: No changes v4 -> v5: No changes v3 -> v4: No changes v2 -> v3: New in v3 --- drivers/core/regmap.c | 10 --

[U-Boot] [PATCH v6 01/14] test: regmap: Increase size of syscon0 memory

2018-08-13 Thread Mario Six
The upcoming changes to the regmap interface will contain a proper check for plausibility when reading/writing from/to a register map. To still have the current tests pass, increase the size of the memory region for the syscon0 device, since one of the tests reads and writes beyond this range.

<    1   2