Re: [PATCH] riscv: fix compitible with binutils 2.38

2022-08-30 Thread Leo Liang
On Fri, Aug 19, 2022 at 09:24:53AM -0600, Simon Glass wrote: > Hi Leo, > > On Fri, 19 Aug 2022 at 03:09, Leo Liang wrote: > > > > On Thu, Aug 11, 2022 at 10:23:02PM +, Leo Liang wrote: > > > On Mon, May 30, 2022 at 11:05:54AM -0400, Tom Rini wrote: > > > > On Sat, May 28, 2022 at 09:02:09AM +

[PATCHv4] drivers: tee: i2c: support the NXP SE05x probe errata

2022-08-30 Thread Jorge Ramirez-Ortiz
Early instantiation of this I2C device would lock up when being probed. https://www.nxp.com/docs/en/errata/SE050_Erratasheet.pdf 3.2.2 In scenarios of detecting I2C ICs on the bus using an empty I2C frame containing only the address the SE050 will block the I2C bus. Tested on STM32MP1

Re: [PATCHv2 1/2] i2c: stm32f7: fix clearing the control register

2022-08-30 Thread Patrick DELAUNAY
Hi, On 8/15/22 16:52, Jorge Ramirez-Ortiz wrote: Bits should be set to 0, not 1. Signed-off-by: Jorge Ramirez-Ortiz --- drivers/i2c/stm32f7_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/stm32f7_i2c.c b/drivers/i2c/stm32f7_i2c.c index bf2a6c9b4b..3a727

Re: [PATCH] disk: part: remove dependency to ubifs for spl

2022-08-30 Thread Stefan Herbrechtsmeier
Hi, Am 30.08.2022 um 04:29 schrieb Simon Glass: Hi Stefan, On Mon, 29 Aug 2022 at 09:53, Stefan Herbrechtsmeier wrote: Hi Heinrich, Am 29.08.2022 um 17:01 schrieb Heinrich Schuchardt: On 8/8/22 16:45, Stefan Herbrechtsmeier wrote: From: Stefan Herbrechtsmeier The spl doesn't support ubi

Re: [RFC PATCH v2] clk: fix clk_get_rate() always return ulong

2022-08-30 Thread Julien Masson
Hi Simon, On Tue 30 Aug 2022 at 10:32, Simon Glass wrote: > Hi Julien, > > On Mon, 29 Aug 2022 at 06:06, Julien Masson wrote: >> >> According to clk_ops struct definition, the callback `get_rate()` >> return current clock rate value as ulong. >> `clk_get_rate()` should handle the clock rate re

Re: [PATCH] ARM: stm32: Switch DHSOM to FMC2 EBI driver

2022-08-30 Thread Patrick DELAUNAY
Hi, On 8/23/22 19:27, Marek Vasut wrote: Perform long overdue conversion of ad-hoc FMC2 EBI bus initialization to upstream FMC2 EBI driver. No functional change. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay --- .../dts/stm32mp15xx-dhcom-picoitx-u-boot.dtsi | 8 ---

Re: [PATCH] configs: stm32: Enable CONFIG_DM_REGULATOR for stm32f769-disco

2022-08-30 Thread Patrick DELAUNAY
Hi, On 8/24/22 15:44, Patrice Chotard wrote: Since commit 5bc6f8c2a97e("video: stm32: remove test on CONFIG_DM_REGULATOR") backlight was broken with the following message at boot: stm32-display-dsi dsi@40016c00: Warning: cannot get phy dsi supply stm32_display display-controller@40016800: panel

Re: [PATCH] ARM: dts: stm32: Fix display-timings settings for stm32f746-disco

2022-08-30 Thread Patrick DELAUNAY
Hi, On 8/24/22 15:42, Patrice Chotard wrote: Since commit ef4ce6df3289 "video: stm32: stm32_ltdc: fix data enable polarity" The panel display output wasn't functional anymore. Device tree display-timings de-active property value must be updated to 1. Signed-off-by: Patrice Chotard --- arch/

Re: [PATCH v2] pci: Do not enable PCIe GEN3 link retrain workaround by default

2022-08-30 Thread Maciej W. Rozycki
On Sat, 27 Aug 2022, Pali Rohár wrote: > Moreover this workaround is enabled for all existing hardware and also all > future PCIe hardware, which opens a hole that other PCIe vendors may > introduce same HW issue as on systems where this workaround is required and > nobody would notice it because

Re: [PATCH v2] pci: Do not enable PCIe GEN3 link retrain workaround by default

2022-08-30 Thread Pali Rohár
On Tuesday 30 August 2022 10:04:51 Maciej W. Rozycki wrote: > On Sat, 27 Aug 2022, Pali Rohár wrote: > > > Moreover this workaround is enabled for all existing hardware and also all > > future PCIe hardware, which opens a hole that other PCIe vendors may > > introduce same HW issue as on systems w

Re: [PATCH v5 1/8] binman: add support for skipping file concatenation for mkimage

2022-08-30 Thread Quentin Schulz
Hi Simon, On 8/27/22 02:21, Simon Glass wrote: Hi Quentin, On Fri, 26 Aug 2022 at 09:37, Quentin Schulz wrote: From: Quentin Schulz Some image types handled by mkimage require the datafiles to be passed independently (-d data1:data2) for specific handling of each. A concatenation of datafi

Re: [PATCH 1/2] patman: do not hardcode coverage tool

2022-08-30 Thread Quentin Schulz
Hi Michal, On 8/25/22 08:49, Michal Suchanek wrote: The coverage tool name varies across distributions. Add COVERAGE variable to specify the tool name. Also there is one place where prefix is prepended to the tool path, remove the prefix. Signed-off-by: Michal Suchanek --- doc/develop/test

Re: [PATCH 1/2] patman: do not hardcode coverage tool

2022-08-30 Thread Michal Suchánek
On Tue, Aug 30, 2022 at 12:01:55PM +0200, Quentin Schulz wrote: > Hi Michal, > > On 8/25/22 08:49, Michal Suchanek wrote: > > The coverage tool name varies across distributions. > > > > Add COVERAGE variable to specify the tool name. > > > > Also there is one place where prefix is prepended to t

Re: [PATCH 2/2] tests: Do not hardcode sudo tool

2022-08-30 Thread Michal Suchánek
On Thu, Aug 25, 2022 at 09:01:08AM -0600, Simon Glass wrote: > Hi Michal, > > On Wed, 24 Aug 2022 at 23:51, Michal Suchanek wrote: > > > > In some situations it may be needed to pass parameters to sudo or to use > > a different tool to gain root access. Add SUDO variable to specify the > > sudo t

Re: [PATCH v3] dm: core: Do not stop uclass iteration on error

2022-08-30 Thread Michal Suchánek
On Sat, Aug 27, 2022 at 07:52:27PM -0600, Simon Glass wrote: > Hi Michal, > > On Fri, 19 Aug 2022 at 14:23, Michal Suchanek wrote: > > > > When probing a device fails NULL pointer is returned, and other devices > > cannot be iterated. Skip to next device on error instead. > > > > Fixes: 6494d708b

[PATCH 0/2] Add HS configs for J7200 and J721S2 TI SOCs

2022-08-30 Thread Jayesh Choudhary
This series adds the r5 and a72 defconfigs for 2 platforms: - J7200 HS - J721S2 HS Andrew Davis (1): configs: Add configs for J7200 High Security EVM Jayesh Choudhary (1): configs: Add configs for j721s2 High Security EVM MAINTAINERS | 4 + configs/j7200_hs_evm_a72

[PATCH 1/2] configs: Add configs for J7200 High Security EVM

2022-08-30 Thread Jayesh Choudhary
From: Andrew Davis Add J7200 High Security EVM defconfig. These defconfigs are the same as for the non-secure part, except for: CONFIG_TI_SECURE_DEVICE option set to 'y' CONFIG_BOOTCOMMAND uses FIT images for booting Signed-off-by: Andrew Davis [j-choudh...@ti.com: add few configs from

[PATCH 2/2] configs: Add configs for j721s2 High Security EVM

2022-08-30 Thread Jayesh Choudhary
Add j721s2 High Security EVM defconfig. These configs are same as for the non-secure part, except for: CONFIG_TI_SECURE_DEVICE option set to 'y' CONFIG_FIT_IMAGE_POST_PROCESS option set to 'y' CONFIG_SPL_FIT_IMAGE_POST_PROCESS option set to 'y' CONFIG_BOOTCOMMAND us

Re: [PATCH v2] pci: Do not enable PCIe GEN3 link retrain workaround by default

2022-08-30 Thread Stefan Roese
On 30.08.22 11:19, Pali Rohár wrote: On Tuesday 30 August 2022 10:04:51 Maciej W. Rozycki wrote: On Sat, 27 Aug 2022, Pali Rohár wrote: Moreover this workaround is enabled for all existing hardware and also all future PCIe hardware, which opens a hole that other PCIe vendors may introduce same

Re: [PATCH 4/4] arm: dts: chameleonv3: Add 270-2 variant

2022-08-30 Thread Alexandru M Stan
Hey Simon, On Mon, Aug 29, 2022 at 7:29 PM Simon Glass wrote: > > Hi Paweł, > > On Mon, 29 Aug 2022 at 02:23, Paweł Anikiel wrote: > > > > On Sat, Aug 27, 2022 at 2:22 AM Simon Glass wrote: > > > > > > Hi Paweł, > > > > > > On Fri, 26 Aug 2022 at 01:54, Paweł Anikiel wrote: > > > > > > > > Add

RE: [PATCH v2 3/4] cmd: bdinfo: introduce bdinfo_print_size() helper

2022-08-30 Thread Jason Liu
> -Original Message- > From: Ovidiu Panait > Sent: 2022年8月30日 1:02 > To: u-boot@lists.denx.de > Cc: Ovidiu Panait ; Simon Glass ; > Andy Shevchenko ; Dzmitry Sankouski > ; Heinrich Schuchardt ; Jason > Liu > Subject: [PATCH v2 3/4] cmd: bdinfo: introduce bdinfo_print_size() helper > >

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

2022-08-30 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

[PATCH] ddr: socfpga: Fix integer overflow

2022-08-30 Thread Jit Loon Lim
From: Tien Fong Chee dramaddrw data structure are defined as u32. Compiler assume 32-bit arithmetic on expression and the shifting operation to be done on a 32-bit value. So, the expression would overflow if the shifting is more than 32-bit. Signed-off-by: Tien Fong Chee --- drivers/ddr/altera

Re: [PATCH 4/4] arm: dts: chameleonv3: Add 270-2 variant

2022-08-30 Thread Paweł Anikiel
On Tue, Aug 30, 2022 at 5:13 AM Alexandru M Stan wrote: > > Hey Simon, > > On Mon, Aug 29, 2022 at 7:29 PM Simon Glass wrote: > > > > Hi Paweł, > > > > On Mon, 29 Aug 2022 at 02:23, Paweł Anikiel wrote: > > > > > > On Sat, Aug 27, 2022 at 2:22 AM Simon Glass wrote: > > > > > > > > Hi Paweł, > >

[PATCH 0/6] Enable CONFIG_TIMER for all Kirwood / MVEBU boards

2022-08-30 Thread Stefan Roese
This patchset enhaces the recently added Orion Timer driver to support all other Kirkwood & 32bit MVEBU Armada platforms. Additionally, this timer support is then enabled per default for those platforms, so that the board config files don't need to be changed. Also necessary is some dts hacking, so

[PATCH 1/6] timer: orion-timer: Add support for other Armada SoC's

2022-08-30 Thread Stefan Roese
This patch adds support for other Marvell Armada SoC's, supporting the 25MHz fixed clock operation, like the Armada XP etc. Signed-off-by: Stefan Roese --- drivers/timer/Kconfig | 5 - drivers/timer/orion-timer.c | 44 ++--- 2 files changed, 45 insertio

[PATCH 4/6] arm: mvebu: dts: Makefile: Compile Armada 375 dtb in a separate step

2022-08-30 Thread Stefan Roese
This patch changes the compilation, so that the Armada 375 board(s) are compiled in a separate step. This is necessary for the timer dts conversion, as A375 has a different / timer description in the dts. Signed-off-by: Stefan Roese --- arch/arm/dts/Makefile | 6 +- 1 file changed, 5 inserti

[PATCH 5/6] arm: mvebu: dts: armada-375.dtsi: Add timer0 & timer1

2022-08-30 Thread Stefan Roese
Add the DT bindings / descriptions for timer0 & timer1, exactly as done in mainline Linux. Signed-off-by: Stefan Roese --- arch/arm/dts/armada-375.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/armada-375.dtsi b/arch/arm/dts/armada-375.dtsi index 20a8c3

[PATCH 2/6] timer: orion-timer: Add timer_get_boot_us() for BOOTSTAGE support

2022-08-30 Thread Stefan Roese
Add timer_get_boot_us() to support boards, that have CONFIG_BOOTSTAGE enabled, like pogo_v4. Signed-off-by: Stefan Roese --- drivers/timer/orion-timer.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/timer/orion-timer.c b/drivers/timer/orion-timer.c index 02e

[PATCH 3/6] arm: mvebu: Use CONFIG_TIMER on all MVEBU & KIRKWOOD platforms

2022-08-30 Thread Stefan Roese
Now that the new timer support is available for these platforms, let's select this IF for all these platforms. This way it's not necessary that each board changes it's config header. Signed-off-by: Stefan Roese --- arch/arm/Kconfig | 4 arch/arm/mach-mvebu/include/m

[PATCH 6/6] arm: mvebu: dts: mvebu-u-boot.dtsi: Add "u-boot, dm-pre-reloc" to timer DT node

2022-08-30 Thread Stefan Roese
Adding the "u-boot,dm-pre-reloc" DT property to the timer node is necesssary to support the timer in the early boot phases (e.g. SPL & pre-reloc). Signed-off-by: Stefan Roese --- arch/arm/dts/mvebu-u-boot.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/dts/mvebu-u-

Re: [PATCH v14 01/10] eficonfig: menu-driven addition of UEFI boot option

2022-08-30 Thread Ilias Apalodimas
Hi Kojima-san, [...] > +/** > + * eficonfig_choice_entry() - user key input handler > + * > + * @data:pointer to the efimenu structure > + * Return: key string to identify the selected entry > + */ > +static char *eficonfig_choice_entry(void *data) > +{ > + int esc = 0; > + struct li

Re: [PATCH v2] pci: Do not enable PCIe GEN3 link retrain workaround by default

2022-08-30 Thread Pali Rohár
On Tuesday 30 August 2022 13:15:26 Stefan Roese wrote: > On 30.08.22 11:19, Pali Rohár wrote: > > On Tuesday 30 August 2022 10:04:51 Maciej W. Rozycki wrote: > > > On Sat, 27 Aug 2022, Pali Rohár wrote: > > > > > > > Moreover this workaround is enabled for all existing hardware and also > > > > a

Re: [PATCH 2/6] timer: orion-timer: Add timer_get_boot_us() for BOOTSTAGE support

2022-08-30 Thread Michael Walle
Am 2022-08-30 13:53, schrieb Stefan Roese: Add timer_get_boot_us() to support boards, that have CONFIG_BOOTSTAGE enabled, like pogo_v4. Signed-off-by: Stefan Roese --- drivers/timer/orion-timer.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/timer/orion-ti

Re: [PATCH 3/6] arm: mvebu: Use CONFIG_TIMER on all MVEBU & KIRKWOOD platforms

2022-08-30 Thread Michael Walle
Am 2022-08-30 13:53, schrieb Stefan Roese: Now that the new timer support is available for these platforms, let's select this IF for all these platforms. This way it's not necessary that each board changes it's config header. Signed-off-by: Stefan Roese --- arch/arm/Kconfig

Re: [PATCH 2/6] timer: orion-timer: Add timer_get_boot_us() for BOOTSTAGE support

2022-08-30 Thread Stefan Roese
Adding Simon to Cc... On 30.08.22 14:00, Michael Walle wrote: Am 2022-08-30 13:53, schrieb Stefan Roese: Add timer_get_boot_us() to support boards, that have CONFIG_BOOTSTAGE enabled, like pogo_v4. Signed-off-by: Stefan Roese ---  drivers/timer/orion-timer.c | 22 ++  1 fil

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

2022-08-30 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 v3 4/4] gpio: sandbox: Add GPIOD_IS_AF for gpio configured in alternate function

2022-08-30 Thread Patrice Chotard
This allows to test if a pin's label if displayed using gpio_get_status() when this pin is configured in alternate function. Signed-off-by: Patrice Chotard Reviewed-by: Simon Glass --- (no changes since v1) drivers/gpio/sandbox.c | 5 + include/asm-generic/gpio.h

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

2022-08-30 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 v3 2/4] gpio: Fix pin's status display for pin with GPIOF_UNUSED function

2022-08-30 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 Reviewed-by: Simon Glass --- Changes in v3: - add lost Simon Glass's reviewed-by during v1 review drivers/gpio

[PATCH v3 0/4] gpio: update gpio_get_status()

2022-08-30 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. Changes in v3: - add lost Simon Glass's reviewed-by during v1 review in patch 1 and 2 Patrice

Re: [PATCH 3/6] arm: mvebu: Use CONFIG_TIMER on all MVEBU & KIRKWOOD platforms

2022-08-30 Thread Stefan Roese
On 30.08.22 14:04, Michael Walle wrote: Am 2022-08-30 13:53, schrieb Stefan Roese: Now that the new timer support is available for these platforms, let's select this IF for all these platforms. This way it's not necessary that each board changes it's config header. Signed-off-by: Stefan Roese

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

2022-08-30 Thread Patrick DELAUNAY
Hi Patrice On 8/30/22 14: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 platform,

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

2022-08-30 Thread Patrick DELAUNAY
Hi Patrice, On 8/30/22 14: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 Reviewed-by: Simon Glass --- Changes in v3: - add lost

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

2022-08-30 Thread Patrick DELAUNAY
Hi, On 8/30/22 14:09, Patrice Chotard wrote: 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:

Re: [PATCH v3 4/4] gpio: sandbox: Add GPIOD_IS_AF for gpio configured in alternate function

2022-08-30 Thread Patrick DELAUNAY
Hi Patrice, On 8/30/22 14:09, Patrice Chotard wrote: This allows to test if a pin's label if displayed using gpio_get_status() when this pin is configured in alternate function. Signed-off-by: Patrice Chotard Reviewed-by: Simon Glass --- (no changes since v1) drivers/gpio/sandbox.c

Re: [PATCH] arm: mvebu: Espressobin: When emmc is not present disable it also in OF_LIVE

2022-08-30 Thread Stefan Roese
On 27.08.22 14:00, Pali Rohár wrote: Signed-off-by: Pali Rohár As mentioned by Simon, please add a short sentence in the commit text as well. Other than that: Reviewed-by: Stefan Roese Thanks, Stefan --- board/Marvell/mvebu_armada-37xx/board.c | 2 ++ 1 file changed, 2 insertions(+)

Re: [PATCH] board: turris: Initialize serial# env

2022-08-30 Thread Stefan Roese
On 27.08.22 20:06, Pali Rohár wrote: Store serial number from atsha cryptochip into the serial# env variable. U-Boot automatically puts content of this variable into the root device tree property serial-number when booting Linux kernel. Refactor turris atsha code and from turris_atsha_otp_get_ser

Re: [PATCH] arm: mvebu: turris_{omnia, mox}: Reset bootdelay env for rescue

2022-08-30 Thread Stefan Roese
On 27.08.22 20:49, Pali Rohár wrote: When rescue mode was activated reset also bootdelay env variable to its default value. This will ensure that reset button works and starts rescue mode also in the case when user changed bootdelay env variable to -1 (which has meaning to not start autoboot). S

Re: [PATCH] arm: mvebu: turris_mox: Add support for distroboot $fdt_addr

2022-08-30 Thread Stefan Roese
On 29.08.22 15:44, Pali Rohár wrote: $fdt_addr is mandatory for systems which provides DTB in HW (e.g. ROM) and wishes to pass that DTB to Linux. Turris Mox contains DTB binary in SPI NOR memory at "dtb" partition which starts at offset 0x7f and is 0x1 bytes long. Armada 3700 CPU does n

[PATCH] ARM: imx: Update Data Modul i.MX8M Mini eDM SBC DRAM timing

2022-08-30 Thread Marek Vasut
Adjust the DRAM timing settings for this board per ones provided by hardware department. The change is applied to the LPDDR4 MR11 register CA ODT configuration, from RZQ/6 to RZQ/3, which fixes stability issues on subset of boards. The DDR PHY PIE block has been updated accordingly. Signed-off-by:

Re: [PATCH] ARM: imx: Update Data Modul i.MX8M Mini eDM SBC DRAM timing

2022-08-30 Thread Fabio Estevam
On Tue, Aug 30, 2022 at 9:34 AM Marek Vasut wrote: > > Adjust the DRAM timing settings for this board per ones provided > by hardware department. The change is applied to the LPDDR4 MR11 > register CA ODT configuration, from RZQ/6 to RZQ/3, which fixes > stability issues on subset of boards. The D

Re: [PATCH v14 01/10] eficonfig: menu-driven addition of UEFI boot option

2022-08-30 Thread Ilias Apalodimas
On Tue, 30 Aug 2022 at 14:53, Ilias Apalodimas wrote: > > Hi Kojima-san, > > [...] > > +/** > > + * eficonfig_choice_entry() - user key input handler > > + * > > + * @data:pointer to the efimenu structure > > + * Return: key string to identify the selected entry > > + */ > > +static char *ef

[PATCH v2 00/17] IPv6 support

2022-08-30 Thread Viacheslav Mitrofanov
This patch set adds basic IPv6 support to U-boot. It is based on Chris's Packham patches (https://lists.denx.de/pipermail/u-boot/2017-January/279366.html) Chris's patches were taken as base. There were efforts to launch it on HiFive SiFive Unmatched board but the board didn't work well. The code wa

[PATCH 01/17] net: ipv6: Add IPv6 basic primitives

2022-08-30 Thread Viacheslav Mitrofanov
This patch is a collection of basic primitives that are prerequisite for further IPv6 implementation. There are structures definition such as IPv6 header, UDP header (for TFTP), ICMPv6 header. There are auxiliary defines such as protocol codes, padding, struct size and etc. Also here are functions

[PATCH 03/17] net: ipv6: Add callbacks declarations to get access to IPv6 variables

2022-08-30 Thread Viacheslav Mitrofanov
Set up callbacks for main IPv6 variables ip6add, serverip6, gatewayip6 and set options to them in flag file. These variables are often set up by users. Signed-off-by: Viacheslav Mitrofanov --- include/env_callback.h | 10 ++ include/env_flags.h| 10 ++ 2 files changed, 20 ins

[PATCH 02/17] net: ipv6: Add IPv6 build options

2022-08-30 Thread Viacheslav Mitrofanov
Add options to Makefile and Kconfig file to build IPv6 Signed-off-by: Viacheslav Mitrofanov --- net/Kconfig | 4 net/Makefile | 1 + 2 files changed, 5 insertions(+) diff --git a/net/Kconfig b/net/Kconfig index 52e261884d..568e622de8 100644 --- a/net/Kconfig +++ b/net/Kconfig @@ -174,6 +1

[PATCH 04/17] net: ipv6: Add Neighbor Discovery Protocol (NDP)

2022-08-30 Thread Viacheslav Mitrofanov
Implement basic of NDP. It doesn't include such things as Router Solicitation, Router Advertisement and Redirect. It just has Neighbor Solicitation and Neighbor Advertisement. Only these two features are used in u-boot IPv6. Implementation of some NDP functions uses API that was exposed in "net: ip

[PATCH 06/17] net: ipv6: Enable IPv6 typeconversion specifier

2022-08-30 Thread Viacheslav Mitrofanov
Add the possibility to recognize IPv6 address in print function. To output IPv6 address use %pI6 specifier. Signed-off-by: Viacheslav Mitrofanov --- lib/vsprintf.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/vsprintf.c b/lib/vsprintf.c index fe06aa2d71..d5

[PATCH 05/17] net: ipv6: Add string_to_ip6 converter

2022-08-30 Thread Viacheslav Mitrofanov
This functions is used as a converter from IPv6 address string notation to struct ip6_addr that is used everywhere in IPv6 implementation. For example it is used to parse and convert IPv6 address from tftpboot command. Conversion algorithm uses two passes, first to verify syntax and locate colons a

[PATCH 07/17] net: ipv6: Add ip6addr, gatewayip6, serverip6 variables callbacks

2022-08-30 Thread Viacheslav Mitrofanov
Implement actions on ip6addr, gatewayip6, serverip6 varaibles. on_ip6addr - convert IPv6 string addr to struct ip6_addr on_gatewayip6 - convert IPv6 string addr to struct ip6_addr on_serverip6 - convert IPv6 string addr to struct ip6_addr Signed-off-by: Viacheslav Mitrofanov --- net/net6.c | 67

[PATCH 08/17] net: ipv6: Add implementation of main IPv6 functions

2022-08-30 Thread Viacheslav Mitrofanov
Functions that were exposed in "net: ipv6: Add IPv6 basic primitives" had only empty implementations and were exposed as API for futher patches. This patch add implementation of these functions. Main functions are: net_ip6_handler() - IPv6 packet handler for incoming packets; net_send_udp_packet6()

[PATCH 09/17] net: ipv6: Incorporate IPv6 support into u-boot net subsystem

2022-08-30 Thread Viacheslav Mitrofanov
Add net_ip6_handler (an IPv6 packet handler) into net_loop. Add neighbor discovery mechanism into network init process. That is the main step to run IPv6 in u-boot. Now u-boot is capable to use NDP and handle IPv6 packets. Signed-off-by: Viacheslav Mitrofanov --- net/net.c | 23 +

[PATCH 10/17] net: tftp: Add IPv6 support for tftpboot

2022-08-30 Thread Viacheslav Mitrofanov
The command tftpboot uses IPv4 by default. Add the possibility to use IPv6 instead. If an address in the command is an IPv6 address it will use IPv6 to boot or if there is a suffix -ipv6 in the end of the command it also force using IPv6. All other tftpboot features and parameters are left the same

[PATCH 12/17] test: dm: eth: Add string_to_ip6 test

2022-08-30 Thread Viacheslav Mitrofanov
Add a test to check convertation from char* to struct in6_addr. Use in sandbox Signed-off-by: Viacheslav Mitrofanov --- test/dm/eth.c | 48 1 file changed, 48 insertions(+) diff --git a/test/dm/eth.c b/test/dm/eth.c index 5437f9ea4a..4cc90cf514 1

[PATCH 11/17] net: ping6: Add ping6 command

2022-08-30 Thread Viacheslav Mitrofanov
Implement ping6 command to ping hosts using IPv6. It works the same way as an ordinary ping command. There is no ICMP request so it is not possible to ping our host. This patch adds options in Kconfig and Makefile to build ping6 command. Signed-off-by: Viacheslav Mitrofanov --- cmd/Kconfig|

[PATCH 14/17] test: dm: eth: Add ip6_addr_in_subnet test

2022-08-30 Thread Viacheslav Mitrofanov
Add a test if two address are in the same subnet. Use in sandbox Signed-off-by: Viacheslav Mitrofanov --- test/dm/eth.c | 25 + 1 file changed, 25 insertions(+) diff --git a/test/dm/eth.c b/test/dm/eth.c index bbfa14ef6d..d4a39e53d9 100644 --- a/test/dm/eth.c +++ b/test/

[PATCH 13/17] test: dm: eth: Add csum_ipv6_magic test

2022-08-30 Thread Viacheslav Mitrofanov
Test checksum computation. csum_ipv6_magic() uses in upper layer protocols as TCP/UDP/ICMPv6/etc to calculate payload checksum. Signed-off-by: Viacheslav Mitrofanov --- test/dm/eth.c | 29 + 1 file changed, 29 insertions(+) diff --git a/test/dm/eth.c b/test/dm/eth.c

[PATCH 16/17] test: dm: eth: Add ip6_make_lladdr test

2022-08-30 Thread Viacheslav Mitrofanov
Add a test that checks generated Link Local Address. Use in sandbox Signed-off-by: Viacheslav Mitrofanov --- test/dm/eth.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/test/dm/eth.c b/test/dm/eth.c index c892c68523..f84714b735 100644 --- a/test/dm/eth.c +++ b/test/dm/e

[PATCH 15/17] test: dm: eth: Add ip6_make_snma test

2022-08-30 Thread Viacheslav Mitrofanov
Add a test that checks generated Solicited Node Multicast Address from our ipv6 address. Use in sandbox Signed-off-by: Viacheslav Mitrofanov --- test/dm/eth.c | 20 1 file changed, 20 insertions(+) diff --git a/test/dm/eth.c b/test/dm/eth.c index d4a39e53d9..c892c68523 1006

[PATCH 17/17] test/py: add a ping6 test

2022-08-30 Thread Viacheslav Mitrofanov
Add a simple ICMPv6 echo request test Signed-off-by: Viacheslav Mitrofanov --- test/py/tests/test_net.py | 15 +++ 1 file changed, 15 insertions(+) diff --git a/test/py/tests/test_net.py b/test/py/tests/test_net.py index 9ca6743afd..bd3d60774b 100644 --- a/test/py/tests/test_net.py

[PATCH] doc: Add gpio status output fields description

2022-08-30 Thread Patrice Chotard
Add gpio status output fields description and one output example. Signed-off-by: Patrice Chotard --- doc/usage/cmd/gpio.rst | 26 ++ 1 file changed, 26 insertions(+) diff --git a/doc/usage/cmd/gpio.rst b/doc/usage/cmd/gpio.rst index f6a5668388..b768b08a9b 100644 --- a/d

Re: [PATCH 4/4] arm: dts: chameleonv3: Add 270-2 variant

2022-08-30 Thread Simon Glass
Hi Paweł, On Tue, 30 Aug 2022 at 05:51, Paweł Anikiel wrote: > > On Tue, Aug 30, 2022 at 5:13 AM Alexandru M Stan wrote: > > > > Hey Simon, > > > > On Mon, Aug 29, 2022 at 7:29 PM Simon Glass wrote: > > > > > > Hi Paweł, > > > > > > On Mon, 29 Aug 2022 at 02:23, Paweł Anikiel wrote: > > > > >

Re: [PATCH v3] dm: core: Do not stop uclass iteration on error

2022-08-30 Thread Simon Glass
Hi Michal, On Tue, 30 Aug 2022 at 04:23, Michal Suchánek wrote: > > On Sat, Aug 27, 2022 at 07:52:27PM -0600, Simon Glass wrote: > > Hi Michal, > > > > On Fri, 19 Aug 2022 at 14:23, Michal Suchanek wrote: > > > > > > When probing a device fails NULL pointer is returned, and other devices > > > c

Re: [PATCH v5 1/8] binman: add support for skipping file concatenation for mkimage

2022-08-30 Thread Simon Glass
Hi Quentin, On Tue, 30 Aug 2022 at 03:57, Quentin Schulz wrote: > > Hi Simon, > > On 8/27/22 02:21, Simon Glass wrote: > > Hi Quentin, > > > > On Fri, 26 Aug 2022 at 09:37, Quentin Schulz wrote: > >> > >> From: Quentin Schulz > >> > >> Some image types handled by mkimage require the datafiles t

Re: [PATCH] doc: Add gpio status output fields description

2022-08-30 Thread Simon Glass
On Tue, 30 Aug 2022 at 08:56, Patrice Chotard wrote: > > Add gpio status output fields description and one output example. > > Signed-off-by: Patrice Chotard > --- > > doc/usage/cmd/gpio.rst | 26 ++ > 1 file changed, 26 insertions(+) Reviewed-by: Simon Glass

Re: [PATCH 2/6] timer: orion-timer: Add timer_get_boot_us() for BOOTSTAGE support

2022-08-30 Thread Simon Glass
Hi Stefan, On Tue, 30 Aug 2022 at 06:08, Stefan Roese wrote: > > Adding Simon to Cc... > > On 30.08.22 14:00, Michael Walle wrote: > > Am 2022-08-30 13:53, schrieb Stefan Roese: > >> Add timer_get_boot_us() to support boards, that have CONFIG_BOOTSTAGE > >> enabled, like pogo_v4. > >> > >> Signed

Re: [PATCH v4 1/2] bootm: fix typo imape_comp -> image_comp

2022-08-30 Thread Simon Glass
Hi Daniel, On Mon, 29 Aug 2022 at 21:04, Daniel Golle wrote: > > On Mon, Aug 29, 2022 at 08:30:14PM -0600, Simon Glass wrote: > > On Fri, 26 Aug 2022 at 21:15, Daniel Golle wrote: > > > > > > Chage variable name 'imape_comp' to the supposedly intended name > > > > Change > > Can you fix that on-

Re: [PATCH] ARM: imx: Update Data Modul i.MX8M Mini eDM SBC DRAM timing

2022-08-30 Thread Tim Harvey
On Tue, Aug 30, 2022 at 5:34 AM Marek Vasut wrote: > > Adjust the DRAM timing settings for this board per ones provided > by hardware department. The change is applied to the LPDDR4 MR11 > register CA ODT configuration, from RZQ/6 to RZQ/3, which fixes > stability issues on subset of boards. The D

Re: [PATCH 1/2] dt-bindings: clock: sifive: sync FU740 PRCI clock binding header

2022-08-30 Thread Icenowy Zheng
在 2022-08-30星期二的 03:26 +,Leo Liang写道: > Hi Icenowy, > On Thu, Aug 25, 2022 at 04:11:18PM +0800, Icenowy Zheng wrote: > > This commit sychornizes the header file for FU740 PRCI clocks with > > the > > one from Linux 5.19. > > > > The constant values are the same, but all constant names are > >

Re: [PATCH v3] dm: core: Do not stop uclass iteration on error

2022-08-30 Thread Michal Suchánek
On Tue, Aug 30, 2022 at 09:56:52AM -0600, Simon Glass wrote: > Hi Michal, > > On Tue, 30 Aug 2022 at 04:23, Michal Suchánek wrote: > > > > On Sat, Aug 27, 2022 at 07:52:27PM -0600, Simon Glass wrote: > > > Hi Michal, > > > > > > On Fri, 19 Aug 2022 at 14:23, Michal Suchanek wrote: > > > > > > >

Re: [PATCH v4 1/2] bootm: fix typo imape_comp -> image_comp

2022-08-30 Thread Tom Rini
On Tue, Aug 30, 2022 at 09:56:56AM -0600, Simon Glass wrote: > Hi Daniel, > > On Mon, 29 Aug 2022 at 21:04, Daniel Golle wrote: > > > > On Mon, Aug 29, 2022 at 08:30:14PM -0600, Simon Glass wrote: > > > On Fri, 26 Aug 2022 at 21:15, Daniel Golle wrote: > > > > > > > > Chage variable name 'imape_

Re: [PATCH] ARM: imx: Update Data Modul i.MX8M Mini eDM SBC DRAM timing

2022-08-30 Thread Marek Vasut
On 8/30/22 18:01, Tim Harvey wrote: Hi, Marek, Might I ask how you ran into the issue There were a couple of boards which were unstable and kept crashing at runtime, often when using GPU. Either the machine locked up completely or there were rendering artifacts. Eventually also memtester t

Re: [PATCH v5 1/8] binman: add support for skipping file concatenation for mkimage

2022-08-30 Thread Quentin Schulz
Hi Simon, On 8/30/22 17:56, Simon Glass wrote: Hi Quentin, On Tue, 30 Aug 2022 at 03:57, Quentin Schulz wrote: Hi Simon, On 8/27/22 02:21, Simon Glass wrote: Hi Quentin, On Fri, 26 Aug 2022 at 09:37, Quentin Schulz wrote: From: Quentin Schulz Some image types handled by mkimage requi

[RFC PATCH] mxs: Don't enable 4P2 reg if mx28 is powered only from DCDC_BATT without 5V

2022-08-30 Thread Alan Kay
mxs_power_enable_4p2() was added to mxs_batt_boot() in 'commit a0f97610757d ("ARM: mxs: Enable DCDC converter for battery boot")' to enable DCDC converter when board is powered from 5V and has detected sufficient battery voltage. This involves enabling 4P2 regulator and there is a code in mxs_power

[PATCH] arch: arm: mach-socfpga: Add mailbox command for HPS execution stage notification

2022-08-30 Thread Jit Loon Lim
From: Chin Liang See Add a new mailbox command "HPS_STAGE_NOTIFY" to notify Secure Device Manager (SDM) on the stage of HPS code execution. In general, there are three main code execution stages: First Stage Boot Loader (FSBL) which is U-Boot SPL, Second Stage Boot Loader (SSBL) which is U-Boot,

[PATCH] arch: arm : mach-socfpga: Add mailbox command for HPS execution stage notification

2022-08-30 Thread Jit Loon Lim
From: Chin Liang See Add a new mailbox command "HPS_STAGE_NOTIFY" to notify Secure Device Manager (SDM) on the stage of HPS code execution. In general, there are three main code execution stages: First Stage Boot Loader (FSBL) which is U-Boot SPL, Second Stage Boot Loader (SSBL) which is U-Boot,

[PATCH] arch: arm: mach-socfpga: To notify SDM when SPL pass control to U-Boot

2022-08-30 Thread Jit Loon Lim
From: Chin Liang See Prior SPL pass control to U-Boot, SPL will send a mailbox command "HPS_STAGE_NOTIFY" to notify Secure Device Manager (SDM) on HPS SW transition. The purpose is for debug as user can query SDM on HPS error details when HPS enters a warm reset due to error such as watchdog. S

[PATCH] arch: arm: mach-socfpga: To notify SDM when SPL pass control to U-Boot

2022-08-30 Thread Jit Loon Lim
From: Chin Liang See Prior SPL pass control to U-Boot, SPL will send a mailbox command "HPS_STAGE_NOTIFY" to notify Secure Device Manager (SDM) on HPS SW transition. The purpose is for debug as user can query SDM on HPS error details when HPS enters a warm reset due to error such as watchdog. S

[PATCH] configs: stm32mp*: reset via CONFIG_RESET_SCMI

2022-08-30 Thread Jorge Ramirez-Ortiz
Enabling CONFIG_SYSRESET_PSCI prevents CONFIG_RESET_SCMI from executing. The side effect observed are I2C devices no longer being accessible from U-boot after a soft reset. Signed-off-by: Jorge Ramirez-Ortiz --- configs/stm32mp13_defconfig | 1 - configs/stm32mp15_defconfig | 1

[PATCHv5] drivers: tee: i2c: support the NXP SE05x probe errata

2022-08-30 Thread Jorge Ramirez-Ortiz
Early instantiation of this I2C device would lock up when being probed. https://www.nxp.com/docs/en/errata/SE050_Erratasheet.pdf 3.2.2 In scenarios of detecting I2C ICs on the bus using an empty I2C frame containing only the address the SE050 will block the I2C bus. Tested on STM32MP1

[PATCH] arm: smh: Fix uninitialized parameters with newer GCCs

2022-08-30 Thread Sean Anderson
Newer versions of GCC won't initialize parts of structures which don't appear to be used. This results in uninitialized semihosting parameters passed via R1. Fix this by marking the inline assembly as clobbering memory. Signed-off-by: Sean Anderson --- arch/arm/lib/semihosting.c | 6 +++--- 1 f

[PATCH] cli: Reduce size of readline buffers in SPL

2022-08-30 Thread Sean Anderson
Normally, readline is not used int SPL. However, it may be useful to enable the Freescale DDR interactive mode in SPL, while U-Boot is still executing from SRAM. The default settings for readline result in a large buffer being allocated. Reduce the size of the maximum input line, and the number of

[PATCH] ddr: fsl: Reduce the size of interactive options

2022-08-30 Thread Sean Anderson
The interactive mode uses large several tables of options which can be configured. However, much of the contents of these tables are repetetive. For example, no struct is larger than half a kilobyte, so the offset only takes up 9 bits. Similarly, the size is only ever 4 or 8, and printhex is a bool

[PATCH] ddr: fsl: Make bank_addr_bits reflect actual bits

2022-08-30 Thread Sean Anderson
In both the Freescale DDR controller and the SPD spec, bank address bits are stored as the number of bank address bits minus 2. For example, if a chip had 8 banks (3 total bank address bits), the value of bank_addr_bits would be 1. This is rather surprising for users configuring their memory manual

Re: [PATCH] dt-bindings: nvmem: u-boot,env: add basic NVMEM cells

2022-08-30 Thread Tom Rini
On Tue, Aug 16, 2022 at 11:26:37AM +0200, Rafał Miłecki wrote: > On 3.07.2022 10:48, Rafał Miłecki wrote: > > U-Boot doesn't have cells at hardcoded addresses. They are stored in > > internal format. It's still important to define relevant cells in DT so > > NVMEM consumers can reference them. > >

Re: [PATCH 0/6] Enable CONFIG_TIMER for all Kirwood / MVEBU boards

2022-08-30 Thread Tony Dinh
Hi Stefan, On Tue, Aug 30, 2022 at 4:53 AM Stefan Roese wrote: > > This patchset enhaces the recently added Orion Timer driver to support > all other Kirkwood & 32bit MVEBU Armada platforms. Additionally, this > timer support is then enabled per default for those platforms, so that > the board co

Re: [PATCH] cli: Reduce size of readline buffers in SPL

2022-08-30 Thread Simon Glass
On Tue, 30 Aug 2022 at 14:40, Sean Anderson wrote: > > Normally, readline is not used int SPL. However, it may be useful to > enable the Freescale DDR interactive mode in SPL, while U-Boot is still > executing from SRAM. The default settings for readline result in a large > buffer being allocated.

[PATCH v5 0/7] tpm: Various minor fixes and enhancements

2022-08-30 Thread Simon Glass
This series contains some minor enhancements for the TPM code to make it work with Chromium OS verified boot. Changes in v5: - Reword mention of measured boot - Use size_t for buffer size Changes in v4: - Rename function and add arguments for the command/subcmd - Rename function and add arguments

[PATCH v5 1/7] tpm: Require a digest source when extending the PCR

2022-08-30 Thread Simon Glass
This feature is used for measured boot, so we can add a log entry to the TCPA with some information about where the digest comes from. It is not currently supported in the TPM drivers, but add it to the API so that code which expects it can signal its request. Signed-off-by: Simon Glass Reviewed-

  1   2   >