[U-Boot] [PATCH 2/2] configs: sandbox: enable CONFIG_CMD_BOOTEFI_SELFTEST

2019-11-09 Thread Heinrich Schuchardt
Activate UEFI unit tests on the sandbox. Signed-off-by: Heinrich Schuchardt --- configs/sandbox64_defconfig| 1 + configs/sandbox_defconfig | 1 + configs/sandbox_flattree_defconfig | 1 + configs/sandbox_spl_defconfig | 1 + 4 files changed, 4 insertions(+) diff --git a/c

[U-Boot] [PATCH 0/2] sandbox: enable UEFI unit tests

2019-11-09 Thread Heinrich Schuchardt
This patch series enables the UEFI unit tests on the sandbox. The first patch add the missing compatible property in the device trees which is required by on of the unit tests. The real time clock unit test will fail if the sandbox is openend without passing a device tree (parameter -D). A separ

[U-Boot] [PATCH 1/2] sandbox: add missing compatible property in device tree

2019-11-09 Thread Heinrich Schuchardt
In the device tree UEFI unit test the compatible property of the device is read. Provide the missing property. Signed-off-by: Heinrich Schuchardt --- arch/sandbox/dts/sandbox.dts | 1 + arch/sandbox/dts/sandbox64.dts | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/sandbox/dts/sandb

[U-Boot] [PATCH] rockchip: rk3399: split rockpro64 out of evb_rk3399

2019-11-09 Thread Vasily Khoruzhick
rockpro64 needs to setup I/O domains in order for USB to work in u-boot. Since we currently don't have a driver to do that, split it into its own board file and initialize I/O domains here. Signed-off-by: Vasily Khoruzhick --- arch/arm/mach-rockchip/rk3399/Kconfig | 20 +++ board/pin

Re: [U-Boot] USB doesn't work on Rockpro64 in u-boot

2019-11-09 Thread Vasily Khoruzhick
On Thu, Nov 7, 2019 at 10:33 PM Jagan Teki wrote: > > Hi Vasily, > > On Fri, Nov 8, 2019 at 9:18 AM Vasily Khoruzhick wrote: > > > > I checked voltage on regulator enable pin and it's 1.5v in u-boot (and it's > > not enough to enable regulator!) and in linux it's 3v. That's why USB > > ports have

[U-Boot] [PATCH 1/1] serial: sandbox: support Unicode

2019-11-09 Thread Heinrich Schuchardt
Due to a conversion error the sandbox does not accept byte values 0x80-0xff from the keyboard. The UEFI extended text input unit test requires Unicode support. Use unsigned char for the serial buffer. Signed-off-by: Heinrich Schuchardt --- drivers/serial/sandbox.c | 2 +- 1 file changed, 1 inse

Re: [U-Boot] [PATCH 1/1] serial: sandbox: support Unicode

2019-11-09 Thread Andy Shevchenko
On Sat, Nov 9, 2019 at 11:59 AM Heinrich Schuchardt wrote: > > Due to a conversion error the sandbox does not accept byte values 0x80-0xff > from the keyboard. The UEFI extended text input unit test requires Unicode > support. > > Use unsigned char for the serial buffer. > FWIW, Reviewed-by: Andy

[U-Boot] [PATCH v3 2/2] sifive: fu540: Enable OF_SEPARATE

2019-11-09 Thread Jagan Teki
Use dts support from U-Boot via OF_SEPARATE instead of depending from opensbi. This would help to make the necessary changes in drivers and device trees in U-Boot tree itself. This feature would also be helpful to not pass dtb during opensbi builds. Signed-off-by: Jagan Teki --- Changes for v3:

[U-Boot] [PATCH v3 1/2] riscv: dts: Add hifive-unleashed-a00 dts from Linux

2019-11-09 Thread Jagan Teki
Sync the hifive-unleashed-a00 dts from Linux with below commit details: commit <2993c9b04e616df0848b655d7202a707a70fc876> ("riscv: dts: HiFive Unleashed: add default chosen/stdout-path") Idea is to periodically sync the dts from Linux instead of tweaking internal changes one after another, so bet

Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash support

2019-11-09 Thread Jagan Teki
Hi Bin, On Tue, Oct 29, 2019 at 3:50 PM Bin Meng wrote: > > Hi Jagan, > > On Tue, Oct 29, 2019 at 5:38 PM Bin Meng wrote: > > > > Hi Jagan, > > > > On Wed, Oct 16, 2019 at 10:58 PM Jagan Teki > > wrote: > > > > > > HiFive Unleashed A00 support is25wp256 spi-nor flash, > > > So enable the same

Re: [U-Boot] RK3399 boards (rockpi4 and rockpro64) kernel SError using upstream U-boot

2019-11-09 Thread Jagan Teki
On Sat, Nov 9, 2019 at 12:08 PM Qu Wenruo wrote: > > Hi, > > Although recent U-boot upstream has merged the rk3399 ram patchset to > initial DDR4 properly, but strangely I can still trigger SError for > RockPi4 and RockPro64 boards using upstream U-boot with upstream kernel > (v5.4-rc). The dmesg

[U-Boot] [PATCH] rockchip: Fix spl boot order path of booting device

2019-11-09 Thread Michael Trimarchi
Fix rk3288, rk3188, rk322x, rk3368 Tested on rk3288 U-Boot SPL 2019.10-rc4-00014-g0493073dc4-dirty (Nov 09 2019 - 13:04:06 +0100) board_spl_was_booted_from: brom_bootdevice_id 2 maps to 'dwmmc@ff0f' board_boot_order: could not find dwmmc@ff0f in FDT Signed-off-by: Michael Trimarchi ---

Re: [U-Boot] RK3399 boards (rockpi4 and rockpro64) kernel SError using upstream U-boot

2019-11-09 Thread Qu Wenruo
On 2019/11/9 下午8:25, Jagan Teki wrote: > On Sat, Nov 9, 2019 at 12:08 PM Qu Wenruo wrote: >> >> Hi, >> >> Although recent U-boot upstream has merged the rk3399 ram patchset to >> initial DDR4 properly, but strangely I can still trigger SError for >> RockPi4 and RockPro64 boards using upstream U-

Re: [U-Boot] RK3399 boards (rockpi4 and rockpro64) kernel SError using upstream U-boot

2019-11-09 Thread Jagan Teki
On Sat, Nov 9, 2019 at 6:48 PM Qu Wenruo wrote: > > > > On 2019/11/9 下午8:25, Jagan Teki wrote: > > On Sat, Nov 9, 2019 at 12:08 PM Qu Wenruo wrote: > >> > >> Hi, > >> > >> Although recent U-boot upstream has merged the rk3399 ram patchset to > >> initial DDR4 properly, but strangely I can still t

Re: [U-Boot] RK3399 boards (rockpi4 and rockpro64) kernel SError using upstream U-boot

2019-11-09 Thread Qu Wenruo
On 2019/11/9 下午9:45, Jagan Teki wrote: > On Sat, Nov 9, 2019 at 6:48 PM Qu Wenruo wrote: >> >> >> >> On 2019/11/9 下午8:25, Jagan Teki wrote: >>> On Sat, Nov 9, 2019 at 12:08 PM Qu Wenruo wrote: Hi, Although recent U-boot upstream has merged the rk3399 ram patchset to ini

Re: [U-Boot] [BUG] U-Boot hangs on fatload, commit ee88eacbdd840199a3dec707234579fb15ddd46a

2019-11-09 Thread Gray Remlin
On Fri, 8 Nov 2019 at 20:08, Heinrich Schuchardt wrote: > On 11/8/19 7:32 PM, Gray Remlin wrote: > > Please excuse the noise. I would like to file a bug report against the > > above commit, a quick search of www.denx.de did not > > reveal how I should proceed. Please point me

Re: [U-Boot] [PATCH v2 0/4] usb: host: dwc2: use driver model for PHY and CLOCK

2019-11-09 Thread Patrick Delaunay
Hi Marek, My ci travis build is failing after the last updates (raspberry pi). I am testing a update with sub for clk disable bulk function: https://github.com/patrickdelaunay/u-boot/commit/1d053dd96e6623d02b84654398655a5563ccfdcb Now buikd is ok: https://travis-ci.org/patrickdelaunay/u-boot/bui

Re: [U-Boot] [BUG] U-Boot hangs on fatload, commit ee88eacbdd840199a3dec707234579fb15ddd46a

2019-11-09 Thread Heinrich Schuchardt
On 11/9/19 4:11 PM, Gray Remlin wrote: On Fri, 8 Nov 2019 at 20:08, Heinrich Schuchardt mailto:xypron.g...@gmx.de>> wrote: On 11/8/19 7:32 PM, Gray Remlin wrote: > Please excuse the noise. I would like to file a bug report against the > above commit, a quick search of www.denx.

Re: [U-Boot] [BUG] U-Boot hangs on fatload, commit ee88eacbdd840199a3dec707234579fb15ddd46a

2019-11-09 Thread Gray Remlin
On Sat, 9 Nov 2019 at 17:08, Heinrich Schuchardt wrote: > On 11/9/19 4:11 PM, Gray Remlin wrote: > > On Fri, 8 Nov 2019 at 20:08, Heinrich Schuchardt > > wrote: > > > > On 11/8/19 7:32 PM, Gray Remlin wrote: > > > Please excuse the noise. I would like to file

[U-Boot] [PATCH] rockchip: dts: tinker: Add tinker-s board support

2019-11-09 Thread Michael Trimarchi
Support tinker-s board. The board is equivalent of tinker board except of emmc. TODO: - support of usb current burst when the board is powered from pc Signed-off-by: Michael Trimarchi --- arch/arm/dts/Makefile| 1 + arch/arm/dts/rk3288-tinker-s-u-boot.dtsi | 34 ar

Re: [U-Boot] [PATCH] rockchip: rk3399: split rockpro64 out of evb_rk3399

2019-11-09 Thread Vasily Khoruzhick
On Sat, Nov 9, 2019 at 12:41 AM Vasily Khoruzhick wrote: > > rockpro64 needs to setup I/O domains in order for USB to work in u-boot. > Since we currently don't have a driver to do that, split it into its own > board file and initialize I/O domains here. Please discard this patch, I forgot to git

Re: [U-Boot] [BUG] U-Boot hangs on fatload, commit ee88eacbdd840199a3dec707234579fb15ddd46a

2019-11-09 Thread Heinrich Schuchardt
On 11/9/19 6:08 PM, Heinrich Schuchardt wrote: On 11/9/19 4:11 PM, Gray Remlin wrote: On Fri, 8 Nov 2019 at 20:08, Heinrich Schuchardt mailto:xypron.g...@gmx.de>> wrote:     On 11/8/19 7:32 PM, Gray Remlin wrote: > Please excuse the noise. I would like to file a bug report     against the

[U-Boot] [PATCH V2] rockchip: dts: tinker: Add tinker-s board support

2019-11-09 Thread Michael Trimarchi
Support tinker-s board. The board is equivalent of tinker board except of emmc. TODO: - support of usb current burst when the board is powered from pc Signed-off-by: Michael Trimarchi --- Changes V1->V2: emmc: Add boot device --- arch/arm/dts/Makefile| 1 + arch/ar

[U-Boot] [PATCH] .gitignore: Ignore .img files

2019-11-09 Thread Michael Trimarchi
The generated idbloader.img file that rockchip uses should be not included in git status report Signed-off-by: Michael Trimarchi --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index d8b7b77844..f980ae6f70 100644 --- a/.gitignore +++ b/.gitignore @@ -17

[U-Boot] [PATCH] .gitignore: Ignore .img files

2019-11-09 Thread Michael Trimarchi
The generated idbloader.img file that rockchip uses should be not included in git status report Signed-off-by: Michael Trimarchi --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index d8b7b77844..f980ae6f70 100644 --- a/.gitignore +++ b/.gitignore @@ -17

[U-Boot] [PATCH v2] rockchip: rk3399: split rockpro64 out of evb_rk3399

2019-11-09 Thread Vasily Khoruzhick
rockpro64 needs to setup I/O domains in order for USB to work in u-boot. Since we currently don't have a driver to do that, split it into its own board file and initialize I/O domains here. Signed-off-by: Vasily Khoruzhick --- v2: add missing include/configs/rockpro64_rk3399.h arch/arm/mach-roc

Re: [U-Boot] [BUG] U-Boot hangs on fatload, commit ee88eacbdd840199a3dec707234579fb15ddd46a

2019-11-09 Thread Gray Remlin
On Sat, 9 Nov 2019 at 18:40, Heinrich Schuchardt wrote: > On 11/9/19 6:08 PM, Heinrich Schuchardt wrote: > > On 11/9/19 4:11 PM, Gray Remlin wrote: > >> On Fri, 8 Nov 2019 at 20:08, Heinrich Schuchardt >> > wrote: > >> > >> On 11/8/19 7:32 PM, Gray Remlin wrote: >

[U-Boot] [PATCH 1/3] rockchip: dts: rk3399: move the u-boot, dm-pre-reloc to the u-boot.dtsi

2019-11-09 Thread Peter Robinson
The u-boot specific pieces in the dts files should be in u-boot.dtsi not the main files, this allows easier sync with upstream. The rk3399.dtsi has a mix of both so move them all for consistency. Signed-off-by: Peter Robinson --- arch/arm/dts/rk3399-u-boot.dtsi | 44 +

[U-Boot] [PATCH 2/3] rockchip: dts: rk3399-evb: move u-boot, spl-boot-order to to the u-boot.dtsi

2019-11-09 Thread Peter Robinson
The u-boot specific device tree directives should be in u-boot.dtsi Signed-off-by: Peter Robinson --- arch/arm/dts/rk3399-evb-u-boot.dtsi | 6 ++ arch/arm/dts/rk3399-evb.dts | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/rk3399-evb-u-boot.dtsi b/

[U-Boot] [PATCH 3/3] rockchip: dts: rk3399-firefly: move u-boot, spl-boot-order to to the u-boot.dtsi

2019-11-09 Thread Peter Robinson
The u-boot specific device tree directives should be in u-boot.dtsi Signed-off-by: Peter Robinson --- arch/arm/dts/rk3399-firefly-u-boot.dtsi | 6 ++ arch/arm/dts/rk3399-firefly.dts | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/rk3399-firefly-u-boo

Re: [U-Boot] [BUG] U-Boot hangs on fatload, commit ee88eacbdd840199a3dec707234579fb15ddd46a

2019-11-09 Thread Heinrich Schuchardt
On 11/9/19 8:42 PM, Gray Remlin wrote: On Sat, 9 Nov 2019 at 18:40, Heinrich Schuchardt mailto:xypron.g...@gmx.de>> wrote: On 11/9/19 6:08 PM, Heinrich Schuchardt wrote: > On 11/9/19 4:11 PM, Gray Remlin wrote: >> On Fri, 8 Nov 2019 at 20:08, Heinrich Schuchardt mailto:xypron.g

Re: [U-Boot] [PATCH] rockchip: Fix spl boot order path of booting device

2019-11-09 Thread Mark Kettenis
> From: Michael Trimarchi > Date: Sat, 9 Nov 2019 13:26:25 +0100 > > Fix rk3288, rk3188, rk322x, rk3368 > > Tested on rk3288 > > U-Boot SPL 2019.10-rc4-00014-g0493073dc4-dirty (Nov 09 2019 - 13:04:06 +0100) > board_spl_was_booted_from: brom_bootdevice_id 2 maps to 'dwmmc@ff0f' > board_boot

Re: [U-Boot] [BUG] U-Boot hangs on fatload, commit ee88eacbdd840199a3dec707234579fb15ddd46a

2019-11-09 Thread Gray Remlin
On Sat, 9 Nov 2019 at 20:50, Heinrich Schuchardt wrote: > On 11/9/19 8:42 PM, Gray Remlin wrote: > > On Sat, 9 Nov 2019 at 18:40, Heinrich Schuchardt > > wrote: > > > > On 11/9/19 6:08 PM, Heinrich Schuchardt wrote: > > > On 11/9/19 4:11 PM, Gray Remlin wrote:

[U-Boot] [PATCH 1/1] sunxi: psci: avoid error address-of-packed-member

2019-11-09 Thread Heinrich Schuchardt
Compiling with GCC 9.2.1 leads to build errors: arch/arm/cpu/armv7/sunxi/psci.c: In function ‘sunxi_cpu_set_power’: arch/arm/cpu/armv7/sunxi/psci.c:144:21: error: taking address of packed member of ‘struct sunxi_cpucfg_reg’ may result in an unaligned pointer value [-Werror=address-of-packed-member

Re: [U-Boot] [PATCH v4 2/5] omap: mmc: Avoid using libfdt with of-platdata

2019-11-09 Thread Peter Howard
On Thu, 2019-11-07 at 15:05 -0500, Tom Rini wrote: > On Thu, Nov 07, 2019 at 08:53:09AM -0700, Simon Glass wrote: > > > At present this driver is enabled in SPL on omapl138_lcdk, which > > uses > > of-platdata. The driver needs to be ported to use of-platdata > > properly. > > For now, avoid a bui