[PATCH v2 13/19] i2c: Add enums for i2c speed and address size

2020-01-04 Thread Simon Glass
Some drivers define their own speed enums and use their own constants for speed. It makes sense to have a unified defition of the different speeds. Since many controllers have to do different things for fast/high speed, it is a good idea to have an enum for the mode. Add these as well as an enum

[PATCH] lx2160aqds: Fix the the issue that dspi not work in kernel

2020-01-04 Thread Xiaowei Bao
The DSPI node of DTS in kernel is spi, so fix the "/soc/dspi@" ot "/soc/spi@". The DSPI2 and I2C5 is muxed, and the DSPI2 default status is okay, so must set the DSPI2 status is disabled if the pin use to I2C5. Signed-off-by: Xiaowei Bao --- board/freescale/lx2160a/lx2160a.c | 12 +++-

[PATCH v2 07/19] i2c: designware_i2c: Bring in the binding file

2020-01-04 Thread Simon Glass
Bring in this file from Linux v5.4. Signed-off-by: Simon Glass --- Changes in v2: None .../i2c/i2c-designware.txt| 73 +++ 1 file changed, 73 insertions(+) create mode 100644 doc/device-tree-bindings/i2c/i2c-designware.txt diff --git

[PATCH] net: phy: Fix overlong PHY timeout

2020-01-04 Thread Andre Przywara
Commit 27c3f70f3b50 ("net: phy: Increase link up delay in genphy_update_link()") increased the per-iteration waiting time from 1ms to 50ms, without adjusting the timeout counter. This lead to the timeout increasing from the typical 4 seconds to over three minutes. Adjust the timeout counter

Re: [PATCH 2/3] riscv: Add FU540 specific includes

2020-01-04 Thread Bin Meng
Hi Pragnesh, On Tue, Dec 31, 2019 at 10:00 PM Pragnesh Patel wrote: > > Added headers needed by upcoming SPL support of FU540. > > This headers are leveraged from FSBL > (https://github.com/sifive/freedom-u540-c000-bootloader.git) > > Signed-off-by: Pragnesh Patel > --- >

SPI NOR stops working if I put Env in MMC

2020-01-04 Thread Mauro Condarelli
Hi, I'm facing a strange problem that took quite a while to analyze. I'm porting U-Boot to a new board and thus some problem is expected. I am also trying to configure U-Boot in a useful (for my purposes) way. I decided to switch Environment storage from SPI NOR to SD card (in a file in FAT

[PATCH v6 0/6] rockchip: Add Binman support

2020-01-04 Thread Jagan Teki
This is v6 set for Binman support in rockchip, [1] here is previous patchset. This series add single boot image with binman for arm32 and pad_cat for arm64 rockchip platforms both TPL + SPL and SPL-alone targets. Changes for v6: - drop idbloader.img filename change patch - update rockchip.rst to

Re: [U-Boot] [PATCH 11/26] dts: mtmips: update reset controller node for mt7628

2020-01-04 Thread Mauro Condarelli
On 1/2/20 1:30 PM, Stefan Roese wrote: > Hi Mauro, > > On 30.12.19 13:14, Mauro Condarelli wrote: >> >> >> On 12/30/19 11:22 AM, Daniel Schwierzeck wrote: >>> >>> Am 30.12.19 um 10:19 schrieb Mauro Condarelli: I am having problems with this patch. Problem is "reset"command fails

Re: [PATCH] net: phy: Fix overlong PHY timeout

2020-01-04 Thread Stefan Roese
On 03.01.20 23:08, Andre Przywara wrote: Commit 27c3f70f3b50 ("net: phy: Increase link up delay in genphy_update_link()") increased the per-iteration waiting time from 1ms to 50ms, without adjusting the timeout counter. This lead to the timeout increasing from the typical 4 seconds to over three

Re: qemu_arm64_defconfig: PCI autoconfig fails for qemu-system-aarch64 -m 4G

2020-01-04 Thread Heinrich Schuchardt
On 1/2/20 12:28 PM, Tuomas Tynkkynen wrote: Hi Heinrich, On Wed, 1 Jan 2020 at 19:58, Heinrich Schuchardt wrote: Dear all, I want to run qemu_arm64_defconfig with 4G. qemu-system-aarch64 -machine virt -m 4G -smp cores=2 \ -bios u-boot.bin -cpu cortex-a53 -nographic -gdb tcp::1234

MMC failures on Davinci (Da850-evm)

2020-01-04 Thread Adam Ford
Does anyone with a da850/l-138/am1808 have any issues with MMC on their board? I haven't bisected it yet and only I found it by accident. U-Boot SPL 2020.01-rc5-00073-g4b75aa5aa7 (Jan 03 2020 - 09:08:17 -0600) Trying to boot from SPI U-Boot 2020.01-rc5-00073-g4b75aa5aa7 (Jan 03 2020 -

Re: [PATCH 8/8] ARM: dts: imx6qdli-icore: Add fec phy-handle

2020-01-04 Thread Stefano Babic
Hi Jagan, Michael, On 31/12/19 07:21, Jagan Teki wrote: > On Mon, Dec 30, 2019 at 10:55 PM Michael Nazzareno Trimarchi > wrote: >> >> Hi >> >> On Mon, Dec 30, 2019 at 1:04 PM Jagan Teki >> wrote: >>> >>> From: Michael Trimarchi >>> >>> LAN8720 needs a reset of every clock enable. The reset

[PATCH v6 1/6] Makefile: Add rockchip image type

2020-01-04 Thread Jagan Teki
Add rockchip image type support. right now the image type marked with rksd, So create image type variable with required image type like rksd or rkspi. Cc: Kever Yang Cc: Matwey V. Kornilov Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Makefile | 10 +- 1 file changed, 9

[PATCH v2] board/lx2160aqds: Update the DSPI status fixup

2020-01-04 Thread Xiaowei Bao
The dts node of the DSPI controller in kernel is spi instead of dspi, it is not correct if use "/soc/dspi@" to fix up the status of the dts in kernel, so, modify it to "/soc/spi@". The DSPI2 and I2C5 are muxed, and the status of DSPI2 node in kernel dts default value is okay, set the status of

Re: [PATCH 00/20] Add i.MXRT family support

2020-01-04 Thread Giulio Benetti
Hi Stefano, On 1/3/20 12:39 PM, Stefano Babic wrote: Hi Giulio, On 04/12/19 18:44, Giulio Benetti wrote: This patchset add support for i.MXRT family starting from i.MXRT1050 SoC. It provides: - i.MXRT1050 SoC entry - i.MXRT pinctrl driver - i.MXRT serial driver tweaking - i.MXRT sdram

Re: [PATCH 00/20] Add i.MXRT family support

2020-01-04 Thread Stefano Babic
Hi Giulio, On 04/12/19 18:44, Giulio Benetti wrote: > This patchset add support for i.MXRT family starting from i.MXRT1050 SoC. > It provides: > - i.MXRT1050 SoC entry > - i.MXRT pinctrl driver > - i.MXRT serial driver tweaking > - i.MXRT sdram controller driver > - i.MXRT usdhc driver tweaking >

Re: [PATCH 2/4] mmc: davinci: drop struct davinci_mmc_plat

2020-01-04 Thread Adam Ford
On Thu, Nov 14, 2019 at 9:10 AM Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > struct mmc_config & struct mmc don't need to be exported over platform > data, but can instead be private in the driver. > > Remove struct davinci_mmc_plat. This patch appears to break the da850-evm.

[PATCH v2 14/19] i2c: ast_i2c: Update to use standard enums for speed

2020-01-04 Thread Simon Glass
Update this driver to use the new standard enums for speed. Signed-off-by: Simon Glass --- Changes in v2: None drivers/i2c/ast_i2c.c | 2 +- drivers/i2c/ast_i2c.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/i2c/ast_i2c.c b/drivers/i2c/ast_i2c.c index

[PATCH] ddr: imx8m: Return error values from LPDDR4 training

2020-01-04 Thread sbabic
> From: Frieder Schrempf > In cases when the same SPL should run on boards with i.MX8MM, that > differ in DDR configuration, it is necessary to try different > parameters and check if the training done by the firmware suceeds or > not. > Therefore we return the DDR training/initialization success

[PATCH 2/3] mx6sllevk: Fix the pmic_get() parameter in the DM case

2020-01-04 Thread sbabic
> When pmic_get() is used with DM the first parameter must be > the complete node name plus the unit address, so fix it > accordingly. > Reported-by: Igor Opaniuk > Signed-off-by: Fabio Estevam > Reviewed-by: Peng Fan Applied to u-boot-imx, -next, thanks ! Best regards, Stefano Babic --

[U-Boot] [PATCH 3/4] arm: mxs: be more careful when enabling gpmi_clk

2020-01-04 Thread sbabic
> The data sheet says that the DIV field cannot change while the CLKGATE > bit is set or modified. So do it a little more carefully, by first > clearing the bit, waiting for that to appear, then setting the DIV > field. > Signed-off-by: Rasmus Villemoes Applied to u-boot-imx, -next, thanks !

[U-Boot] [PATCH 1/4] arm: mxs: fix register definitions for clkctrl_gpmi and clkctrl_sspX

2020-01-04 Thread sbabic
> I tried clearing a bit by writing to hw_clkctrl_gpmi_clr, then > busy-waiting for it to actually clear. My board hung. The data sheet > agrees, these registers do not have _set, _clr, _tog, so fix up the > definitions. git grep -E 'clkctrl_(gpmi|ssp[0-9])_' says that nobody > uses those

[PATCH v3] mach-imx: bootaux: elf firmware support

2020-01-04 Thread sbabic
> From: Igor Opaniuk > Currently imx-specific bootaux command doesn't support ELF format > firmware for Cortex-M4 core. > This patches introduces a PoC implementation of handling elf firmware > (load_elf_image_phdr() was copy-pasted from elf.c just for PoC). > ELF64 binaries isn't supported yet.

Re: [PATCH v2 1/1] travis-ci: provide env__efi_fit_tftp_file

2020-01-04 Thread Heinrich Schuchardt
On 1/2/20 6:05 PM, Stephen Warren wrote: On 12/31/19 3:42 AM, Cristian Ciocaltea wrote: On Mon, Dec 30, 2019 at 09:03:38PM +0100, Heinrich Schuchardt wrote: On 12/30/19 8:32 PM, Stephen Warren wrote: On 12/30/19 12:05 PM, Heinrich Schuchardt wrote: On 12/30/19 5:38 PM, Stephen Warren wrote:

[PATCH 1/1] efi_loader: free load options after execution

2020-01-04 Thread Heinrich Schuchardt
When be launch a binary via bootefi the bootargs environment variable is used to set the load options in the loaded image protocol. Free memory allocated for load options when the UEFI binary exits. Signed-off-by: Heinrich Schuchardt --- cmd/bootefi.c | 53

Re: [PATCH 0/4] arm: mxs: mxs_set_gpmiclk

2020-01-04 Thread Stefano Babic
Hi Rasmus, On 27/09/19 10:33, Rasmus Villemoes wrote: > On 12/09/2019 11.17, Rasmus Villemoes wrote: >> While trying to implement an mxs_set_gpmiclk() I stumbled on a few minor >> things. >> >> Rasmus Villemoes (4): >> arm: mxs: fix register definitions for clkctrl_gpmi and clkctrl_sspX >>

Pull request: u-boot-rockchip-20191231

2020-01-04 Thread Kever Yang
Hi Tom, Please pull the rockchip updates/fixes: - Fix latest mainline kernel for rk3308 - Update rk3288-evb config to suport OP-TEE - Fix for firefly-px30 DEBUG_UART channel and make it standalone - Script make_fit_atf add python3 support - Fix rk3328 timer with correct COUNTER_FREQUENCY - Fix

Re: [PATCH 1/5] video: x86: Enable 32-bit graphics by default

2020-01-04 Thread Bin Meng
Hi Simon, On Fri, Jan 3, 2020 at 10:30 AM Simon Glass wrote: > > Hi Anatolij, > > On Thu, 2 Jan 2020 at 07:34, Anatolij Gustschin wrote: > > > > Hi Simon, > > > > On Fri, 20 Dec 2019 18:10:33 -0700 > > Simon Glass s...@chromium.org wrote: > > > > > Most x86 boards that use video make use of

[PATCH v2 05/19] i2c: designware_i2c: Use an enum for selected speed mode

2020-01-04 Thread Simon Glass
Group these #defines into an enum to make it easier to understand the relationship between them. Signed-off-by: Simon Glass --- Changes in v2: None drivers/i2c/designware_i2c.c | 2 +- drivers/i2c/designware_i2c.h | 10 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git

Re: Pull request: u-boot-rockchip-20191231

2020-01-04 Thread Tom Rini
On Thu, Jan 02, 2020 at 04:34:23PM +0800, Kever Yang wrote: > Hi Tom, > > Please pull the rockchip updates/fixes: > - Fix latest mainline kernel for rk3308 > - Update rk3288-evb config to suport OP-TEE > - Fix for firefly-px30 DEBUG_UART channel and make it standalone > - Script make_fit_atf add

Re: [PATCH] arm: dts: bcm283x: Allow UARTs to work before relocation

2020-01-04 Thread Simon Glass
Hi Tom, On Thu, 2 Jan 2020 at 19:27, Simon Glass wrote: > > Hi Tom, > > On Thu, 2 Jan 2020 at 16:11, Tom Rini wrote: > > > > On Tue, Dec 31, 2019 at 02:28:19PM -0700, Simon Glass wrote: > > > Hi Matthias, > > > > > > On Tue, 10 Dec 2019 at 02:43, Matthias Brugger wrote: > > > > > > > > Hi

ATF + u-boot imx8mm combination

2020-01-04 Thread Michael Nazzareno Trimarchi
HI all I'm trying to work on some imx8mm mainline but I understand that I miss some of the information needed. I would like to work and play with power domain. Can I know where to find all the information to build a version with a valid combination? Michael -- | Michael Nazzareno Trimarchi

Re: [PATCH 2/4] mmc: davinci: drop struct davinci_mmc_plat

2020-01-04 Thread Tom Rini
On Fri, Jan 03, 2020 at 05:50:38PM +0100, Bartosz Golaszewski wrote: > pt., 3 sty 2020 o 17:01 Adam Ford napisał(a): > > > > On Thu, Nov 14, 2019 at 9:10 AM Bartosz Golaszewski wrote: > > > > > > From: Bartosz Golaszewski > > > > > > struct mmc_config & struct mmc don't need to be exported over

Re: [PATCH 1/3] riscv: Add place-holder for FU540 clk and gpio

2020-01-04 Thread Bin Meng
Hi Pragnesh, On Tue, Dec 31, 2019 at 2:31 PM Pragnesh Patel wrote: > > Added FU540 place-holder so that SoC specific values > will be kept here. It looks only clk.h is the placer-holder. gpio.h is not. Can you please split the gpio.h changes to another patch? > > Signed-off-by: Pragnesh Patel

Re: [PATCH v5 6/7] rockchip: Add Single boot image (with binman, pad_cat)

2020-01-04 Thread Jagan Teki
On Tue, Dec 31, 2019 at 1:34 PM Matwey V. Kornilov wrote: > > вт, 31 дек. 2019 г. в 10:54, Matwey V. Kornilov : > > > > пн, 30 дек. 2019 г. в 11:28, Jagan Teki : > > > > > > All rockchip platforms support TPL or SPL-based bootloader > > > in mainline with U-Boot proper as final stage. For each >

[PATCH v2 19/19] i2c: Update drivers to use enum for speed

2020-01-04 Thread Simon Glass
Convert the obvious uses of i2c bus speeds to use the enum. Use livetree access for code changes. Signed-off-by: Simon Glass --- Changes in v2: None drivers/i2c/exynos_hs_i2c.c | 4 ++-- drivers/i2c/fsl_i2c.c| 3 ++- drivers/i2c/i2c-cdns.c | 2 +- drivers/i2c/i2c-uclass.c

[PATCH v2 01/19] i2c: designware_i2c: Add more registers

2020-01-04 Thread Simon Glass
Some versions of this peripherals provide more control of the bus behaviour. Add definitions for these registers. Signed-off-by: Simon Glass Reviewed-by: Ley Foon Tan Reviewed-by: Jun Chen --- Changes in v2: - Fix 'previde' typo drivers/i2c/designware_i2c.h | 13 - 1 file

Re: [PATCH] arm: dts: bcm283x: Allow UARTs to work before relocation

2020-01-04 Thread Tom Rini
On Tue, Dec 31, 2019 at 02:28:19PM -0700, Simon Glass wrote: > Hi Matthias, > > On Tue, 10 Dec 2019 at 02:43, Matthias Brugger wrote: > > > > Hi Simon, > > > > On 02/12/2019 16:45, Tom Rini wrote: > > > On Sun, Dec 01, 2019 at 07:33:56PM -0700, Simon Glass wrote: > > > > > >> At present the

Re: i2c_class_init problem

2020-01-04 Thread Michael Nazzareno Trimarchi
Hi Never mind. I figure it out CONFIG_SPL_DM_SEQ_ALIAS=y Michael On Sat, Jan 4, 2020 at 1:44 PM Michael Nazzareno Trimarchi wrote: > > Hi Simon > > U-Boot SPL 2020.01-rc5-00071-g82f6f6e4e4-dirty (Jan 04 2020 - 13:39:54 +0100) > spl_early_init > i2c_uclass_init: highest alias id is 2 >

would it be feasible to enable GPT support for clearfrog at source?

2020-01-04 Thread ѽ҉ᶬḳ℠
The source conf for clearfrog appears absent of GPT support albeit there should not be space concern for that target, if that is the reason. Owning such device I took me some effort and time to figure out why the device would not boot from a GPT partition but only from legacy MBR. Thus I would

Re: [PATCH 1/1] efi_loader: define all known warning status codes

2020-01-04 Thread Fabio Estevam
Hi Heinrich, On Sat, Jan 4, 2020 at 8:25 AM Heinrich Schuchardt wrote: > > Of all warning status codes up to now only EFI_WARN_DELETE_FAILURE is > defined. > > The patch adds the missing definitions for later usage. > > Signed-off-by: Heinrich Schuchardt > --- > .mailmap | 1 + >

Problems with rock64 after enabling CONFIG_MISC_INIT_R

2020-01-04 Thread Peter Hjalmarsson
Hi, After the following commit I have problems with my rock64 SBCs: commit 893b4d0df4deb802480aeb606d3b0aa2d0ea27d8 Author: Ben Wolsieffer Date: Tue Dec 3 00:24:31 2019 -0500 rockchip: rk3328: rock64: enable CONFIG_MISC_INIT_R This commit in current form results in identical cpuid and

Re: [PATCH 0/9] efi_loader: rework bootefi/bootmgr

2020-01-04 Thread Heinrich Schuchardt
On 4/19/19 5:22 AM, AKASHI Takahiro wrote: There are several reasons that I want to rework/refactor bootefi command as well as bootmgr: * Some previous commits on bootefi.c have made the code complicated and a bit hard to understand. * do_bootefi_exec() would better be implemented using

Re: [PATCH 0/4] arm: mxs: mxs_set_gpmiclk

2020-01-04 Thread Rasmus Villemoes
On 03/01/2020 13.42, Stefano Babic wrote: > Hi Rasmus, > > On 27/09/19 10:33, Rasmus Villemoes wrote: >> On 12/09/2019 11.17, Rasmus Villemoes wrote: >>> While trying to implement an mxs_set_gpmiclk() I stumbled on a few minor >>> things. >>> >>> Rasmus Villemoes (4): >>> arm: mxs: fix

Facilities for successful boot detection

2020-01-04 Thread Mauro Condarelli
I would like to implement an update system (most likely using SWUpdate) "Double copy with fall-back" and, possibly a "last resort" recovery. I have pretty clear what should be the program flow, but I don't know how to implement it in U-Boot. In particular: * How can I determine, in U-Boot, if

Re: [PATCH 1/5] video: x86: Enable 32-bit graphics by default

2020-01-04 Thread Bin Meng
Hi Simon, On Fri, Jan 3, 2020 at 11:24 AM Simon Glass wrote: > > Hi Bin, > > On Thu, 2 Jan 2020 at 19:41, Bin Meng wrote: > > > > Hi Simon, > > > > On Fri, Jan 3, 2020 at 10:30 AM Simon Glass wrote: > > > > > > Hi Anatolij, > > > > > > On Thu, 2 Jan 2020 at 07:34, Anatolij Gustschin wrote: >

Re: [U-Boot] [PATCH 11/26] dts: mtmips: update reset controller node for mt7628

2020-01-04 Thread Stefan Roese
Hi Mauro, On 30.12.19 13:14, Mauro Condarelli wrote: On 12/30/19 11:22 AM, Daniel Schwierzeck wrote: Am 30.12.19 um 10:19 schrieb Mauro Condarelli: I am having problems with this patch. Problem is "reset"command fails (for my board) with: => reset resetting ... ### ERROR ### Please RESET

[PATCH v2 03/19] i2c: designware_i2c: Include clk.h in the header file

2020-01-04 Thread Simon Glass
We use struct clk here so really should include this header file to avoid build errors. Also switch the order of clk.h in the C file to match the required code style. Signed-off-by: Simon Glass Reviewed-by: Ley Foon Tan --- Changes in v2: None drivers/i2c/designware_i2c.c | 2 +-

[PATCH v2 15/19] i2c: designware_i2c: Update to use standard enums for speed

2020-01-04 Thread Simon Glass
Update this driver to use the new standard enums for speed. Signed-off-by: Simon Glass --- Changes in v2: None drivers/i2c/designware_i2c.c | 10 +- drivers/i2c/designware_i2c.h | 13 - 2 files changed, 5 insertions(+), 18 deletions(-) diff --git

Re: [PATCH] Revert "mmc: davinci: drop struct davinci_mmc_plat"

2020-01-04 Thread Adam Ford
On Fri, Jan 3, 2020 at 12:17 PM Tom Rini wrote: > > Adam Ford reports that this change breaks booting on da850-evm and > Bartosz Golaszewski agrees that with the impending release we should > revert the change for now. With that noted: > Is patchwork working? I tried to go there and I am not

Re: [PATCH] .gitignore: ignore files generated by asn1 compiler

2020-01-04 Thread Tom Rini
On Sun, Dec 29, 2019 at 01:47:32PM +0100, Dario Binacchi wrote: > As described in doc/README.asn1 document the tools/asn1_compiler is used > to "generate bytecode as a C file (*.asn1.[ch]) from *.asn1 file". > > Signed-off-by: Dario Binacchi Applied to u-boot/master, thanks! -- Tom

[PATCH v6 6/6] doc: boards: Add rockchip documentation

2020-01-04 Thread Jagan Teki
Rockchip has documentation file, doc/README.rockchip but which is not so readable to add or understand the existing contents. Even the format that support is legacy readme in U-Boot. Add rockchip specific documentation file using new rst format, which describes the information about Rockchip

Re: [PATCH] arm: dts: bcm283x: Allow UARTs to work before relocation

2020-01-04 Thread Tom Rini
On Thu, Jan 02, 2020 at 07:28:50PM -0700, Simon Glass wrote: > Hi Tom, > > On Thu, 2 Jan 2020 at 19:27, Simon Glass wrote: > > > > Hi Tom, > > > > On Thu, 2 Jan 2020 at 16:11, Tom Rini wrote: > > > > > > On Tue, Dec 31, 2019 at 02:28:19PM -0700, Simon Glass wrote: > > > > Hi Matthias, > > > > >

Re: [PATCH 1/5] video: x86: Enable 32-bit graphics by default

2020-01-04 Thread Anatolij Gustschin
Hi all, On Fri, 3 Jan 2020 23:41:49 +0800 Bin Meng bmeng...@gmail.com wrote: > Hi Simon, > > On Fri, Jan 3, 2020 at 11:24 AM Simon Glass wrote: > > > > Hi Bin, > > > > On Thu, 2 Jan 2020 at 19:41, Bin Meng wrote: > > > > > > Hi Simon, > > > > > > On Fri, Jan 3, 2020 at 10:30 AM Simon Glass

[PATCH v6 2/6] Makefile: rockchip: Suffix platform type with tpl name

2020-01-04 Thread Jagan Teki
Most of the platforms uses the platform type on their boot stage image naming conventions in makefile like, u-boot-x86-start16-tpl.bin - x86 start16 TPL bin u-boot-spl-mtk.bin - Mediatek SPL bin This would help to understand the users to what that particular image belongs to? and less confused.

[PATCH v2 17/19] i2c: omap: Update to use standard enums for speed

2020-01-04 Thread Simon Glass
Update this driver to use the new standard enums for speed. Note: This driver needs to move to driver model. Signed-off-by: Simon Glass --- Changes in v2: None drivers/i2c/omap24xx_i2c.c | 2 +- drivers/i2c/omap24xx_i2c.h | 4 2 files changed, 1 insertion(+), 5 deletions(-) diff --git

[PATCH v2 09/19] i2c: designware_i2c: Drop scl_sda_cfg parameter

2020-01-04 Thread Simon Glass
Instead of passing this parameter into __dw_i2c_set_bus_speed(), pass in the driver's private data, from which the function can obtain that information. This allows the function to have access to the full state of the driver. Signed-off-by: Simon Glass --- Changes in v2: None

Re: [PATCH] video: add wrappers for ttf type files to .gitignore

2020-01-04 Thread Anatolij Gustschin
On Tue, 31 Dec 2019 18:09:14 +0100 Dario Binacchi dario...@libero.it wrote: > drivers/video/fonts/.gitignore | 1 + > 1 file changed, 1 insertion(+) > create mode 100644 drivers/video/fonts/.gitignore Applied to u-boot-video/master, thanks! -- Anatolij

[PATCH v2 18/19] i2c: stm32: Update to use standard enums for speed

2020-01-04 Thread Simon Glass
Update this driver to use the new standard enums for speed. Note: This driver needs to move to driver model. Signed-off-by: Simon Glass --- Changes in v2: None drivers/i2c/stm32f7_i2c.c | 43 +++ 1 file changed, 16 insertions(+), 27 deletions(-) diff

Re: [PATCH 0/5] video: Avoid #ifdef to increase build coverage

2020-01-04 Thread Anatolij Gustschin
Hi Simon, On Fri, 20 Dec 2019 18:10:32 -0700 Simon Glass s...@chromium.org wrote: ... > Simon Glass (5): > video: x86: Enable 32-bit graphics by default > video: Avoid using #ifdef in video blitting code > video: Avoid using #ifdef in console_rotate.c > video: Avoid using #ifdef in

Re: [PATCH] test: Fix the boardspec for the SPL handoff test

2020-01-04 Thread Tom Rini
On Fri, Dec 27, 2019 at 07:46:30AM -0700, Simon Glass wrote: > This test currently does not run because it specifies the sandbox board > instead of sandbox_spl. Fix it. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] Revert "mmc: davinci: drop struct davinci_mmc_plat"

2020-01-04 Thread Adam Ford
On Fri, Jan 3, 2020 at 12:17 PM Tom Rini wrote: > > Adam Ford reports that this change breaks booting on da850-evm and > Bartosz Golaszewski agrees that with the impending release we should > revert the change for now. With that noted: > > This reverts commit

[PATCH v2 02/19] i2c: designware_i2c: Don't allow changing IC_CLK

2020-01-04 Thread Simon Glass
If a different input clock is required then the correct way to do this is with a clock driver. Don't allow boards to override IC_CLK. Signed-off-by: Simon Glass --- Changes in v2: None drivers/i2c/designware_i2c.h | 2 -- 1 file changed, 2 deletions(-) diff --git

[PATCH v2 04/19] i2c: designware_i2c: Rename 'max' speed to 'high' speed

2020-01-04 Thread Simon Glass
Some SoCs support a higher speed than what is currently called 'max' in this driver. Rename it to 'high' speed, which is the official name of the 3.4MHz speed. Signed-off-by: Simon Glass --- Changes in v2: None drivers/i2c/designware_i2c.c | 10 +- drivers/i2c/designware_i2c.h | 8

[PATCH] Revert "mmc: davinci: drop struct davinci_mmc_plat"

2020-01-04 Thread Tom Rini
Adam Ford reports that this change breaks booting on da850-evm and Bartosz Golaszewski agrees that with the impending release we should revert the change for now. With that noted: This reverts commit 21a4d80a710c79053ac1deaa65ff9b69e6c031d4. Cc: Adam Ford Cc: Bartosz Golaszewski

Re: [PATCH] [ARM] arch/arm/Kconfig: typo/grammar/punctuation fixes

2020-01-04 Thread Tom Rini
On Wed, Dec 25, 2019 at 06:34:07AM -0500, Robert P. J. Day wrote: > Various (mostly minor) spelling, grammar and punctuation tweaks for > arch/arm/Kconfig. > > Signed-off-by: Robert P. J. Day > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index f9dab073ea..36c9c2fecd 100644 Applied to

Re: [PATCH 8/8] ARM: dts: imx6qdli-icore: Add fec phy-handle

2020-01-04 Thread Jagan Teki
Hi Stefano, On Fri, Jan 3, 2020 at 5:03 PM Stefano Babic wrote: > > Hi Jagan, Michael, > > On 31/12/19 07:21, Jagan Teki wrote: > > On Mon, Dec 30, 2019 at 10:55 PM Michael Nazzareno Trimarchi > > wrote: > >> > >> Hi > >> > >> On Mon, Dec 30, 2019 at 1:04 PM Jagan Teki > >> wrote: > >>> > >>>

Re: [PATCH 1/1] trace: provide Sphinx style comments

2020-01-04 Thread Simon Glass
On Wed, 1 Jan 2020 at 07:52, Heinrich Schuchardt wrote: > > Correct some function comments. Convert to Sphinx style. > > Signed-off-by: Heinrich Schuchardt > --- > lib/trace.c | 54 +++-- > 1 file changed, 36 insertions(+), 18 deletions(-) >

[PATCH v2 08/19] i2c: designware_i2c: Read device-tree properties

2020-01-04 Thread Simon Glass
The i2c controller defines a few timing properties. Read these in and store them for use by the driver. Signed-off-by: Simon Glass --- Changes in v2: None drivers/i2c/designware_i2c.c | 8 ++-- drivers/i2c/designware_i2c.h | 15 +++ drivers/i2c/designware_i2c_pci.c |

[PATCH v2 12/19] i2c: designware_i2c: Add spike supression

2020-01-04 Thread Simon Glass
Some versions of this peripheral include a spike-suppression phase of the bus. Add support for this. Signed-off-by: Simon Glass --- Changes in v2: - Add a few more clean-up patches for i2c drivers/i2c/designware_i2c.c | 10 +- drivers/i2c/designware_i2c.h | 2 ++

[PATCH v2 10/19] i2c: designware_i2c: Put hold config in a struct

2020-01-04 Thread Simon Glass
Create a struct to hold the three timing parameters. This will make it easier to move these calculations into a separate function in a later patch. Signed-off-by: Simon Glass --- Changes in v2: None drivers/i2c/designware_i2c.c | 82 1 file changed, 55

Re: [PATCH] pico-imx7d: Convert to DM_ETH

2020-01-04 Thread Joris Offouga
Hi Stefano, Sorry for the delay, Le 28/12/2019 à 12:31, Stefano Babic a écrit : Hi Joris, On 08/12/19 18:02, Joris Offouga wrote: Signed-off-by: Joris Offouga --- board/technexion/pico-imx7d/pico-imx7d.c | 46 configs/pico-dwarf-imx7d_defconfig | 5 +++

[PATCH v2 11/19] i2c: designware_i2c: Rewrite timing calculation

2020-01-04 Thread Simon Glass
At present the driver can end up with timing parameters which are slightly faster than those expected. It is possible to optimise the parameters to get the best possible result. Create a new function to handle the timing calculation. This uses a table of defaults for each speed mode rather than

Re: [PATCH 2/4] mmc: davinci: drop struct davinci_mmc_plat

2020-01-04 Thread Bartosz Golaszewski
pt., 3 sty 2020 o 17:01 Adam Ford napisał(a): > > On Thu, Nov 14, 2019 at 9:10 AM Bartosz Golaszewski wrote: > > > > From: Bartosz Golaszewski > > > > struct mmc_config & struct mmc don't need to be exported over platform > > data, but can instead be private in the driver. > > > > Remove struct

i2c_class_init problem

2020-01-04 Thread Michael Nazzareno Trimarchi
Hi Simon U-Boot SPL 2020.01-rc5-00071-g82f6f6e4e4-dirty (Jan 04 2020 - 13:39:54 +0100) spl_early_init i2c_uclass_init: highest alias id is 2 i2c_post_bind: i2c@30a2, req_seq=-1 i2c_post_bind: i2c@30a2, new req_seq=3 i2c_post_bind: i2c@30a4, req_seq=-1 i2c_post_bind: i2c@30a4, new

Re: [PATCH v1] mailmap: Update mail address for Igor Opaniuk

2020-01-04 Thread Tom Rini
On Tue, Dec 17, 2019 at 02:48:54PM +0200, Igor Opaniuk wrote: > My address at Linaro doesn't exist anymore, so people > keep getting mail delivery error responses. Map this address > to the actual one. > > Signed-off-by: Igor Opaniuk > Reviewed-by: Oleksandr Suvorov Applied to u-boot/master,

[PATCH v3 0/5] board: ti: beagleboneai: add initial support

2020-01-04 Thread Caleb Robey
The following patches 1) Introduce the emmc based board detection for BBAI due to a lack of eeprom onboard the BBAI (to be fixed in future revision of the board). 2) Add structures in the pinctrl to detect the beaglebone AI and add checks for the beaglebone AI in the board detection scheme 3)

Re: [PATCH 1/5] video: x86: Enable 32-bit graphics by default

2020-01-04 Thread Simon Glass
Hi Anatolij, On Thu, 2 Jan 2020 at 07:34, Anatolij Gustschin wrote: > > Hi Simon, > > On Fri, 20 Dec 2019 18:10:33 -0700 > Simon Glass s...@chromium.org wrote: > > > Most x86 boards that use video make use of 32bpp graphics. Enable this by > > default. This fixes missing graphics output on some

Re: [PATCH v2 1/1] travis-ci: provide env__efi_fit_tftp_file

2020-01-04 Thread Stephen Warren
On 12/31/19 3:42 AM, Cristian Ciocaltea wrote: On Mon, Dec 30, 2019 at 09:03:38PM +0100, Heinrich Schuchardt wrote: On 12/30/19 8:32 PM, Stephen Warren wrote: On 12/30/19 12:05 PM, Heinrich Schuchardt wrote: On 12/30/19 5:38 PM, Stephen Warren wrote: On 12/30/19 3:52 AM, Heinrich Schuchardt

[PATCH v2 06/19] i2c: designware_i2c: Use an accurate bus clock instead of MHz

2020-01-04 Thread Simon Glass
At present the driver uses an approximation for the bus clock, e.g. 166MHz instead of 166 2/3 MHz. This can result in small errors in the resulting I2C speed, perhaps 0.5% or so. Adjust the existing code to start from the accurate figure, even if later rounding reduces this accuracy. Update the

Re: [PATCH v1] colibri_imx7: disable HAB and CAAM support

2020-01-04 Thread Stefano Babic
Hi Igor, On 27/12/19 10:23, Igor Opaniuk wrote: > Hi Breno, > > On Mon, Dec 23, 2019 at 7:07 PM Breno Matheus Lima > wrote: >> >> Hi Igor, >> >> Em qui., 19 de dez. de 2019 às 07:55, Igor Opaniuk >> escreveu: >>> >>> From: Igor Opaniuk >>> >>> Currently Colibri iMX7 NAND version doesn't boot

[PATCH v6 4/6] arm: dts: rk3036: Add rk3036-u-boot.dtsi

2020-01-04 Thread Jagan Teki
Add U-Boot specific dtsi file for rk3036 SoC. This would help to add U-Boot specific dts nodes, properties which are common across rk3036. Right now, the file is empty, will add required changes in future patches. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang ---

[PATCH v6 3/6] Makefile: rockchip: Support SPL-alone mkimage

2020-01-04 Thread Jagan Teki
Add SPL-alone mkimage tooling support via Makefile for few platforms or boards used in rockchip family. With this users would get rid of explicitly creating mkimage tool for rockchip rksd or rkspi boot modes. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Makefile | 10 +- 1

Re: [PATCH v2] riscv: Add option to print registers on exception

2020-01-04 Thread Bin Meng
On Wed, Dec 25, 2019 at 1:27 PM Sean Anderson wrote: > > When debugging, it can be helpful to see more information about an > unhandled exception. This patch adds an option to view the registers at > the time of the trap, similar to the linux output on a kernel panic. > > Signed-off-by: Sean

[PATCH v2 00/19] i2c: designware_ic2: Improvements to timing and general cleanup

2020-01-04 Thread Simon Glass
This series updates the Designware I2C driver to support reading its timing from the device tree and handling it in units of nanoseconds instead of clock cycles. A new function converts from nanoseconds to the units used by the I2C controller and makes sure that the requested bus speed is not

[PATCH v6 5/6] rockchip: Add Single boot image (with binman, pad_cat)

2020-01-04 Thread Jagan Teki
All rockchip platforms support TPL or SPL-based bootloader in mainline with U-Boot proper as final stage. For each stage we need to burn the image on to flash with respective offsets. This patch creates a single boot image component using - binman, for arm32 rockchip platforms - pad_cat, for

[PATCH v3] board/lx2160aqds: Update the DSPI status fixup

2020-01-04 Thread Xiaowei Bao
The dts node of the DSPI controller in kernel is spi instead of dspi, it is not correct if use "/soc/dspi@" to fix up the status of the dts in kernel, so, modify it to "/soc/spi@". The DSPI2 and I2C5 are muxed, and the status of DSPI2 node in kernel dts default value is okay, set the status of

Re: [PATCH] test_env: don't strip() printenv results

2020-01-04 Thread Tom Rini
On Wed, Dec 18, 2019 at 11:37:21AM -0700, Stephen Warren wrote: > From: Stephen Warren > > get_env() was originally written to strip() the output of printenv to > isolate the test from any whitespace changes in printenv's output. > However, this throws away any whitespace in the variable value,

[PATCH v2] board/lx2160aqds: Update the DSPI status fixup

2020-01-04 Thread Xiaowei Bao
The dts node of the DSPI controller in kernel is spi instead of dspi, it is not correct if ues "/soc/dspi@" to fix up the status of the dts in kernel, so, modify it to "/soc/spi@". The DSPI2 and I2C5 are muxed, and the status of DSPI2 node in kernel dts default value is okay, set the status of

[PATCH] imx8mm_evk: Adjust the environment for booting a mainline kernel

2020-01-04 Thread sbabic
> Adjust the environment for booting a mainline kernel by default. > Signed-off-by: Fabio Estevam > Reviewed-by: Peng Fan Applied to u-boot-imx, -next, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH,

[PATCH 3/3] mx6slevk: Fix the pmic_get() parameter in the DM case

2020-01-04 Thread sbabic
> When pmic_get() is used with DM the first parameter must be > the complete node name plus the unit address, so fix it > accordingly. > Reported-by: Igor Opaniuk > Signed-off-by: Fabio Estevam > Reviewed-by: Peng Fan Applied to u-boot-imx, -next, thanks ! Best regards, Stefano Babic --

[PATCH v1] mach-imx: nandbcb: improve cmd help

2020-01-04 Thread sbabic
> From: Igor Opaniuk > Add info about supported i.MX7, improve details the usage of > bcbonly subcommand. > Signed-off-by: Igor Opaniuk > Reviewed-by: Oleksandr Suvorov Applied to u-boot-imx, -next, thanks ! Best regards, Stefano Babic --

[PATCH 1/3] mx7dsabresd: Fix the pmic_get() parameter in the DM case

2020-01-04 Thread sbabic
> When pmic_get() is used with DM the first parameter must be > the complete node name plus the unit address, so fix it > accordingly. > Reported-by: Igor Opaniuk > Signed-off-by: Fabio Estevam > Reviewed-by: Peng Fan Applied to u-boot-imx, -next, thanks ! Best regards, Stefano Babic --

[U-Boot] [PATCH 2/4] arm: mxs: fix comments in arch_cpu_init to match the code

2020-01-04 Thread sbabic
> The comment says to clear the bypass bit, but in fact it sets it, thus > selecting ref_xtal. And the next line of code does not set the divider > to 12, but to (the reset value of) 1. > Signed-off-by: Rasmus Villemoes Applied to u-boot-imx, -next, thanks ! Best regards, Stefano Babic --

Re: [PATCH 1/5] video: x86: Enable 32-bit graphics by default

2020-01-04 Thread Simon Glass
Hi Bin, On Thu, 2 Jan 2020 at 19:41, Bin Meng wrote: > > Hi Simon, > > On Fri, Jan 3, 2020 at 10:30 AM Simon Glass wrote: > > > > Hi Anatolij, > > > > On Thu, 2 Jan 2020 at 07:34, Anatolij Gustschin wrote: > > > > > > Hi Simon, > > > > > > On Fri, 20 Dec 2019 18:10:33 -0700 > > > Simon Glass

[PATCH] arm: imx: Default to SYS_THUMB_BUILD for i.MX6/7

2020-01-04 Thread sbabic
> In the case of i.MX6 and i.MX7 family SoCs it is safe (from an errata > point of view) to use thumb2 by default to save space. > Cc: Stefano Babic > Cc: Fabio Estevam > Signed-off-by: Tom Rini > Reviewed-by: Fabio Estevam Applied to u-boot-imx, -next, thanks ! Best regards, Stefano Babic

[PATCH] tools: imx8m_image: Change source path for DDR firmware to build dir

2020-01-04 Thread sbabic
> From: Frieder Schrempf > The DDR firmware binaries are not part of the U-Boot source code, so > we should look for them in the build directory, where they need to be > copied to before building U-Boot. > The ATF binary is already fetched from the build directory, but the > README files for the

Re: [PATCH] dm: Add a debug message when devices are skipped pre-reloc

2020-01-04 Thread Bin Meng
On Wed, Dec 25, 2019 at 12:52 PM Sean Anderson wrote: > > This adds a message to lists_bind_fdt when it skips initializing a device > pre-relocation. I've had a couple errors where a device didn't initialize > properly because one of its dependencies was missing. > > Signed-off-by: Sean Anderson

[PATCH 1/1] efi_loader: define all known warning status codes

2020-01-04 Thread Heinrich Schuchardt
Of all warning status codes up to now only EFI_WARN_DELETE_FAILURE is defined. The patch adds the missing definitions for later usage. Signed-off-by: Heinrich Schuchardt --- .mailmap | 1 + include/efi.h | 8 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.mailmap

Re: [PATCH 01/11] clk: Always use the supplied struct clk

2020-01-04 Thread Jagan Teki
+ Lukasz On Wed, Jan 1, 2020 at 4:12 AM Sean Anderson wrote: > > CCF clocks should always use the struct clock passed to their methods for > extracting the driver-specific clock information struct. Previously, many > functions would use the clk->dev->priv if the device was bound. This could >

  1   2   >