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

2022-12-07 Thread Chee, Tien Fong
Hi, > -Original Message- > From: Lim, Jit Loon > Sent: Wednesday, 31 August, 2022 2:46 PM > To: u-boot@lists.denx.de > Cc: Jagan Teki ; Vignesh R > ; Vasut, Marek ; Simon > ; Chee, Tien Fong > ; Hea, Kok Kiang ; > Lim, Elly Siew Chin ; Kho, Sin Hui > ; Lokanathan, Raaj ; > Maniyam,

Re: [PATCH v2 1/1] arm: mvebu: Espressobin: Fix default env variables

2022-12-07 Thread Stefan Roese
Hi Derek, On 12/7/22 21:56, Derek LaHousse wrote: Default env variables on Espressobin boards are broken since commit c4df0f6f315c ("arm: mvebu: Espressobin: Set default value for $fdtfile env variable") as well as the 'env default -a' command. The algorithm to find free space in the

Re: [PATCH V3 0/2] spi: cqspi: Fix register reads in STIG Mode

2022-12-07 Thread Dhruva Gole
Hi, A Gentle reminder for this series. On 25/11/22 11:29, Dhruva Gole wrote: Intent of these patches is to fix register reads in STIG mode and also use STIG mode while reading flash registers. Currently if you try to read a register while in STIG mode there is no support for ADDR and thus

Re: [PATCH] efi_loader: Measure the loaded DTB

2022-12-07 Thread Heinrich Schuchardt
On 12/7/22 16:11, Etienne Carriere wrote: Measures the DTB passed to the EFI application upon new boolean config switch CONFIG_EFI_TCG2_PROTOCOL_MEASURE_DTB. For platforms where the content of the DTB passed to the OS can change across reboots, there is not point measuring it hence the config

Re: [PATCH] net: ipv6: Fix link-partner MAC address assignment

2022-12-07 Thread Daniel Schwierzeck
On 12/7/22 12:25, Vyacheslav Mitrofanov V wrote: On Tue, 2022-12-06 at 13:22 +0100, Daniel Schwierzeck wrote: «Внимание! Данное письмо от внешнего адресата!» On 12/6/22 08:08, Viacheslav Mitrofanov wrote: MAC address of a link-partner is not saved for future use because of bad condition of

[PATCH v2 1/1] arm: mvebu: Espressobin: Fix default env variables

2022-12-07 Thread Derek LaHousse
Default env variables on Espressobin boards are broken since commit c4df0f6f315c ("arm: mvebu: Espressobin: Set default value for $fdtfile env variable") as well as the 'env default -a' command. The algorithm to find free space in the default_environment[] array returns after the first env

Re: [PATCH v4 0/7] binman: rockchip: Migrate from rockchip SPL_FIT_GENERATOR script

2022-12-07 Thread Simon Glass
Hi Quentin, On Wed, 7 Dec 2022 at 23:19, Quentin Schulz wrote: > > Hi Simon, > > On 12/7/22 02:08, Simon Glass wrote: > > Hi Kevar, > > > > On Mon, 7 Nov 2022 at 11:40, Simon Glass wrote: > >> > >> At present rockchip 64-bit boards make use of a FIT-generator script > >> written in Python. The

Re: [PATCH v4 0/7] binman: rockchip: Migrate from rockchip SPL_FIT_GENERATOR script

2022-12-07 Thread Quentin Schulz
Hi Simon, On 12/7/22 02:08, Simon Glass wrote: Hi Kevar, On Mon, 7 Nov 2022 at 11:40, Simon Glass wrote: At present rockchip 64-bit boards make use of a FIT-generator script written in Python. The script supports splitting an ELF file into several 'loadable' nodes in the FIT. Binman does

[PATCH 00/71] bootstd: Allow migration from distro_bootcmd scripts

2022-12-07 Thread Simon Glass
So far, standard boot does not replicate all the of the functionality of the distro_bootcmd scripts. In particular it lacks some bootdevs and some of the bootmeths are incomplete. Also there is currently no internal mechanism to enumerate buses in order to discover bootdevs, e.g. with USB. This

[PATCH] ARM: dts: aspeed: add Meta greatlakes board (AST2600)

2022-12-07 Thread Delphine CC Chiu
Add initial version of device tree for Meta Greatlakes BMC which is equipped with Aspeed AST2600 BMC SoC. Signed-off-by: Delphine CC Chiu --- arch/arm/dts/Makefile | 1 + arch/arm/dts/ast2600-greatlakes.dts | 191 ++

Re: [PATCH 01/41] xenguest_arm64: Disable networking support more fully

2022-12-07 Thread Tom Rini
On Sun, Nov 27, 2022 at 10:24:56AM -0500, Tom Rini wrote: > This platform had largely disabled networking support before. More > completely disable it by turning off CONFIG_NET. > > Cc: Anastasiia Lukianenko > Cc: Oleksandr Andrushchenko > Signed-off-by: Tom Rini Except for patch 6, for the

Re: [PATCH] rtc: add ht1380 driver

2022-12-07 Thread Simon Glass
Hi Sergei, On Thu, 8 Dec 2022 at 06:09, Sergei Antonov wrote: > > On Wed, 7 Dec 2022 at 04:08, Simon Glass wrote: > > > > Hi Sergei, > > > > On Tue, 6 Dec 2022 at 23:07, Sergei Antonov wrote: > > > > > > Support Holtek HT1380/HT1381 Serial Timekeeper Chip. It provides seconds > > > , minutes,

[PATCH] Makefile: link with --no-warn-rwx-segments

2022-12-07 Thread Tom Rini
We borrow from the Linux Kernel 0d362be5b142 ("Makefile: link with -z noexecstack --no-warn-rwx-segments") here to disable the RWX segment linking warnings. We do not also bring in -z noexecstack as that requires auditing and using ".note.GNU-stack" on assembly functions which do need this

[PATCH] ARM: imx: mx5: Convert MX53 Menlo board to DM SERIAL

2022-12-07 Thread Marek Vasut
Convert the board from legacy serial code to DM SERIAL. Signed-off-by: Marek Vasut --- Cc: Fabio Estevam Cc: Stefano Babic --- configs/m53menlo_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/m53menlo_defconfig b/configs/m53menlo_defconfig index b4ada56a36b..024a35e265f

Re: [PATCH] dts: Re-add aliases for imx6qdl-sabrelite devices

2022-12-07 Thread Tom Rini
On Wed, Dec 07, 2022 at 03:08:46PM -0500, Detlev Casanova wrote: > On Wednesday, December 7, 2022 3:03:56 P.M. EST Tom Rini wrote: > > On Mon, Dec 05, 2022 at 02:33:48PM -0300, Fabio Estevam wrote: > > > On Mon, Dec 5, 2022 at 12:37 PM Tom Rini wrote: > > > > I'm not really happy with this

Re: [PATCH] dts: Re-add aliases for imx6qdl-sabrelite devices

2022-12-07 Thread Detlev Casanova
On Wednesday, December 7, 2022 3:03:56 P.M. EST Tom Rini wrote: > On Mon, Dec 05, 2022 at 02:33:48PM -0300, Fabio Estevam wrote: > > On Mon, Dec 5, 2022 at 12:37 PM Tom Rini wrote: > > > I'm not really happy with this approach. It's not that upstream doesn't > > > have aliases now, it's that it

Re: [PATCH] dts: Re-add aliases for imx6qdl-sabrelite devices

2022-12-07 Thread Tom Rini
On Mon, Dec 05, 2022 at 02:33:48PM -0300, Fabio Estevam wrote: > On Mon, Dec 5, 2022 at 12:37 PM Tom Rini wrote: > > > I'm not really happy with this approach. It's not that upstream doesn't > > have aliases now, it's that it has different aliases, right? That's why > > they won't accept these?

Re: [PATCH] dts: Re-add aliases for imx6qdl-sabrelite devices

2022-12-07 Thread Tom Rini
On Wed, Dec 07, 2022 at 02:53:10PM -0500, Detlev Casanova wrote: > On Monday, December 5, 2022 12:33:48 P.M. EST Fabio Estevam wrote: > > On Mon, Dec 5, 2022 at 12:37 PM Tom Rini wrote: > > > I'm not really happy with this approach. It's not that upstream doesn't > > > have aliases now, it's

[PATCH v5 7/7] treewide: Disable USE_SPL_FIT_GENERATOR by default

2022-12-07 Thread Simon Glass
This option is deprecated and only used by two boards. Enable it for just those two boards, so others don't accidentally enable it. Signed-off-by: Simon Glass --- Changes in v5: - Add new patch to disable USE_SPL_FIT_GENERATOR by default Changes in v3: - Add support for writing sections in

[PATCH v5 6/7] rockchip: Drop the FIT generator script

2022-12-07 Thread Simon Glass
This is not used anymore. Drop it. Signed-off-by: Simon Glass --- (no changes since v1) Makefile | 3 - arch/arm/mach-rockchip/make_fit_atf.py | 267 - boot/Kconfig | 1 - 3 files changed, 271 deletions(-)

[PATCH v5 4/7] rockchip: Support building the all output files in binman

2022-12-07 Thread Simon Glass
Add the required binman images to replace the Makefile rules which are currently used. This includes subsuming: - tpl/u-boot-tpl-rockchip.bin if TPL is enabled - idbloader.img if either or both of SPL and TPL are enabled - u-boot.itb if SPL_FIT is enabled - u-boot-rockchip.bin if SPL

[PATCH v5 5/7] rockchip: Convert all boards to use binman

2022-12-07 Thread Simon Glass
Instead of the bash script, use binman to generate the FIT for arm64. For 32-bit boards, use binman for all images, dropping the intermediate files. With this change, only Zynq is now using SPL_FIT_GENERATOR so update the Kconfig rule accordingly. Clean up the Makefile to the extent possible.

[PATCH v5 3/7] rockchip: Use multiple-images for rk3399

2022-12-07 Thread Simon Glass
Enable multiple-images so we can generate more than one image. Also add a comment for the end of the #if block. Signed-off-by: Simon Glass --- Changes in v5: - Rename from 'Include binman script in 64-bit boards' - Drop duplicate #include in rk3368-u-boot.dtsi - Keep the name as fit for puma -

[PATCH v5 2/7] rockchip: evb-rk3288: Drop raw-image support

2022-12-07 Thread Simon Glass
This boards uses SPL_FIT so does not need to support loading a raw image. Drop it to avoid binman trying to insert a symbol which has no value. Signed-off-by: Simon Glass --- (no changes since v1) configs/evb-rk3288_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v5 0/7] binman: rockchip: Migrate from rockchip SPL_FIT_GENERATOR script

2022-12-07 Thread Simon Glass
At present rockchip 64-bit boards make use of a FIT-generator script written in Python. The script supports splitting an ELF file into several 'loadable' nodes in the FIT. Binman does not current support this feature. This series adds binman support for ELF splitting. This works by adding a new

[PATCH v5 1/7] binman: Allow writing section contents to a file

2022-12-07 Thread Simon Glass
At present only the image (which is a section) has a filename. Move this implementation to the entry_Section class so that any section can have a filename. With this, the section data is written to a file. This allows parts of an image to be written, along with the entire image. Make a note that

Re: [PATCH] dts: Re-add aliases for imx6qdl-sabrelite devices

2022-12-07 Thread Detlev Casanova
On Monday, December 5, 2022 12:33:48 P.M. EST Fabio Estevam wrote: > On Mon, Dec 5, 2022 at 12:37 PM Tom Rini wrote: > > I'm not really happy with this approach. It's not that upstream doesn't > > have aliases now, it's that it has different aliases, right? That's why > > they won't accept

Re: [PATCH v2 1/4] ARM: stm32: Fix ECDSA authentication with Dcache enabled

2022-12-07 Thread Marek Vasut
On 12/7/22 11:08, Patrick DELAUNAY wrote: Hi Marek, Hello Patrick, Sorry for the delay. No worries. I cross-check with ROM code team to understood this API limitation. Thank you! On 12/6/22 23:49, Marek Vasut wrote: In case Dcache is enabled while the ECDSA authentication function

[PATCH v3 4/4] ARM: stm32: Make ECDSA authentication available to U-Boot

2022-12-07 Thread Marek Vasut
With U-Boot having access to ROM API call table, it is possible to use the ROM API call it authenticate e.g. signed kernel fitImages using the BootROM ECDSA support. Make this available by pulling the ECDSA BootROM call support from SPL-only guard. Reviewed-by: Patrice Chotard Reviewed-by:

[PATCH v3 3/4] ARM: stm32: Pass ROM API table pointer to U-Boot proper

2022-12-07 Thread Marek Vasut
The ROM API table pointer is no longer accessible from U-Boot, fix this by passing the ROM API pointer through. This makes it possible for U-Boot to call ROM API functions to authenticate payload like signed fitImages. Signed-off-by: Marek Vasut --- Cc: Alexandru Gagniuc Cc: Patrice Chotard

[PATCH v3 2/4] ARM: stm32: Factor out save_boot_params

2022-12-07 Thread Marek Vasut
The STM32MP15xx platform currently comes with two incompatible implementations of save_boot_params() weak function override. Factor the save_boot_params() implementation into common cpu.c code and provide accessors to read out both ROM API table address and DT address from any place in the code

[PATCH v3 1/4] ARM: stm32: Fix ECDSA authentication with Dcache enabled

2022-12-07 Thread Marek Vasut
In case Dcache is enabled while the ECDSA authentication function is called via BootROM ROM API, the MMU tables are set up and the BootROM region is not marked as executable, so an attempt to run code from it results in a hang. Mark the BootROM region as executable as suggested by Patrick to

Re: [PATCH] rtc: add ht1380 driver

2022-12-07 Thread Sergei Antonov
On Wed, 7 Dec 2022 at 04:08, Simon Glass wrote: > > Hi Sergei, > > On Tue, 6 Dec 2022 at 23:07, Sergei Antonov wrote: > > > > Support Holtek HT1380/HT1381 Serial Timekeeper Chip. It provides seconds > > , minutes, hours, day of the week, date, month and year information. > > > > Datasheet: > >

RE: [PATCH 0/7] updates for km board series

2022-12-07 Thread Holger Brunck
> On Wed, Dec 07, 2022 at 02:27:37PM +, Holger Brunck wrote: > > > > - migrate all boards to environment.txt files > > > > - migrate PPC boards to DM_I2C > > > > - some cleanup > > > > > > > > Holger Brunck (7): > > > > board/km: move ls102xa boards to environment text files > > > >

Re: [PATCH 3/3] ARM: stm32: Increment WDT by default on DHSOM

2022-12-07 Thread Patrice CHOTARD
On 12/6/22 08:38, Patrice CHOTARD wrote: > Hi Marek > > On 12/6/22 03:35, Marek Vasut wrote: >> Enable watchdog timer on the DHSOM by default, both in U-Boot proper and >> in SPL. This can be used in combination with boot counter by either SPL >> or U-Boot proper to boot either copy of system

Re: [PATCH 2/3] ARM: stm32: Increment boot counter in SPL on DHSOM

2022-12-07 Thread Patrice CHOTARD
On 12/6/22 08:39, Patrice CHOTARD wrote: > Hi > > On 12/6/22 03:35, Marek Vasut wrote: >> Increment the boot counter already in U-Boot SPL instead of incrementing >> it only later in U-Boot proper. This can be used by SPL to boot either of >> two U-Boot copies and improve redundancy of

Re: [PATCH 1/3] ARM: stm32: Enable assorted ST specific commands on DHSOM

2022-12-07 Thread Patrice CHOTARD
On 12/6/22 08:39, Patrice CHOTARD wrote: > Hi > > On 12/6/22 03:35, Marek Vasut wrote: >> Enable the stm32prog, stm32key, stboard commands on DHSOM. >> Those can be used e.g. to implement verified boot. >> >> Signed-off-by: Marek Vasut >> --- >> Cc: Patrice Chotard >> Cc: Patrick Delaunay

Re: [PATCH] ARM: stm32: Add version variable to DHSOM

2022-12-07 Thread Patrice CHOTARD
On 11/2/22 09:26, Patrice CHOTARD wrote: > > > On 11/1/22 23:35, Marek Vasut wrote: >> Enable insertion of version variable into U-Boot environment on DHSOM, >> to make it possible to check U-Boot version e.g. in U-Boot scripts. >> >> Signed-off-by: Marek Vasut >> --- >> Cc: Patrice Chotard

Re: [PATCH] ARM: stm32: Add boot counter to DHSOM

2022-12-07 Thread Patrice CHOTARD
On 10/28/22 09:05, Patrice CHOTARD wrote: > > On 10/27/22 23:17, Marek Vasut wrote: >> Add boot counter to STM32MP15xx DHSOM. This aligns the software with >> other upstream DHSOM products which already do enable boot counter. >> >> The boot counter on STM32MP15xx is placed in the TAMP block

Re: [Uboot-stm32] [PATCH 2/2] ARM: dts: stm32: Drop MMCI interrupt-names

2022-12-07 Thread Patrice CHOTARD
On 11/3/22 08:46, Patrice CHOTARD wrote: > > > On 11/2/22 14:53, Yann Gautier wrote: >> From: Marek Vasut >> >> The pl18x MMCI driver does not use the interrupt-names property, >> the binding document has been updated to recommend this property >> be unused, remove it. >> Backport of Marek's

Re: [Uboot-stm32] [PATCH 1/2] ARM: dts: stm32: add sdmmc cd-gpios for STM32MP135F-DK

2022-12-07 Thread Patrice CHOTARD
On 11/3/22 08:45, Patrice CHOTARD wrote: > > > On 11/2/22 14:53, Yann Gautier wrote: >> On STM32MP135F-DK, the SD card detect GPIO is GPIOH4. >> Backport of the Linux patch: >> https://lore.kernel.org/linux-arm-kernel/20220921160334.3227138-1-yann.gaut...@foss.st.com/ >> >> Signed-off-by:

Re: [PATCH 0/7] updates for km board series

2022-12-07 Thread Tom Rini
On Wed, Dec 07, 2022 at 02:27:37PM +, Holger Brunck wrote: > > > - migrate all boards to environment.txt files > > > - migrate PPC boards to DM_I2C > > > - some cleanup > > > > > > Holger Brunck (7): > > > board/km: move ls102xa boards to environment text files > > > km/powerpc: migrate to

Re: [Uboot-stm32] [PATCH 2/2] adc: stm32mp15: add support of generic channels binding

2022-12-07 Thread Patrice CHOTARD
On 12/7/22 16:57, Patrice CHOTARD wrote: > > > On 11/23/22 16:20, Olivier Moysan wrote: >> Add support of generic IIO channels binding: >> ./devicetree/bindings/iio/adc/adc.yaml >> Keep support of st,adc-channels for backward compatibility. >> >> Signed-off-by: Olivier Moysan >> --- >> >>

Re: [Uboot-stm32] [PATCH 1/2] adc: stm32mp15: split channel init into several routines

2022-12-07 Thread Patrice CHOTARD
On 12/7/22 16:54, Patrice CHOTARD wrote: > > > On 11/23/22 16:20, Olivier Moysan wrote: >> Split stm32_adc_chan_of_init channel initialization function into >> several routines to increase readability and prepare channel >> generic binding handling. >> >> Signed-off-by: Olivier Moysan >> ---

Re: [PATCH 2/2] adc: stm32mp15: add support of generic channels binding

2022-12-07 Thread Patrice CHOTARD
On 11/23/22 16:20, Olivier Moysan wrote: > Add support of generic IIO channels binding: > ./devicetree/bindings/iio/adc/adc.yaml > Keep support of st,adc-channels for backward compatibility. > > Signed-off-by: Olivier Moysan > --- > > drivers/adc/stm32-adc.c | 51

Re: [PATCH 1/2] adc: stm32mp15: split channel init into several routines

2022-12-07 Thread Patrice CHOTARD
On 11/23/22 16:20, Olivier Moysan wrote: > Split stm32_adc_chan_of_init channel initialization function into > several routines to increase readability and prepare channel > generic binding handling. > > Signed-off-by: Olivier Moysan > --- > > drivers/adc/stm32-adc.c | 44

Re: [PATCH v4 3/3] arm: dts: stm32mp13: add support of RCC driver

2022-12-07 Thread Patrice CHOTARD
On 12/7/22 16:47, Patrice CHOTARD wrote: > > > On 11/24/22 11:36, Gabriel Fernandez wrote: >> Adds support of Clock and Reset drivers for STM32MP13 platform. >> >> Signed-off-by: Gabriel Fernandez >> Reviewed-by: Patrick Delaunay >> >> --- >> >> (no changes since v2) >> >> Changes in v2: >>

Re: [PATCH v4 2/3] clk: stm32mp13: introduce STM32MP13 RCC driver

2022-12-07 Thread Patrice CHOTARD
On 12/7/22 16:46, Patrice CHOTARD wrote: > > > On 11/24/22 11:36, Gabriel Fernandez wrote: >> STM32MP13 RCC driver uses Common Clock Framework and also a >> 'clk-stm32-core' API. Then STM32MPx RCC driver will contain only data >> configuration (gates, mux, dividers and the way to check

Re: [PATCH v4 1/3] dt-bindings: stm32mp13: add clock & reset support for STM32MP13

2022-12-07 Thread Patrice CHOTARD
On 12/7/22 16:42, Patrice CHOTARD wrote: > > > On 11/24/22 11:36, Gabriel Fernandez wrote: >> Add support of stm32mp13 DT bindings of clock and reset. >> >> Signed-off-by: Gabriel Fernandez >> Reviewed-by: Patrick Delaunay >> >> --- >> >> Changes in v4: >> - update MAINTAINERS files >> >>

Re: [PATCH v4 3/3] arm: dts: stm32mp13: add support of RCC driver

2022-12-07 Thread Patrice CHOTARD
On 11/24/22 11:36, Gabriel Fernandez wrote: > Adds support of Clock and Reset drivers for STM32MP13 platform. > > Signed-off-by: Gabriel Fernandez > Reviewed-by: Patrick Delaunay > > --- > > (no changes since v2) > > Changes in v2: > - missing support of CRYP1 clock > >

Re: [PATCH v4 2/3] clk: stm32mp13: introduce STM32MP13 RCC driver

2022-12-07 Thread Patrice CHOTARD
On 11/24/22 11:36, Gabriel Fernandez wrote: > STM32MP13 RCC driver uses Common Clock Framework and also a > 'clk-stm32-core' API. Then STM32MPx RCC driver will contain only data > configuration (gates, mux, dividers and the way to check security) > or some specific clocks. > This API will be

Re: [PATCH v4 1/3] dt-bindings: stm32mp13: add clock & reset support for STM32MP13

2022-12-07 Thread Patrice CHOTARD
On 11/24/22 11:36, Gabriel Fernandez wrote: > Add support of stm32mp13 DT bindings of clock and reset. > > Signed-off-by: Gabriel Fernandez > Reviewed-by: Patrick Delaunay > > --- > > Changes in v4: > - update MAINTAINERS files > > MAINTAINERS | 5 +- >

[PATCH 2/2] tee: optee: discover services dependent on tee-supplicant

2022-12-07 Thread Etienne Carriere
Makes OP-TEE to enumerate also services depending on tee-supplicant support in U-Boot. This change allows OP-TEE services like fTPM TA to be discovered and get a TPM device registered in U-Boot. Signed-off-by: Etienne Carriere --- drivers/tee/optee/core.c | 32 +++-

[PATCH 1/2] tee: optee: don't fail probe because of optee-rng

2022-12-07 Thread Etienne Carriere
Fixes optee-rng driver bind sequence in optee driver to print a warning message but not report an error status when a optee-rng service driver fails to be bound as the optee driver itself is still fully functional. Signed-off-by: Etienne Carriere --- drivers/tee/optee/core.c | 2 +- 1 file

[PATCH] tpm2: ftpm: open session with privileged ree login

2022-12-07 Thread Etienne Carriere
Opens the fTPM session with TEE_LOGIN_REE_KERNEL as fTPM may restrict access to that login when Linux based OS is running as applications are expected to got through the Linux TPMv2 driver. Signed-off-by: Etienne Carriere --- drivers/tpm/tpm2_ftpm_tee.c | 1 + 1 file changed, 1 insertion(+)

[PATCH] efi_loader: Measure the loaded DTB

2022-12-07 Thread Etienne Carriere
Measures the DTB passed to the EFI application upon new boolean config switch CONFIG_EFI_TCG2_PROTOCOL_MEASURE_DTB. For platforms where the content of the DTB passed to the OS can change across reboots, there is not point measuring it hence the config switch to allow platform to not embed this

Re: [PATCH 00/18] Add USB on SAM9X60, SAMA7G5 and SAMA5D2 boards

2022-12-07 Thread Eugen.Hristev
On 12/7/22 15:14, Sergiu Moga wrote: > This series of patches is meant to add support for USB Mass Storage > on SAM9X60, SAMA7G5 and SAMA5D2 boards and register ohci-at91 driver into > Driver Model. In order for this to be achieved, the respective > DT nodes have been added, the USB clock has been

Re: [PATCH 1/1] net: missing break after net_ip6_handler()

2022-12-07 Thread Vyacheslav Mitrofanov V
On Wed, 2022-12-07 at 09:42 -0500, Tom Rini wrote: > On Wed, Dec 07, 2022 at 03:29:37PM +0100, Heinrich Schuchardt wrote: > > > Don't fall through to handling an IPv6 header as IPv4. > > > > Fixes: ffdbf3bad5f3 ("net: ipv6: Incorporate IPv6 support into u- > > boot net subsystem") > >

Re: Gitlab CI: "build all 32bit ARM platforms" can't be completed due to timeout

2022-12-07 Thread Tom Rini
On Wed, Dec 07, 2022 at 03:41:18PM +0100, Patrice CHOTARD wrote: > Hi All > > Just to notice that 3 times in a raw, "build all 32bit ARM platforms" can't > be completed due to 1 hour timeout, > we got the following execution status : > > ERROR: Job failed: execution took longer than 1h0m0s

Re: [PATCH 1/1] net: missing break after net_ip6_handler()

2022-12-07 Thread Tom Rini
On Wed, Dec 07, 2022 at 03:29:37PM +0100, Heinrich Schuchardt wrote: > Don't fall through to handling an IPv6 header as IPv4. > > Fixes: ffdbf3bad5f3 ("net: ipv6: Incorporate IPv6 support into u-boot net > subsystem") > Addresses-Coverity-ID: 430975 ("Missing break in switch") > Signed-off-by:

Gitlab CI: "build all 32bit ARM platforms" can't be completed due to timeout

2022-12-07 Thread Patrice CHOTARD
Hi All Just to notice that 3 times in a raw, "build all 32bit ARM platforms" can't be completed due to 1 hour timeout, we got the following execution status : ERROR: Job failed: execution took longer than 1h0m0s seconds see : https://source.denx.de/u-boot/custodians/u-boot-stm/-/jobs/539133

Re: [PATCH 0/5] Complete the migration of MTDPARTS_DEFAULT / MTDIDS_DEFAULT

2022-12-07 Thread Tom Rini
On Wed, Dec 07, 2022 at 09:26:39AM +0100, Patrick Delaunay wrote: > Addition for previous commit a331017c237c ("Complete migration of > MTDPARTS_DEFAULT / MTDIDS_DEFAULT, include in environment") > > Remove the remaining defines MTDPARTS_DEFAULT and MTDIDS_DEFAULT > in the configuration files

Re: [PATCH] rtc: add ht1380 driver

2022-12-07 Thread Tom Rini
On Tue, Dec 06, 2022 at 01:06:59PM +0300, Sergei Antonov wrote: > Support Holtek HT1380/HT1381 Serial Timekeeper Chip. It provides seconds > , minutes, hours, day of the week, date, month and year information. > > Datasheet: > https://www.holtek.com.tw/documents/10179/11842/ht1380_1v130.pdf >

[PATCH 1/1] net: missing break after net_ip6_handler()

2022-12-07 Thread Heinrich Schuchardt
Don't fall through to handling an IPv6 header as IPv4. Fixes: ffdbf3bad5f3 ("net: ipv6: Incorporate IPv6 support into u-boot net subsystem") Addresses-Coverity-ID: 430975 ("Missing break in switch") Signed-off-by: Heinrich Schuchardt --- Do we have a unit trest of IPv6? I guess we should at

RE: [PATCH 0/7] updates for km board series

2022-12-07 Thread Holger Brunck
> > - migrate all boards to environment.txt files > > - migrate PPC boards to DM_I2C > > - some cleanup > > > > Holger Brunck (7): > > board/km: move ls102xa boards to environment text files > > km/powerpc: migrate to env.txt file > > board/km/cent2: migrate to environment text file > >

[PATCH] CI: Reduce aarch64 catchall job matches

2022-12-07 Thread Tom Rini
The aarch64 catch-all job is getting close to the hard time limit in Azure for the free tier. Move i.MX9 boards to the i.MX8 job and move amlogic entirely to its own job. This brings us down from 85 boards to 51 boards and so should be safe for a while. Signed-off-by: Tom Rini ---

Re: [PATCH 1/1] powerpc: fix fdt_fixup_liodn_tbl_fman()

2022-12-07 Thread Tom Rini
On Wed, 12 Oct 2022 19:13:11 +0200, Heinrich Schuchardt wrote: > Builiding with GCC 12.2 fails: > > arch/powerpc/cpu/mpc85xx/liodn.c: In function 'fdt_fixup_liodn_tbl_fman': > arch/powerpc/cpu/mpc85xx/liodn.c:340:35: error: the comparison will > always evaluate as 'false' for the

Re: [PATCH 1/6] buildman: Fetch 12.2.0 toolchains by default

2022-12-07 Thread Tom Rini
On Tue, 22 Nov 2022 12:31:53 -0500, Tom Rini wrote: > Update the toolchain list to be first 12.2.0 and second 11.1.0 and > that's it. > > Applied to u-boot/next, thanks! -- Tom

[PATCH 17/18] configs: at91: sama5d2: Enable OHCI/EHCI related configs

2022-12-07 Thread Sergiu Moga
Enable the OHCI and EHCI related configs required in order to be able to use the USB command properly. Signed-off-by: Sergiu Moga --- configs/sama5d27_som1_ek_mmc1_defconfig| 5 + configs/sama5d27_som1_ek_mmc_defconfig | 5 + configs/sama5d27_som1_ek_qspiflash_defconfig

[PATCH 18/18] usb: ohci-at91: Add `ohci_t` field in `ohci_at91_priv`

2022-12-07 Thread Sergiu Moga
From: Cristian Birsan The `ohci_register` function expects that the OHCI driver's priv is a struct whose first field is of type `ohci_t`. The original conversion to DM did not have it and this inconsistency revealed itself whenever U-Boot required multiple memory allocations resulting in a

[PATCH 16/18] ARM: dts: at91: sama5d27_wlsom1_ek: Add pinctrl nodes for USB DT nodes

2022-12-07 Thread Sergiu Moga
Add the pinctrl nodes required by the USB related DT nodes. Signed-off-by: Sergiu Moga --- arch/arm/dts/at91-sama5d27_wlsom1_ek.dts | 25 1 file changed, 25 insertions(+) diff --git a/arch/arm/dts/at91-sama5d27_wlsom1_ek.dts b/arch/arm/dts/at91-sama5d27_wlsom1_ek.dts

[PATCH 15/18] ARM: dts: at91: sama5d2_icp: Add pinctrl nodes for USB related DT nodes

2022-12-07 Thread Sergiu Moga
Add the pinctrl subnodes required by the USB related DT nodes. Signed-off-by: Sergiu Moga --- arch/arm/dts/at91-sama5d2_icp.dts | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/dts/at91-sama5d2_icp.dts b/arch/arm/dts/at91-sama5d2_icp.dts index

[PATCH 13/18] usb: ohci-at91: Add USB PHY functionality

2022-12-07 Thread Sergiu Moga
Add the ability to enable/disable whatever USB PHY's are passed to the AT91 OHCI driver through DT. Signed-off-by: Sergiu Moga Tested-by: Mihai Sain --- drivers/usb/host/ohci-at91.c | 31 +++ 1 file changed, 31 insertions(+) diff --git

[PATCH 14/18] configs: at91: sama7: Enable USB and RESET functionality

2022-12-07 Thread Sergiu Moga
Enable USB and RESET functionality. In order for USB to work properly on SAMA7, the driver needs to be able to have access to PHY's, which, in turn, need to have access to the RSTC driver's assert/deassert functionalities. Signed-off-by: Sergiu Moga Tested-by: Mihai Sain ---

[PATCH 12/18] phy: at91: Add support for the USB 2.0 PHY's of SAMA7

2022-12-07 Thread Sergiu Moga
In order to have USB functionality, drivers for SAMA7's USB 2.0 PHY's have been added. There is one driver for UTMI clock's SFR and RESET required functionalities and one for its three possible subclocks of the phy's themselves. In order for this layout to properly work in conjunction with CCF and

[PATCH 11/18] reset: at91: Add reset driver for basic assert/deassert operations

2022-12-07 Thread Sergiu Moga
Add support for at91 reset controller's basic assert/deassert operations. Since this driver conflicts with the SYSRESET driver because they both bind to the same RSTC node, implement a custom bind hook that would manually bind the sysreset driver, if enabled, to the same RSTC DT node. Furthermore,

[PATCH 10/18] ARM: at91: add sama7 SFR definitions

2022-12-07 Thread Sergiu Moga
From: Cristian Birsan Special Function Registers(SFR) definitions for SAMA7 product family. Signed-off-by: Cristian Birsan Signed-off-by: Sergiu Moga --- arch/arm/mach-at91/include/mach/sama7-sfr.h | 59 + 1 file changed, 59 insertions(+) create mode 100644

[PATCH 09/18] ARM: dts: at91: sama7: Add USB related DT nodes

2022-12-07 Thread Sergiu Moga
Add the USB related DT nodes for the sama7g5ek board. Signed-off-by: Sergiu Moga --- arch/arm/dts/at91-sama7g5ek.dts | 34 +++ arch/arm/dts/sama7g5.dtsi | 73 + 2 files changed, 107 insertions(+) diff --git a/arch/arm/dts/at91-sama7g5ek.dts

[PATCH 08/18] dt-bindings: clk: at91: Define additional UTMI related clocks

2022-12-07 Thread Sergiu Moga
Add definitions for an additional main UTMI clock as well as its respective subclocks. Signed-off-by: Sergiu Moga --- include/dt-bindings/clk/at91.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/dt-bindings/clk/at91.h b/include/dt-bindings/clk/at91.h index

[PATCH 07/18] dt-bindings: reset: add sama7g5 definitions

2022-12-07 Thread Sergiu Moga
Upstream linux commit 5994f58977e0. Add reset bindings for SAMA7G5. At the moment only USB PHYs are included. Signed-off-by: Sergiu Moga --- include/dt-bindings/reset/sama7g5-reset.h | 10 ++ 1 file changed, 10 insertions(+) create mode 100644 include/dt-bindings/reset/sama7g5-reset.h

[PATCH 06/18] configs: at91: sam9x60ek: Add required configs for the USB command

2022-12-07 Thread Sergiu Moga
Add the configs required to use the USB-related functionalities within the bootloader. Signed-off-by: Sergiu Moga --- configs/sam9x60ek_mmc_defconfig | 10 ++ configs/sam9x60ek_nandflash_defconfig | 10 ++ configs/sam9x60ek_qspiflash_defconfig | 10 ++ 3 files

[PATCH 05/18] usb: ohci-at91: Enable OHCI functionality and register into DM

2022-12-07 Thread Sergiu Moga
Register the OHCI driver into DM by properly initializing the required clocks and pins required by the DT node of OHCI. In order for the VBUS to stay enabled, a `child_pre_probe` method has been added to overcome the DM core disabling it in `usb_scan_device`: when the generic `device_probe` method

[PATCH 04/18] clk: at91: sam9x60: Add initial setup of UPLL and USBCK rates

2022-12-07 Thread Sergiu Moga
In order for some of the functionalities, such as the USB clocks, to work properly we need some clocks to be properly initialised at the very beginning of booting. Signed-off-by: Sergiu Moga --- drivers/clk/at91/sam9x60.c | 62 +- 1 file changed, 61

[PATCH 03/18] clk: at91: sam9x60: Register the required clocks for USB

2022-12-07 Thread Sergiu Moga
Register into DM the clocks required to properly enable USB functionality within the bootloader. Signed-off-by: Sergiu Moga --- drivers/clk/at91/sam9x60.c | 37 + 1 file changed, 37 insertions(+) diff --git a/drivers/clk/at91/sam9x60.c

[PATCH 01/18] ARM: dts: sam9x60ek: Add OHCI and EHCI DT nodes

2022-12-07 Thread Sergiu Moga
Add the OHCI and EHCI DT nodes for the sam9x60 board. Signed-off-by: Sergiu Moga --- arch/arm/dts/sam9x60.dtsi | 18 ++ arch/arm/dts/sam9x60ek.dts | 21 + 2 files changed, 39 insertions(+) diff --git a/arch/arm/dts/sam9x60.dtsi b/arch/arm/dts/sam9x60.dtsi

[PATCH 02/18] clk: at91: Add support for sam9x60 USB clock

2022-12-07 Thread Sergiu Moga
Implement sam9x60 USB clock driver. This clock has three parents: PLLA, UPLL and MAINXTAL. The driver is aware of the three possible parents with the help of the two mux tables provied to the driver during the registration of the clock. Signed-off-by: Sergiu Moga --- drivers/clk/at91/Kconfig

[PATCH 00/18] Add USB on SAM9X60, SAMA7G5 and SAMA5D2 boards

2022-12-07 Thread Sergiu Moga
This series of patches is meant to add support for USB Mass Storage on SAM9X60, SAMA7G5 and SAMA5D2 boards and register ohci-at91 driver into Driver Model. In order for this to be achieved, the respective DT nodes have been added, the USB clock has been registered into CCF and the required

Re: [PATCH 0/4] Synquacer DT schema fixes

2022-12-07 Thread Masahisa Kojima
Hi Rob, Ilias, On Wed, 7 Dec 2022 at 15:58, Ilias Apalodimas wrote: > > Hi Rob > > On Tue, 6 Dec 2022 at 18:16, Rob Herring wrote: > > > > This is a series of DT fixes for the Synquacer. These issues were found > > running the dtschema tools. > > > > I don't have a board, but Ilias has tested

Re: [PATCH v5 3/3] board: qemu-riscv: enable semihosting

2022-12-07 Thread Kautuk Consul
Hi Leo, Thanks! I have sent a v6 of this patchset wherein I have rebased the patchset on the latest master. I have removed the last patch with default config options for qemu-riscv64 targets and have replaced it with a patch with Sean's suggestion for adding to the dependencies. Thanks again.

[PATCH v6 3/3] common/spl/Kconfig: add dependency on SPL_SEMIHOSTING for SPL payload

2022-12-07 Thread Kautuk Consul
When we enable CONFIG_SPL and CONFIG_SPL_SEMIHOSTING then the code in common/spl/spl_semihosting.c tries to use the CONFIG_SPL_FS_LOAD_PAYLOAD_NAME string which remains undeclared unless SPL_FS_EXT4 || SPL_FS_FAT || SPL_FS_SQUASHFS are configured. Add a dependency of SPL_SEMIHOSTING in the

[PATCH v6 2/3] arch/riscv: add semihosting support for RISC-V

2022-12-07 Thread Kautuk Consul
We add RISC-V semihosting based serial console for JTAG based early debugging. The RISC-V semihosting specification is available at: https://github.com/riscv/riscv-semihosting-spec/blob/main/riscv-semihosting-spec.adoc Signed-off-by: Anup Patel Signed-off-by: Kautuk Consul ---

[PATCH v6 1/3] lib: Add common semihosting library

2022-12-07 Thread Kautuk Consul
We factor out the arch-independent parts of the ARM semihosting implementation as a common library so that it can be shared with RISC-V. Signed-off-by: Kautuk Consul --- arch/arm/Kconfig | 46 - arch/arm/lib/semihosting.c | 181 +---

[PATCH v6 0/3] Add riscv semihosting support in u-boot

2022-12-07 Thread Kautuk Consul
Semihosting is a mechanism that enables code running on a target to communicate and use the Input/Output facilities on a host computer that is running a debugger. This patchset adds support for semihosting in u-boot for RISCV64 targets. CHANGES since v5: - Removed patch 3/3: default

Re: [PATCH] net: ipv6: Fix link-partner MAC address assignment

2022-12-07 Thread Vyacheslav Mitrofanov V
On Tue, 2022-12-06 at 13:22 +0100, Daniel Schwierzeck wrote: > «Внимание! Данное письмо от внешнего адресата!» > > On 12/6/22 08:08, Viacheslav Mitrofanov wrote: > > MAC address of a link-partner is not saved for future use because > > of > > bad condition of if statement. Moreover it can

Re: [PATCH 1/1] net: don't memcpy to NULL

2022-12-07 Thread Vyacheslav Mitrofanov V
On Wed, 2022-12-07 at 11:53 +0100, Heinrich Schuchardt wrote: > «Внимание! Данное письмо от внешнего адресата!» > > In ndisc_receive() 7 bytes are copied from a buffer of size 6 to > NULL. > > net_nd_packet_mac is a pointer. If it is NULL, we should set it to > the > address of the buffer with

Re: [PATCH 1/1] net: don't memcpy to NULL

2022-12-07 Thread Bin Meng
On Wed, Dec 7, 2022 at 6:53 PM Heinrich Schuchardt wrote: > > In ndisc_receive() 7 bytes are copied from a buffer of size 6 to NULL. > > net_nd_packet_mac is a pointer. If it is NULL, we should set it to the > address of the buffer with the MAC address. > > Addresses-Coverity-ID: 430974

[PATCH 1/1] net: don't memcpy to NULL

2022-12-07 Thread Heinrich Schuchardt
In ndisc_receive() 7 bytes are copied from a buffer of size 6 to NULL. net_nd_packet_mac is a pointer. If it is NULL, we should set it to the address of the buffer with the MAC address. Addresses-Coverity-ID: 430974 ("Out-of-bounds access") Fixes: c6610e1d90ea ("net: ipv6: Add Neighbor Discovery

Re: [PATCH v2 1/4] ARM: stm32: Fix ECDSA authentication with Dcache enabled

2022-12-07 Thread Patrick DELAUNAY
Hi Marek, Sorry for the delay. I cross-check with ROM code team to understood this API limitation. On 12/6/22 23:49, Marek Vasut wrote: In case Dcache is enabled while the ECDSA authentication function is called via BootROM ROM API, the CRYP DMA might pick stale version of data from DRAM.

[PATCH 66/71] bootstd: Allow scanning a single bootdev label

2022-12-07 Thread Simon Glass
We want to support scanning a single label, like 'mmc' or 'usb0'. Add this feature by plumbing the label through to the iterator, setting a flag to indicate that only siblings of the initial device should be used. This means that scanning a bootdev by its name is not supported anymore. That

[PATCH 12/71] dm: part: Update test to use mmc2

2022-12-07 Thread Simon Glass
At present this test sets up a partition table on mmc1. But this is used by the bootstd tests, so it is not possible to run those after this test has run, without restarting the Python test harness. This is inconvenient when running tests repeatedly with 'ut dm'. Move the test to use mmc2, which

  1   2   >