[PATCH 2/2] clk: sunxi: Add support for the D1 CCU

2022-04-30 Thread Samuel Holland
Since the D1 CCU binding is defined, we can add support for its gates/resets, following the pattern of the existing drivers. Signed-off-by: Samuel Holland --- drivers/clk/sunxi/Kconfig | 6 + drivers/clk/sunxi/Makefile| 1 + drivers/clk/sunxi/clk_d1.c

[PATCH 1/2] clk: sunxi: Add additional RTC compatible strings

2022-04-30 Thread Samuel Holland
Compatible strings for some new RTC hardware variants were added to the binding. Add them to the driver in preparation for supporting those new SoCs. Signed-off-by: Samuel Holland --- drivers/clk/sunxi/clk_sun6i_rtc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH 00/12] sunxi: Devicetree sync from Linux v5.18-rc1

2022-04-30 Thread Andre Przywara
On Fri, 29 Apr 2022 21:38:58 -0500 Samuel Holland wrote: Hi Samuel, > On 4/29/22 7:08 PM, Andre Przywara wrote: > > On Fri, 29 Apr 2022 14:14:19 -0400 > > Tom Rini wrote: > > > > Hi, > > > >> On Fri, Apr 29, 2022 at 06:05:03PM +0200, Mark Kettenis wrote: > Date: Fri, 29 Apr 2022

Re: [PATCH] net: dm9000: Correctly handle empty FIFO

2022-04-30 Thread Ramon Fried
On Mon, Apr 25, 2022 at 9:28 PM Marek Vasut wrote: > > Assign packet pointer only in case the MAC reports anything in the FIFO. > In case the MAC indicates empty FIFO, return 0 to pass that information > to the network stack. > > Signed-off-by: Marek Vasut > Cc: Joe Hershberger > Cc: Ramon

Re: [PATCH] net: e1000: Depend on CONFIG_PCI

2022-04-30 Thread Ramon Fried
On Tue, Apr 26, 2022 at 9:35 PM Sean Anderson wrote: > > This driver depends on PCI. Update the Kconfig accordingly. > > Signed-off-by: Sean Anderson > --- > > drivers/net/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig > index

Re: [PATCH u-boot-marvell 19/19] net: mvneta: Drop unneeded macro

2022-04-30 Thread Ramon Fried
On Wed, Apr 27, 2022 at 1:42 PM Marek Behún wrote: > > From: Marek Behún > > Macro MVNETA_GMAC_FORCE_LINK_UP can be dropped from value assignment in > fixed link case, since it's value is written into the register later in > the function for link-down-to-link-up case. The value is written as >

Re: [PATCH u-boot-marvell 18/19] net: mvneta: Disable fixed PHY code if PHY_FIXED is not compiled in

2022-04-30 Thread Ramon Fried
On Wed, Apr 27, 2022 at 1:42 PM Marek Behún wrote: > > From: Marek Behún > > Guard the code handling the fixed PHY case by > CONFIG_IS_ENABLED(PHY_FIXED). > > Signed-off-by: Marek Behún > --- > drivers/net/mvneta.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git

Re: [PATCH u-boot-marvell 17/19] net: mvneta: Drop fixed_link member from private struct

2022-04-30 Thread Ramon Fried
On Wed, Apr 27, 2022 at 1:42 PM Marek Behún wrote: > > From: Marek Behún > > Since this member is checked only at two places drop it and inline it's > usage. > > Signed-off-by: Marek Behún > --- > drivers/net/mvneta.c | 7 ++- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff

Re: [PATCH u-boot-marvell 16/19] net: mvneta: Write PHY address just before enabling HW polling

2022-04-30 Thread Ramon Fried
On Wed, Apr 27, 2022 at 1:42 PM Marek Behún wrote: > > From: Marek Behún > > Write PHY address just before enabling HW polling of the PHY. > > Signed-off-by: Marek Behún > --- > drivers/net/mvneta.c | 6 ++ > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git

Re: [PATCH u-boot-marvell 15/19] net: mvneta: Convert to use PHY_FIXED for fixed-link

2022-04-30 Thread Ramon Fried
On Wed, Apr 27, 2022 at 1:42 PM Marek Behún wrote: > > From: Marek Behún > > Stop parsing fixed-link in the MAC driver. Instead support only PHY mode > and let the fixed PHY driver handle the fixed-link case. > > Enable CONFIG_PHY_FIXED for mvneta boards that need it: Turris Omnia and >

Re: [PATCH u-boot-marvell 14/19] net: mvneta: Rename CONFIG_NR_CPUS to MVNETA_NR_CPUS

2022-04-30 Thread Ramon Fried
On Wed, Apr 27, 2022 at 1:42 PM Marek Behún wrote: > > From: Marek Behún > > The CONFIG_* macros are reserved for Kconfig. This was probably done > when this driver was being imported from Linux. Rename the macro. > > Signed-off-by: Marek Behún > --- > drivers/net/mvneta.c | 4 ++-- > 1 file

Re: [PATCH u-boot-marvell 13/19] net: mvneta: Don't check for CONFIG_PHYLIB

2022-04-30 Thread Ramon Fried
On Wed, Apr 27, 2022 at 1:42 PM Marek Behún wrote: > > From: Marek Behún > > Drop checking for CONFIG_PHYLIB in mvneta, this is already done in > Kconfig. > > Signed-off-by: Marek Behún > --- > drivers/net/mvneta.c | 4 > 1 file changed, 4 deletions(-) > > diff --git

Re: [PATCH u-boot-marvell 12/19] net: mvneta: Drop unnecessary space

2022-04-30 Thread Ramon Fried
On Wed, Apr 27, 2022 at 1:42 PM Marek Behún wrote: > > From: Marek Behún > > Drop unnecessary space in mvneta_adjust_link(). > > Signed-off-by: Marek Behún > --- > drivers/net/mvneta.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/mvneta.c

Re: [PATCH u-boot-marvell 11/19] net: mvneta: Use bool instead of int for boolean variable

2022-04-30 Thread Ramon Fried
On Wed, Apr 27, 2022 at 1:42 PM Marek Behún wrote: > > From: Marek Behún > > Use the bool type instead of int for status_change variable. > > Signed-off-by: Marek Behún > --- > drivers/net/mvneta.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git

Re: [PATCH u-boot-marvell 10/19] net: mvneta: Drop one indentation level in mvneta_adjust_link()

2022-04-30 Thread Ramon Fried
On Wed, Apr 27, 2022 at 1:42 PM Marek Behún wrote: > > From: Marek Behún > > Drop one indentation level in the mvneta_adjust_link() function. > > Signed-off-by: Marek Behún > --- > drivers/net/mvneta.c | 38 ++ > 1 file changed, 18 insertions(+), 20

Re: [PATCH u-boot-marvell 09/19] net: mvneta: Fix unused variable warning if DM_GPIO is disabled

2022-04-30 Thread Ramon Fried
On Wed, Apr 27, 2022 at 1:42 PM Marek Behún wrote: > > From: Marek Behún > > The `ret` variable in mvneta_probe() is unused if DM_GPIO is disabled. > > Since the variable is used only once after assigning value, we can > inline the usage and drop the variable. > > Signed-off-by: Marek Behún >

Re: [PATCH u-boot-marvell 08/19] net: mvneta: Don't register MDIO bus

2022-04-30 Thread Ramon Fried
On Wed, Apr 27, 2022 at 1:42 PM Marek Behún wrote: > > From: Marek Behún > > This MDIO bus is now handled by a proper mvmdio DM driver. Remove it > from mvneta. > > Signed-off-by: Marek Behún > --- > drivers/net/mvneta.c | 143 +-- > 1 file changed, 2

Re: [PATCH u-boot-marvell 04/19] net: mvneta: Remember fixed link instead of PHY address in priv data

2022-04-30 Thread Ramon Fried
On Wed, Apr 27, 2022 at 1:42 PM Marek Behún wrote: > > From: Marek Behún > > We don't need to remember PHY address anymore, because since using DM > MDIO for connecting PHY, the address is parsed by mdio-uclass from > the ofnode. > > But the driver uses a special value of the address to signal

Re: [PATCH u-boot-marvell 03/19] net: mvneta: Use DM MDIO API for connecting PHY

2022-04-30 Thread Ramon Fried
On Wed, Apr 27, 2022 at 1:42 PM Marek Behún wrote: > > From: Marek Behún > > Use the modern DM MDIO API for connecting PHY in the mvneta driver. > > This requires enabling MVMDIO driver in several config files. > > Signed-off-by: Marek Behún > --- > configs/clearfog_defconfig

Re: [PATCH u-boot-marvell 02/19] net: mvneta: Fix 10Mbps speed

2022-04-30 Thread Ramon Fried
On Wed, Apr 27, 2022 at 1:42 PM Marek Behún wrote: > > From: Marek Behún > > In mvneta_adjust_link() we need to set MII_SPEED bit only if PHY reports > the speed at 100Mbps. > > Signed-off-by: Marek Behún > --- > drivers/net/mvneta.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >

Re: [PATCH u-boot-marvell 06/19] net: mdio-uclass: add dm_phy_find_by_ofnode() helper

2022-04-30 Thread Ramon Fried
On Wed, Apr 27, 2022 at 1:42 PM Marek Behún wrote: > > From: Marek Behún > > Add helper to resolve PHY node from it's ofnode via DM MDIO subsystem. > > Signed-off-by: Marek Behún > --- > include/miiphy.h | 9 + > net/mdio-uclass.c | 22 ++ > 2 files changed, 31

Re: [PATCH u-boot-marvell 01/19] net: mvneta: Get rid of platdata

2022-04-30 Thread Ramon Fried
On Wed, Apr 27, 2022 at 1:42 PM Marek Behún wrote: > > From: Marek Behún > > Drop .of_to_plat() from the mvneta driver and parse the two properties > in .probe(). > > Signed-off-by: Marek Behún > --- > drivers/net/mvneta.c | 24 > 1 file changed, 4 insertions(+), 20

Re: [PATCH v5 07/12] efi_loader: disk: a helper function to create efi_disk objects from udevice

2022-04-30 Thread Johan Jonker
On 4/19/22 03:05, AKASHI Takahiro wrote: > > diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig > index bc518d7a413b..6b245f50a726 100644 > --- a/lib/efi_loader/Kconfig > +++ b/lib/efi_loader/Kconfig > @@ -14,6 +14,8 @@ config EFI_LOADER > depends on DM_ETH || !NET >

Re: [PATCH 03/15] imx: imx8mm_mx8menlo: Enable DM_SERIAL

2022-04-30 Thread Adam Ford
On Sat, Apr 30, 2022 at 1:04 PM Marek Vasut wrote: > > On 4/30/22 19:32, Adam Ford wrote: > > On Sat, Apr 30, 2022 at 12:00 PM Marek Vasut wrote: > >> > >> On 4/30/22 14:43, Peng Fan (OSS) wrote: > >>> From: Peng Fan > >>> > >>> Enable CONFIG_DM_SERIAL. uart2 and its pinmux was already > >>>

Re: [PATCH 03/15] imx: imx8mm_mx8menlo: Enable DM_SERIAL

2022-04-30 Thread Marek Vasut
On 4/30/22 19:32, Adam Ford wrote: On Sat, Apr 30, 2022 at 12:00 PM Marek Vasut wrote: On 4/30/22 14:43, Peng Fan (OSS) wrote: From: Peng Fan Enable CONFIG_DM_SERIAL. uart2 and its pinmux was already marked with u-boot,dm-spl. Signed-off-by: Peng Fan ---

Re: [PATCH 03/15] imx: imx8mm_mx8menlo: Enable DM_SERIAL

2022-04-30 Thread Adam Ford
On Sat, Apr 30, 2022 at 12:00 PM Marek Vasut wrote: > > On 4/30/22 14:43, Peng Fan (OSS) wrote: > > From: Peng Fan > > > > Enable CONFIG_DM_SERIAL. uart2 and its pinmux was already > > marked with u-boot,dm-spl. > > > > Signed-off-by: Peng Fan > > --- > > board/menlo/mx8menlo/mx8menlo.c | 9

Re: [PATCH v3 14/15] net: mediatek: add support for MediaTek MT7621 SoC

2022-04-30 Thread Ramon Fried
On Thu, Apr 28, 2022 at 1:38 PM Weijie Gao wrote: > > This patch adds GMAC support for MediaTek MT7621 SoC. > MT7621 has the same GMAC/Switch configuration as MT7623. > > Signed-off-by: Weijie Gao > --- > v3 changes: > Add register remap needed by mt7621 > Fix use of noncached_alloc > v2

Re: [PATCH 03/15] imx: imx8mm_mx8menlo: Enable DM_SERIAL

2022-04-30 Thread Marek Vasut
On 4/30/22 14:43, Peng Fan (OSS) wrote: From: Peng Fan Enable CONFIG_DM_SERIAL. uart2 and its pinmux was already marked with u-boot,dm-spl. Signed-off-by: Peng Fan --- board/menlo/mx8menlo/mx8menlo.c | 9 - configs/imx8mm-mx8menlo_defconfig | 1 +

[RFC 3/3] imx8: imx8mm_beacon: Remove manual UART clock initialization

2022-04-30 Thread Adam Ford
SPL has a manual call to init_uart_clk in order to start the clocks. If the CCF has the UART clocks available, the serial driver can enable and query the clock when needed, so the manual call to init_uart_clk can be dropped. Signed-off-by: Adam Ford diff --git a/board/beacon/imx8mm/spl.c

[RFC 2/3] serial: mxc: Enable getting and enabling clocks with CCF Composite

2022-04-30 Thread Adam Ford
Certain platforms have the UART clocks exposed through the CCF. When they are, it's possible to enable and query the clock(s) for a given UART. Add support getting, enabling, and querying the clocks. Signed-off-by: Adam Ford diff --git a/drivers/serial/serial_mxc.c b/drivers/serial/serial_mxc.c

[RFC 1/3] clk: imx8mm: Add UART clocks

2022-04-30 Thread Adam Ford
There are four UART's with various clocks assoicated with each. Add them to the clock driver so they can be enabled and queried by the serial driver as needed. Signed-off-by: Adam Ford diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index 542aa31f7a..8566c3e4a0 100644

[RFC 0/3] imx8m: Remove manual UART clock initialization

2022-04-30 Thread Adam Ford
This series is an RFC focussing on only the i.MX8M Mini until feedback is received when the series can be expanded to other imx boards. This series adds the UART clocks to the CCF, adds functions to the serial driver to fetch, enable, and query the clock(s), and finally removes the manual clock

Re: [PATCH 04/15] imx: imx8m[m/n]_beacon: Enable SPL_DM_SERIAL

2022-04-30 Thread Adam Ford
On Sat, Apr 30, 2022 at 7:01 AM Peng Fan (OSS) wrote: > > From: Peng Fan > > Enable CONFIG_SPL_DM_SERIAL. uart2 and its pinmux was already > marked with u-boot,dm-spl. > Move preloader_console_init after spl_init to make sure driver > model work. Thanks for doing this! > Tested-by: Adam Ford

Re: [PATCH 1/1] clk: scmi: fix scmi_clk_get_attibute()

2022-04-30 Thread Sean Anderson
On 4/26/22 5:26 PM, Heinrich Schuchardt wrote: Local variable out.name lives on the stack and therefore cannot be returned directly. Move the strdup() call into the function. (Coverity 352460) Fixes: 7c33f78983c3 ("clk: scmi: register scmi clocks with CCF") Signed-off-by: Heinrich Schuchardt

[PATCH 1/1] test: fix some pylint problems in test_capsule_firmware_raw.py

2022-04-30 Thread Heinrich Schuchardt
* improve doc-string formatting * remove unused imports Signed-off-by: Heinrich Schuchardt --- .../test_capsule_firmware_raw.py | 42 +-- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/test/py/tests/test_efi_capsule/test_capsule_firmware_raw.py

Re: [PATCH 2/3] imx: imx8mq: default select CLK_IMX8MQ

2022-04-30 Thread Adam Ford
On Fri, Apr 29, 2022 at 2:20 AM Peng Fan (OSS) wrote: > > From: Peng Fan > > Since the power domain driver default select CONFIG_CLK, so we will > meet lots failures without CLK_IMX8MQ, so default select it. > There is a related patch [1] that I submitted for all imx8m SoC's t select their

Re: [PATCH v3 00/15] Add support for MediaTek MT7621 SoC

2022-04-30 Thread Marek Behún
On Sat, 30 Apr 2022 21:31:15 +0800 Weijie Gao wrote: > On Fri, 2022-04-29 at 17:13 +0200, Marek Behún wrote: > > On Fri, 29 Apr 2022 15:59:44 +0800 > > Weijie Gao wrote: > > > > > On Fri, 2022-04-29 at 08:15 +0200, Stefan Roese wrote: > > > > Hi Weijie > > > > > > > > On 4/29/22 03:23,

[PATCH 1/1] tools: mkimage: set OPENSSL_API_COMPAT

2022-04-30 Thread Heinrich Schuchardt
Building with OpenSSL 3.0 produces warnings like: ../tools/sunxi_toc0.c:846:17: warning: ‘RSA_get0_d’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 846 | if (root_key && RSA_get0_d(root_key)) { | ^~ As OpenSSL 3.0 is not available in elder

Re: [PATCH 11/15] imx: imx8mn_bsh_smm_s2: drop CONFIG_MXC_UART_BASE

2022-04-30 Thread Michael Nazzareno Trimarchi
Hi Il sab 30 apr 2022, 14:02 Peng Fan (OSS) ha scritto: > From: Peng Fan > > CONFIG_DM_SERIAL is enabled, this macro not needed. > > Signed-off-by: Peng Fan > --- > include/configs/imx8mn_bsh_smm_s2_common.h | 2 -- > 1 file changed, 2 deletions(-) > > diff --git

Re: [PATCH v5 13/17] efi_loader: menu-driven addition of UEFI boot option

2022-04-30 Thread Heinrich Schuchardt
On 4/29/22 12:56, Heinrich Schuchardt wrote: On 4/28/22 18:33, Heinrich Schuchardt wrote: On 4/28/22 10:09, Masahisa Kojima wrote: This commit supports the menu-driven UEFI boot option addition. User can select the block device volume having efi_simple_file_system_protocol and select the file

Re: [PATCH 1/1] doc: fix typos in bootmenu.rst

2022-04-30 Thread Bin Meng
On Sat, Apr 30, 2022 at 4:03 AM Heinrich Schuchardt wrote: > > %s/cammand/command/ > %s/sequencies/sequences/ > > Signed-off-by: Heinrich Schuchardt > --- > doc/usage/cmd/bootmenu.rst | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Reviewed-by: Bin Meng

Re: [PATCH 00/15] imx8m: convert to DM_SERIAL

2022-04-30 Thread Fabio Estevam
Hi Peng, On Sat, Apr 30, 2022 at 9:01 AM Peng Fan (OSS) wrote: > > From: Peng Fan > > This patchset is to convert some i.MX8M boards to DM SERIAL > > Note: this is based on my experience on i.MX8M*-EVK from NXP, I not have > the following boards. If possible, please test. The series looks

[PATCH 15/15] imx: imx8mq-phandle: enable CONFIG_DM_SERIAL

2022-04-30 Thread Peng Fan (OSS)
From: Peng Fan Marked related nodes as u-boot,dm-spl for serial driver model Enable CONFIG_DM_SERIAL Signed-off-by: Peng Fan --- arch/arm/dts/imx8mq-phanbell-u-boot.dtsi | 8 configs/imx8mq_phanbell_defconfig| 1 + 2 files changed, 9 insertions(+) diff --git

[PATCH 14/15] imx: imx8mq-pico: enable CONFIG_DM_SERIAL

2022-04-30 Thread Peng Fan (OSS)
From: Peng Fan Marked related nodes as u-boot,dm-spl for serial driver model Enable CONFIG_DM_SERIAL Signed-off-by: Peng Fan --- arch/arm/dts/imx8mq-pico-pi-u-boot.dtsi | 9 + configs/pico-imx8mq_defconfig | 1 + 2 files changed, 10 insertions(+) create mode 100644

[PATCH 13/15] imx: imx8mq-cm: enable CONFIG_DM_SERIAL

2022-04-30 Thread Peng Fan (OSS)
From: Peng Fan Marked related nodes as u-boot,dm-spl for serial driver model Enable CONFIG_DM_SERIAL Signed-off-by: Peng Fan --- arch/arm/dts/imx8mq-cm-u-boot.dtsi | 8 configs/imx8mq_cm_defconfig| 1 + 2 files changed, 9 insertions(+) diff --git

[PATCH 12/15] imx: dts: move common changes to imx8mq-u-boot.dtsi

2022-04-30 Thread Peng Fan (OSS)
From: Peng Fan Move some common changes to imx8mq-u-boot.dtsi, so others could reuse it Signed-off-by: Peng Fan --- arch/arm/dts/imx8mq-evk-u-boot.dtsi | 24 arch/arm/dts/imx8mq-u-boot.dtsi | 24 2 files changed, 24 insertions(+), 24

[PATCH 11/15] imx: imx8mn_bsh_smm_s2: drop CONFIG_MXC_UART_BASE

2022-04-30 Thread Peng Fan (OSS)
From: Peng Fan CONFIG_DM_SERIAL is enabled, this macro not needed. Signed-off-by: Peng Fan --- include/configs/imx8mn_bsh_smm_s2_common.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/configs/imx8mn_bsh_smm_s2_common.h b/include/configs/imx8mn_bsh_smm_s2_common.h index

[PATCH 10/15] imx: kontron-sl-mx8mm: enable DM_SERIAL

2022-04-30 Thread Peng Fan (OSS)
From: Peng Fan Enable CONFIG_DM_SERIAL. uart and its pinmux was already marked with u-boot,dm-spl. Move preloader_console_init after spl_init to make sure driver model work. Signed-off-by: Peng Fan --- board/kontron/sl-mx8mm/spl.c | 12 ++-- configs/kontron-sl-mx8mm_defconfig |

[PATCH 09/15] imx: imx8mm_edm_sbc: Enable SPL_DM_SERIAL

2022-04-30 Thread Peng Fan (OSS)
From: Peng Fan Enable CONFIG_SPL_DM_SERIAL. uart and its pinmux was already marked with u-boot,dm-spl. Move preloader_console_init after spl_early_init to make sure driver model work. Signed-off-by: Peng Fan --- board/data_modul/imx8mm_edm_sbc/spl.c | 12 ++--

[PATCH 07/15] imx: imx8m[m/p]_phycore: Enable DM_SERIAL

2022-04-30 Thread Peng Fan (OSS)
From: Peng Fan Enable CONFIG_DM_SERIAL. uart and its pinmux was already marked with u-boot,dm-spl. Move preloader_console_init after spl_early_init to make sure driver model work. Signed-off-by: Peng Fan --- board/phytec/phycore_imx8mm/spl.c | 12 ++--

[PATCH 08/15] imx: imx8mn_var_som: enable DM_SERIAL

2022-04-30 Thread Peng Fan (OSS)
From: Peng Fan Enable CONFIG_DM_SERIAL. uart and its pinmux was already marked with u-boot,dm-spl. Move preloader_console_init after spl_init to make sure driver model work. Signed-off-by: Peng Fan --- board/variscite/imx8mn_var_som/spl.c | 11 ++- configs/imx8mn_var_som_defconfig

[PATCH 06/15] imx: imx8mm_icore: Enable SPL_DM_SERIAL

2022-04-30 Thread Peng Fan (OSS)
From: Peng Fan Enable CONFIG_SPL_DM_SERIAL. uart2 and its pinmux was already marked with u-boot,dm-spl. Move preloader_console_init after spl_early_init to make sure driver model work. Signed-off-by: Peng Fan --- board/engicam/imx8mm/spl.c| 14 +++---

[PATCH 05/15] imx: imx8mm-cl-iot-gate: Enable DM_SERIAL

2022-04-30 Thread Peng Fan (OSS)
From: Peng Fan Enable CONFIG_DM_SERIAL. uart3 and its pinmux was already marked with u-boot,dm-spl. Move preloader_console_init after spl_early_init to make sure driver model work. Signed-off-by: Peng Fan --- board/compulab/imx8mm-cl-iot-gate/spl.c| 12 ++--

[PATCH 04/15] imx: imx8m[m/n]_beacon: Enable SPL_DM_SERIAL

2022-04-30 Thread Peng Fan (OSS)
From: Peng Fan Enable CONFIG_SPL_DM_SERIAL. uart2 and its pinmux was already marked with u-boot,dm-spl. Move preloader_console_init after spl_init to make sure driver model work. Signed-off-by: Peng Fan --- board/beacon/imx8mm/spl.c | 12 ++-- board/beacon/imx8mn/spl.c

[PATCH 03/15] imx: imx8mm_mx8menlo: Enable DM_SERIAL

2022-04-30 Thread Peng Fan (OSS)
From: Peng Fan Enable CONFIG_DM_SERIAL. uart2 and its pinmux was already marked with u-boot,dm-spl. Signed-off-by: Peng Fan --- board/menlo/mx8menlo/mx8menlo.c | 9 - configs/imx8mm-mx8menlo_defconfig | 1 + include/configs/imx8mm-mx8menlo.h | 3 --- 3 files changed, 1 insertion(+),

[PATCH 02/15] imx: imx8m[m/n/p]_venice: Enable SPL_DM_SERIAL

2022-04-30 Thread Peng Fan (OSS)
From: Peng Fan Enable CONFIG_SPL_DM_SERIAL. uart2 and its pinmux was already marked with u-boot,dm-spl. Move preloader_console_init after spl_early_init to make sure driver model work. Signed-off-by: Peng Fan --- board/gateworks/venice/spl.c| 22 ++

[PATCH 01/15] imx: imx8mp_rsb3720a1: convert to DM_SERIAL

2022-04-30 Thread Peng Fan (OSS)
From: Peng Fan Enable CONFIG_DM_SERIAL. uart2 and its pinmux was already marked with u-boot,dm-spl. Signed-off-by: Peng Fan --- board/advantech/imx8mp_rsb3720a1/imx8mp_rsb3720a1.c | 8 configs/imx8mp_rsb3720a1_4G_defconfig | 1 + configs/imx8mp_rsb3720a1_6G_defconfig

[PATCH 00/15] imx8m: convert to DM_SERIAL

2022-04-30 Thread Peng Fan (OSS)
From: Peng Fan This patchset is to convert some i.MX8M boards to DM SERIAL Note: this is based on my experience on i.MX8M*-EVK from NXP, I not have the following boards. If possible, please test. Peng Fan (15): imx: imx8mp_rsb3720a1: convert to DM_SERIAL imx: imx8m[m/n/p]_venice: Enable

[PATCH 2/2] test: unit test for bootmenu

2022-04-30 Thread Heinrich Schuchardt
Provide a unit test for the bootmenu command Signed-off-by: Heinrich Schuchardt --- scripts/pylint.base| 1 + test/py/tests/test_bootmenu.py | 48 ++ 2 files changed, 49 insertions(+) create mode 100644 test/py/tests/test_bootmenu.py diff --git

[PATCH 1/2] sandbox: enable bootmenu command

2022-04-30 Thread Heinrich Schuchardt
Provide the bootmenu command on the sandbox for testing. Signed-off-by: Heinrich Schuchardt --- configs/sandbox_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index fe8ea4626d..c509a924e6 100644 --- a/configs/sandbox_defconfig

[PATCH 0/2] test: unit test for bootmenu

2022-04-30 Thread Heinrich Schuchardt
* enable the bootmenu command in the sandbox * provide a unit test for the bootmenu command Heinrich Schuchardt (2): sandbox: enable bootmenu command test: unit test for bootmenu configs/sandbox_defconfig | 1 + scripts/pylint.base| 1 + test/py/tests/test_bootmenu.py |

[PATCH] test: fix some pylint errors in test_bind.py

2022-04-30 Thread Heinrich Schuchardt
* Use spaces not tabs * Limit lines to 100 spaces * Remove an unused import * Sort imports correctly * Add a module description Signed-off-by: Heinrich Schuchardt --- test/py/tests/test_bind.py | 345 +++-- 1 file changed, 175 insertions(+), 170 deletions(-)

[PATCH 1/1] efi_loader: reset colors before clearing screen

2022-04-30 Thread Heinrich Schuchardt
When resetting the text console the colors have to be set before clearing the screen. Otherwise the background color may be wrong. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v8 09/13] vpl: Add Kconfig options for VPL

2022-04-30 Thread Simon Glass
Add VPL versions of commonly used Kconfig options. Signed-off-by: Simon Glass --- Changes in v8: - Support SYSCON and REGMAP too Changes in v7: - Add a few more options Changes in v5: - Rebase this patch on mainline (for GPIO and MISC Kconfig renames) Changes in v4: - Add options for blk,

[PATCH v8 11/13] vpl: Support running vpl tests

2022-04-30 Thread Simon Glass
Add support for these to the pytest system. Signed-off-by: Simon Glass --- Changes in v8: - Add new patch to support running vpl tests test/py/conftest.py | 7 +-- test/py/tests/test_vpl.py | 34 +++ test/py/u_boot_console_sandbox.py | 7

[PATCH v8 12/13] vpl: Test that VPL runs correctly through to U-Boot proper

2022-04-30 Thread Simon Glass
Check the TPL -> VPL -> SPL -> U-Boot path by running the 'help' command in U-Boot. Signed-off-by: Simon Glass --- (no changes since v1) test/py/tests/test_help.py | 12 1 file changed, 12 insertions(+) diff --git a/test/py/tests/test_help.py b/test/py/tests/test_help.py index

[PATCH v8 13/13] CI: Run VPL tests

2022-04-30 Thread Simon Glass
Add tests for VPL into the mix. For now this just runs the help test and a few SPL ones. Signed-off-by: Simon Glass --- (no changes since v1) .azure-pipelines.yml | 3 +++ .gitlab-ci.yml | 6 ++ 2 files changed, 9 insertions(+) diff --git a/.azure-pipelines.yml

[PATCH v8 10/13] sandbox: Add a build for VPL

2022-04-30 Thread Simon Glass
Add an initial VPL build for sandbox. This includes the flow: TPL (with of-platdata) -> VPL -> SPL -> U-Boot To run it: ./tpl/u-boot-tpl -D The -D is needed to get the default device tree, which includes the serial console info. Add a Makefile check for OF_HOSTFILE which is the option

[PATCH v8 08/13] Introduce Verifying Program Loader (VPL)

2022-04-30 Thread Simon Glass
Add support for VPL, a new phase of U-Boot. This runs after TPL. It is responsible for selecting which SPL binary to run, based on a verified-boot process. Signed-off-by: Simon Glass --- Changes in v8: - Rename the VPL symbols in spl.c Changes in v4: - Update spl_phase_prefix() for VPL - Tidy

[PATCH v8 06/13] Makefile: Simplify devicetree rules for SPL/TPL

2022-04-30 Thread Simon Glass
The current logic checks several options to decide whether SPL/TPL need the U-Boot devicetree to be built. In fact we can check OF_CONTROL, which is enabled in all cases that matter. Signed-off-by: Simon Glass --- (no changes since v1) Makefile | 7 ++- 1 file changed, 2 insertions(+), 5

[PATCH v8 05/13] avb: Don't build in SPL

2022-04-30 Thread Simon Glass
This feature is not used in SPL at present. Update the Makefile to avoid it being built. Signed-off-by: Simon Glass --- (no changes since v4) Changes in v4: - Add new patch to avoid building avb in SPL common/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v8 07/13] Makefile: Tidy up the TPL build rules

2022-04-30 Thread Simon Glass
These should follow the same pattern as SPL, for consistency. Fix them. Signed-off-by: Simon Glass --- (no changes since v1) Makefile | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9f220de3202..82c35a94ae6 100644 --- a/Makefile +++

[PATCH v8 04/13] bloblist: Correct Kconfig dependencies

2022-04-30 Thread Simon Glass
This feature is not available in SPL unless common/ and lib/ are built. Update the Kconfig to avoid build errors. Signed-off-by: Simon Glass --- (no changes since v4) Changes in v4: - Add new patch to correct bloblist Kconfig dependencies common/Kconfig | 4 ++-- 1 file changed, 2

[PATCH v8 03/13] test: Tidy up test building with SPL

2022-04-30 Thread Simon Glass
We can in principle add tests to any SPL build, e.g. TPL or VPL. Update the build rules to handle this. Signed-off-by: Simon Glass --- (no changes since v1) Makefile | 2 +- scripts/Makefile.spl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile

[PATCH v8 02/13] doc: Expand SPL docs to explain the phase and config

2022-04-30 Thread Simon Glass
Add a bit more information about how to use SPL. Signed-off-by: Simon Glass --- (no changes since v1) doc/develop/spl.rst | 34 ++ 1 file changed, 34 insertions(+) diff --git a/doc/develop/spl.rst b/doc/develop/spl.rst index 4d6f394bed9..1059b2fb9c0 100644 ---

[PATCH v8 01/13] doc: Convert SPL documentation to ReST

2022-04-30 Thread Simon Glass
Move this documentation over to .rst format. Signed-off-by: Simon Glass --- (no changes since v1) doc/develop/index.rst | 1 + doc/{README.SPL => develop/spl.rst} | 36 +++-- 2 files changed, 20 insertions(+), 17 deletions(-) rename doc/{README.SPL =>

[PATCH v8 00/13] vpl: Introduce a verifying program loader

2022-04-30 Thread Simon Glass
U-Boot provides a verified-boot feature based around FIT, but there is no standard way of implementing it for a board. At present the various required pieces must be built up separately, to produce a working implementation. In particular, there is no built-in support for selecting A/B boot or

[PATCH v8 00/15] vpl: Introduce a verifying program loader

2022-04-30 Thread Simon Glass
U-Boot provides a verified-boot feature based around FIT, but there is no standard way of implementing it for a board. At present the various required pieces must be built up separately, to produce a working implementation. In particular, there is no built-in support for selecting A/B boot or