[PATCH v2 4/4] board: gateworks: imx8mm: Add Gateworks Venice board support

2021-02-05 Thread Tim Harvey
Add initial support for Gateworks Venice product family based on the i.MX 8M Mini SoC Signed-off-by: Tim Harvey --- v2: no changes --- arch/arm/dts/imx8mm-venice-gw700x-u-boot.dtsi| 105 + arch/arm/dts/imx8mm-venice-gw71xx-0x-u-boot.dtsi |5 +

Re: [PATCH V3] ARM: imx: Include u-boot.img in u-boot-with-spl.imx if OF_SEPARATE=y

2021-02-05 Thread Christoph Niedermaier
From: Marek Vasut [mailto:ma...@denx.de] Sent: Thursday, February 4, 2021 7:00 PM > To: u-boot@lists.denx.de > Cc: Marek Vasut ; Christoph Niedermaier electronics.com>; Fabio Estevam ; Peng Fan > ; Simon Glass ; Stefano Babic > ; Ye Li ; uboot-imx > Subject: [PATCH V3] ARM: imx: Include

0a2aaab0b678fd1778ff2fc59d0770fc82995532 breaks Pinebook Pro.

2021-02-05 Thread Jesper Schmitz Mouridsen
Hi list First post here. In my work to enable the display for pinebook-pro (for FreeBSD) I found that, by some bisecting and manual bisecting, 0a2aaab0b678fd1778ff2fc59d0770fc82995532, is a problem.. Check here for links to my patches

Re: [PATCH] gpio-uclass: fix gpio flags save condition

2021-02-05 Thread Simon Glass
Hi Köry, On Fri, 5 Feb 2021 at 07:48, Köry Maincent wrote: > > Hi Simon, > > On Thu, 4 Feb 2021 19:45:22 -0700 > Simon Glass wrote: > > > > Thank you for that. I think that is because dm_gpio_set_dir_flags() > > does not clear the flags first. But we now do actually update > > desc->flags,

[PATCH v2 3/4] arm: dts: imx8mm: add Gateworks i.MX8 Mini Dev kits

2021-02-05 Thread Tim Harvey
Add Gateworks i.MX 8M Mini Development kits from Mainline Linux Signed-off-by: Tim Harvey --- v2: no changes --- arch/arm/dts/Makefile| 4 + arch/arm/dts/imx8mm-venice-gw700x.dtsi | 495 +++ arch/arm/dts/imx8mm-venice-gw71xx-0x.dts | 19 ++

[PATCH v2 2/4] Respect that some compression algos can be enabled separately for SPL

2021-02-05 Thread Tim Harvey
From: Frieder Schrempf Some compression algorithms currently can be enabled for SPL and U-Boot proper separately. Therefore take into account USE_HOSTCC is well as CONFIG_IS_ENABLED() in these cases to prevent compiling these functions in case of a host tool build. Signed-off-by: Frieder

[PATCH v2 1/4] thermal: imx_tmu: enable monitoring and default alert/critical

2021-02-05 Thread Tim Harvey
Set default critical/alert temperature and enabling monoitoring. Without calling imx_tmu_enable_msite() monitoring will not be enabled and read_temperature will return 0. Additionally without setting alert temperature will cause imx_tmu_get_temp() to spin indefiniately thinking the system needs

[PATCH v2 0/4] Add Gateworks Venice board support

2021-02-05 Thread Tim Harvey
The Gateworks Venice product family consists of several boards based on the i.MX 8M Mini SoC. A challenge I've had with this is that the board model information is stored in an I2C based EEPROM that must be read to know what PMIC is on the board in order to adjust certain power rails before DRAM

Re: [PATCH v2 4/4] doc: update Kernel documentation build system

2021-02-05 Thread Bin Meng
Hi Simon, On Fri, Feb 5, 2021 at 10:43 PM Simon Glass wrote: > > Hi Heinrich, > > On Mon, 1 Feb 2021 at 13:39, Simon Glass wrote: > > > > On Tue, 26 Jan 2021 at 11:36, Heinrich Schuchardt > > wrote: > > > > > > Update the documentation build system according to Linux v5.11-rc1. > > > > > >

Re: [PATCH v1] test: Include /sbin to the PATH when creating ext4 disk image

2021-02-05 Thread Simon Glass
Hi Andy, On Fri, 5 Feb 2021 at 12:40, Andy Shevchenko wrote: > > On Fri, Feb 05, 2021 at 07:29:40PM +0200, Andy Shevchenko wrote: > > On Thu, Feb 04, 2021 at 08:17:23PM -0700, Simon Glass wrote: > > > On Wed, 3 Feb 2021 at 08:32, Andy Shevchenko > > > wrote: > > > > ... > > > > > > if

Re: [PATCH v2 4/4] doc: update Kernel documentation build system

2021-02-05 Thread Bin Meng
On Fri, Feb 5, 2021 at 10:43 PM Simon Glass wrote: > > Hi Heinrich, > > On Mon, 1 Feb 2021 at 13:39, Simon Glass wrote: > > > > On Tue, 26 Jan 2021 at 11:36, Heinrich Schuchardt > > wrote: > > > > > > Update the documentation build system according to Linux v5.11-rc1. > > > > > > Deactive the

Re: [PATCH 1/3] cmd: env: Add 'env import -h' for Marvell hw_info formatted environments

2021-02-05 Thread Luka Kovacic
On Fri, Feb 5, 2021 at 11:40 PM Tom Rini wrote: > > On Fri, Feb 05, 2021 at 11:36:25PM +0100, Luka Kovacic wrote: > > On Fri, Feb 5, 2021 at 11:04 PM Tom Rini wrote: > > > > > > On Fri, Feb 05, 2021 at 11:02:23PM +0100, Luka Kovacic wrote: > > > > Hello Tom, > > > > > > > > On Thu, Feb 4, 2021

Re: [PATCH 1/3] cmd: env: Add 'env import -h' for Marvell hw_info formatted environments

2021-02-05 Thread Tom Rini
On Fri, Feb 05, 2021 at 11:36:25PM +0100, Luka Kovacic wrote: > On Fri, Feb 5, 2021 at 11:04 PM Tom Rini wrote: > > > > On Fri, Feb 05, 2021 at 11:02:23PM +0100, Luka Kovacic wrote: > > > Hello Tom, > > > > > > On Thu, Feb 4, 2021 at 6:06 PM Tom Rini wrote: > > > > > > > > On Thu, Feb 04, 2021

Re: [PATCH 1/3] cmd: env: Add 'env import -h' for Marvell hw_info formatted environments

2021-02-05 Thread Luka Kovacic
On Fri, Feb 5, 2021 at 11:04 PM Tom Rini wrote: > > On Fri, Feb 05, 2021 at 11:02:23PM +0100, Luka Kovacic wrote: > > Hello Tom, > > > > On Thu, Feb 4, 2021 at 6:06 PM Tom Rini wrote: > > > > > > On Thu, Feb 04, 2021 at 11:46:35AM +0100, Luka Kovacic wrote: > > > > > > > The '-h' flag is added

Re: [PATCH 1/3] cmd: env: Add 'env import -h' for Marvell hw_info formatted environments

2021-02-05 Thread Tom Rini
On Fri, Feb 05, 2021 at 11:02:23PM +0100, Luka Kovacic wrote: > Hello Tom, > > On Thu, Feb 4, 2021 at 6:06 PM Tom Rini wrote: > > > > On Thu, Feb 04, 2021 at 11:46:35AM +0100, Luka Kovacic wrote: > > > > > The '-h' flag is added to the 'env import' command to enable parsing > > > Marvell hw_info

Re: [PATCH 1/3] cmd: env: Add 'env import -h' for Marvell hw_info formatted environments

2021-02-05 Thread Luka Kovacic
Hello Tom, On Thu, Feb 4, 2021 at 6:06 PM Tom Rini wrote: > > On Thu, Feb 04, 2021 at 11:46:35AM +0100, Luka Kovacic wrote: > > > The '-h' flag is added to the 'env import' command to enable parsing > > Marvell hw_info formatted environments. > > This format is often used on Marvell Armada A37XX

Re: [PATCH v2 2/2] console: Don't start/stop console if stdio device invalid

2021-02-05 Thread Tom Rini
On Fri, Feb 05, 2021 at 09:31:00PM +0200, Andy Shevchenko wrote: > On Fri, Feb 05, 2021 at 01:07:02PM -0500, Tom Rini wrote: > > On Fri, Feb 05, 2021 at 12:50:56PM -0500, Tom Rini wrote: > > > On Fri, Feb 05, 2021 at 07:06:54PM +0200, Andy Shevchenko wrote: > > > > On Wed, Feb 03, 2021 at

Re: [PATCH v1] test: Allow simple glob pattern in the test name

2021-02-05 Thread Andy Shevchenko
On Fri, Feb 05, 2021 at 09:17:27PM +0200, Andy Shevchenko wrote: > On Fri, Feb 05, 2021 at 08:15:25PM +0200, Andy Shevchenko wrote: > > On Fri, Feb 05, 2021 at 07:34:49PM +0200, Andy Shevchenko wrote: > > > On Thu, Feb 04, 2021 at 08:17:24PM -0700, Simon Glass wrote: > > > > ... > > > > > Btw,

Re: [PATCH v1] test: Include /sbin to the PATH when creating ext4 disk image

2021-02-05 Thread Andy Shevchenko
On Fri, Feb 05, 2021 at 07:29:40PM +0200, Andy Shevchenko wrote: > On Thu, Feb 04, 2021 at 08:17:23PM -0700, Simon Glass wrote: > > On Wed, 3 Feb 2021 at 08:32, Andy Shevchenko > > wrote: > > ... > > > > if os.path.exists(persistent): > > > c.log.action('Disk image file ' +

Re: [PATCH v3] video: sunxi_display: Convert to DM_VIDEO

2021-02-05 Thread Andre Przywara
On Fri, 05 Feb 2021 17:27:25 +0100 Jernej Škrabec wrote: > Dne petek, 05. februar 2021 ob 02:07:48 CET je Andre Przywara napisal(a): > > From: Jagan Teki > > > > DM_VIDEO migration deadline is already expired, but around > > 80 Allwinner boards are still using video in a legacy way. > > > >

Re: [PATCH v2 2/2] console: Don't start/stop console if stdio device invalid

2021-02-05 Thread Andy Shevchenko
On Fri, Feb 05, 2021 at 01:07:02PM -0500, Tom Rini wrote: > On Fri, Feb 05, 2021 at 12:50:56PM -0500, Tom Rini wrote: > > On Fri, Feb 05, 2021 at 07:06:54PM +0200, Andy Shevchenko wrote: > > > On Wed, Feb 03, 2021 at 11:50:53AM +0200, Andy Shevchenko wrote: ... > > > Okay, as promised, I

Re: [PATCH v1] test: Allow simple glob pattern in the test name

2021-02-05 Thread Andy Shevchenko
On Fri, Feb 05, 2021 at 08:15:25PM +0200, Andy Shevchenko wrote: > On Fri, Feb 05, 2021 at 07:34:49PM +0200, Andy Shevchenko wrote: > > On Thu, Feb 04, 2021 at 08:17:24PM -0700, Simon Glass wrote: > > ... > > > Btw, you have an issue there, i.e. if test case failed, all percentage > > after it

[RESEND PATCH 10/16] usb: musb: Ensure that we set musb dynamic FIFO buffer for every endpoint

2021-02-05 Thread Pali Rohár
If we do not set FIFO buffer address and size for some endpoint which is in use then default address 0x0 would be used which is in conflict with FIFO buffer for endpoint 0 which is at fixed address 0x0. Sharing address space between more endpoint cause data loss and unexpected errors. This patch

[RESEND PATCH 14/16] Nokia RX-51: Remove function set_muxconf_regs()

2021-02-05 Thread Pali Rohár
This function is not used and was never called. This board contains '#define CONFIG_SKIP_LOWLEVEL_INIT' because X-Loader set everything up, including MUX configuration. Also this MUX configuration is incorrect and does not match hardware. So remove this dead, unused and broken code. This

[RESEND PATCH 12/16] arm: omap3: Compile lowlevel_init() function only when it is used

2021-02-05 Thread Pali Rohár
Function lowlevel_init() is called only from cpu_init_crit() and this function is wrapped into #if .. #endif section. So compile also lowlevel_init() function under same #if condition. Signed-off-by: Pali Rohár --- arch/arm/mach-omap2/omap3/lowlevel_init.S | 6 +- 1 file changed, 5

[RESEND PATCH 15/16] Nokia RX-51: Move content of rx51.h to rx51.c

2021-02-05 Thread Pali Rohár
After removal of MUX configuration there is no need to have extra rx51.h. Signed-off-by: Pali Rohár --- board/nokia/rx51/rx51.c | 17 - board/nokia/rx51/rx51.h | 31 --- 2 files changed, 16 insertions(+), 32 deletions(-) delete mode 100644

[RESEND PATCH 16/16] Nokia RX-51: Enable usbtty serial console by default

2021-02-05 Thread Pali Rohár
Now when usbtty serial console is fixed in U-Boot enable CONFIG_USB_TTY for Nokia RX-51 board by default. Fix also USB product id as U-Boot ignores CONFIG_USBD_PRODUCTID macro and include U-Boot string into USB product name to indicate usage of U-Boot. CONFIG_CONSOLE_MUX is already used and

[RESEND PATCH 11/16] usb: gadget: Use dbg_ep0() macro instead of serial_printf()

2021-02-05 Thread Pali Rohár
All debug messages from ep0.c except a few are printed by dbg_ep0() macro. So for remaining few exception use also dbg_ep0() instead of serial_printf(). Signed-off-by: Pali Rohár --- drivers/usb/gadget/ep0.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

[RESEND PATCH 09/16] usb: musb: Fix handling interrupts for EP0 and SET ADDRESS commmand

2021-02-05 Thread Pali Rohár
Interrupt for EP0 is indicated in intrtx register via first bit. It is set for both RX and TX. First bit in intrrx register is reserved and not set. So remove calling musb_peri_ep0() function at every iteration of udc_irq() and musb_peri_rx() and call it only from musb_peri_tx() when correct

[RESEND PATCH 08/16] usb: musb: Fix receiving of bigger buffers

2021-02-05 Thread Pali Rohár
If musb_peri_rx_ep() was called to processed received HW buffer but U-Boot cannot read it yet (e.g. because U-Boot SW buffer is full) then interrupt was marked as processed but HW buffer stayed unprocessed. U-Boot tried to process this buffer again when it receive interrupt again, but it can

[RESEND PATCH 13/16] arm: omap3: Compile s_init() function only when it is used

2021-02-05 Thread Pali Rohár
Function s_init() is called only from lowlevel_init(). So compile it only when function lowlevel_init() is compiled. Signed-off-by: Pali Rohár --- arch/arm/mach-omap2/omap3/board.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-omap2/omap3/board.c

[RESEND PATCH 07/16] usb: musb: Fix transmission of bigger buffers

2021-02-05 Thread Pali Rohár
If udc_endpoint_write() was called with bigger payload which does not fit into one USB packet it needs to be transmitted in more USB packets. First packet is transmitted by udc_endpoint_write() call itself and other packets are put into waiting queue. Implement function musb_peri_tx() which

[RESEND PATCH 03/16] usb: musb: Fix compilation of gadget code

2021-02-05 Thread Pali Rohár
musb udc code depends on usb gadget code provided by CONFIG_USB_DEVICE and defined in drivers/usb/gadget/Makefile. But this Makefile is not included into U-Boot build when CONFIG_USB_GADGET is not set. As CONFIG_USB_DEVICE cannot be enabled together with CONFIG_USB_GADGET it means that dependency

[RESEND PATCH 05/16] usb: musb: Fix configuring FIFO for endpoints

2021-02-05 Thread Pali Rohár
This patch fixes configuring FIFO for one-directional endpoints which have either RX or TX queue and therefore only one FIFO. Size of FIFO buffer is 2^(idx+3) bytes and starting address is 2^(addr+3). Moreover first 64 bytes are reserved for EP0. Without this patch if FIFO size specified by

[RESEND PATCH 04/16] usb: musb: Always clear the data toggle bit when configuring ep

2021-02-05 Thread Pali Rohár
Without this patch it was done only when U-Boot was compiled with MUSB Host Controller. But it is needed also for MUSB Device Controller, otherwise Device Controller does not work. Signed-off-by: Pali Rohár --- drivers/usb/musb/musb_core.c | 4 1 file changed, 4 deletions(-) diff --git

[RESEND PATCH 00/16] Nokia RX-51: Fix USB TTY console and enable it

2021-02-05 Thread Pali Rohár
This series contain resensed patches from two patch series: * Nokia RX-51: Fix USB TTY console and enable it * usbtty/musb: Fix file transfers They are rebased on top of master branch. This patch series fix usbtty code (serial console via USB peripheral mode), fix underlying musb peripheral code,

[RESEND PATCH 06/16] usb: musb: Read value of PERI_RXCSR to 16bit variable

2021-02-05 Thread Pali Rohár
PERI_RXCSR is 16bit register so store its value into 16bit local variable. Signed-off-by: Pali Rohár --- drivers/usb/musb/musb_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/musb/musb_udc.c b/drivers/usb/musb/musb_udc.c index d901f8777c..67d1c56f9a 100644

[RESEND PATCH 01/16] serial: usbtty: Fix puts function

2021-02-05 Thread Pali Rohár
This function has incorrect implementation of prepending CR prior LF. Without this patch it prepended CR prior whole string which is going to be written and let LF without leading CR. Fix this issue by inserting CR at correct place to make output on usbtty serial console more readable.

[RESEND PATCH 02/16] serial: usbtty: Send urb data in correct order

2021-02-05 Thread Pali Rohár
Function next_urb() selects the last urb data buffer from linked list to which next data from usbtty puts should be appended. But to check if TX data still exists it is needed to look at the first urb data buffer from linked list. So check for endpoint->tx_urb (first from the linked list) instead

Re: [PATCH v2 00/12] Add support for pinmux status command on beaglebone

2021-02-05 Thread Tom Rini
On Fri, Feb 05, 2021 at 07:47:19PM +0530, Lokesh Vutla wrote: > +Tom > > On 05/02/21 4:24 pm, Dario Binacchi wrote: > > Hi Lokesh, > > > >> Il 04/02/2021 19:02 Lokesh Vutla ha scritto: > >> > >> > >> On 29/01/21 3:54 am, Dario Binacchi wrote: > >>> > >>> The series was born from the need to

Re: [PATCH v1] test: Allow simple glob pattern in the test name

2021-02-05 Thread Andy Shevchenko
On Fri, Feb 05, 2021 at 08:15:25PM +0200, Andy Shevchenko wrote: > On Fri, Feb 05, 2021 at 07:34:49PM +0200, Andy Shevchenko wrote: > > On Thu, Feb 04, 2021 at 08:17:24PM -0700, Simon Glass wrote: > > ... > > > Btw, you have an issue there, i.e. if test case failed, all percentage > > after it

Re: [PATCH v1] test: Allow simple glob pattern in the test name

2021-02-05 Thread Andy Shevchenko
On Fri, Feb 05, 2021 at 07:34:49PM +0200, Andy Shevchenko wrote: > On Thu, Feb 04, 2021 at 08:17:24PM -0700, Simon Glass wrote: ... > Btw, you have an issue there, i.e. if test case failed, all percentage after > it > goes red, which is wrong. One more thing, is it known bug that either in the

Re: [PATCH v2 2/2] console: Don't start/stop console if stdio device invalid

2021-02-05 Thread Tom Rini
On Fri, Feb 05, 2021 at 12:50:56PM -0500, Tom Rini wrote: > On Fri, Feb 05, 2021 at 07:06:54PM +0200, Andy Shevchenko wrote: > > On Wed, Feb 03, 2021 at 11:50:53AM +0200, Andy Shevchenko wrote: > > > On Mon, Feb 1, 2021 at 9:29 PM Tom Rini wrote: > > > > > > > > On Fri, Jan 29, 2021 at 09:50:50AM

Re: [PATCH v2 2/2] console: Don't start/stop console if stdio device invalid

2021-02-05 Thread Tom Rini
On Fri, Feb 05, 2021 at 07:06:54PM +0200, Andy Shevchenko wrote: > On Wed, Feb 03, 2021 at 11:50:53AM +0200, Andy Shevchenko wrote: > > On Mon, Feb 1, 2021 at 9:29 PM Tom Rini wrote: > > > > > > On Fri, Jan 29, 2021 at 09:50:50AM +0100, Matthias Brugger wrote: > > > > > > > > > > > > On

qemu-arm: hang during MMU initialization

2021-02-05 Thread Igor Opaniuk
Hi, With this commit 3fa914af82("arm: qemu: implement enable_caches()") introduced, which enables instruction/data caches for qemu-arm target, U-Boot sometimes hangs during MMU init procedure : DRAM: 1 GiB initcall: 60011df8 initcall: 60011904 New Stack Pointer is: 80fffe90 initcall: 60011a20

Re: [PATCH v1] test: Allow simple glob pattern in the test name

2021-02-05 Thread Andy Shevchenko
On Thu, Feb 04, 2021 at 08:17:24PM -0700, Simon Glass wrote: > On Wed, 3 Feb 2021 at 08:32, Andy Shevchenko > wrote: > > > > When run `ut dm [test name]` allow to use simple pattern to run all tests > > started with given prefix. For example, to run all ACPI test cases: > > ut dm acpi* >

Re: [PATCH v1] test: Include /sbin to the PATH when creating ext4 disk image

2021-02-05 Thread Andy Shevchenko
On Thu, Feb 04, 2021 at 08:17:23PM -0700, Simon Glass wrote: > On Wed, 3 Feb 2021 at 08:32, Andy Shevchenko > wrote: ... > > if os.path.exists(persistent): > > c.log.action('Disk image file ' + persistent + ' already exists') > > else: > > +root_path =

Re: [GIT PULL] TI changes for v2021.04 rc2

2021-02-05 Thread Tom Rini
On Fri, Feb 05, 2021 at 11:09:32AM +0530, Lokesh Vutla wrote: > Hi Tom, > Please find the PR for master branch targeted for v2021.04-rc2 release. > Details about the PR are updated in the tag message. > > Gitlab build report: >

Re: [PATCH v4 5/5] board/km: add support for seli8 design based on nxp ls102x

2021-02-05 Thread Tom Rini
On Fri, Feb 05, 2021 at 06:06:15AM +, Aleksandar Gerasimovski wrote: > The SELI8 design is a new tdm service unit card for Hitachi-Powergrids > XMC and FOX product lines. > > It is based on NXP LS1021 SoC and it provides following interfaces: > - IFC interface for NOR, NAND and external

Re: [PATCH 4/5] board/km: move km i2c deblock declarations to a km/common.h

2021-02-05 Thread Tom Rini
On Fri, Feb 05, 2021 at 06:02:01AM +, Aleksandar Gerasimovski wrote: > Cleanup, move the declarations to keymile/common.h instead declaring them > per-board config.h > > Signed-off-by: Aleksandar Gerasimovski > Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 2/2] console: Don't start/stop console if stdio device invalid

2021-02-05 Thread Andy Shevchenko
On Wed, Feb 03, 2021 at 11:50:53AM +0200, Andy Shevchenko wrote: > On Mon, Feb 1, 2021 at 9:29 PM Tom Rini wrote: > > > > On Fri, Jan 29, 2021 at 09:50:50AM +0100, Matthias Brugger wrote: > > > > > > > > > On 28/01/2021 16:52, Andy Shevchenko wrote: > > > > On Thu, Jan 28, 2021 at 02:12:40PM

Re: [PATCH] rockchip: rk3399: Add Nanopi M4V2 board support

2021-02-05 Thread Christopher Obbard
Hi! I tested this patch, all working well apart from ethernet: Model: FriendlyElec NanoPi M4V2 Net: Error: ethernet@fe30 address not set. No ethernet found. Hit any key to stop autoboot: 0 => nfs mdio_register: non unique device name 'ethernet@fe30' mdio_register: non unique device

Re: [PATCH] mmc: fsl_esdhc_imx: use VENDORSPEC_FRC_SDCLK_ON to control card clock output

2021-02-05 Thread Tim Harvey
On Thu, Feb 4, 2021 at 11:23 PM Bough Chen wrote: > > > -Original Message- > > From: ZHIZHIKIN Andrey [mailto:andrey.zhizhi...@leica-geosystems.com] > > Sent: 2021年2月1日 19:41 > > To: Bough Chen ; Peng Fan ; > > u-boot@lists.denx.de > > Cc: dl-uboot-imx ; thar...@gateworks.com > > Subject:

Re: [PATCH v3] video: sunxi_display: Convert to DM_VIDEO

2021-02-05 Thread Jernej Škrabec
Dne petek, 05. februar 2021 ob 02:07:48 CET je Andre Przywara napisal(a): > From: Jagan Teki > > DM_VIDEO migration deadline is already expired, but around > 80 Allwinner boards are still using video in a legacy way. > > = WARNING == > This board does not

Re: U-Boot ECDSA Implementation Question

2021-02-05 Thread Alex G.
Hi Tim, On 2/5/21 8:35 AM, Simon Glass wrote: I’m a current intern at Microsoft, and one of my priorities is to enable ECDSA for U-Boot image signing/verification. Simon mentioned someone is already working on ECC, it would be great to get synced up with related progress. For signing, I will

Re: [PATCH v3] video: sunxi_display: Convert to DM_VIDEO

2021-02-05 Thread Maxime Ripard
On Fri, Feb 05, 2021 at 01:07:48AM +, Andre Przywara wrote: > From: Jagan Teki > > DM_VIDEO migration deadline is already expired, but around > 80 Allwinner boards are still using video in a legacy way. > > = WARNING == > This board does not use

[RFC PATCH v1 2/2] dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C and DM_I2C_GPIO

2021-02-05 Thread Igor Opaniuk
From: Igor Opaniuk Use CONFIG_IS_ENABLED() macro, which provides more convenient way to check $(SPL)DM_I2C/$(SPL)DM_I2C_GPIO configs for both SPL and U-Boot proper. CONFIG_IS_ENABLED(DM_I2C) expands to: - 1 if CONFIG_SPL_BUILD is undefined and CONFIG_DM_I2C is set to 'y', - 1 if

[RFC PATCH v1 0/2] Allow disabling driver model for I2C in SPL

2021-02-05 Thread Igor Opaniuk
From: Igor Opaniuk At present if U-Boot proper uses driver model for I2C, then SPL has to also. While this is desirable, it places a significant barrier to moving to driver model in some cases. For example, with a space-constrained SPL it may be necessary to enable CONFIG_SPL_OF_PLATDATA which

[RFC PATCH v1 1/2] dm: i2c: allow disabling driver model in SPL

2021-02-05 Thread Igor Opaniuk
From: Igor Opaniuk At present if U-Boot proper uses driver model for I2C, then SPL has to also. While this is desirable, it places a significant barrier to moving to driver model in some cases. For example, with a space-constrained SPL it may be necessary to enable CONFIG_SPL_OF_PLATDATA which

Re: [PATCH v4 8/9] fastboot: Allow u-boot-style partitions

2021-02-05 Thread Sean Anderson
On 2/5/21 9:46 AM, Lukasz Majewski wrote: > Hi Sean, > >> This adds support for partitions of the form "dev.hwpart:part" and >> "dev#partname". This allows one to flash to eMMC boot partitions >> without having to use CONFIG_FASTBOOT_MMC_BOOT1_SUPPORT. It also >> allows one to flash to an

Re: [PATCH] gpio-uclass: fix gpio flags save condition

2021-02-05 Thread Köry Maincent
Hi Simon, On Thu, 4 Feb 2021 19:45:22 -0700 Simon Glass wrote: > Thank you for that. I think that is because dm_gpio_set_dir_flags() > does not clear the flags first. But we now do actually update > desc->flags, where as before it was just supposed to happen. So I > think this function needs

Re: [PATCH v4 8/9] fastboot: Allow u-boot-style partitions

2021-02-05 Thread Lukasz Majewski
Hi Sean, > This adds support for partitions of the form "dev.hwpart:part" and > "dev#partname". This allows one to flash to eMMC boot partitions > without having to use CONFIG_FASTBOOT_MMC_BOOT1_SUPPORT. It also > allows one to flash to an entire device without needing >

Re: [PATCH v2 4/4] doc: update Kernel documentation build system

2021-02-05 Thread Simon Glass
Hi Heinrich, On Mon, 1 Feb 2021 at 13:39, Simon Glass wrote: > > On Tue, 26 Jan 2021 at 11:36, Heinrich Schuchardt wrote: > > > > Update the documentation build system according to Linux v5.11-rc1. > > > > Deactive the automarkup.py extension module which on Gitlab CI is > > incompatible with

[PATCH v5 10/10] doc: Document partition specifications

2021-02-05 Thread Sean Anderson
This documents the way U-Boot understands partitions specifications. This also updates the fastboot documentation for the changes in the previous commit. Signed-off-by: Sean Anderson --- Changes in v5: - Fix incorrect heading name Changes in v4: - Expand documentation, making it more

[PATCH v5 09/10] doc: Rename k210 partitions anchor

2021-02-05 Thread Sean Anderson
This anchor is only for the k210 partition layout, so rename it appropriately. This keeps it from conflicting with the (to be added) anchor for U-Boot partitions in general. Signed-off-by: Sean Anderson --- Changes in v5: - New doc/board/sipeed/maix.rst | 4 ++-- 1 file changed, 2

[PATCH v5 08/10] fastboot: Allow u-boot-style partitions

2021-02-05 Thread Sean Anderson
This adds support for partitions of the form "dev.hwpart:part" and "dev#partname". This allows one to flash to eMMC boot partitions without having to use CONFIG_FASTBOOT_MMC_BOOT1_SUPPORT. It also allows one to flash to an entire device without needing CONFIG_FASTBOOT_MMC_USER_NAME. Lastly, one

[PATCH v5 07/10] fastboot: Move part_get_info_by_name_or_alias after raw_part_get_info_by_name

2021-02-05 Thread Sean Anderson
This makes the next commit more readable by doing the move now. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v1) drivers/fastboot/fb_mmc.c | 44 +++ 1 file changed, 22 insertions(+), 22 deletions(-) diff --git

[PATCH v5 06/10] fastboot: Remove mmcpart argument from raw_part_get_info_by_name

2021-02-05 Thread Sean Anderson
The only thing mmcpart was used for was to pass to blk_dselect_hwpart. This calls blk_dselect_hwpart directly from raw_part_get_info_by_name. The error handling is dropped, but it is reintroduced in the next commit (albeit less specificly). Signed-off-by: Sean Anderson Reviewed-by: Simon Glass

[PATCH v5 05/10] part: Support string block devices in part_get_info_by_dev_and_name

2021-02-05 Thread Sean Anderson
This adds support for things like "#partname" and "0.1#partname". The block device parsing is done like in blk_get_device_part_str. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v2) Changes in v2: - Update Documentation disk/part.c | 41

[PATCH v5 04/10] part: Support getting whole disk from part_get_info_by_dev_and_name_or_num

2021-02-05 Thread Sean Anderson
This adds an option to part_get_info_by_dev_and_name_or_num to allow callers to specify whether whole-disk partitions are fine. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v1) cmd/ab_select.c | 3 ++- disk/part.c | 5 +++-- include/part.h | 6 +- 3

[PATCH v5 03/10] part: Give several functions more useful return values

2021-02-05 Thread Sean Anderson
Several functions in disk/part.c just return -1 on error. This makes them return different errnos for different failures. This helps callers differentiate between failures, even if they cannot read stdout. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v1)

[PATCH v5 02/10] test: dm: Add test for fastboot mmc partition naming

2021-02-05 Thread Sean Anderson
This test verifies the mapping between fastboot partitions and partitions as understood by U-Boot. It also tests the creation of GPT partitions, though that is not the primary goal. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- Changes in v5: - Don't build fastboot test unless we

[PATCH v5 01/10] mmc: sandbox: Add support for writing

2021-02-05 Thread Sean Anderson
This adds support writing to the sandbox mmc backed by an in-memory buffer. The unit test has been updated to test reading, writing, and erasing. I'm not sure what MMCs erase to; I picked 0, but if it's 0xFF then that can be easily changed. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass

[PATCH v5 00/10] fastboot: Add better support for specifying partitions

2021-02-05 Thread Sean Anderson
This series adds support for flashing eMMC boot partitions, and for flashing whole partitions. Specifically, it does this by using the existing U-Boot naming scheme to specify partitions, and not by adding new KConfig options. I have added tests for partition naming, but not for the whole flash

Re: U-Boot ECDSA Implementation Question

2021-02-05 Thread Simon Glass
Hi Tim +Alexandru Gagniuc On Thu, 4 Feb 2021 at 15:01, Tim Romanski wrote: > > Hello, > > > > I’m a current intern at Microsoft, and one of my priorities is to enable > ECDSA for U-Boot image signing/verification. Simon mentioned someone is > already working on ECC, it would be great to get

[PATCH 4/4] arm: mvebu: turris_mox: Enable NVMe support

2021-02-05 Thread Pali Rohár
From: Marek Behún NVMe drives can be connected to Turris MOX via MOX B and MOX G extensions. Signed-off-by: Marek Behún --- configs/turris_mox_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/turris_mox_defconfig b/configs/turris_mox_defconfig index 27a5179fe5..f938fbb475

[PATCH 3/4] arm: mvebu: turris_mox: Enable CONFIG_USB_XHCI_PCI

2021-02-05 Thread Pali Rohár
USB devices can be connected to Turris MOX also via MOX F extension which contains VL805 PCIe based USB 3.0 controller. Signed-off-by: Pali Rohár --- configs/turris_mox_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/turris_mox_defconfig b/configs/turris_mox_defconfig

[PATCH 0/4] arm: mvebu: turris_mox: Fix and enable PCIe devices

2021-02-05 Thread Pali Rohár
This patch series fix PCIe on Armada 3720 and enable PCIe devices (USB and NVMe) on Turris MOX. Marek Behún (1): arm: mvebu: turris_mox: Enable NVMe support Pali Rohár (3): arm: a37xx: pci: Set Max Payload Size and Max Read Request Size to 512 bytes arm: mvebu: turris_mox: Enable

[PATCH 1/4] arm: a37xx: pci: Set Max Payload Size and Max Read Request Size to 512 bytes

2021-02-05 Thread Pali Rohár
Fix usage of VL805 XHCI PCIe controller when it is connected via PCIe to Armada 3720 SOC. Without this U-Boot crashes when trying to access enumerated USB devices connected to this XHCI PCIe controller. This should be done according to the PCIe Link Initialization sequence, as defined in Marvell

[PATCH 2/4] arm: mvebu: turris_mox: Enable CONFIG_PCI_PNP

2021-02-05 Thread Pali Rohár
PCIe devices do not work in U-Boot without proper initialization and configuration of PCI config space like the PCI_BASE_ADDRESS_0 register. Signed-off-by: Pali Rohár --- configs/turris_mox_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/turris_mox_defconfig

Re: [PATCH v2 00/12] Add support for pinmux status command on beaglebone

2021-02-05 Thread Lokesh Vutla
+Tom On 05/02/21 4:24 pm, Dario Binacchi wrote: > Hi Lokesh, > >> Il 04/02/2021 19:02 Lokesh Vutla ha scritto: >> >> >> On 29/01/21 3:54 am, Dario Binacchi wrote: >>> >>> The series was born from the need to check the pinmux setting of a >>> peripheral on a beaglebone board. I then ran the

Re: Pull request for UEFI sub-system for efi-2021-04-rc2

2021-02-05 Thread Tom Rini
On Thu, Feb 04, 2021 at 09:26:06PM +0100, Heinrich Schuchardt wrote: > Dear Tom, > > The following changes since commit fdcb93e1709ab1a2ebb562455621617c29e2099c: > > Merge branch '2021-02-01-assorted-fixes' (2021-02-02 09:24:10 -0500) > > are available in the Git repository at: > >

Re: [RFC PATCH 07/13] mux: mmio: Only complain about idle-states if it is malformed

2021-02-05 Thread Sean Anderson
On 2/5/21 6:06 AM, Pratyush Yadav wrote: On 04/02/21 11:39PM, Sean Anderson wrote: idle-states is optional, so don't complain if it doesn't exist. This commit doesn't just silence the complaint. It also changes the behavior of the function if the error code is ENODATA or EOVERFLOW. Make sure

[HELP] binman: main.py: not found

2021-02-05 Thread Buhrow, Simon
Hi, I´m doing my first steps with u-boot. But I can´t run `make all` successfully. I get the following error when running `make all`: ``` ./tools/binman/binman: 1: ./tools/binman/binman: main.py: not found Makefile:1024: recipe for target 'all' failed make: *** [all] Error 127 ``` I´ve

[PATCH 8/8] arm: remove set_dacr/get_dacr functions

2021-02-05 Thread Patrick Delaunay
Remove the unused function set_dacr/get_dacr Serie-cc: Ard Biesheuvel Serie-cc: R Sricharan Signed-off-by: Patrick Delaunay --- arch/arm/include/asm/system.h | 14 -- 1 file changed, 14 deletions(-) diff --git a/arch/arm/include/asm/system.h b/arch/arm/include/asm/system.h index

[PATCH 0/8]

2021-02-05 Thread Patrick Delaunay
Serie proposed after analysis in [1], to correctly handle Domain Access Control Register (DACR) and activate the domain checking in MMU against the permission bits in the translation tables and avoids prefetching issue on ARMv7, as indicated in [1]. I propose a clean and general solution for

[PATCH 7/8] arm: cp15: remove weak function arm_init_domains

2021-02-05 Thread Patrick Delaunay
Remove the unused weak function arm_init_domains used to change the DACR value. Signed-off-by: Patrick Delaunay --- arch/arm/cpu/armv7/cache_v7.c | 3 --- arch/arm/include/asm/cache.h | 1 - arch/arm/lib/cache-cp15.c | 6 -- 3 files changed, 10 deletions(-) diff --git

[PATCH 4/8] arm: cosmetic: align TTB_SECT define value

2021-02-05 Thread Patrick Delaunay
Align TTB_SECT define value with previous value. Signed-off-by: Patrick Delaunay --- arch/arm/include/asm/system.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/system.h b/arch/arm/include/asm/system.h index 9db64dd69d..289b820a6d 100644 ---

[PATCH 3/8] arm: remove TTB_SECT_XN_MASK in DCACHE_WRITETHROUGH

2021-02-05 Thread Patrick Delaunay
The normal memory (other that DCACHE_OFF) should be executable by default, only the device memory (DCACHE_OFF) used for peripheral access should have the bit execute never (TTB_SECT_XN_MASK). Signed-off-by: Patrick Delaunay --- arch/arm/include/asm/system.h | 2 +- 1 file changed, 1

[PATCH 5/8] arm: cp15: update DACR value to activate access control

2021-02-05 Thread Patrick Delaunay
Update the initial value of Domain Access Control Register (DACR) and set by default the access permission to client (DACR_Dn_CLIENT = 1U) for each of the 16 domains and no more to all-supervisor (DACR_Dn_MANAGER = 3U). This patch allows to activate the domain checking in MMU against the

[PATCH 6/8] arm: omap2: remove arm_init_domains

2021-02-05 Thread Patrick Delaunay
Remove the arm_init_domains and the DACR update, as it is now done in ARMv7 CP15 level. Signed-off-by: Patrick Delaunay --- arch/arm/mach-omap2/omap-cache.c | 17 - 1 file changed, 17 deletions(-) diff --git a/arch/arm/mach-omap2/omap-cache.c b/arch/arm/mach-omap2/omap-cache.c

[PATCH 2/8] stm32mp: update the mmu configuration for SPL and prereloc

2021-02-05 Thread Patrick Delaunay
Overidde the weak function dram_bank_mmu_setup() to set the DDR (preloc case) or the SYSRAM (in SPL case) executable before to enable the MMU and configure DACR. This weak function is called in dcache_enable/mmu_setup. This patchs avoids a permission access issue when the DDR is marked

[PATCH 1/8] stm32mp: update MMU config before the relocation

2021-02-05 Thread Patrick Delaunay
Mark the top of ram, used for relocated U-Boot as a normal memory (cacheable and executable) to avoid permission access issue when U-Boot jumps to this relocated code. When MMU is activated in pre-reloc stage; only the beginning of DDR is marked executable. This patch avoids access issue when

RE: [PATCH] mmc: fsl_esdhc_imx: use VENDORSPEC_FRC_SDCLK_ON to control card clock output

2021-02-05 Thread ZHIZHIKIN Andrey
Hello Haibo, > -Original Message- > From: Bough Chen > Sent: Friday, February 5, 2021 8:24 AM > To: ZHIZHIKIN Andrey ; Peng Fan > ; u-boot@lists.denx.de > Cc: dl-uboot-imx ; thar...@gateworks.com > Subject: RE: [PATCH] mmc: fsl_esdhc_imx: use VENDORSPEC_FRC_SDCLK_ON to > control card

[v5 33/33] configs: lx2160aqds: enable CMD_GPIO

2021-02-05 Thread Biwen Li
From: Biwen Li Enable CMD_GPIO for board lx2160aqds Signed-off-by: Biwen Li --- configs/lx2160aqds_tfa_SECURE_BOOT_defconfig | 1 + configs/lx2160aqds_tfa_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/lx2160aqds_tfa_SECURE_BOOT_defconfig

[v5 32/33] configs: lx2160ardb: enable CMD_GPIO

2021-02-05 Thread Biwen Li
From: Biwen Li Enable CMD_GPIO for board lx2160ardb Signed-off-by: Biwen Li --- configs/lx2160ardb_tfa_SECURE_BOOT_defconfig | 1 + configs/lx2160ardb_tfa_defconfig | 1 + configs/lx2160ardb_tfa_stmm_defconfig| 1 + 3 files changed, 3 insertions(+) diff --git

[v5 31/33] configs: ls1088ardb: enable DM_GPIO and CMD_GPIO

2021-02-05 Thread Biwen Li
From: Biwen Li Enable DM_GPIO and CMD_GPIO for board ls1088ardb Signed-off-by: Biwen Li --- configs/ls1088ardb_qspi_SECURE_BOOT_defconfig| 2 ++ configs/ls1088ardb_qspi_defconfig| 2 ++ configs/ls1088ardb_sdcard_qspi_SECURE_BOOT_defconfig | 2 ++

[v5 30/33] configs: ls1088aqds: enable DM_GPIO and CMD_GPIO

2021-02-05 Thread Biwen Li
From: Biwen Li Enable DM_GPIO and CMD_GPIO for board ls1088aqds Signed-off-by: Biwen Li --- configs/ls1088aqds_defconfig | 2 ++ configs/ls1088aqds_qspi_SECURE_BOOT_defconfig | 2 ++ configs/ls1088aqds_qspi_defconfig | 2 ++ configs/ls1088aqds_sdcard_ifc_defconfig

[v5 29/33] configs: ls2088aqds: enable CMD_GPIO

2021-02-05 Thread Biwen Li
From: Biwen Li Enable CMD_GPIO for board ls2088aqds Signed-off-by: Biwen Li --- configs/ls2088aqds_tfa_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/ls2088aqds_tfa_defconfig b/configs/ls2088aqds_tfa_defconfig index 9e6e9f63ad..f5e8cfbeb4 100644 ---

[v5 28/33] configs: ls2088ardb: enable DM_GPIO and CMD_GPIO

2021-02-05 Thread Biwen Li
From: Biwen Li Enable DM_GPIO and CMD_GPIO for board ls2088ardb Signed-off-by: Biwen Li --- configs/ls2088ardb_qspi_SECURE_BOOT_defconfig | 2 ++ configs/ls2088ardb_qspi_defconfig | 2 ++ configs/ls2088ardb_tfa_SECURE_BOOT_defconfig | 1 + configs/ls2088ardb_tfa_defconfig

  1   2   >