Re: [PATCH] dm: rtc: Avoid a race in the rtc_reset test

2022-08-02 Thread Rasmus Villemoes
On 01/08/2022 21.13, Simon Glass wrote: > Hi Heinrich, > > On Mon, 1 Aug 2022 at 08:58, Heinrich Schuchardt wrote: >> >> On 8/1/22 15:59, Simon Glass wrote: >>> Hi Heinrich, >>> >>> On Mon, 1 Aug 2022 at 02:11, Heinrich Schuchardt wrote: On 7/31/22 20:27, Simon Glass wrote: > Since

Re: [PATCH v10 03/10] eficonfig: add "Edit Boot Option" menu entry

2022-08-02 Thread Heinrich Schuchardt
On 7/22/22 04:39, Masahisa Kojima wrote: This commit adds the menu entry to edit the existing BOOT variable contents. User selects the item from the boot option list, then user can edit the description, file path and optional_data. Note that automatically generated boot option entry by bootm

Re: [PATCH v10 05/10] eficonfig: add "Change Boot Order" menu entry

2022-08-02 Thread Heinrich Schuchardt
On 7/22/22 04:39, Masahisa Kojima wrote: This commit adds the menu entry to update UEFI BootOrder variable. User moves the entry with UP/DOWN key, changes the order with PLUS/MINUS key, then finalizes the order by ENTER key. The U-Boot menu framework is well designed for static menu, this commit

Re: [BISECTED] BeagleBone Black doesn't boot after a58147c2dbbf

2022-08-02 Thread Matwey V. Kornilov
пт, 29 июл. 2022 г. в 20:06, Matwey V. Kornilov : > > пт, 29 июл. 2022 г. в 19:46, Tom Rini : > > > > On Fri, Jul 29, 2022 at 07:38:28PM +0300, Matwey V. Kornilov wrote: > > > пт, 29 июл. 2022 г. в 19:32, Tom Rini : > > > > > > > > On Fri, Jul 29, 2022 at 07:20:11PM +0300, Matwey V. Kornilov wrote:

Re: [SPAM] Re: Replace make-fit-atf.py with binman. Was: migrate u-boot-rockchip.bin to binman and generate an image for SPI

2022-08-02 Thread Xavier Drudis Ferran
El Mon, Aug 01, 2022 at 01:13:27PM -0600, Simon Glass deia: > > > > Am I completely lost or does what I want to do make some kind of sense? > > Well I still feel that we should handle this properly in binman. > I respect your feelings but would you care explaining the goal of binman? I first thou

[PATCH] lmb: Fix LMB_MEMORY_REGIONS flag usage

2022-08-02 Thread Patrice Chotard
This patch is fixing a broken boot observed on stm32mp157c-dk2 board. IS_ENABLED macro should be used to check if a compilation flag is set to "y" or "m". LMB_MEMORY_REGIONS is set to a numerical value, IS_ENABLED macro is not suitable in this case. Fixes: 7c1860fce4e3 ("lmb: Fix lmb property's d

[PATCH] Makefile: Silence new GNU linker warnings

2022-08-02 Thread Joel Stanley
The next version of the linker will complain about rwx segments with permissions and executable stacks: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=ba951afb99912da01a6e8434126b8fac7aa75107 https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=0d38576a34ec64a1b4500c9277a8e9d0f

Re: [PATCH 0/6] introduce Arm FF-A support

2022-08-02 Thread Sudeep Holla
Hi Simon, On Mon, Aug 01, 2022 at 09:08:00PM -0600, Simon Glass wrote: > Hi Sudeep, > > I'm not sure either. In particular I'm not sure why it would be easier > to update whatever the FF-A software is than to update the DT, since > presumably they are both in the firmware. > No, that is not the p

[PATCH 2/2] net: dwc_eth_qos: Add eqos_get_enetaddr callback for stm32

2022-08-02 Thread Patrice Chotard
Add .eqos_get_enetaddr callback defined as eqos_null_ops() to avoid illegal access. Fixes: a624251461bf ("net: dwc_eth_qos: introduce eqos hook eqos_get_enetaddr") Signed-off-by: Patrice Chotard --- drivers/net/dwc_eth_qos.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/dwc_e

[PATCH 1/2] net: dwc_eth_qos: Add eqos_get_enetaddr callback for tegra186

2022-08-02 Thread Patrice Chotard
Add .eqos_get_enetaddr callback defined as eqos_null_ops() to avoid illegal access. Fixes: a624251461bf ("net: dwc_eth_qos: introduce eqos hook eqos_get_enetaddr") Signed-off-by: Patrice Chotard --- drivers/net/dwc_eth_qos.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/dwc_e

[PATCH 3/3] pinctrl: pinctrl_stm32: Populate uc_priv->name[] with pinmux node's name

2022-08-02 Thread Patrice Chotard
Populate uc_priv->name[] with pinmux node's name in order to indicate the pinmuxing's name in case GPIO is configured in alternate. For example, for STM32 SoC's based platform, "gpio status" command output : before Bank GPIOZ: GPIOZ0: unused : 0 [ ] GPIOZ1: unused : 0 [ ]

[PATCH 1/3] gpio: Allow to print pin's label even for pin with GPIOF_FUNC function

2022-08-02 Thread Patrice Chotard
Currently, if pin's function is GPIOF_FUNC, only "func" if displayed without any other information. It would be interesting, if information is available, to indicate which pinmuxing's name is used. For example, for STM32 SoC's based platform, "gpio status" command output : before Bank GPIO

[PATCH 0/3] gpio: update gpio_get_status()

2022-08-02 Thread Patrice Chotard
Currently, if pin's function is GPIOF_FUNC, only "func" if displayed without any other information. It would be interesting, if information is available, to indicate which pinmuxing's name is used. Patrice Chotard (3): gpio: Allow to print pin's label even for pin with GPIOF_FUNC function g

[PATCH 2/3] gpio: Fix pin's status display for pin with GPIOF_UNUSED function

2022-08-02 Thread Patrice Chotard
Even pin with GPIOF_UNUSED function can have a label. The criteria to add or not a space character is linked to label not to the used/unused status. Signed-off-by: Patrice Chotard --- drivers/gpio/gpio-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpi

Broken commit de47ff536363289f92f85ed1e4901724d238432d

2022-08-02 Thread Pali Rohár
Hello Tom! Your commit de47ff536363289f92f85ed1e4901724d238432d ("Convert CONFIG_SYS_MPC85XX_NO_RESETVEC to Kconfig") seems to be broken. If you look at P1020RDB-PD_defconfig file change in this commit there is: --- a/configs/P1020RDB-PD_defconfig +++ b/configs/P1020RDB-PD_defconfig @@ -9,6 +9,7

Re: [MVEBU] SPI flash offset was depecrated?

2022-08-02 Thread Pali Rohár
Hello! I have tested it without dm-pre-reloc on A385 Turris Omnia and you are right. SPL cannot load proper U-Boot and throws error: Trying to boot from SPI Invalid bus 0 (err=-19) SPI probe failed. SPL: failed to boot from all boot devices Stefan and Tom, it is possible to somehow "injec

[PATCH 1/1] block: fix blk_get_devnum_by_typename()

2022-08-02 Thread Heinrich Schuchardt
Both the 'host' and the 'efiloader' block devices use the same parent uclass root. Thus the parent uclass is not an indicator the interface type. Currently the following fails: setenv efi_selftest block device bootefi selftest part list efiloader 0 Struct blk_desc contains the interf

[PATCH] arm: mvebu: spl: Always fallback to BootROM boot method

2022-08-02 Thread Pali Rohár
BootROM boot method should always work so always add it as fallback method to spl_boot_list. In case U-Boot SPI driver fails it is better to try using BootROM than hanging as by default only one boot method is specified. Signed-off-by: Pali Rohár --- arch/arm/mach-mvebu/spl.c | 7 +++ 1 file

[PATCH] gpio: renesas: Simplify .request/.rfree callbacks

2022-08-02 Thread Pali Rohár
Remove identify wrapper functions. Signed-off-by: Pali Rohár --- drivers/gpio/gpio-rcar.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c index 138801850d3e..ba00bb459679 100644 --- a/drivers/gpio/gpio-rcar.

Re: [PATCH] lmb: Fix LMB_MEMORY_REGIONS flag usage

2022-08-02 Thread Michal Simek
On 8/2/22 10:21, Patrice Chotard wrote: This patch is fixing a broken boot observed on stm32mp157c-dk2 board. IS_ENABLED macro should be used to check if a compilation flag is set to "y" or "m". LMB_MEMORY_REGIONS is set to a numerical value, IS_ENABLED macro is not suitable in this case. Fi

Re: [PATCH] Makefile: Silence new GNU linker warnings

2022-08-02 Thread Heinrich Schuchardt
On 8/2/22 10:30, Joel Stanley wrote: The next version of the linker will complain about rwx segments with permissions and executable stacks: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=ba951afb99912da01a6e8434126b8fac7aa75107 https://sourceware.org/git/?p=binutils-gdb.git;a=c

Re: [PATCH] drivers: xen: events: fix build issues with disabled Xen HVC

2022-08-02 Thread Tom Rini
On Tue, Aug 02, 2022 at 08:48:51AM +, Dmytro Firsov wrote: > Can moderators, please, take a look on this patch? What about it? https://patchwork.ozlabs.org/project/uboot/patch/20220704120533.42168-1-dmytro_fir...@epam.com/ > > On 20.07.22 23:43, Nastya Vicodin wrote: > Reviewed-by: Anastasi

Re: Broken commit de47ff536363289f92f85ed1e4901724d238432d

2022-08-02 Thread Tom Rini
On Tue, Aug 02, 2022 at 11:13:38AM +0200, Pali Rohár wrote: > Hello Tom! > > Your commit de47ff536363289f92f85ed1e4901724d238432d ("Convert > CONFIG_SYS_MPC85XX_NO_RESETVEC to Kconfig") seems to be broken. I thought I had managed to mirror the TPL/SPL/full usage that was there prior, but apparen

Re: [PATCH] riscv: cpu: set gp before board_init_f_init_reserve

2022-08-02 Thread Nikita Shubin
Hello Leo! On Wed, 1 Jun 2022 02:07:34 + Leo Liang wrote: > On Fri, May 20, 2022 at 02:41:17PM +0300, Nikita Shubin wrote: > > From: Nikita Shubin > > > > Restore global pointer before board_init_f_init_reserve call, > > as "a0" can be set in harts_early_init call and we end up with > > in

[RFC PATCH 0/1] net: xilinx: handle internal PHY/PCS

2022-08-02 Thread Nikita Shubin
From: Nikita Shubin On Xilinx AXI Ethernet we can have both "internal" (PCS) and "external" phy's. As per Xilinx SPEC's they should have different addresses on MDIO bus. In Linux we have a phylink mechanism to handle this particular situation. PCS has to be at least BMCR_ANENABLE after Core br

[RFC PATCH 1/1] net: xilinx: handle internal PHY/PCS

2022-08-02 Thread Nikita Shubin
From: Nikita Shubin In SGMII/1000BaseX Xilinx AXI Ethernet may also have an Internal PHY (PCS) in addition to external PHY, in that case we should also set at least BMCR_ANENABLE. PCS are not visible until axinet bringup, so init should be done after, controller is brought up, then we should pol

[PATCH 00/21] Finish migration to DM_ETH

2022-08-02 Thread Tom Rini
As I've noted before, with v2022.07 being released, we have gone 2 years past the DM_ETH migration deadline. What this series does is a few things: - Remove some boards that either lack DM migration at all, or lack OF_CONTROL. DM migration has had an explicit deadline, and OF_CONTROL an implict

[PATCH 01/21] Convert CONFIG_SYS_FDT_PAD to Kconfig

2022-08-02 Thread Tom Rini
This converts the following to Kconfig: CONFIG_SYS_FDT_PAD Signed-off-by: Tom Rini --- boot/image-fdt.c | 4 include/configs/P2041RDB.h | 1 - include/configs/T102xRDB.h | 2 -- include/configs/T104xRDB.h | 2 -- include/configs/T208xQDS.h | 2

[PATCH 02/21] ppc: Remove ids8313 board

2022-08-02 Thread Tom Rini
This board is behind on several mandatory DM migrations and is missing OF_CONTROL support that makes other conversions impossible. Remove it. Cc: Heiko Schocher Signed-off-by: Tom Rini --- arch/powerpc/cpu/mpc83xx/Kconfig | 7 - board/ids/ids8313/Kconfig| 12 -- board/ids/ids8313/MAI

[PATCH 03/21] arm: Remove snapper9260 board

2022-08-02 Thread Tom Rini
This board is behind on several mandatory DM migrations and is missing OF_CONTROL support that makes other conversions impossible. Remove it. Cc: Simon Glass Signed-off-by: Tom Rini --- arch/arm/mach-at91/Kconfig| 10 -- board/bluewater/snapper9260/Kconfig | 12 -- board

[PATCH 05/21] arm: Remove edminiv2 board

2022-08-02 Thread Tom Rini
This board is not converted to use CONFIG_DM, well passed the migration deadline. Remove it. Cc: Simon Guinot Signed-off-by: Tom Rini --- This is also the last orion5x board, if you don't wish to migrate this platform I'll follow-up with a larger removal patch. --- arch/arm/mach-orion5x/Kconfi

[PATCH 07/21] arm: Remove armadillo-800eva board

2022-08-02 Thread Tom Rini
This board is behind on several mandatory DM migrations and is missing OF_CONTROL support that makes other conversions impossible. Remove it. Cc: Nobuhiro Iwamatsu Signed-off-by: Tom Rini --- arch/arm/mach-rmobile/Kconfig.32 | 4 - board/atmark-techno/armadillo-800eva/Kconfig |

[PATCH 04/21] arm: Remove mx28evk board

2022-08-02 Thread Tom Rini
This board is behind on several mandatory DM migrations and is missing OF_CONTROL support that makes other conversions impossible. Remove it. Cc: Fabio Estevam Signed-off-by: Tom Rini --- arch/arm/dts/Makefile | 1 - arch/arm/dts/imx28-evk.dts | 360

[PATCH 06/21] arm: Remove cm_t335 board

2022-08-02 Thread Tom Rini
This board is behind on several mandatory DM migrations and is missing OF_CONTROL support that makes other conversions impossible. Remove it. Cc: Igor Grinberg Cc: Nikita Kiryanov Cc: Uri Mashiach Signed-off-by: Tom Rini --- arch/arm/mach-omap2/Kconfig| 1 - arch/arm/mach-omap2/am33

[PATCH 08/21] arm: Remove kzm9g board

2022-08-02 Thread Tom Rini
This board is behind on several mandatory DM migrations and is missing OF_CONTROL support that makes other conversions impossible. Remove it. Cc: Nobuhiro Iwamatsu Cc: Tetsuyuki Kobayashi Signed-off-by: Tom Rini --- arch/arm/mach-rmobile/Kconfig.32 | 4 - board/kmc/kzm9g/Kconfig |

[PATCH 11/21] fsl-mc: Update dependencies for DM_ETH

2022-08-02 Thread Tom Rini
When using DM_ETH, which should be the default now, we need to always have DM_MDIO and FSL_LS_MDIO enabled, so select them. Cc: Priyanka Jain Cc: Rajesh Bhagat Cc: Wasim Khan Cc: Udit Agarwal Cc: Ashish Kumar Cc: Meenakshi Aggarwal Cc: Patrick Delaunay Cc: Patrice Chotard Cc: Manish Tomar

[PATCH 10/21] net: lpc32xx_eth.c ethernet driver

2022-08-02 Thread Tom Rini
This driver has not been converted to DM_ETH. The migration deadline passed 2 years ago. Cc: Trevor Woerner Signed-off-by: Tom Rini --- Trevor, can you please also update the top-level MAINTAINERS file to list yourself for these chips if you still are interested in them? Thanks. --- arch/arm/i

[PATCH 09/21] net: Remove smc91111 ethernet driver

2022-08-02 Thread Tom Rini
This driver has not been converted to DM_ETH. The migration deadline passed 2 years ago. Cc: Linus Walleij Cc: David Feng Cc: Liviu Dudau Cc: Andre Przywara Signed-off-by: Tom Rini --- README| 14 - board/armltd/integrator/integrator.c |3 - board/arml

[PATCH 14/21] net: ks8851_mll: Remove legacy non-DM_ETH code and callers

2022-08-02 Thread Tom Rini
As this driver has been converted to DM_ETH and the migration deadline is 2 years passed, remove the legacy code and callers. Cc: Eugen Hristev Signed-off-by: Tom Rini --- board/atmel/at91sam9n12ek/at91sam9n12ek.c | 35 --- drivers/net/ks8851_mll.c | 75

[PATCH 15/21] igep00x0: Disable networking

2022-08-02 Thread Tom Rini
This platform needs to be converted to use DM_ETH as the deadline is 2 years passed due. Disable networking support for now. Cc: Enric Balletbo i Serra Signed-off-by: Tom Rini --- board/isee/igep00x0/igep00x0.c | 58 -- configs/igep00x0_defconfig | 5 +-- 2

[PATCH 12/21] layerscape: Disable CONFIG_FMAN_ENET on some platforms

2022-08-02 Thread Tom Rini
On platforms that have not migrated to enabling CONFIG_DM_ETH already, disable CONFIG_FMAN_ENET. Cc: Mingkai Hu Cc: Rajesh Bhagat Cc: Pramod Kumar Cc: Peng Fan Signed-off-by: Tom Rini --- Note that board/freescale/corenet_ds/MAINTAINERS shows them all orphaned and should likely be removed. --

[PATCH 17/21] ls1021aqds/ls1021aiot: Remove legacy non-DM_ETH code

2022-08-02 Thread Tom Rini
Now that we are about to enable DM_ETH by default, remove legacy code. Cc: Alison Wang Signed-off-by: Tom Rini --- board/freescale/common/Makefile | 1 - board/freescale/common/sgmii_riser.c| 130 - board/freescale/ls1021aiot/ls1021aiot.c | 38 - board/freesca

[PATCH 19/21] warp7: Remove legacy non-DM_ETH code

2022-08-02 Thread Tom Rini
Now that we are about to enable DM_ETH by default, remove legacy code. Cc: Fabio Estevam Signed-off-by: Tom Rini --- board/warp7/warp7.c | 13 - 1 file changed, 13 deletions(-) diff --git a/board/warp7/warp7.c b/board/warp7/warp7.c index 95b8e82dd1cc..ead52d5a490c 100644 --- a/boar

[PATCH 16/21] am335x_sl50: Disable SPL_NET

2022-08-02 Thread Tom Rini
Now that we are about to enable DM_ETH by default, disable SPL_NET as SPL_DM is not enabled currently. Cc: Enric Balletbo i Serra Signed-off-by: Tom Rini --- configs/am335x_sl50_defconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/configs/am335x_sl50_defconfig b/configs/am335x_sl50_de

[PATCH 18/21] vinco: Remove legacy non-DM_ETH code

2022-08-02 Thread Tom Rini
Now that we are about to enable DM_ETH by default, remove legacy code. Cc: Gregory CLEMENT Signed-off-by: Tom Rini --- The MAINTAINERS file needs to be updated as well, thanks. --- board/l+g/vinco/vinco.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/board/l+g/vinco/vinco.c b/board/l+g/

[PATCH 20/21] smdkc100: Remove legacy non-DM_ETH code

2022-08-02 Thread Tom Rini
Now that we are about to enable DM_ETH by default, remove legacy code. Cc: Minkyu Kang Signed-off-by: Tom Rini --- board/samsung/smdkc100/smdkc100.c | 9 - 1 file changed, 9 deletions(-) diff --git a/board/samsung/smdkc100/smdkc100.c b/board/samsung/smdkc100/smdkc100.c index 69ed71540

[PATCH 21/21] net: Make DM_ETH be selected by NETDEVICE

2022-08-02 Thread Tom Rini
The deadline for DM_ETH migration passed 2 years ago. Now that platforms which cannot be migrated have been either removed or had drivers disabled, and platforms that needed minor help to migrate have been forcefully migrated, we can complete the migration. This entails select'ing DM_ETH under NE

[PATCH 13/21] mpc8548cds: Guard old ethernet code with !DM_ETH

2022-08-02 Thread Tom Rini
There is some code here for the legacy non-DM_ETH case, add a guard around it. Cc: Priyanka Jain Cc: Peng Fan Signed-off-by: Tom Rini --- board/freescale/mpc8548cds/mpc8548cds.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/board/freescale/mpc8548cds/mpc8548cds.c b/bo

Re: [MVEBU] SPI flash offset was depecrated?

2022-08-02 Thread Tom Rini
On Tue, Aug 02, 2022 at 11:27:25AM +0200, Pali Rohár wrote: > Hello! I have tested it without dm-pre-reloc on A385 Turris Omnia and > you are right. SPL cannot load proper U-Boot and throws error: > > Trying to boot from SPI > Invalid bus 0 (err=-19) > SPI probe failed. > SPL: failed to bo

Re: [MVEBU] SPI flash offset was depecrated?

2022-08-02 Thread Pali Rohár
On Tuesday 02 August 2022 07:36:45 Tom Rini wrote: > On Tue, Aug 02, 2022 at 11:27:25AM +0200, Pali Rohár wrote: > > Hello! I have tested it without dm-pre-reloc on A385 Turris Omnia and > > you are right. SPL cannot load proper U-Boot and throws error: > > > > Trying to boot from SPI > > Inva

Re: [PATCH 02/21] ppc: Remove ids8313 board

2022-08-02 Thread Heiko Schocher
Hello Tom, On 02.08.22 13:33, Tom Rini wrote: > This board is behind on several mandatory DM migrations and is missing > OF_CONTROL support that makes other conversions impossible. Remove it. > > Cc: Heiko Schocher > Signed-off-by: Tom Rini > --- > arch/powerpc/cpu/mpc83xx/Kconfig | 7 - > b

Re: [PATCH 00/21] Finish migration to DM_ETH

2022-08-02 Thread Tom Rini
On Tue, Aug 02, 2022 at 07:33:26AM -0400, Tom Rini wrote: > As I've noted before, with v2022.07 being released, we have gone 2 years > past the DM_ETH migration deadline. What this series does is a few > things: > - Remove some boards that either lack DM migration at all, or lack > OF_CONTROL. D

Re: [MVEBU] SPI flash offset was depecrated?

2022-08-02 Thread Tom Rini
On Tue, Aug 02, 2022 at 01:43:07PM +0200, Pali Rohár wrote: > On Tuesday 02 August 2022 07:36:45 Tom Rini wrote: > > On Tue, Aug 02, 2022 at 11:27:25AM +0200, Pali Rohár wrote: > > > Hello! I have tested it without dm-pre-reloc on A385 Turris Omnia and > > > you are right. SPL cannot load proper U-

Re: [MVEBU] SPI flash offset was depecrated?

2022-08-02 Thread Pali Rohár
On Tuesday 02 August 2022 07:53:36 Tom Rini wrote: > On Tue, Aug 02, 2022 at 01:43:07PM +0200, Pali Rohár wrote: > > On Tuesday 02 August 2022 07:36:45 Tom Rini wrote: > > > On Tue, Aug 02, 2022 at 11:27:25AM +0200, Pali Rohár wrote: > > > > Hello! I have tested it without dm-pre-reloc on A385 Turr

Re: [PATCH v1 1/2] ARM: configs: npcm7xx: add full function for nuvoton npcm750

2022-08-02 Thread Tom Rini
On Tue, Aug 02, 2022 at 10:54:33AM +0800, Jim Liu wrote: > Hi Tom > > Thanks for your review. > My i2c driver status is Awaiting Upstream. > Is this the reason for the failure? > What should I do to fix this build error? > > Any comments are most welcome! Heiko? > > > Best regards, > Jim >

Re: [MVEBU] SPI flash offset was depecrated?

2022-08-02 Thread Tom Rini
On Tue, Aug 02, 2022 at 02:00:51PM +0200, Pali Rohár wrote: > On Tuesday 02 August 2022 07:53:36 Tom Rini wrote: > > On Tue, Aug 02, 2022 at 01:43:07PM +0200, Pali Rohár wrote: > > > On Tuesday 02 August 2022 07:36:45 Tom Rini wrote: > > > > On Tue, Aug 02, 2022 at 11:27:25AM +0200, Pali Rohár wrot

Re: [PATCH 0/6] introduce Arm FF-A support

2022-08-02 Thread Tom Rini
On Mon, Aug 01, 2022 at 08:28:08PM +0100, Sudeep Holla wrote: > On Mon, Aug 01, 2022 at 01:13:23PM -0600, Simon Glass wrote: > > On Wed, 13 Apr 2022 at 10:46, Tom Rini wrote: > > > > > > How is it both discoverable and doesn't have a device tree node, in the > > > kernel? > > > > Also, if it is di

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

2022-08-02 Thread Heinrich Schuchardt
Provide a man-page for the gpio command. Signed-off-by: Heinrich Schuchardt --- doc/usage/cmd/gpio.rst | 90 ++ doc/usage/index.rst| 1 + 2 files changed, 91 insertions(+) create mode 100644 doc/usage/cmd/gpio.rst diff --git a/doc/usage/cmd/gpio.rst

Re: [PATCH v1 1/2] ARM: configs: npcm7xx: add full function for nuvoton npcm750

2022-08-02 Thread Jim Liu
Hi Tom Yes , the link is as below https://patchwork.ozlabs.org/project/uboot/patch/20220623053142.6659-1-jjl...@nuvoton.com/ Best regards, Jim Tom Rini 於 2022年8月2日 週二,下午8:09寫道: > On Tue, Aug 02, 2022 at 10:54:33AM +0800, Jim Liu wrote: > > Hi Tom > > > > Thanks for your review. > > My i2c dri

[PATCH 1/3] binman: Use low level compression commands in tests

2022-08-02 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Use the low level compression commands in the tests to detect failures in the utilities to compress and decompress data. The decompression in U-Boot expects plain compression data without any header. Signed-off-by: Stefan Herbrechtsmeier --- This commit breaks the

[PATCH 2/3] binman: Remove header from compressed data

2022-08-02 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Remove header from compressed data because this is uncommon, not supported by U-Boot and incompatible with external compressed artifacts. The header was introduced as part of commit eb0f4a4cb402 ("binman: Support replacing data in a cbfs") to allow device tree entrie

[PATCH 3/3] binman: Add gzip bintool

2022-08-02 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add gzip bintool to binman to support on-the-fly compression of Linux kernel images and FPGA bitstreams. The SPL basic fitImage implementation supports only gzip decompression. Signed-off-by: Stefan Herbrechtsmeier --- tools/binman/btool/gzip.py | 94 +

[PATCH] checkpatch.pl: Reword IS_ENABLED() warning

2022-08-02 Thread Tom Rini
While there are good reasons to use 'if (IS_ENABLED(CONFIG_...))' for runtime tests, there's equally good reasons to use '#ifdef CONFIG_...' for build time tests. Reword this message to hopefully avoid confusion. Cc: Simon Glass Signed-off-by: Tom Rini --- scripts/checkpatch.pl | 2 +- 1 file

Re: [PATCH] lmb: Fix LMB_MEMORY_REGIONS flag usage

2022-08-02 Thread Tom Rini
On Tue, Aug 02, 2022 at 10:21:35AM +0200, Patrice Chotard wrote: > This patch is fixing a broken boot observed on stm32mp157c-dk2 board. > > IS_ENABLED macro should be used to check if a compilation flag is set > to "y" or "m". > LMB_MEMORY_REGIONS is set to a numerical value, IS_ENABLED macro is

Re: [PATCH] dm: rtc: Avoid a race in the rtc_reset test

2022-08-02 Thread Simon Glass
Hi Rasmus, On Tue, 2 Aug 2022 at 01:08, Rasmus Villemoes wrote: > > On 01/08/2022 21.13, Simon Glass wrote: > > Hi Heinrich, > > > > On Mon, 1 Aug 2022 at 08:58, Heinrich Schuchardt wrote: > >> > >> On 8/1/22 15:59, Simon Glass wrote: > >>> Hi Heinrich, > >>> > >>> On Mon, 1 Aug 2022 at 02:11, H

Re: [PATCH 01/21] Convert CONFIG_SYS_FDT_PAD to Kconfig

2022-08-02 Thread Simon Glass
On Tue, 2 Aug 2022 at 05:35, Tom Rini wrote: > > This converts the following to Kconfig: >CONFIG_SYS_FDT_PAD > > Signed-off-by: Tom Rini > --- > boot/image-fdt.c | 4 > include/configs/P2041RDB.h | 1 - > include/configs/T102xRDB.h | 2 -- > include/config

Re: [PATCH 1/1] block: fix blk_get_devnum_by_typename()

2022-08-02 Thread Simon Glass
Hi Heinrich, On Tue, 2 Aug 2022 at 03:50, Heinrich Schuchardt wrote: > > Both the 'host' and the 'efiloader' block devices use the same parent > uclass root. Thus the parent uclass is not an indicator the interface type. > > Currently the following fails: > > setenv efi_selftest block device

Re: [SPAM] Re: Replace make-fit-atf.py with binman. Was: migrate u-boot-rockchip.bin to binman and generate an image for SPI

2022-08-02 Thread Simon Glass
Hi Xavier, On Tue, 2 Aug 2022 at 02:19, Xavier Drudis Ferran wrote: > > El Mon, Aug 01, 2022 at 01:13:27PM -0600, Simon Glass deia: > > > > > > Am I completely lost or does what I want to do make some kind of sense? > > > > Well I still feel that we should handle this properly in binman. > > > >

Re: [PATCH 1/3] gpio: Allow to print pin's label even for pin with GPIOF_FUNC function

2022-08-02 Thread Simon Glass
On Tue, 2 Aug 2022 at 03:09, Patrice Chotard wrote: > > Currently, if pin's function is GPIOF_FUNC, only "func" if displayed > without any other information. It would be interesting, if information is > available, to indicate which pinmuxing's name is used. > > For example, for STM32 SoC's based p

Re: [PATCH 3/3] binman: Add gzip bintool

2022-08-02 Thread Simon Glass
On Tue, 2 Aug 2022 at 06:29, Stefan Herbrechtsmeier wrote: > > From: Stefan Herbrechtsmeier > > Add gzip bintool to binman to support on-the-fly compression of Linux > kernel images and FPGA bitstreams. The SPL basic fitImage implementation > supports only gzip decompression. > > Signed-off-by: S

Re: [PATCH 2/3] gpio: Fix pin's status display for pin with GPIOF_UNUSED function

2022-08-02 Thread Simon Glass
On Tue, 2 Aug 2022 at 03:09, Patrice Chotard wrote: > > Even pin with GPIOF_UNUSED function can have a label. > The criteria to add or not a space character is linked to label not to > the used/unused status. > > Signed-off-by: Patrice Chotard > --- > > drivers/gpio/gpio-uclass.c | 2 +- > 1 fil

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

2022-08-02 Thread Simon Glass
On Tue, 2 Aug 2022 at 06:28, Heinrich Schuchardt wrote: > > Provide a man-page for the gpio command. > > Signed-off-by: Heinrich Schuchardt > --- > doc/usage/cmd/gpio.rst | 90 ++ > doc/usage/index.rst| 1 + > 2 files changed, 91 insertions(+) > crea

Re: [PATCH 2/3] binman: Remove header from compressed data

2022-08-02 Thread Simon Glass
Hi Stefan, On Tue, 2 Aug 2022 at 06:29, Stefan Herbrechtsmeier wrote: > > From: Stefan Herbrechtsmeier > > Remove header from compressed data because this is uncommon, not > supported by U-Boot and incompatible with external compressed artifacts. > > The header was introduced as part of commit e

Re: [PATCH] checkpatch.pl: Reword IS_ENABLED() warning

2022-08-02 Thread Simon Glass
On Tue, 2 Aug 2022 at 06:33, Tom Rini wrote: > > While there are good reasons to use 'if (IS_ENABLED(CONFIG_...))' for > runtime tests, there's equally good reasons to use '#ifdef CONFIG_...' > for build time tests. Reword this message to hopefully avoid confusion. > > Cc: Simon Glass > Signed-o

Re: Build with CONFIG_TOOLS_LIBCRYPTO disabled is broken

2022-08-02 Thread Alexander Dahl
Hello everyone, Am Mittwoch, 27. Juli 2022, 15:08:56 CEST schrieb Tom Rini: > On Tue, Jul 26, 2022 at 10:27:01AM +0200, Alexander Dahl wrote: > > Hei hei, > > > > once again I tried building U-Boot with CONFIG_TOOLS_LIBCRYPTO disabled > > and > > with no libssl-dev installed on the build machine.

[PATCH 1/1] doc: add more details for crash dump analysis

2022-08-02 Thread Heinrich Schuchardt
* describe crashs in UEFI binaries * provide architechture specific information for the sandbox and RISC-V Signed-off-by: Heinrich Schuchardt --- doc/develop/crash_dumps.rst | 52 + 1 file changed, 52 insertions(+) diff --git a/doc/develop/crash_dumps.rst b/d

[PATCH 1/1] doc: crash_dumps.rst missing documentation link

2022-08-02 Thread Heinrich Schuchardt
Add link to usage/cmd/exception.rst. Signed-off-by: Heinrich Schuchardt --- doc/develop/crash_dumps.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/develop/crash_dumps.rst b/doc/develop/crash_dumps.rst index 9e7ae3d751..86e13a8085 100644 --- a/doc/develop/crash_du

Re: [PATCH 0/6] introduce Arm FF-A support

2022-08-02 Thread Sudeep Holla
On Tue, Aug 02, 2022 at 08:22:19AM -0400, Tom Rini wrote: > On Mon, Aug 01, 2022 at 08:28:08PM +0100, Sudeep Holla wrote: > > On Mon, Aug 01, 2022 at 01:13:23PM -0600, Simon Glass wrote: > > > On Wed, 13 Apr 2022 at 10:46, Tom Rini wrote: > > > > > > > > How is it both discoverable and doesn't hav

Re: [PATCH 2/3] binman: Remove header from compressed data

2022-08-02 Thread Stefan Herbrechtsmeier
Hi Simon, Am 02.08.2022 um 14:41 schrieb Simon Glass: Hi Stefan, On Tue, 2 Aug 2022 at 06:29, Stefan Herbrechtsmeier wrote: From: Stefan Herbrechtsmeier Remove header from compressed data because this is uncommon, not supported by U-Boot and incompatible with external compressed artifacts.

Re: [PATCH] dm: rtc: Avoid a race in the rtc_reset test

2022-08-02 Thread Heinrich Schuchardt
On 8/1/22 21:13, Simon Glass wrote: Hi Heinrich, On Mon, 1 Aug 2022 at 08:58, Heinrich Schuchardt wrote: On 8/1/22 15:59, Simon Glass wrote: Hi Heinrich, On Mon, 1 Aug 2022 at 02:11, Heinrich Schuchardt wrote: On 7/31/22 20:27, Simon Glass wrote: Since resetting the RTC on sandbox cause

Re: [PATCH] dm: rtc: Avoid a race in the rtc_reset test

2022-08-02 Thread Simon Glass
Hi Heinrich, On Tue, 2 Aug 2022 at 07:51, Heinrich Schuchardt wrote: > > On 8/1/22 21:13, Simon Glass wrote: > > Hi Heinrich, > > > > On Mon, 1 Aug 2022 at 08:58, Heinrich Schuchardt wrote: > >> > >> On 8/1/22 15:59, Simon Glass wrote: > >>> Hi Heinrich, > >>> > >>> On Mon, 1 Aug 2022 at 02:11,

[PATCH] configs: j721s2_evm_a72_defconfig: fix the bootcmd

2022-08-02 Thread Jayesh Choudhary
Remove the main_cpsw0_qsgmii_phyinit variable from the boot command as there is no ethernet firmware in j721s2. Fixes: 8886341aa670 ('configs: j721s2_evm_a72_defconfig: Add A72 specific defconfig') Signed-off-by: Jayesh Choudhary --- configs/j721s2_evm_a72_defconfig | 2 +- 1 file changed, 1 in

[PATCH 016/347] FogBugz #516535: Fix QSPI write issues

2022-08-02 Thread Jit Loon Lim
From: Chee Hong Ang QSPI driver perform chip select on every flash read/write access. The driver need to disable/enable the QSPI controller while performing chip select. This may cause some data lost especially the QSPI controller is configured to run at slower speed as it may take longer time to

Re: [PATCH v10 01/10] efi_loader: move udevice pointer into struct efi_object

2022-08-02 Thread Heinrich Schuchardt
On 7/22/22 04:39, Masahisa Kojima wrote: This is a preparation patch to provide the unified method to access udevice pointer associated with the EFI handle by adding udevice pointer into struct efi_object. The patch also introduces a helper function efi_link_dev() to link the udevice and EFI hand

Re: [PATCH 0/3] gpio: update gpio_get_status()

2022-08-02 Thread Heinrich Schuchardt
On 8/2/22 11:09, Patrice Chotard wrote: Currently, if pin's function is GPIOF_FUNC, only "func" if displayed without any other information. It would be interesting, if information is available, to indicate which pinmuxing's name is used. Maybe you can add on top of my gpio man-page patch a des

Re: [PATCH 1/1] block: fix blk_get_devnum_by_typename()

2022-08-02 Thread Heinrich Schuchardt
On 8/2/22 14:41, Simon Glass wrote: Hi Heinrich, On Tue, 2 Aug 2022 at 03:50, Heinrich Schuchardt wrote: Both the 'host' and the 'efiloader' block devices use the same parent uclass root. Thus the parent uclass is not an indicator the interface type. Currently the following fails: s

Re: [SPAM] Re: Replace make-fit-atf.py with binman. Was: migrate u-boot-rockchip.bin to binman and generate an image for SPI

2022-08-02 Thread Xavier Drudis Ferran
El Tue, Aug 02, 2022 at 06:41:40AM -0600, Simon Glass deia: > > It seems we need a lot more guidance here. I can help write more into > the packaging docs, perhaps: > > https://u-boot.readthedocs.io/en/latest/develop/package/binman.html#motivation > > Can you please suggest a few questions to an

Re: [PATCH] drivers: xen: events: fix build issues with disabled Xen HVC

2022-08-02 Thread Dmytro Firsov
It received reviewed-by from code maintainer. Does anything else needed to take it to u-boot/master? On 02.08.22 13:57, Tom Rini wrote: > On Tue, Aug 02, 2022 at 08:48:51AM +, Dmytro Firsov wrote: > >> Can moderators, please, take a look on this patch? > What about it? > > https://patchwork.o

Re: [PATCH] drivers: xen: events: fix build issues with disabled Xen HVC

2022-08-02 Thread Tom Rini
On Tue, Aug 02, 2022 at 06:49:49PM +, Dmytro Firsov wrote: > It received reviewed-by from code maintainer. Does anything else needed > to take it to u-boot/master? Ah. I'll probably pick it up soon. -- Tom signature.asc Description: PGP signature

Re: [PATCH] drivers: xen: events: fix build issues with disabled Xen HVC

2022-08-02 Thread Dmytro Firsov
On 02.08.22 22:11, Tom Rini wrote: > On Tue, Aug 02, 2022 at 06:49:49PM +, Dmytro Firsov wrote: > >> It received reviewed-by from code maintainer. Does anything else needed >> to take it to u-boot/master? > Ah. I'll probably pick it up soon. > Thanks!

Re: [PATCH 1/1] doc: add more details for crash dump analysis

2022-08-02 Thread Sean Anderson
On 8/2/22 9:29 AM, Heinrich Schuchardt wrote: > * describe crashs in UEFI binaries > * provide architechture specific information for the sandbox and RISC-V > > Signed-off-by: Heinrich Schuchardt > --- > doc/develop/crash_dumps.rst | 52 + > 1 file changed,

[PATCH] gpio: aspeed: port Linux dt-bindings header file

2022-08-02 Thread Dhananjay Phadke
Ported as is, makes it easier to add readable GPIO definitions in DTS files. Signed-off-by: Dhananjay Phadke --- include/dt-bindings/gpio/aspeed-gpio.h | 49 ++ 1 file changed, 49 insertions(+) create mode 100644 include/dt-bindings/gpio/aspeed-gpio.h diff --git a/inclu

Re: [PATCH] arm: mvebu: spl: Always fallback to BootROM boot method

2022-08-02 Thread Tony Dinh
Hi Pali, It works great! An observation: BootROM boot method is a lot faster than SPL SPI driver method on this Armada 385 board. The BootROM took a fraction of a second to load the u-boot image. SPL SPI driver took a few seconds to load. Perhaps the SPI flash speed vs some probing code in SPL SP

Re: [PATCH] arm: mvebu: spl: Always fallback to BootROM boot method

2022-08-02 Thread Pali Rohár
Hello! We have tested that A385 BootROM on Turris Omnia board is much slower when reading proper U-Boot from SPI NOR than native SPL SPI driver. If you have different test results on A385, could you check SPI speed used by U-Boot? I think that CONFIG_SF_DEFAULT_SPEED should define it. For Omnia we

[PATCH v2 1/1] doc: add more details for crash dump analysis

2022-08-02 Thread Heinrich Schuchardt
* describe crashs in UEFI binaries * provide architechture specific information for the sandbox and RISC-V Signed-off-by: Heinrich Schuchardt --- v2: describe CONFIG_ARMV8_SPL_EXCEPTION_VECTORS --- doc/develop/crash_dumps.rst | 60 + 1 file changed, 60

Re: [PATCH] arm: mvebu: spl: Always fallback to BootROM boot method

2022-08-02 Thread Tony Dinh
Hi Pali, On Tue, Aug 2, 2022 at 3:00 PM Pali Rohár wrote: > > Hello! We have tested that A385 BootROM on Turris Omnia board is much > slower when reading proper U-Boot from SPI NOR than native SPL SPI > driver. > > If you have different test results on A385, could you check SPI speed > used by U-

Re: [PATCH 04/21] arm: Remove mx28evk board

2022-08-02 Thread Fabio Estevam
On Tue, Aug 2, 2022 at 8:34 AM Tom Rini wrote: > > This board is behind on several mandatory DM migrations and is missing > OF_CONTROL support that makes other conversions impossible. Remove it. This is not correct. The only missing DM migration is the DM_SERIAL one, which is due on v2023.04. S

Re: [PATCH 04/21] arm: Remove mx28evk board

2022-08-02 Thread Fabio Estevam
On Tue, Aug 2, 2022 at 8:08 PM Fabio Estevam wrote: > > On Tue, Aug 2, 2022 at 8:34 AM Tom Rini wrote: > > > > This board is behind on several mandatory DM migrations and is missing > > OF_CONTROL support that makes other conversions impossible. Remove it. > > This is not correct. > > The only mi

Re: [PATCH u-boot-marvell v2 1/3] arm: Introduce new CONFIG_SPL_SYS_NO_VECTOR_TABLE option

2022-08-02 Thread Heinrich Schuchardt
On 4/6/22 16:20, Pali Rohár wrote: Move OMAP4 specific option for disabling overwriting vector table into config option CONFIG_SPL_SYS_NO_VECTOR_TABLE. Signed-off-by: Pali Rohár --- arch/arm/Kconfig| 4 arch/arm/cpu/armv7/start.S | 4 +--- arch/arm/mach-omap2/Kconfig | 1 +

Re: [PATCH] timer: bcmbca: Add Broadcom BCMBCA timer support

2022-08-02 Thread William Zhang
Hi Rafal, On 08/01/2022 10:26 PM, Rafał Miłecki wrote: On 2.08.2022 00:03, William Zhang wrote: This driver supports the peripheral block timer found on the Broadcom BCA SoCs. It is 30-bit up-count timer running at 50MHz and can be used as the system clock source such as on BCM63138. Signed-off

  1   2   >