Re: [PATCH v2 1/1] efi_loader: prepare for read only OP-TEE variables

2020-06-23 Thread Heinrich Schuchardt
On 6/23/20 1:44 AM, AKASHI Takahiro wrote: > On Mon, Jun 22, 2020 at 06:10:27PM +0200, Heinrich Schuchardt wrote: >> We currently have two implementations of UEFI variables: >> >> * variables provided via an OP-TEE module >> * variables stored in the U-Boot environment >> >> Read only variables

RE: [PATCH] cmd: mmc: Add mmc reg read command for reading card registers

2020-06-23 Thread Peng Fan
Hi Marek, > Subject: [PATCH] cmd: mmc: Add mmc reg read command for reading card > registers This patch breaks ci build. +u-boot.imx exceeds file size limit: + limit: 0x5fc00 bytes + actual: 0x60c00 bytes + excess: 0x1000 bytes +make[1]: *** [Makefile:1204: u-boot.imx] Error 1 +make[1]: ***

Re: [PATCH 5/5] configs: reset: fu540: enable dm reset framework for SiFive SoC

2020-06-23 Thread Bin Meng
On Mon, Jun 22, 2020 at 8:28 PM Sagar Shrikant Kadam wrote: > > Add necessary defconfig and Kconfig entries to enable SiFive SoC's > reset driver so as to utilise U-Boot's reset framework. > > Signed-off-by: Sagar Shrikant Kadam > Reviewed-by: Pragnesh Patel > --- >

Re: [PATCH 4/5] sifive: reset: add DM based reset driver for SiFive SoC's

2020-06-23 Thread Bin Meng
On Mon, Jun 22, 2020 at 8:28 PM Sagar Shrikant Kadam wrote: > > PRCI module within SiFive SoC's has register with which we can > reset the sub-systems within the SoC. The resets to DDR and ethernet > sub systems within FU540-C000 SoC are active low, and are hold low > by default on power-up.

[PATCHv2] usb: max3420: add the gadget driver

2020-06-23 Thread jassisinghbrar
From: Jassi Brar MAX3420 implements FullSpeed USB Device over SPI. Another version MAX3421, also implements USB Host mode. This driver should be good for the device mode of max3421 as well. Signed-off-by: Jassi Brar --- drivers/usb/gadget/Kconfig| 6 + drivers/usb/gadget/Makefile

Re: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

2020-06-23 Thread Bin Meng
Hi Rick, On Wed, Jun 24, 2020 at 1:24 PM Pragnesh Patel wrote: > > Hi Rick, > > >-Original Message- > >From: Rick Chen > >Sent: 24 June 2020 10:44 > >To: Pragnesh Patel > >Cc: U-Boot Mailing List ; Atish Patra > >; palmerdabb...@google.com; Bin Meng > >; Paul Walmsley ( Sifive) > >;

RE: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

2020-06-23 Thread Pragnesh Patel
Hi Rick, >-Original Message- >From: Rick Chen >Sent: 24 June 2020 10:44 >To: Pragnesh Patel >Cc: U-Boot Mailing List ; Atish Patra >; palmerdabb...@google.com; Bin Meng >; Paul Walmsley ( Sifive) >; Anup Patel ; Sagar >Kadam ; Palmer Dabbelt ; >Jagan Teki ; rick ; Alan >Kao >Subject:

Re: [PATCH 4/5] sifive: reset: add DM based reset driver for SiFive SoC's

2020-06-23 Thread Sean Anderson
On 6/24/20 1:15 AM, Bin Meng wrote: > Hi Sean, > > On Wed, Jun 24, 2020 at 1:04 PM Sean Anderson wrote: >> >> On 6/24/20 1:01 AM, Bin Meng wrote: >>> Hi Sean, >>> >>> On Wed, Jun 24, 2020 at 12:17 PM Sean Anderson wrote: On 6/22/20 8:27 AM, Sagar Shrikant Kadam wrote: > The resets

Re: [PATCH 4/5] sifive: reset: add DM based reset driver for SiFive SoC's

2020-06-23 Thread Bin Meng
Hi Sean, On Wed, Jun 24, 2020 at 1:04 PM Sean Anderson wrote: > > On 6/24/20 1:01 AM, Bin Meng wrote: > > Hi Sean, > > > > On Wed, Jun 24, 2020 at 12:17 PM Sean Anderson wrote: > >> > >> On 6/22/20 8:27 AM, Sagar Shrikant Kadam wrote: > >>> The resets to DDR and ethernet sub-system are

Re: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

2020-06-23 Thread Rick Chen
Hi Pragnesh > Hi Rick, > > >-Original Message- > >From: Rick Chen > >Sent: 24 June 2020 06:30 > >To: Pragnesh Patel > >Cc: U-Boot Mailing List ; Atish Patra > >; palmerdabb...@google.com; Bin Meng > >; Paul Walmsley ( Sifive) > >; Anup Patel ; Sagar > >Kadam ; Palmer Dabbelt ; > >Jagan

Re: [RESEND PATCH] usb: max3420: add the gadget driver

2020-06-23 Thread Jassi Brar
On Tue, Jun 16, 2020 at 2:29 AM Lukasz Majewski wrote: > > Hi Jassi, > > > ... a polite ping, Lukasz. > > The only excuse for so long lack of my response are my personal issues > caused by the covid-19. > Sorry if I came across as pestering you. I hope all is well now. . > > > + > > >

Re: [PATCH 4/5] sifive: reset: add DM based reset driver for SiFive SoC's

2020-06-23 Thread Sean Anderson
On 6/24/20 1:01 AM, Bin Meng wrote: > Hi Sean, > > On Wed, Jun 24, 2020 at 12:17 PM Sean Anderson wrote: >> >> On 6/22/20 8:27 AM, Sagar Shrikant Kadam wrote: >>> The resets to DDR and ethernet sub-system are connected to >>> PRCI device reset control register, these reset signals >>> are active

Re: [PATCH 3/5] fu540: dtsi: add reset producer and consumer entries

2020-06-23 Thread Bin Meng
Hi Sean, On Wed, Jun 24, 2020 at 12:17 PM Sean Anderson wrote: > > On 6/22/20 8:27 AM, Sagar Shrikant Kadam wrote: > > The resets to DDR and ethernet sub-system are connected to > > PRCI device reset control register, these reset signals > > are active low and are held low at power-up. Add these

Re: [RESEND PATCH] usb: max3420: add the gadget driver

2020-06-23 Thread Jassi Brar
Hi Marek, On Mon, Jun 15, 2020 at 6:49 PM Marek Vasut wrote: > >> +#define MAX3420_REG_MODE 27 > >> +#define MAX3420_REG_PERADDR28 > >> +#define MAX3420_REG_HCTL 29 > >> +#define MAX3420_REG_HXFR 30 > >> +#define MAX3420_REG_HRSL 31 > >> + > >> +#define field(val,

RE: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

2020-06-23 Thread Pragnesh Patel
Hi Rick, >-Original Message- >From: Rick Chen >Sent: 24 June 2020 06:30 >To: Pragnesh Patel >Cc: U-Boot Mailing List ; Atish Patra >; palmerdabb...@google.com; Bin Meng >; Paul Walmsley ( Sifive) >; Anup Patel ; Sagar >Kadam ; Palmer Dabbelt ; >Jagan Teki ; rick ; Alan >Kao >Subject:

Re: [PATCH 3/5] fu540: dtsi: add reset producer and consumer entries

2020-06-23 Thread Sean Anderson
On 6/22/20 8:27 AM, Sagar Shrikant Kadam wrote: > The resets to DDR and ethernet sub-system are connected to > PRCI device reset control register, these reset signals > are active low and are held low at power-up. Add these reset > producer and consumer details needed by the reset driver. > >

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

2020-06-23 Thread Sean Anderson
On 5/26/20 3:41 AM, Rick Chen wrote: > Hi Tom > >> From: Tom Rini [mailto:tr...@konsulko.com] >> Sent: Monday, May 25, 2020 11:40 PM >> To: Open Source Project uboot >> Cc: u-boot@lists.denx.de; Rick Jian-Zhi Chen(陳建志) >> Subject: Re: [U-Boot] Pull request: u-boot-riscv/master >> >> On Mon, May

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

2020-06-23 Thread Rick Chen
gt; Thanks > > Rick > > > > https://travis-ci.org/github/rickchen36/u-boot-riscv/builds/701223929 > > > > > > The following changes since commit 4ff63383e3497389e66cf70943a83bdb1810462a: > > > > Merge tag 'u-boot-imx-20200623' of > > htt

Re: [PATCH 3/5] fu540: dtsi: add reset producer and consumer entries

2020-06-23 Thread Bin Meng
On Mon, Jun 22, 2020 at 8:28 PM Sagar Shrikant Kadam wrote: > > The resets to DDR and ethernet sub-system are connected to > PRCI device reset control register, these reset signals > are active low and are held low at power-up. Add these reset > producer and consumer details needed by the reset

Re: [PATCH 2/5] fu540: prci: use common reset indexes defined in binding header

2020-06-23 Thread Bin Meng
On Wed, Jun 24, 2020 at 11:01 AM Bin Meng wrote: > > On Mon, Jun 22, 2020 at 8:28 PM Sagar Shrikant Kadam > wrote: > > > > Indexes of reset signals available in PRCI driver are also > > defined in include/dt-bindings/clock/sifive-fu540-prci.h. > > So use those instead of defining new ones again

Re: [PATCH 2/5] fu540: prci: use common reset indexes defined in binding header

2020-06-23 Thread Bin Meng
On Mon, Jun 22, 2020 at 8:28 PM Sagar Shrikant Kadam wrote: > > Indexes of reset signals available in PRCI driver are also > defined in include/dt-bindings/clock/sifive-fu540-prci.h. > So use those instead of defining new ones again within the > fu540-prci driver. > > Signed-off-by: Sagar

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

2020-06-23 Thread Bin Meng
tps://travis-ci.org/github/rickchen36/u-boot-riscv/builds/701223929 > > > The following changes since commit 4ff63383e3497389e66cf70943a83bdb1810462a: > > Merge tag 'u-boot-imx-20200623' of > https://gitlab.denx.de/u-boot/custodians/u-boot-imx (2020-06-23 08:20:55 >

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

2020-06-23 Thread uboot
4ff63383e3497389e66cf70943a83bdb1810462a: Merge tag 'u-boot-imx-20200623' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx (2020-06-23 08:20:55 -0400) are available in the Git repository at: g...@gitlab.denx.de:u-boot/custodians/u-boot-riscv.git for you to fetch changes up

Re: [PATCH 1/3] riscv: Do not return error if reserved node already exists

2020-06-23 Thread Atish Patra
On Tue, Jun 23, 2020 at 5:51 PM Bin Meng wrote: > > Hi Atish, > > On Wed, Jun 24, 2020 at 2:17 AM Atish Patra wrote: > > > > On Tue, Jun 23, 2020 at 12:24 AM Bin Meng wrote: > > > > > > Hi Atish, > > > > > > On Fri, Jun 19, 2020 at 9:52 AM Atish Patra wrote: > > > > > > > > Not all errors are

[PATCH v2] arm64: issue ISB after updating system registers

2020-06-23 Thread Volodymyr Babchuk
ARM Architecture reference manual clearly states that PE pipeline should be flushed after any change to system registers. Refer to paragraph "B2.3.5 Memory Barriers" at page B2-92 of "Arm Architecture Reference Manual ARMv8 for ARMv8-A Architecture Profile" (ARM DDI 0487B.a). Failing to issue

Re: [PATCH v4 3/4] riscv: cpu: fixes to display proper CPU features

2020-06-23 Thread Simon Glass
Hi Bin, On Tue, 23 Jun 2020 at 19:26, Bin Meng wrote: > > Hi Simon, > > On Sun, Jun 21, 2020 at 9:10 PM Sagar Shrikant Kadam > wrote: > > > > The cmd "cpu detail" fetches uninitialized cpu feature information > > and thus displays wrong / inconsitent details as below. FU540-C000 doesn't > >

Re: [PATCH 1/5] dt-bindings: prci: add indexes for reset signals available in prci

2020-06-23 Thread Bin Meng
On Mon, Jun 22, 2020 at 8:28 PM Sagar Shrikant Kadam wrote: > > Add bit indexes for reset signals within the PRCI module > on FU540-C000 SoC. > The DDR and ethernet sub-system's have reset signals > indicated by these reset indexes. > > Signed-off-by: Sagar Shrikant Kadam > Reviewed-by: Pragnesh

Re: [PATCH v4 1/4] fu540: prci: add request and free clock handlers

2020-06-23 Thread Rick Chen
Hi Bin > Hi Rick, > > On Wed, Jun 24, 2020 at 9:36 AM Rick Chen wrote: > > > > Hi Sagar > > > > > > > > Hello Rick, > > > > > > > -Original Message- > > > > From: Rick Chen > > > > Sent: Monday, June 22, 2020 7:24 AM > > > > To: Sagar Kadam > > > > Cc: U-Boot Mailing List ; Lukasz

Re: [PATCH v4 1/4] fu540: prci: add request and free clock handlers

2020-06-23 Thread Bin Meng
Hi Rick, On Wed, Jun 24, 2020 at 9:36 AM Rick Chen wrote: > > Hi Sagar > > > > > Hello Rick, > > > > > -Original Message- > > > From: Rick Chen > > > Sent: Monday, June 22, 2020 7:24 AM > > > To: Sagar Kadam > > > Cc: U-Boot Mailing List ; Lukasz Majewski > > > ; Bin Meng ; Jagan Teki

RE: [PATCH v4] mmc: sdhci: Fix HISPD bit handling

2020-06-23 Thread Peng Fan
All: > Subject: Re: [PATCH v4] mmc: sdhci: Fix HISPD bit handling > > On 6/22/20 6:26 PM, Jagan Teki wrote: > > On Mon, Jun 22, 2020 at 2:54 PM Jaehoon Chung > wrote: > >> > >> Hi Peng, > >> > >> On 6/22/20 10:49 AM, Peng Fan wrote: > >>> Jaehoon, > >>> > Subject: [PATCH v4] mmc: sdhci:

Re: [PATCH v4 1/4] fu540: prci: add request and free clock handlers

2020-06-23 Thread Rick Chen
Hi Sagar > > Hello Rick, > > > -Original Message- > > From: Rick Chen > > Sent: Monday, June 22, 2020 7:24 AM > > To: Sagar Kadam > > Cc: U-Boot Mailing List ; Lukasz Majewski > > ; Bin Meng ; Jagan Teki > > ; Pragnesh Patel > > ; Anup Patel ; Simon > > Glass ; Sean Anderson ; rick > >

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

2020-06-23 Thread Rick Chen
Hi Sean Tom Rini 於 2020年6月23日 週二 上午8:45寫道: > > On Mon, Jun 22, 2020 at 02:03:52PM +0800, Rick Chen wrote: > > Hi Tom > > > > > From: Tom Rini [mailto:tr...@konsulko.com] > > > Sent: Monday, May 25, 2020 11:40 PM > > > To: Open Source Project uboot > > > Cc: u-boot@lists.denx.de; Rick Jian-Zhi

Re: [PATCH v4 4/4] riscv: cpu: check and append L1 cache to cpu features

2020-06-23 Thread Bin Meng
On Sun, Jun 21, 2020 at 9:10 PM Sagar Shrikant Kadam wrote: > > All cpu cores within FU540-C000 having split I/D caches. > Set the L1 cache feature bit using the i-cache-size as one of the > property from device tree indicating that L1 cache is present > on the cpu core. > > => cpu detail > 0:

Re: [PATCH v4 3/4] riscv: cpu: fixes to display proper CPU features

2020-06-23 Thread Bin Meng
Hi Simon, On Sun, Jun 21, 2020 at 9:10 PM Sagar Shrikant Kadam wrote: > > The cmd "cpu detail" fetches uninitialized cpu feature information > and thus displays wrong / inconsitent details as below. FU540-C000 doesn't > have any microcode, yet the cmd display's it. > => cpu detail > 0: cpu@0

Re: [PATCH v4 2/4] riscv: dts: hifive-unleashed-a00: add cpu aliases

2020-06-23 Thread Bin Meng
Hi Sagar, On Sun, Jun 21, 2020 at 9:10 PM Sagar Shrikant Kadam wrote: > > Add cpu aliases to U-Boot specific dtsi for hifive-unleashed. > Without aliases we see that the CPU device sequence numbers are set > randomly and the cpu list/detail command will show it as follows: > => cpu list > 1:

Re: [PATCH v4 1/4] fu540: prci: add request and free clock handlers

2020-06-23 Thread Bin Meng
Hi Sagar, On Sun, Jun 21, 2020 at 9:10 PM Sagar Shrikant Kadam wrote: > > Add clk_request handler to check if a valid clock is requested. > Here clk_free handler is added for debug purpose which will display > details of clock passed to clk_free. > > Signed-off-by: Sagar Shrikant Kadam >

Re: [PATCH v4 0/4] update clock handler and proper cpu features

2020-06-23 Thread Bin Meng
Hi Sagar, On Sun, Jun 21, 2020 at 9:10 PM Sagar Shrikant Kadam wrote: > > U-Boot cmd "cpu detail" shows inconsistent CPU features and is missing > clk_request and free handlers. > The current "cpu detail" sometimes shows "Microcode" as a feature, which > is not the case with FU540-C000 on HiFive

Re: [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver

2020-06-23 Thread Rick Chen
Hi Pragnesh > From: Pragnesh Patel [mailto:pragnesh.pa...@sifive.com] > Sent: Friday, May 29, 2020 2:45 PM > To: u-boot@lists.denx.de > Cc: atish.pa...@wdc.com; palmerdabb...@google.com; bmeng...@gmail.com; > paul.walms...@sifive.com; anup.pa...@wdc.com; sagar.ka...@sifive.com; Rick > Jian-Zhi

Re: [linux-sunxi] Re: [RFC PATCH] sunxi: support asymmetric dual rank DRAM on A64/R40

2020-06-23 Thread André Przywara
On 24/06/2020 01:34, Icenowy Zheng wrote: Hi, > 于 2020年6月24日 GMT+08:00 上午8:28:39, "André Przywara" > 写到: >> On 19/06/2020 13:16, Icenowy Zheng wrote: >> >> Hi Icenowy, >> >>> Previously we have known that R40 has a configuration register for >> its >>> rank 1, which allows different

Re: [PATCH 1/3] riscv: Do not return error if reserved node already exists

2020-06-23 Thread Bin Meng
Hi Atish, On Wed, Jun 24, 2020 at 2:17 AM Atish Patra wrote: > > On Tue, Jun 23, 2020 at 12:24 AM Bin Meng wrote: > > > > Hi Atish, > > > > On Fri, Jun 19, 2020 at 9:52 AM Atish Patra wrote: > > > > > > Not all errors are fatal. If a reserved memory node already exists in the > > > destination

Re: [linux-sunxi] Re: [RFC PATCH] sunxi: support asymmetric dual rank DRAM on A64/R40

2020-06-23 Thread Icenowy Zheng
于 2020年6月24日 GMT+08:00 上午8:28:39, "André Przywara" 写到: >On 19/06/2020 13:16, Icenowy Zheng wrote: > >Hi Icenowy, > >> Previously we have known that R40 has a configuration register for >its >> rank 1, which allows different configuration than rank 0. Reverse >> engineering of newest libdram of

Re: [RFC PATCH] sunxi: support asymmetric dual rank DRAM on A64/R40

2020-06-23 Thread André Przywara
On 19/06/2020 13:16, Icenowy Zheng wrote: Hi Icenowy, > Previously we have known that R40 has a configuration register for its > rank 1, which allows different configuration than rank 0. Reverse > engineering of newest libdram of A64 from Allwinner shows that A64 has > this register too. It's

[PATCH v3] fs/fat/fat.c: Do not perform zero block reads if there are no blocks left

2020-06-23 Thread Jason Wessel
While using u-boot with qemu's virtio driver I stumbled across a problem reading files less than sector size. On the real hardware the block reader seems ok with reading zero blocks, and while we could fix the virtio host side of qemu to deal with a zero block read instead of crashing, the u-boot

Re: [External] Re: [PATCH] arm64: zynqmp: Support converting pm_cfg_obj.c

2020-06-23 Thread Brandon Maier
On Tue, Jun 23, 2020 at 4:33 PM Luca Ceresoli wrote: > > Hi, > > On 23/06/20 23:23, Luca Ceresoli wrote: > > Hi Brandon, > > > > On 23/06/20 19:08, Brandon Maier wrote: > >> On Tue, Jun 23, 2020 at 10:18 AM Luca Ceresoli > >> wrote: > >>> > >> I'm trying to get it to work with Buildroot.

Multi DTB selection in SPL FIT image

2020-06-23 Thread Vanessa Ayumi Maegima
Hi, I'm trying to implement multi DTB selection via SPL FIT image in iMX8QXP MEK and it is not working. I have the DTB selection code in board_fit_config_name_match but it doesn't even get to this call, if fails on fit_find_config_node: fit_find_config_node: Cannot find /configurations node: -1

Fwd: [PATCH] arm64: zynqmp: Support converting pm_cfg_obj.c

2020-06-23 Thread Brandon Maier
Forgot to CC -- Forwarded message - From: Brandon Maier Date: Tue, Jun 23, 2020 at 12:16 PM Subject: Re: [PATCH] arm64: zynqmp: Support converting pm_cfg_obj.c To: Michal Simek On Tue, Jun 23, 2020 at 11:11 AM Michal Simek wrote: > On 22. 06. 20 22:45, Brandon Maier wrote: > >

Re: [PATCH] arm64: zynqmp: Support converting pm_cfg_obj.c

2020-06-23 Thread Luca Ceresoli
Hi, On 23/06/20 23:23, Luca Ceresoli wrote: > Hi Brandon, > > On 23/06/20 19:08, Brandon Maier wrote: >> On Tue, Jun 23, 2020 at 10:18 AM Luca Ceresoli wrote: >>> >>> Hi Brandon, >>> >>> On 22/06/20 22:45, Brandon Maier wrote: To use CONFIG_ZYNQMP_SPL_PM_CFG_OBJ_FILE, a developer must pull

Fwd: [PATCH] arm64: zynqmp: Support converting pm_cfg_obj.c

2020-06-23 Thread Brandon Maier
Forwarding as I forgot to CC -- Forwarded message - From: Brandon Maier Date: Tue, Jun 23, 2020 at 12:08 PM Subject: Re: [PATCH] arm64: zynqmp: Support converting pm_cfg_obj.c To: Luca Ceresoli On Tue, Jun 23, 2020 at 10:18 AM Luca Ceresoli wrote: > > Hi Brandon, > > On

Re: [PATCH] arm64: zynqmp: Support converting pm_cfg_obj.c

2020-06-23 Thread Luca Ceresoli
Hi Brandon, On 23/06/20 19:08, Brandon Maier wrote: > On Tue, Jun 23, 2020 at 10:18 AM Luca Ceresoli wrote: >> >> Hi Brandon, >> >> On 22/06/20 22:45, Brandon Maier wrote: >>> To use CONFIG_ZYNQMP_SPL_PM_CFG_OBJ_FILE, a developer must pull down the >>> U-Boot source and run

[PATCH v1 4/6] colibri-imx6ull: show boot logo

2020-06-23 Thread Igor Opaniuk
From: Igor Opaniuk 1. Show boot logo embed in U-Boot blob. 2. Drop iomux configration for LCD, and use the one provided in device tree. Signed-off-by: Igor Opaniuk --- board/toradex/colibri-imx6ull/colibri-imx6ull.c | 40 + 1 file changed, 7 insertions(+), 33

[PATCH v1 5/6] colibri-imx6ull: fix splash screen logo drawing

2020-06-23 Thread Igor Opaniuk
From: Igor Opaniuk Configure white on black for video console. Signed-off-by: Igor Opaniuk --- configs/colibri-imx6ull_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/colibri-imx6ull_defconfig b/configs/colibri-imx6ull_defconfig index 74a67a0..34ab8d6 100644 ---

[PATCH v1 6/6] colibri-imx7: fix splash logo drawing

2020-06-23 Thread Igor Opaniuk
From: Igor Opaniuk 1. Configure white on black for video console. 2. Enable printing bmp logo during late board init stage. 3. Use iomux configuration from device tree. Signed-off-by: Igor Opaniuk --- board/toradex/colibri_imx7/colibri_imx7.c | 44 +--

[PATCH v1 3/6] ARM: dts: imx7-colibri: multiple node updates

2020-06-23 Thread Igor Opaniuk
From: Igor Opaniuk 1. Move u-boot specific nodes to u-boot dts include: legacy lcdif node and aliases. 2. Add iomux configuration for LCD. Signed-off-by: Igor Opaniuk --- arch/arm/dts/imx7-colibri-emmc.dts | 9 + arch/arm/dts/imx7-colibri-rawnand.dts | 5 +--

[PATCH v1 2/6] toradex: common: show boot logo

2020-06-23 Thread Igor Opaniuk
From: Igor Opaniuk Add function for showing boot logo, embed into u-boot blob. Signed-off-by: Igor Opaniuk --- board/toradex/common/tdx-common.c | 26 ++ board/toradex/common/tdx-common.h | 4 2 files changed, 30 insertions(+) diff --git

[PATCH v1 1/6] ARM: dts: imx6ull-colibri: move u-boot specific node

2020-06-23 Thread Igor Opaniuk
From: Igor Opaniuk Move aliases and legacy lcdif node to the u-boot specific dts include. Signed-off-by: Igor Opaniuk --- arch/arm/dts/imx6ull-colibri-u-boot.dtsi | 45 arch/arm/dts/imx6ull-colibri.dtsi| 43 -- 2 files

Re: [RESEND PATCH v5 4/4] test: env: add test for env info sub-command

2020-06-23 Thread Stephen Warren
On 6/23/20 7:25 AM, Patrick DELAUNAY wrote: > Hi Stephen, > >> From: Stephen Warren >> Sent: lundi 22 juin 2020 20:51 >> >> On 6/19/20 6:03 AM, Patrick Delaunay wrote: >>> Add a pytest for testing the env info sub-command: >>> >>> test_env_info: test command with several option that can be

Re: [PATCH] travis-ci: Update QEMU RISC-V run command

2020-06-23 Thread Stephen Warren
On 6/23/20 6:34 AM, Bin Meng wrote: > From: Bin Meng > > Explicitly pass the "-bios" option to QEMU to run U-Boot, instead > of the "-kernel" option, as we know that "-bios" behavior will be > changed since QEMU 5.1.0. Applied, thanks.

Re: [PATCH] travis-ci: Update QEMU RISC-V run command

2020-06-23 Thread Stephen Warren
On 6/23/20 7:24 AM, Bin Meng wrote: > Hi Tom, > > On Tue, Jun 23, 2020 at 9:17 PM Tom Rini wrote: >> >> On Tue, Jun 23, 2020 at 05:34:34AM -0700, Bin Meng wrote: >> >>> From: Bin Meng >>> >>> Explicitly pass the "-bios" option to QEMU to run U-Boot, instead >>> of the "-kernel" option, as we

Re: [PATCH v2 03/14] dtoc: add support to scan drivers

2020-06-23 Thread Walter Lozano
Hi Simon, On 23/6/20 09:28, Simon Glass wrote: Hi Walter, On Fri, 19 Jun 2020 at 08:56, Walter Lozano wrote: Currently dtoc scans dtbs to convert them to struct platdata and to generate U_BOOT_DEVICE entries. These entries need to be filled with the driver name, but at this moment the

Re: [PATCH v2 12/14] arm: dts: include gpio nodes for card detect

2020-06-23 Thread Walter Lozano
Hi Simon, On 23/6/20 09:28, Simon Glass wrote: On Fri, 19 Jun 2020 at 08:56, Walter Lozano wrote: Several MMC drivers use GPIO for card detection with cd-gpios property in the MMC node pointing to a GPIO node. However, as U-Boot tries to save space by keeping only required nodes using u-boot*

Re: [PATCH v2 08/14] dtoc: extend dtoc to use struct driver_info when linking nodes

2020-06-23 Thread Walter Lozano
Hi Simon, On 23/6/20 09:28, Simon Glass wrote: On Fri, 19 Jun 2020 at 08:56, Walter Lozano wrote: In the current implementation, when dtoc parses a dtb to generate a struct platdata it converts the information related to linked nodes as pointers to struct platdata of destination nodes. By

Re: [PATCH v2 00/14] improve OF_PLATDATA support

2020-06-23 Thread Walter Lozano
On 23/6/20 11:00, Simon Glass wrote: Hi Walter, On Fri, 19 Jun 2020 at 08:56, Walter Lozano wrote: When using OF_PLATDATA dtbs are converted to C structs in order to save space as we can remove both dtbs and libraries from TPL/SPL binaries. This patchset tries to improve its support by

Re: [PATCH 1/3] riscv: Do not return error if reserved node already exists

2020-06-23 Thread Atish Patra
On Tue, Jun 23, 2020 at 12:24 AM Bin Meng wrote: > > Hi Atish, > > On Fri, Jun 19, 2020 at 9:52 AM Atish Patra wrote: > > > > Not all errors are fatal. If a reserved memory node already exists in the > > destination device tree, we can continue to boot without failing. > > > > Signed-off-by:

Re: [PATCH] [RFC] tools: fitmount: fuse mount fit images

2020-06-23 Thread Tom Rini
On Tue, Jun 23, 2020 at 06:01:38PM +0530, selvamuthukumar v wrote: > On Mon, Jun 15, 2020 at 11:15 PM Selva Muthukumar > wrote: > > > > Allow mounting of FIT images. If FIT images are used for firmware upgrade > > from linux, mouting can save space in comparison to using dumpimage. > > > > Any

Re: [PATCH] doc: qemu-riscv: Update QEMU run command

2020-06-23 Thread Atish Patra
On Tue, Jun 23, 2020 at 5:25 AM Bin Meng wrote: > > From: Bin Meng > > Explicitly pass the "-bios" option to QEMU to run U-Boot, instead > of the "-kernel" option, as we know that "-bios" behavior will be > changed since QEMU 5.1.0. > > This also updates validated QEMU version to 5.0.0. > >

RE: [PATCH v2 6/9] test: environment in ext4

2020-06-23 Thread Patrick DELAUNAY
Hi, > From: Stephen Warren > Sent: lundi 22 juin 2020 20:57 > > On 6/16/20 1:40 AM, Patrick Delaunay wrote: > > Add basic test to persistent environment in ext4: > > save and load in host ext4 file 'uboot.env'. > > > > On first execution an empty EXT4 file system is created in persistent > >

Re: [PATCH] arm64: zynqmp: Support converting pm_cfg_obj.c

2020-06-23 Thread Michal Simek
On 22. 06. 20 22:45, Brandon Maier wrote: > To use CONFIG_ZYNQMP_SPL_PM_CFG_OBJ_FILE, a developer must pull down the > U-Boot source and run ./tools/zynqmp_pm_cfg_obj_convert.py to convert > their pm_cfg_obj.c into U-Boot's PMU loader format, then feed that file > back to U-Boot during build. >

Re: [PATCH] [RFC] tools: fitmount: fuse mount fit images

2020-06-23 Thread selvamuthukumar v
On Mon, Jun 15, 2020 at 11:15 PM Selva Muthukumar wrote: > > Allow mounting of FIT images. If FIT images are used for firmware upgrade > from linux, mouting can save space in comparison to using dumpimage. > Any comments on this? Is there any other way to get FIT image contents, without

Pass disk context to GRUB

2020-06-23 Thread Garrett Brown
Hello, I'm trying to enable UEFI dual-booting on the BeagleBone black. U-Boot knows to boot from SD if present, and eMMC if not. However, U-Boot doesn't pass the disk "context" to GRUB; GRUB always thinks it's booting from `hd0`, and doesn't know what to use for the kernel's `root` parameter. I

Re: [PATCH] arm64: zynqmp: Support converting pm_cfg_obj.c

2020-06-23 Thread Luca Ceresoli
Hi Brandon, On 22/06/20 22:45, Brandon Maier wrote: > To use CONFIG_ZYNQMP_SPL_PM_CFG_OBJ_FILE, a developer must pull down the > U-Boot source and run ./tools/zynqmp_pm_cfg_obj_convert.py to convert > their pm_cfg_obj.c into U-Boot's PMU loader format, then feed that file > back to U-Boot during

Re: [PATCH v2 3/9] env: correctly handle result in env_init

2020-06-23 Thread Tom Rini
On Tue, Jun 23, 2020 at 01:13:55PM +, Patrick DELAUNAY wrote: > Hi Tom, > > > From: Tom Rini > > Sent: vendredi 19 juin 2020 20:05 > > > > On Fri, Jun 19, 2020 at 02:14:00PM +, Patrick DELAUNAY wrote: > > > Hi Tom and Marek, > > > > > > > From: Tom Rini > > > > Sent: jeudi 18 juin 2020

Re: [PATCH U-BOOT v2 00/30] fs: btrfs: Re-implement btrfs support using the more widely used extent buffer base code

2020-06-23 Thread Marek Behún
Hi Qu, when applying whole series, there are several warning spewed by git: trailing whitespaces, new lines at EOF, spaces before tab in indent. It is possible that this is because the code is copypasted from btrfs-progs and this issues come from there. Also patches 26 and 27 have almost same

Re: [PATCH v2 2/3] watchdog: rti_wdt: Add support for loading firmware

2020-06-23 Thread Jan Kiszka
On 23.06.20 14:37, Jan Kiszka wrote: On 23.06.20 13:50, Lokesh Vutla wrote: On 23/06/20 4:45 pm, Jan Kiszka wrote: From: Jan Kiszka To avoid the need of extra boot scripting on AM65x for loading a watchdog firmware, add the required rproc init and loading logic for the first R5F core to

Re: [GIT PULL] Pull request: u-boot-imx u-boot-imx-20200623

2020-06-23 Thread Tom Rini
> > Merge https://gitlab.denx.de/u-boot/custodians/u-boot-sh (2020-06-20 > 18:51:50 -0400) > > are available in the Git repository at: > > https://gitlab.denx.de/u-boot/custodians/u-boot-imx.git > tags/u-boot-imx-20200623 > > for you to fetch change

Re: [PATCH v2 00/14] improve OF_PLATDATA support

2020-06-23 Thread Simon Glass
Hi Walter, On Fri, 19 Jun 2020 at 08:56, Walter Lozano wrote: > > When using OF_PLATDATA dtbs are converted to C structs in order to save > space as we can remove both dtbs and libraries from TPL/SPL binaries. > > This patchset tries to improve its support by overcoming some limitations > in the

RE: [RESEND PATCH v5 4/4] test: env: add test for env info sub-command

2020-06-23 Thread Patrick DELAUNAY
Hi Stephen, > From: Stephen Warren > Sent: lundi 22 juin 2020 20:51 > > On 6/19/20 6:03 AM, Patrick Delaunay wrote: > > Add a pytest for testing the env info sub-command: > > > > test_env_info: test command with several option that can be executed > > on real hardware device without assumption

Re: [PATCH] travis-ci: Update QEMU RISC-V run command

2020-06-23 Thread Bin Meng
Hi Tom, On Tue, Jun 23, 2020 at 9:17 PM Tom Rini wrote: > > On Tue, Jun 23, 2020 at 05:34:34AM -0700, Bin Meng wrote: > > > From: Bin Meng > > > > Explicitly pass the "-bios" option to QEMU to run U-Boot, instead > > of the "-kernel" option, as we know that "-bios" behavior will be > > changed

Re: [PATCH] travis-ci: Update QEMU RISC-V run command

2020-06-23 Thread Tom Rini
On Tue, Jun 23, 2020 at 05:34:34AM -0700, Bin Meng wrote: > From: Bin Meng > > Explicitly pass the "-bios" option to QEMU to run U-Boot, instead > of the "-kernel" option, as we know that "-bios" behavior will be > changed since QEMU 5.1.0. > > Signed-off-by: Bin Meng > Signed-off-by: Bin

RE: [PATCH v2 3/9] env: correctly handle result in env_init

2020-06-23 Thread Patrick DELAUNAY
Hi Tom, > From: Tom Rini > Sent: vendredi 19 juin 2020 20:05 > > On Fri, Jun 19, 2020 at 02:14:00PM +, Patrick DELAUNAY wrote: > > Hi Tom and Marek, > > > > > From: Tom Rini > > > Sent: jeudi 18 juin 2020 21:16 > > > > > > On Tue, Jun 16, 2020 at 09:40:42AM +0200, Patrick Delaunay wrote: >

Re: [PATCH v2 2/3] watchdog: rti_wdt: Add support for loading firmware

2020-06-23 Thread Jan Kiszka
On 23.06.20 13:50, Lokesh Vutla wrote: On 23/06/20 4:45 pm, Jan Kiszka wrote: From: Jan Kiszka To avoid the need of extra boot scripting on AM65x for loading a watchdog firmware, add the required rproc init and loading logic for the first R5F core to the watchdog start handler. The firmware

[PATCH] travis-ci: Update QEMU RISC-V run command

2020-06-23 Thread Bin Meng
From: Bin Meng Explicitly pass the "-bios" option to QEMU to run U-Boot, instead of the "-kernel" option, as we know that "-bios" behavior will be changed since QEMU 5.1.0. Signed-off-by: Bin Meng Signed-off-by: Bin Meng --- bin/travis-ci/conf.qemu-riscv32_na | 2 +-

Re: [PATCH v2 04/14] dtoc: add option to disable warnings

2020-06-23 Thread Simon Glass
On Fri, 19 Jun 2020 at 08:56, Walter Lozano wrote: > > As dtoc now performs checks for valid driver names, when running dtoc > tests several warnings arise as these tests don't use valid driver > names. > > This patch adds an option to disable those warning, which is only > intended for running

Re: [PATCH v2 07/14] core: extend struct driver_info to point to device

2020-06-23 Thread Simon Glass
On Fri, 19 Jun 2020 at 08:56, Walter Lozano wrote: > > Currently when creating an U_BOOT_DEVICE entry a struct driver_info > is declared, which contains the data needed to instantiate the device. > However, the actual device is created at runtime and there is no proper > way to get the device

Re: [PATCH v2 12/14] arm: dts: include gpio nodes for card detect

2020-06-23 Thread Simon Glass
On Fri, 19 Jun 2020 at 08:56, Walter Lozano wrote: > > Several MMC drivers use GPIO for card detection with cd-gpios property in > the MMC node pointing to a GPIO node. However, as U-Boot tries to save > space by keeping only required nodes using u-boot* properties, several > devices tree result

Re: [PATCH v2 11/14] sandbox: Move section u_boot_list to make it RW

2020-06-23 Thread Simon Glass
On Fri, 19 Jun 2020 at 08:56, Walter Lozano wrote: > > In order to be able to update data in u_boot_list, move this section to > make it RW. > > Signed-off-by: Walter Lozano > --- > arch/sandbox/cpu/u-boot-spl.lds | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass

Re: [PATCH v2 09/14] dm: doc: update of-plat with new phandle support

2020-06-23 Thread Simon Glass
On Fri, 19 Jun 2020 at 08:56, Walter Lozano wrote: > > Update documentation to reflect the new phandle support when OF_PLATDATA > is used. Now phandles are implemented as pointers to U_BOOT_DEVICE, > which makes it possible to get a pointer to the actual device. > > Signed-off-by: Walter Lozano

Re: [PATCH 1/1] cmd: fdt: remove CMD_FDT_MAX_DUMP

2020-06-23 Thread Simon Glass
On Fri, 19 Jun 2020 at 11:46, Heinrich Schuchardt wrote: > > When printing the device tree we want to get an output that can be used as > input for the device tree compiler. This requires that we do not write > bogus lines like > > pcie@1000 { > interrupt-map = * 0x4000127c

Re: [PATCH v2 14/14] dtoc add test for cd-gpios

2020-06-23 Thread Simon Glass
On Fri, 19 Jun 2020 at 08:56, Walter Lozano wrote: > > Add a test for dtoc taking into account the cd-gpios property. > > Signed-off-by: Walter Lozano > --- > tools/dtoc/dtoc_test_phandle_cd_gpios.dts | 42 ++ > tools/dtoc/test_dtoc.py | 67 +++

Re: [PATCH v2 06/14] core: drop const for struct driver_info

2020-06-23 Thread Simon Glass
On Fri, 19 Jun 2020 at 08:56, Walter Lozano wrote: > > In order to prepare for a new support of phandle when OF_PLATDATA is used > drop the const for struct driver_info as this struct will need to be > updated on runtime. > > Signed-off-by: Walter Lozano > --- > drivers/core/device.c| 2

Re: [PATCH v2 08/14] dtoc: extend dtoc to use struct driver_info when linking nodes

2020-06-23 Thread Simon Glass
On Fri, 19 Jun 2020 at 08:56, Walter Lozano wrote: > > In the current implementation, when dtoc parses a dtb to generate a struct > platdata it converts the information related to linked nodes as pointers > to struct platdata of destination nodes. By doing this, it makes > difficult to get

Re: [PATCH v2 10/14] dtoc: update tests to match new platdata

2020-06-23 Thread Simon Glass
On Fri, 19 Jun 2020 at 08:56, Walter Lozano wrote: > > After using a new approach to link nodes when OF_PLATDATA is enabled > the test cases need to be update. > > This patch updates the tests based on this new implementation. > > Signed-off-by: Walter Lozano > --- > tools/dtoc/test_dtoc.py |

Re: [PATCH v2 13/14] dtoc: update dtb_platdata to support cd-gpios

2020-06-23 Thread Simon Glass
On Fri, 19 Jun 2020 at 08:56, Walter Lozano wrote: > > Currently dtoc does not support the property cd-gpios used to declare > the gpios for card detect in mmc. > > This patch adds support to cd-gpios property. > > Signed-off-by: Walter Lozano > --- > tools/dtoc/dtb_platdata.py | 13

Re: [PATCH v2 05/14] dm: doc: update of-plat with the support for driver aliases

2020-06-23 Thread Simon Glass
On Fri, 19 Jun 2020 at 08:56, Walter Lozano wrote: > > Update the documentation with the support for driver aliases using > U_BOOT_DRIVER_ALIAS. > > Signed-off-by: Walter Lozano > --- > doc/driver-model/of-plat.rst | 14 +- > 1 file changed, 13 insertions(+), 1 deletion(-) >

Re: [PATCH v2 02/14] dtoc: add missing code comments

2020-06-23 Thread Simon Glass
On Fri, 19 Jun 2020 at 08:56, Walter Lozano wrote: > > Add missing information about internal class members in order to make > the code easier to follow. > > Signed-off-by: Walter Lozano > --- > tools/dtoc/dtb_platdata.py | 3 +++ > 1 file changed, 3 insertions(+) > Reviewed-by: Simon Glass

Re: [PATCH v2 01/14] drivers: rename drivers to match compatible string

2020-06-23 Thread Simon Glass
On Fri, 19 Jun 2020 at 08:56, Walter Lozano wrote: > > When using OF_PLATDATA, the bind process between devices and drivers > is performed trying to match compatible string with driver names. > However driver names are not strictly defined, and also there are different > names used when declaring

Re: [PATCH v2 03/14] dtoc: add support to scan drivers

2020-06-23 Thread Simon Glass
Hi Walter, On Fri, 19 Jun 2020 at 08:56, Walter Lozano wrote: > > Currently dtoc scans dtbs to convert them to struct platdata and > to generate U_BOOT_DEVICE entries. These entries need to be filled > with the driver name, but at this moment the information used is the > compatible name present

Re: [PATCH v2 1/3] watchdog: Add support for K3 RTI watchdog

2020-06-23 Thread Jan Kiszka
On 23.06.20 13:47, Lokesh Vutla wrote: On 23/06/20 4:45 pm, Jan Kiszka wrote: From: Jan Kiszka This is based on the Linux kernel driver for the RTI watchdog. To actually reset the system on an AM65x, it requires firmware running on the R5 that accepts the NMI and issues the actual system

[PATCH] doc: qemu-riscv: Update QEMU run command

2020-06-23 Thread Bin Meng
From: Bin Meng Explicitly pass the "-bios" option to QEMU to run U-Boot, instead of the "-kernel" option, as we know that "-bios" behavior will be changed since QEMU 5.1.0. This also updates validated QEMU version to 5.0.0. Signed-off-by: Bin Meng --- doc/board/emulation/qemu-riscv.rst | 10

Re: [PATCH 1/3] video: add support for drawing 8bpp bitmap on 32bpp framebuffer

2020-06-23 Thread Anatolij Gustschin
Hi Igor, On Tue, 23 Jun 2020 14:40:45 +0300 Igor Opaniuk igor.opan...@gmail.com wrote: ... > Any chance to get this merged? We had a display issue on mx6ul_14x14_evk with these patches applied, I didn't have time to debug this further. From what I remember now, it was not exactly clear if this

RE: [PATCH] ARM: imx: soc: Add reset for non-DM case

2020-06-23 Thread Peng Fan
> Subject: Re: [PATCH] ARM: imx: soc: Add reset for non-DM case > > Hi Everybody, > > CC: Igor / Oleksandr from Toradex > > > On 22.05.20 01:14, Marek Vasut wrote: > > This is another in series of patches which remove ad-hoc reset_cpu() > > hacks from board files. This one is for iMX7, so

  1   2   >