Re: [PATCH V7 04/15] iot2050: Migrate settings into board env file

2023-03-06 Thread Simon Glass
Hi Jan, On Wed, 1 Mar 2023 at 23:38, Jan Kiszka wrote: > > On 02.03.23 00:38, Simon Glass wrote: > > Hi Jan, > > > > On Tue, 28 Feb 2023 at 11:20, Jan Kiszka wrote: > >> > >> From: Jan Kiszka > >> > >> Anything that is not boot-env related is better kept there by now. > >> > >> At this chance,

Re: [PATCH V7 09/15] iot2050: Add script for signing artifacts

2023-03-06 Thread Simon Glass
Hi Jan, On Tue, 28 Feb 2023 at 11:21, Jan Kiszka wrote: > > From: Jan Kiszka > > There are many ways to get a signed firmware for the IOT2050 devices, > namely for the parts under user-control. This script documents one way > of doing it, given a signing key. Augment the board documentation

Re: [PATCH v6 15/22] drivers: use dev_read_addr_index_ptr when cast to pointer

2023-03-06 Thread Simon Glass
Hi Johan, On Thu, 2 Mar 2023 at 17:15, Johan Jonker wrote: > > The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU > can expect 64-bit data from the device tree parser, so use Why is that? It seems quite inefficient. > dev_read_addr_index_ptr instead of the dev_read_addr_index

Re: [PATCH v6 13/22] core: read: add dev_read_addr_index_ptr function

2023-03-06 Thread Simon Glass
On Thu, 2 Mar 2023 at 17:15, Johan Jonker wrote: > > Add dev_read_addr_index_ptr function with the > same functionality as dev_read_addr_index, > but instead a return pointer is given. > Use map_sysmem() function as cast for the return. > Make same fix for dev_read_addr_ptr() function. > >

Re: [PATCH RFC u-boot-mvebu 0/2] arm: mvebu: Fix eMMC boot

2023-03-06 Thread Pali Rohár
On Monday 06 March 2023 11:15:35 Martin Rowe wrote: > On Sun, 5 Mar 2023 at 16:04, Pali Rohár wrote: > > Could you try another test by completely erasing BOOT0, BOOT1 and USER > > > data? And see what BootROM prints. > > > > = > BootROM - 1.73 > > Booting

Re: [PATCH v3 18/19] test/py: android: extend abootimg test

2023-03-06 Thread Safae Ouajih
On 27/02/2023 15:18, Tom Rini wrote: On Mon, Feb 27, 2023 at 03:15:31PM +0100, Safae Ouajih wrote: On 07/02/2023 20:02, Tom Rini wrote: On Mon, Feb 06, 2023 at 12:50:20AM +0100, Safae Ouajih wrote: test_abootimg is extended to include the testing of boot images version 4. For this,

Re: Please pull u-boot-marvell/master

2023-03-06 Thread Tom Rini
On Mon, Mar 06, 2023 at 12:52:52PM +0100, Stefan Roese wrote: > Hi Tom, > > please pull this small Marvell related fix: > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] arm: mach-k3: introduce generic board detction kconfig option

2023-03-06 Thread Tom Rini
On Fri, Mar 03, 2023 at 08:16:28PM +0100, Christian Gmeiner wrote: > For non TI boards it is not possible to enable the do_board_detect() > call as TI_I2C_BOARD_DETECT is defined in board/ti/common/Kconfig. > > I want to use do_board_detect() to dectect boards and properties based > on some SPI

Re: [PATCH v5 00/44] More tidy-ups of Kconfig options

2023-03-06 Thread Simon Glass
Hi Tom, On Fri, 3 Mar 2023 at 16:43, Tom Rini wrote: > > On Wed, Feb 22, 2023 at 09:33:41AM -0700, Simon Glass wrote: > > > This series was split out of the old 'split config' splc series. It > > contains clean-up patches which do not depend on split config. > > > > This is available at

Re: [PATCH v3 18/19] test/py: android: extend abootimg test

2023-03-06 Thread Tom Rini
On Mon, Mar 06, 2023 at 08:49:02PM +0100, Safae Ouajih wrote: > > On 27/02/2023 15:18, Tom Rini wrote: > > On Mon, Feb 27, 2023 at 03:15:31PM +0100, Safae Ouajih wrote: > > > On 07/02/2023 20:02, Tom Rini wrote: > > > > On Mon, Feb 06, 2023 at 12:50:20AM +0100, Safae Ouajih wrote: > > > > > > >

Re: [PATCH v6 17/22] drivers: use devfdt_get_addr_size_index_ptr when cast to pointer

2023-03-06 Thread Simon Glass
On Thu, 2 Mar 2023 at 17:16, Johan Jonker wrote: > > The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU > can expect 64-bit data from the device tree parser, so use > devfdt_get_addr_size_index_ptr instead of the devfdt_get_addr_size_index > function in the various files in the

Re: [PATCH] cmd: fdt: Drop the 0x prefix

2023-03-06 Thread Simon Glass
Hi Marek, On Wed, 1 Mar 2023 at 20:04, Marek Vasut wrote: > > The 'fdt get addr' is always assumed to be hex value, drop the prefix. > Since this might break existing users who depend on the existing > behavior with 0x prefix, this is a separate patch. Revert if this > breaks anything. > >

Re: [PATCH 2/2] test: cmd: fdt: Drop new unneeded curly brackets

2023-03-06 Thread Simon Glass
On Wed, 1 Mar 2023 at 20:05, Marek Vasut wrote: > > Drop no longer needed { } around ut_assert*() functions in FDT test. > No functional change. > > Signed-off-by: Marek Vasut > --- > Cc: Heinrich Schuchardt > Cc: Simon Glass > Cc: Tom Rini > --- > test/cmd/fdt.c | 14 ++ > 1

Re: [PATCH 1/1] doc: man-page for panic command

2023-03-06 Thread Simon Glass
On Fri, 3 Mar 2023 at 14:51, Heinrich Schuchardt wrote: > > Provide a man-page for the panic command. > > Signed-off-by: Heinrich Schuchardt > --- > doc/usage/cmd/panic.rst | 33 + > doc/usage/index.rst | 1 + > 2 files changed, 34 insertions(+) > create

Re: [PATCH v4 3/4] Kconfig: j721e: Change K3_MCU_SCRATCHPAD_BASE to non firewalled region

2023-03-06 Thread Tom Rini
On Mon, Mar 06, 2023 at 11:12:53AM +0530, Manorit Chawdhry wrote: > In non-combined boot flow for K3, all the firewalls are locked by default > until sysfw comes up. Rom configures some of the firewall for its usage > along with the SRAM for R5 but the PSRAM region is still locked. > > The K3 MCU

Re: [PATCH v6 12/22] core: fdtaddr: add devfdt_get_addr_size_index_ptr function

2023-03-06 Thread Simon Glass
Hi Johan, On Thu, 2 Mar 2023 at 17:15, Johan Jonker wrote: > > Add devfdt_get_addr_size_index_ptr function with the same > functionality as devfdt_get_addr_size_index, but instead > a return pointer is given. > > Suggested-by: Michael Nazzareno Trimarchi > Signed-off-by: Johan Jonker >

Re: [PATCH 1/2] test: Wrap assert macros in ({ ... }) and fix missing semicolons

2023-03-06 Thread Simon Glass
On Wed, 1 Mar 2023 at 20:05, Marek Vasut wrote: > > Wrap the assert macros in ({ ... }) so they can be safely used both as > right side argument as well as in conditionals without curly brackets > around them. In the process, find a bunch of missing semicolons, fix > them. > > Signed-off-by:

Re: [PATCH v2 02/32] cmd: fdt: Fix handling of empty properties for fdt get addr and fdt get size

2023-03-06 Thread Simon Glass
Hi Marek, On Wed, 1 Mar 2023 at 20:09, Marek Vasut wrote: > > It is perfectly valid to request an address or size of FDT property > without value, the only special case if requesting of the value of > FDT property without value. Invert the test such, that properties > without value still set the

Re: [PATCH v5 32/44] x86: Fix up use of X86_32BIT_INIT and X86_64 options

2023-03-06 Thread Simon Glass
Hi Tom, On Fri, 3 Mar 2023 at 07:50, Tom Rini wrote: > > On Wed, Feb 22, 2023 at 09:34:13AM -0700, Simon Glass wrote: > > > Drop the invalid SPL_ in a CONFIG_IS_ENABLED() usage. Use the correct > > X86_64 option in msr.h since SPL may be 32-bit when U-Bout proper is > > not. > > > >

Re: [PATCH] cmd: fdt: Drop the 0x prefix

2023-03-06 Thread Marek Vasut
On 3/6/23 18:53, Simon Glass wrote: Hi Marek, On Wed, 1 Mar 2023 at 20:04, Marek Vasut wrote: The 'fdt get addr' is always assumed to be hex value, drop the prefix. Since this might break existing users who depend on the existing behavior with 0x prefix, this is a separate patch. Revert if

Re: [PATCH v5 3/6] fwu: move meta-data management in core

2023-03-06 Thread Jassi Brar
On Wed, Mar 1, 2023 at 5:16 AM Etienne Carriere wrote: > On Tue, 28 Feb 2023 at 01:52, wrote: > > > > From: Jassi Brar > > > > Instead of each i/f having to implement their own meta-data verification > > and storage, move the logic in common code. This simplifies the i/f code > > much simpler

Re: [PATCH] nvedit: simplify do_env_indirect()

2023-03-06 Thread Simon Glass
On Mon, 6 Mar 2023 at 06:27, Rasmus Villemoes wrote: > > Instead of calling env_get(from) up to three times, just do it once, > computing the value we will put into 'to' and error out if that is > NULL (i.e. no 'from' variable and no default provided). > > No functional change. > > Signed-off-by:

Re: [PATCH v6 15/22] drivers: use dev_read_addr_index_ptr when cast to pointer

2023-03-06 Thread Johan Jonker
On 3/6/23 19:20, Simon Glass wrote: > Hi Johan, > > On Thu, 2 Mar 2023 at 17:15, Johan Jonker wrote: >> >> The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU >> can expect 64-bit data from the device tree parser, so use > > Why is that? It seems quite inefficient. 1: ===

Re: [PATCH v6 12/22] core: fdtaddr: add devfdt_get_addr_size_index_ptr function

2023-03-06 Thread Johan Jonker
On 3/6/23 18:53, Simon Glass wrote: > Hi Johan, > > On Thu, 2 Mar 2023 at 17:15, Johan Jonker wrote: >> >> Add devfdt_get_addr_size_index_ptr function with the same >> functionality as devfdt_get_addr_size_index, but instead >> a return pointer is given. >> >> Suggested-by: Michael Nazzareno

Re: [PATCH 23/32] test: cmd: fdt: Test fdt set

2023-03-06 Thread Simon Glass
On Wed, 1 Mar 2023 at 20:07, Marek Vasut wrote: > > On 3/1/23 16:02, Simon Glass wrote: > > Hi Marek, > > > > On Mon, 27 Feb 2023 at 12:55, Marek Vasut > > wrote: > >> > >> Add 'fdt set' test which works as follows: > >> - Create fuller FDT, map it to sysmem > >> - Set either existing property

Re: [PATCH v3 3/5] doc: document read/write commands

2023-03-06 Thread Simon Glass
On Thu, 2 Mar 2023 at 01:12, Rasmus Villemoes wrote: > > The read and write commands are, deliberately, implemented in the same > file, so that they stay feature-compatible (e.g. if someone implements > support for "read the full partition, however large that is", that > same syntax should also

Re: [PATCH RFC u-boot-mvebu 0/6] arm: mvebu: Fix boot mode detection

2023-03-06 Thread Tony Dinh
Hi Pali, On Sun, Mar 5, 2023 at 4:41 PM Tony Dinh wrote: > > Hi Pali, > > On Sun, Mar 5, 2023 at 2:54 PM Pali Rohár wrote: > > > > On Sunday 05 March 2023 14:46:55 Tony Dinh wrote: > > > On Sun, Mar 5, 2023 at 2:44 PM Tony Dinh wrote: > > > > > > > > Hi Pali, > > > > > > > > On Sun, Mar 5,

Re: [PATCH] cmd: fdt: Drop the 0x prefix

2023-03-06 Thread Simon Glass
Hi Marek, On Mon, 6 Mar 2023 at 12:07, Marek Vasut wrote: > > On 3/6/23 18:53, Simon Glass wrote: > > Hi Marek, > > > > On Wed, 1 Mar 2023 at 20:04, Marek Vasut > > wrote: > >> > >> The 'fdt get addr' is always assumed to be hex value, drop the prefix. > >> Since this might break existing users

[PATCH v6 5/7] fwu: meta-data: switch to management by common code

2023-03-06 Thread jassisinghbrar
From: Jassi Brar The common code can now read, verify and fix meta-data copies while exposing one consistent structure to users. Only the .read_mdata() and .write_mdata() callbacks of fwu_mdata_ops are needed. Get rid of .get_mdata() .update_mdata() .get_mdata_part_num() .read_mdata_partition()

[PATCH v6 4/7] fwu: gpt: implement read_mdata and write_mdata callbacks

2023-03-06 Thread jassisinghbrar
From: Jassi Brar Moving towards using common code for meta-data management, implement the read/write mdata hooks. Signed-off-by: Jassi Brar Reviewed-by: Etienne Carriere Reviewed-by: Ilias Apalodimas --- drivers/fwu-mdata/gpt_blk.c | 36 1 file changed,

[PATCH v6 6/7] fwu: rename fwu_get_verified_mdata to fwu_get_mdata

2023-03-06 Thread jassisinghbrar
From: Jassi Brar fwu_get_mdata() sounds more appropriate than fwu_get_verified_mdata() Signed-off-by: Jassi Brar Reviewed-by: Etienne Carriere Reviewed-by: Ilias Apalodimas --- cmd/fwu_mdata.c | 2 +- include/fwu.h | 4 ++-- lib/fwu_updates/fwu.c | 6 +++--- 3 files changed, 6

[PATCH v6 7/7] test: dm: fwu: fix for the updated api

2023-03-06 Thread jassisinghbrar
From: Jassi Brar fwu_get_mdata() no more requires 'dev' argument and fwu_check_mdata_validity() has been rendered useless and dropped. Fix the test cases to work with aforementioned changes. Signed-off-by: Jassi Brar --- test/dm/fwu_mdata.c | 22 +++--- 1 file changed, 3

Re: [PATCH RFC u-boot-mvebu 0/6] arm: mvebu: Fix boot mode detection

2023-03-06 Thread Pali Rohár
On Monday 06 March 2023 16:01:58 Tony Dinh wrote: > Hi Pali, > > On Sun, Mar 5, 2023 at 4:41 PM Tony Dinh wrote: > > > > Hi Pali, > > > > On Sun, Mar 5, 2023 at 2:54 PM Pali Rohár wrote: > > > > > > On Sunday 05 March 2023 14:46:55 Tony Dinh wrote: > > > > On Sun, Mar 5, 2023 at 2:44 PM Tony

[PATCH v6 0/7] fwu: gpt: implement read_mdata and write_mdata callbacks

2023-03-06 Thread jassisinghbrar
From: Jassi Brar The patchset reduces ~400 lines of code, while keeping the functionality same and making meta-data operations much faster (by using cached structures). Issue: meta-data copies (primary and secondary) are being handled by the backend/storage layer instead of the common core

[PATCH v6 3/7] fwu: move meta-data management in core

2023-03-06 Thread jassisinghbrar
From: Jassi Brar Instead of each i/f having to implement their own meta-data verification and storage, move the logic in common code. This simplifies the i/f code much simpler and compact. Signed-off-by: Jassi Brar --- drivers/fwu-mdata/fwu-mdata-uclass.c | 34 +++ include/fwu.h

[PATCH v6 1/7] dt/bindings: fwu-mdata-mtd: drop changes outside FWU

2023-03-06 Thread jassisinghbrar
From: Jassi Brar Any requirement of FWU should not require changes to bindings of other subsystems. For example, for mtd-backed storage we can do without requiring 'fixed-partitions' children to also carry 'uuid', a property which is non-standard and not in the bindings. There exists no code

[PATCH v6 2/7] fwu: gpt: use cached meta-data partition numbers

2023-03-06 Thread jassisinghbrar
From: Jassi Brar Use cached values and avoid parsing and scanning through partitions everytime for meta-data partitions because they can't change after bootup. Acked-by: Etienne Carriere Reviewed-by: Ilias Apalodimas Signed-off-by: Jassi Brar --- drivers/fwu-mdata/gpt_blk.c | 43

Re: [PATCH v3 14/17] riscv: dts: jh7110: Add initial StarFive JH7110 device tree

2023-03-06 Thread Conor Dooley
On 7 March 2023 01:59:31 GMT, yanhong wang wrote: > > >On 2023/3/4 5:16, Conor Dooley wrote: >> On Fri, Mar 03, 2023 at 11:24:29AM +0800, Yanhong Wang wrote: >>> Add initial device tree for the JH7110 RISC-V SoC. >>> >>> Signed-off-by: Yanhong Wang >>> --- >>> arch/riscv/dts/jh7110.dtsi |

Re: [PATCH v5 0/6] FWU: Handle meta-data in common code

2023-03-06 Thread Jassi Brar
On Mon, Feb 27, 2023 at 7:28 PM Tom Rini wrote: > > On Mon, Feb 27, 2023 at 07:00:10PM -0600, Jassi Brar wrote: > > On Mon, 27 Feb 2023 at 18:58, Tom Rini wrote: > > > > > > On Mon, Feb 27, 2023 at 06:51:35PM -0600, jassisinghb...@gmail.com wrote: > > > > > > > From: Jassi Brar > > > > > > > >

Re: [PATCH v3 14/17] riscv: dts: jh7110: Add initial StarFive JH7110 device tree

2023-03-06 Thread yanhong wang
On 2023/3/4 5:16, Conor Dooley wrote: > On Fri, Mar 03, 2023 at 11:24:29AM +0800, Yanhong Wang wrote: >> Add initial device tree for the JH7110 RISC-V SoC. >> >> Signed-off-by: Yanhong Wang >> --- >> arch/riscv/dts/jh7110.dtsi | 582 + >> 1 file changed,

Re: [PATCH RFC u-boot-mvebu 0/6] arm: mvebu: Fix boot mode detection

2023-03-06 Thread Tony Dinh
Hi Pali, On Mon, Mar 6, 2023 at 4:11 PM Pali Rohár wrote: > > On Monday 06 March 2023 16:01:58 Tony Dinh wrote: > > Hi Pali, > > > > On Sun, Mar 5, 2023 at 4:41 PM Tony Dinh wrote: > > > > > > Hi Pali, > > > > > > On Sun, Mar 5, 2023 at 2:54 PM Pali Rohár wrote: > > > > > > > > On Sunday 05

[PATCH 2/2] ARM: imx: Enable SDP download in SPL on DH i.MX6 DHSOM

2023-03-06 Thread Marek Vasut
Enable SDP protocol support in SPL for DH i.MX6 DHSOM, now that those components fit into the SPL due to LTO. To start U-Boot via SDP upload on i.MX6 DHSOM based board, proceed as follows: - Compile imx_usb [1] . - Power off the i.MX6 DHSOM based board. - Connect both USB-serial console and

[PATCH] usb: gadget: f_sdp: Add missing spl_board_prepare_for_boot() call

2023-03-06 Thread Marek Vasut
The spl_board_prepare_for_boot() should be called before jump_to_image_no_args() to perform board-specific deinitialization before jumping to the next stage. This board-specific deinitialization can be very much anything, e.g. disable dcache in case it was enabled, or such. Add the missing

Re: [PATCH RFC u-boot-mvebu 0/6] arm: mvebu: Fix boot mode detection

2023-03-06 Thread Pali Rohár
On Monday 06 March 2023 20:15:07 Tony Dinh wrote: > Hi Pali, > > On Mon, Mar 6, 2023 at 4:11 PM Pali Rohár wrote: > > > > On Monday 06 March 2023 16:01:58 Tony Dinh wrote: > > > Hi Pali, > > > > > > On Sun, Mar 5, 2023 at 4:41 PM Tony Dinh wrote: > > > > > > > > Hi Pali, > > > > > > > > On Sun,

[PATCH 1/2] ARM: imx: Enable LTO for DH electronics i.MX6 DHCOM

2023-03-06 Thread Marek Vasut
Enable LTO to reduce the size of SPL, which with SPL SDP support may be close to the limit. Signed-off-by: Marek Vasut --- Cc: Andreas Geisreiter Cc: Christoph Niedermaier Cc: Fabio Estevam Cc: NXP i.MX U-Boot Team Cc: Stefano Babic Cc: u-b...@dh-electronics.com ---

[PATCH v4 07/14] net: dwc_eth_qos: Add DM CLK support for i.MX8M Plus

2023-03-06 Thread Marek Vasut
The DWMAC clock in i.MX8M Plus were so far configured via ad-hoc architecture code. Replace that with DM clock instead. This way, the driver claims all its required clock, enables and disables them, and even gets the CSR clock rate and sets the TX clock rate, without any need of architecture

[PATCH v4 04/14] net: dwc_eth_qos: Drop unused dm_gpio_free() on STM32

2023-03-06 Thread Marek Vasut
The dm_gpio_free() is never called, because for stm32, the phy_reset_gpio pointer is never valid. This is because only tegra186 ever claims the phy_reset_gpio, all other platforms use the PHY framework to reset the PHY instead. Drop the dm_gpio_free() and dm_gpio_is_valid(). Reviewed-by: Ramon

[PATCH v4 02/14] net: Pull board_interface_eth_init() into common code

2023-03-06 Thread Marek Vasut
Move the board_interface_eth_init() into common ethernet uclass code, since this function could be shared by multiple drivers. Reviewed-by: Simon Glass Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team" Cc: Andrey Zhizhikin Cc: Fabio Estevam Cc: Joe

[PATCH v4 10/14] net: fec_mxc: Add ref clock setup support for i.MX8M Mini/Nano/Plus

2023-03-06 Thread Marek Vasut
The FEC ref clock frequency on i.MX8M Mini/Nano/Plus was so far configured via ad-hoc board code. Replace that with DM clock clk_set_rate() instead. This way, the driver claims all its required clock and sets the ref clock rate, without any need of architecture specific register fiddling.

[PATCH v4 11/14] net: fec_mxc: Add board_interface_eth_init() for i.MX8M Mini/Nano/Plus

2023-03-06 Thread Marek Vasut
Implement common board_interface_eth_init() and call it from the FEC driver to configure IOMUXC GPR[1] register according to the PHY mode obtained from DT. This supports all three interface modes supported by the i.MX8M Mini/Nano/Plus FEC and supersedes the current board-side configuration of the

[PATCH v4 06/14] net: dwc_eth_qos: Set DMA_MODE SWR bit to reset the MAC

2023-03-06 Thread Marek Vasut
The driver currently only waits for DMA_MODE SWR bit to clear itself. This is insufficient e.g. on i.MX8M Plus, where the MAC must be reset before IOMUX GPR[1] content is latched into the MAC and used. Without the proper reset, the i.MX8M Plus MAC variant does not take the value in IOMUX GPR[1]

Re: [PATCH 1/1] api: move API related config options into submenu

2023-03-06 Thread Tom Rini
On Mon, Mar 06, 2023 at 11:18:17AM +0100, Heinrich Schuchardt wrote: > On 3/4/23 16:32, Tom Rini wrote: > > On Fri, Mar 03, 2023 at 11:31:22PM +0100, Heinrich Schuchardt wrote: > > > > > Kconfig settings that are related to the API for standalone applications > > > should be in the API sub-menu

[PATCH v4 03/14] net: dwc_eth_qos: Drop bogus return after goto

2023-03-06 Thread Marek Vasut
The return is never triggered due to the goto just above it. Drop it. No functional change. Reviewed-by: Ramon Fried Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team" Cc: Andrey Zhizhikin Cc: Fabio Estevam Cc: Joe Hershberger Cc: Lukasz Majewski Cc: Marcel

[PATCH v4 05/14] net: dwc_eth_qos: Staticize eqos_inval_buffer_tegra186()

2023-03-06 Thread Marek Vasut
This function is only used within the driver, staticize it. Fixes: 149e80f74b6 ("net: dwc_eth_qos: public some functions") Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team" Cc: Andrey Zhizhikin Cc: Fabio Estevam Cc: Joe Hershberger Cc: Lukasz Majewski Cc:

[PATCH v4 01/14] clk: imx8mp: Add EQoS MAC clock

2023-03-06 Thread Marek Vasut
Add clock for the DWMAC EQoS block. This is used among other things to configure the MII clock via DM CLK. Acked-by: Sean Anderson Reviewed-by: Peng Fan Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team" Cc: Andrey Zhizhikin Cc: Fabio Estevam Cc: Joe

[PATCH v4 14/14] arm64: imx8mm: imx8mn: imx8mp: Drop FEC GPR[1] board workaround

2023-03-06 Thread Marek Vasut
The FEC interface mode is now configured in common board_interface_eth_init() and called by FEC MAC driver when appropriate. Drop the board side duplicates if the same functionality. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team" Cc: Andrey Zhizhikin Cc:

[PATCH v4 08/14] net: dwc_eth_qos: Add i.MX8M Plus RMII support

2023-03-06 Thread Marek Vasut
With DM clock support in place, it is easy to add RMII support into the MAC driver. The RMII cannot operate at 1000 Mbps and at 100 and 10 Mbps the clock frequency is 50 MHz and 5 MHz instead of 25 MHz and 2.5 MHz. The board DT requires the following adjustments to EQoS node: phy-mode = "rmii";

[PATCH v4 09/14] net: dwc_eth_qos: Add board_interface_eth_init() for i.MX8M Plus

2023-03-06 Thread Marek Vasut
Implement common board_interface_eth_init() and call it from the DWMAC driver to configure IOMUXC GPR[1] register according to the PHY mode obtained from DT. This supports all three interface modes supported by the i.MX8M Plus DWMAC and supersedes current board-side configuration of the same IOMUX

[PATCH v4 13/14] arm64: imx8mp: Drop EQoS GPR[1] board workaround

2023-03-06 Thread Marek Vasut
The EQoS interface mode is now configured in common board_interface_eth_init() and called by EQoS MAC driver when appropriate. Drop the board side duplicates if the same functionality. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team" Cc: Andrey Zhizhikin Cc:

[PATCH v4 12/14] arm64: dts: imx8mp: Drop EQoS clock workaround

2023-03-06 Thread Marek Vasut
The assigned-clock no longer have to be dropped, the clock are now defined in clk-imx8mp.c and used by DWMAC driver to configure the DWMAC clock. Drop the workarounds from U-Boot specific DT extras. Signed-off-by: Marek Vasut --- Cc: "Ariel D'Alessandro" Cc: "NXP i.MX U-Boot Team" Cc: Andrey

Re: [PATCH 09/10] efi: Support showing tables

2023-03-06 Thread Heinrich Schuchardt
On 2/26/23 02:33, Simon Glass wrote: Add a command to display the tables provided by EFI. Signed-off-by: Simon Glass --- cmd/efi.c | 40 +++- doc/usage/cmd/efi.rst | 22 ++ 2 files changed, 61 insertions(+), 1 deletion(-)

Re: [PATCH RFC u-boot-mvebu 0/2] arm: mvebu: Fix eMMC boot

2023-03-06 Thread Martin Rowe
On Sun, 5 Mar 2023 at 16:04, Pali Rohár wrote: > On Sunday 05 March 2023 12:46:34 Pali Rohár wrote: > > On Sunday 05 March 2023 02:24:27 Martin Rowe wrote: > > > On Sat, 4 Mar 2023 at 10:40, Pali Rohár wrote: > > > > > > > Boot configuration stored in EXT_CSC register is completely ignored > by

Re: [PATCH] arm: mvebu: Use 4K sector for Thecus N2350 SPI flash

2023-03-06 Thread Stefan Roese
On 2/17/23 04:34, Tony Dinh wrote: Since the SPI flash chip mx25l3205d on this board has 4K-sector capability, enable it for the envs. Signed-off-by: Tony Dinh Applied to u-boot-marvell/master Thanks, Stefan --- configs/n2350_defconfig | 2 +- 1 file changed, 1 insertion(+), 1

Please pull u-boot-marvell/master

2023-03-06 Thread Stefan Roese
Hi Tom, please pull this small Marvell related fix: - mvebu: Use 4K sector for Thecus N2350 SPI flash (Tony) Here the Azure build, without any issues:

Re: [PATCH RFC u-boot-mvebu 0/2] arm: mvebu: Fix eMMC boot

2023-03-06 Thread Pali Rohár
On Monday 06 March 2023 11:15:35 Martin Rowe wrote: > On Sun, 5 Mar 2023 at 16:04, Pali Rohár wrote: > > > On Sunday 05 March 2023 12:46:34 Pali Rohár wrote: > > > On Sunday 05 March 2023 02:24:27 Martin Rowe wrote: > > > > On Sat, 4 Mar 2023 at 10:40, Pali Rohár wrote: > > > > > > > > > Boot

Re: [PATCH] ARM: imx: Include on-SoM microSD in list of i.MX6 DHCOM boot devices

2023-03-06 Thread Fabio Estevam
On 05/03/2023 20:21, Marek Vasut wrote: Add mmc1, which is mapped to optional on-SoM microSD socket, to the list of distro boot command boot devices. Signed-off-by: Marek Vasut Reviewed-by: Fabio Estevam

[PATCH] nvedit: simplify do_env_indirect()

2023-03-06 Thread Rasmus Villemoes
Instead of calling env_get(from) up to three times, just do it once, computing the value we will put into 'to' and error out if that is NULL (i.e. no 'from' variable and no default provided). No functional change. Signed-off-by: Rasmus Villemoes --- cmd/nvedit.c | 11 --- 1 file

Re: [PATCH] ARM: imx: Convert DH i.MX6 DHSOM to DM_SERIAL

2023-03-06 Thread Fabio Estevam
On 05/03/2023 17:48, Marek Vasut wrote: Enable CONFIG_DM_SERIAL on DH i.MX6 DHSOM to convert it to DM serial . Signed-off-by: Marek Vasut Reviewed-by: Fabio Estevam

Re: [PATCH] ARM: dts: imx: Add WDT bindings on DH i.MX6 DHSOM

2023-03-06 Thread Fabio Estevam
On 05/03/2023 17:49, Marek Vasut wrote: Add WDT reboot bindings on DH i.MX6 DHSOM to permit the platform to reboot via WDT in U-Boot. These are custom U-Boot bindings, hence they are placed in -u-boot.dtsi . Signed-off-by: Marek Vasut Reviewed-by: Fabio Estevam

Re: [PATCH 1/1] api: move API related config options into submenu

2023-03-06 Thread Heinrich Schuchardt
On 3/4/23 16:32, Tom Rini wrote: On Fri, Mar 03, 2023 at 11:31:22PM +0100, Heinrich Schuchardt wrote: Kconfig settings that are related to the API for standalone applications should be in the API sub-menu and not on the top level. CONFIG_STANDALONE_LOAD_ADDR is only relevant if standalone