Re: [PATCH] rockchip: rk356x: Enable poweroff command

2023-08-03 Thread Jonas Karlman
Hi Kever, On 2023-08-04 03:37, Kever Yang wrote: > Hi Jonas, > > On 2023/8/4 03:54, Jonas Karlman wrote: >> With PMIC_RK8XX, SYSRESET and CMD_POWEROFF options enabled it is >> possible to power down a board using the poweroff command and turn the >> board back on using a power button. > > I'm co

Re: [PATCH 1/4] config: rock64: start USB to make storage usable

2023-08-03 Thread Peter Robinson
On Fri, Aug 4, 2023 at 2:25 AM Kever Yang wrote: > > Hi Peter, > > On 2023/8/3 15:44, Peter Robinson wrote: > > On Tue, Aug 1, 2023 at 4:17 AM Kever Yang wrote: > >> Hi Peter, > >> > >> Could you update the patchset with patches you still want to send? > > Can you just drop this patch and t

Re: [PATCH v6 6/9] binman: capsule: Add support for generating EFI capsules

2023-08-03 Thread Sughosh Ganu
hi Simon, On Fri, 4 Aug 2023 at 08:32, Simon Glass wrote: > > Hi Sughosh, > > On Thu, 3 Aug 2023 at 05:08, Sughosh Ganu wrote: > > > > hi Simon, > > > > On Wed, 2 Aug 2023 at 18:23, Simon Glass wrote: > > > > > > Hi Sughosh, > > > > > > On Tue, 1 Aug 2023 at 11:41, Sughosh Ganu wrote: > > > >

Re: [PATCH v5 3/3] board: toradex: add verdin am62 support

2023-08-03 Thread Neha Malcom Francis
Hi Marcel Repeating my comments from v4, as I missed seeing this version. On 03/08/23 19:30, Marcel Ziswiler wrote: From: Marcel Ziswiler This adds initial support for the Toradex Verdin AM62 Quad 1GB WB IT V1.0A module and subsequent V1.1 launch configuration SKUs. They are strapped to boot

Re: [PATCH v4 3/3] board: toradex: add verdin am62 support

2023-08-03 Thread Neha Malcom Francis
Hi Marcel On 29/07/23 02:24, Marcel Ziswiler wrote: From: Marcel Ziswiler This adds initial support for the Toradex Verdin AM62 Quad 1GB WB IT V1.0A module and subsequent V1.1 launch configuration SKUs. They are strapped to boot from their on-module eMMC. U-Boot supports booting from the on-mo

Re: [PATCH 1/2] configs: am65x: Merge the HS and non-HS defconfigs

2023-08-03 Thread Manorit Chawdhry
Hi Andrew, On 09:54-20230803, Andrew Davis wrote: > K3 devices have runtime type board detection. Make the default defconfig > include the secure configuration. Then remove the HS specific config. > > Non-HS devices will continue to boot due to runtime device type detection. >

Re: [RFC PATCH] env: Export environment config to OS devicetree

2023-08-03 Thread Simon Glass
Hi, On Thu, 3 Aug 2023 at 07:21, Stefano Babic wrote: > > Hi Frieder, > > On 03.08.23 14:51, Frieder Schrempf wrote: > > Hi Stefano, > > > > On 03.08.23 10:14, Stefano Babic wrote: > >> Hi Frieder, > >> > >> On 01.08.23 16:46, Frieder Schrempf wrote: > >>> From: Frieder Schrempf > >>> > >>> Ther

Re: [PATCH 4/9] Revert "x86: Switch QEMU over to use the bochs driver"

2023-08-03 Thread Simon Glass
Hi Bin, On Mon, 31 Jul 2023 at 11:07, Simon Glass wrote: > > Hi Bin, > > On Mon, 31 Jul 2023 at 08:46, Bin Meng wrote: > > > > Hi Simon, > > > > On Mon, Jul 31, 2023 at 10:37 PM Simon Glass wrote: > > > > > > Hi Bin, > > > > > > On Mon, 31 Jul 2023 at 08:32, Bin Meng wrote: > > > > > > > > Hi

Re: [PATCH 1/1] video: avoid build failure on veyron board

2023-08-03 Thread Simon Glass
Hi, On Thu, 3 Aug 2023 at 18:37, Alvaro Fernando García wrote: > > 533ad9dc avoided an overflow but causes compilation > failure on 32bit boards (eg. veyron speedy) > > this commit uses div_u64 which has a fallback codepath > for 32bit platforms > > Signed-off-by: Alvaro Fernando García > --- >

Re: [PATCH 00/16] bootstd: Improve ChromiumOS support

2023-08-03 Thread Simon Glass
Hi Alper, On Thu, 3 Aug 2023 at 15:31, Alper Nebi Yasak wrote: > > Hi Simon, > > On 2023-07-30 20:16 +03:00, Simon Glass wrote: > > The ChromiumOS bootmeth is fairly basic at present. It is able to boot > > only x86 kernels and contains quite a few hard-coded offsets. > > > > This series tidies i

Re: [PATCH] video: vidconsole: Fix null dereference of ops->measure

2023-08-03 Thread Simon Glass
On Thu, 3 Aug 2023 at 03:32, Bin Meng wrote: > > At present vidconsole_measure() tests ops->select_font before calling > ops->measure, which would result in a null dereference when the console > driver provides no ops for measure. > > Fixes: b828ed7d7929 ("console: Allow measuring the bounding box

Re: [PATCH] bootmeth: efi: Make distro_efi_boot() static

2023-08-03 Thread Simon Glass
On Thu, 3 Aug 2023 at 03:30, Bin Meng wrote: > > As it is only called in bootmeth_efi.c > > Signed-off-by: Bin Meng > --- > > boot/bootmeth_efi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass

Re: [PATCH v6 6/9] binman: capsule: Add support for generating EFI capsules

2023-08-03 Thread Simon Glass
Hi Sughosh, On Thu, 3 Aug 2023 at 05:08, Sughosh Ganu wrote: > > hi Simon, > > On Wed, 2 Aug 2023 at 18:23, Simon Glass wrote: > > > > Hi Sughosh, > > > > On Tue, 1 Aug 2023 at 11:41, Sughosh Ganu wrote: > > > > > > Add support in binman for generating EFI capsules. The capsule > > > parameters

Re: [PATCH v6 9/9] sandbox: capsule: Generate capsule related files through binman

2023-08-03 Thread Simon Glass
Hi Sughosh, On Thu, 3 Aug 2023 at 05:18, Sughosh Ganu wrote: > > hi Simon, > > On Wed, 2 Aug 2023 at 18:23, Simon Glass wrote: > > > > Hi Sughosh, > > > > On Tue, 1 Aug 2023 at 11:41, Sughosh Ganu wrote: > > > > > > The EFI capsule files can now be generated as part of u-boot > > > build. This

Re: [PATCH] arm: dts: medaitek: convert gmac link mode to 2500base-x for mt7986a-bpi-r3-sd

2023-08-03 Thread 高惟杰
On Fri, 2023-08-04 at 03:34 +0100, Daniel Golle wrote: > On Fri, Aug 04, 2023 at 09:01:55AM +0800, Weijie Gao wrote: > > The mt7531 of bpi-r3 is connected to mt7986 with 2.5Gbps HSGMII, > not the > > regular 1Gbps SGMII. > > > > Signed-off-by: Weijie Gao > > Reviewed-by: Daniel Golle Frank has

[PATCH v1] doc: Add the link for the documentation of the .its

2023-08-03 Thread Jit Loon Lim
Provide the link for the .its related documentation for Arria10. Signed-off-by: Jit Loon Lim --- doc/device-tree-bindings/fpga/altera-socfpga-a10-fpga-mgr.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/device-tree-bindings/fpga/altera-socfpga-a10-fpga-mgr.txt b/doc/device-tree-b

[PATCH v1] drivers: spi: Add MT25U01G part number for SPI NOR Flash

2023-08-03 Thread Jit Loon Lim
MT25QU01 OPN with 4B OPCODE support is currently not supported in source code and the driver reuses the definition for "n25q00a" which has the same silicon ID but is a slower part. Adding mt25u01g definition to the source code to support a faster read response for MT25QU01 QSPI NOR Flash device.

[PATCH v1] drivers: mtd: spi: Add support for GD55LB02GEBIR SPI NOR flash

2023-08-03 Thread Jit Loon Lim
From: Teik Heng Chong Add Support for GigaDevice GD55LB02GEBIR SPI NOR flash as QSPI configuration flash Signed-off-by: Teik Heng Chong --- drivers/mtd/spi/spi-nor-ids.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index

Re: [PATCH] video: kconfig: Fix a typo in SPL_VIDEO_REMOVE

2023-08-03 Thread Simon Glass
On Thu, 3 Aug 2023 at 04:40, Bin Meng wrote: > > From: Bin Meng > > Add one space between 'before' and 'loading'. > > Signed-off-by: Bin Meng > --- > > drivers/video/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Simon Glass

Re: [PATCH] rockchip: rk356x: Enable poweroff command

2023-08-03 Thread Kever Yang
Hi Jonas, On 2023/8/4 03:54, Jonas Karlman wrote: With PMIC_RK8XX, SYSRESET and CMD_POWEROFF options enabled it is possible to power down a board using the poweroff command and turn the board back on using a power button. I'm confuse about the use case, when will people need to do this(other

Re: [PATCH 1/4] config: rock64: start USB to make storage usable

2023-08-03 Thread Kever Yang
Hi Peter, On 2023/8/3 15:44, Peter Robinson wrote: On Tue, Aug 1, 2023 at 4:17 AM Kever Yang wrote: Hi Peter, Could you update the patchset with patches you still want to send? Can you just drop this patch and take the rest from the set? Yes, it's OK if there no other change, I can f

Re: [PATCH 3/3] dts: rockchip: rk3308: Avoid warning for serial probe on prereloc

2023-08-03 Thread Kever Yang
On 2023/8/3 19:08, Massimo Pegorer wrote: Make device tree complete and consistent for pre relocation phase. Some nodes are missing, causing warnings to be issued on serial port probing during pre relocation phase (uclass_get_device_by_phandle_id fails when called by pinctrl_select_state_full:

Re: [PATCH 2/3] clk: rockchip: rk3308: Support reading UART rate and clock registers

2023-08-03 Thread Kever Yang
On 2023/8/3 19:08, Massimo Pegorer wrote: Add support to read RK3308 registers used to configure UART clocks, and thus to get UART rate and baudrate. This fixes clock_get_rate returning error on serial device probing. Moreover, there is no need anymore to use 'clock-frequency' property for UART

Re: [PATCH 1/3] clk: rockchip: rk3308: Fix ordering between masking and shifting

2023-08-03 Thread Kever Yang
On 2023/8/3 19:08, Massimo Pegorer wrote: As per definitions of masks and shift offsets in cru_rk3308.h, values read from registers must be first masked and then shifted. By the way, this fix is binary invariant, because in all of fixed cases the shift offset is zero. Signed-off-by: Massimo Pe

Re: [PATCH] ram: mediatek: mt7629: include

2023-08-03 Thread 高惟杰
On Mon, 2023-07-31 at 19:34 +0100, Daniel Golle wrote: > Something between U-Boot 2023.04 and 2023.07.02 resulted in no > longer > implicitely including in the DDR3 RAM driver for the > MT7929 SoC. The result is a build failure: > drivers/ram/mediatek/ddr3-mt7629.c: In function 'mtk_ddr3_get_info'

[PATCH] arm: dts: medaitek: convert gmac link mode to 2500base-x for mt7986a-bpi-r3-sd

2023-08-03 Thread Weijie Gao
The mt7531 of bpi-r3 is connected to mt7986 with 2.5Gbps HSGMII, not the regular 1Gbps SGMII. Signed-off-by: Weijie Gao --- This is a supplement to commit: aef54ea1 (arm: dts: medaitek: convert gmac link mode to 2500base-x) --- arch/arm/dts/mt7986a-bpi-r3-sd.dts | 4 ++-- 1 file changed, 2 inser

[PATCH 1/1] video: avoid build failure on veyron board

2023-08-03 Thread Alvaro Fernando García
533ad9dc avoided an overflow but causes compilation failure on 32bit boards (eg. veyron speedy) this commit uses div_u64 which has a fallback codepath for 32bit platforms Signed-off-by: Alvaro Fernando García --- drivers/video/pwm_backlight.c | 7 +-- 1 file changed, 5 insertions(+), 2 del

[PATCH 0/1] Avoid build failure on veyron board

2023-08-03 Thread Alvaro Fernando García
I noticed that u-boot stopped building for Veyron boards since commit 533ad9dc, which may also affect other 32bit boards. This series fixes compilation by using div_u64 operation. I apologize for any inconvenient, this is my first patch. Alvaro Fernando García (1): video: avoid build failu

Re: [PATCH 1/2] dm: core: ofnode: Add ofnode_read_bootscript_flash()

2023-08-03 Thread Simon Glass
On Thu, 3 Aug 2023 at 07:36, Michal Simek wrote: > > ofnode_read_bootscript_flash() reads bootscript address from > /options/u-boot DT node. bootscr-flash-offset and bootscr-flash-size > properties are read and values are filled. When bootscr-flash-size is not > defined, bootscr-flash-offset prope

Re: [PATCH v6 3/9] capsule: authenticate: Add capsule public key in platform's dtb

2023-08-03 Thread Simon Glass
Hi Sughosh, On Thu, 3 Aug 2023 at 05:12, Sughosh Ganu wrote: > > hi Simon, > > On Wed, 2 Aug 2023 at 19:04, Simon Glass wrote: > > > > Hi Sughosh, > > > > On Wed, 2 Aug 2023 at 06:52, Simon Glass wrote: > > > > > > Hi Sughosh, > > > > > > On Tue, 1 Aug 2023 at 11:40, Sughosh Ganu wrote: > > >

Re: [PATCH v2 9/9] x86: Update qemu documentation

2023-08-03 Thread Simon Glass
Hi Soeren, On Sun, 30 Jul 2023 at 11:38, Soeren Moch wrote: > > On 30.07.23 19:16, Simon Glass wrote: > > Add some hints and observations related to booting distros on QEMU on x86. > > > > Signed-off-by: Simon Glass > Simon, > > you cc'd me on this patch (both versions), but I never used u-boot

Re: [PATCH] pinctrl: rockchip: Fix drive and input schmitt on RK3568

2023-08-03 Thread Simon Glass
On Thu, 3 Aug 2023 at 11:44, Jonas Karlman wrote: > > rk3568_set_drive configures a second reg for specific pins. Mainline > linux does not do this and vendor U-Boot only run similar code when bit > 14 and 15 are both 0 in PMU_GRF_SOC_CON0. Something that presumably only > early revisions of the S

Re: [PATCH] rockchip: rk356x: Enable poweroff command

2023-08-03 Thread Simon Glass
On Thu, 3 Aug 2023 at 13:54, Jonas Karlman wrote: > > With PMIC_RK8XX, SYSRESET and CMD_POWEROFF options enabled it is > possible to power down a board using the poweroff command and turn the > board back on using a power button. > > Enable the poweroff command on RK356x boards that have a button

Re: [PATCH v2 2/2] spl: move SPL_CRC32 option to lib/Kconfig

2023-08-03 Thread Simon Glass
On Thu, 3 Aug 2023 at 10:05, Oleksandr Suvorov wrote: > > All SPL hash algorithm options are collected in lib/Kconfig. Move > SPL_CRC32 there as well. > > Signed-off-by: Oleksandr Suvorov > --- > > Changes in v2: > - add a related commit to the series. > > common/spl/Kconfig | 11 --- >

Re: [PATCH v3 5/9] board_f: Fix corruption of relocaddr

2023-08-03 Thread Simon Glass
Hi Bin, On Thu, 3 Aug 2023 at 08:19, Bin Meng wrote: > > Hi Tom, Simon, > > On Thu, Aug 3, 2023 at 9:13 PM Tom Rini wrote: > > > > On Thu, Aug 03, 2023 at 07:03:47PM +0800, Bin Meng wrote: > > > On Thu, Aug 3, 2023 at 6:37 PM Bin Meng wrote: > > > > > > > > On Tue, Aug 1, 2023 at 12:00 AM Simon

Re: [PATCH] common: board_f: Move relocation address after framebuffer

2023-08-03 Thread Simon Glass
Hi Devarsh, On Thu, 3 Aug 2023 at 08:28, Devarsh Thakkar wrote: > > Hi Simon, > > On 03/08/23 19:32, Simon Glass wrote: > > +Bin Meng > > > > Hi Devarsh, > > > > On Tue, 1 Aug 2023 at 08:04, Devarsh Thakkar wrote: > >> > >> When passing framebuffer address using bloblist, check > >> that passed

Re: [PATCH v4 1/3] binman: btool: Add Xilinx Bootgen btool

2023-08-03 Thread Simon Glass
On Thu, 3 Aug 2023 at 09:22, wrote: > > From: Lukas Funke > > Add the Xilinx Bootgen as bintool. Xilinx Bootgen is used to create > bootable SPL (FSBL in Xilinx terms) images for Zynq/ZynqMP devices. The > btool creates a signed version of the SPL. Additionally to signing the > key source for the

[PATCH] binman: Renumber 291 and 292 test files

2023-08-03 Thread Simon Glass
These have ended up with the same numbers as earlier files. Fix them. Signed-off-by: Simon Glass --- tools/binman/ftest.py | 4 ++-- .../{291_template_phandle.dts => 309_template_phandle.dts}| 0 ..._template_phandle_dup.dts => 310_template_phandle_du

[PATCH v3 2/2] x86: coreboot: Enable standard boot

2023-08-03 Thread Simon Glass
Enable bootstd options and provide instructions on how to boot a linux distro using coreboot. Signed-off-by: Simon Glass --- Changes in v3: - Drop patches already applied to x86/master configs/coreboot64_defconfig| 14 ++ configs/coreboot_defconfig | 1 + doc/board/corebo

[PATCH v3 1/2] x86: coreboot: Add IDE and SATA

2023-08-03 Thread Simon Glass
Add these options to permit access to more disk types. Add some documentation as well. Signed-off-by: Simon Glass --- Changes in v3: - Update the documentation to use ich9-ahci - Mention that $DISK is a disk-image file configs/coreboot64_defconfig| 1 + configs/coreboot_defconfig |

[PATCH v3 0/2] x86: Improve bootstd support

2023-08-03 Thread Simon Glass
This series provides some bootstd fixes so that IDE can be used reliably for booting a distro. It also includes some documentation on how to boot from coreboot in various scenarios, using QEMU. With this it is possible to boot Ubuntu 2023.04 from coreboot64, for example. This series is available

Re: [PATCH 5/5] bootstd: Init the size before reading extlinux file

2023-08-03 Thread Tom Rini
On Wed, Jul 26, 2023 at 09:01:25PM -0600, Simon Glass wrote: > The implementation in extlinux_pxe_getfile() does not pass a valid size > to bootmeth_read_file(), so this can fail if the uninited value happens to > be too small. > > Fix this. > > Signed-off-by: Simon Glass Applied to u-boot/mas

Re: [PATCH 4/5] bootstd: Init the size before reading the devicetree

2023-08-03 Thread Tom Rini
On Wed, Jul 26, 2023 at 09:01:24PM -0600, Simon Glass wrote: > The implementation in distro_efi_try_bootflow_files() does not pass a > valid size to bootmeth_common_read_file(), so this can fail if the > uninted value happens to be too small. > > Fix this. > > This was reported by someone but I

Re: [PATCH 3/5] bootstd: Avoid allocating memory for the EFI file

2023-08-03 Thread Tom Rini
On Wed, Jul 26, 2023 at 09:01:23PM -0600, Simon Glass wrote: > The current bootflow-iteration algorithm reads the bootflow file into > an allocated memory buffer so it can be examined. This works well in > most cases. > > However, while the common case is that the first bootflow is immediately >

Re: [PATCH 2/5] bootstd: Use a function to detect network in EFI bootmeth

2023-08-03 Thread Tom Rini
On Wed, Jul 26, 2023 at 09:01:22PM -0600, Simon Glass wrote: > This checks for a network-based bootflow in two places, one of which is > less than ideal. Move the correct test into a function and use it in both > places. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom

Re: [PATCH 1/5] bootflow: Export setup_fs()

2023-08-03 Thread Tom Rini
On Wed, Jul 26, 2023 at 09:01:21PM -0600, Simon Glass wrote: > This function is used in some bootmeth implementations. Export it. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/1] virtio: provide driver name in debug message

2023-08-03 Thread Tom Rini
On Wed, Jul 26, 2023 at 05:43:40PM +0200, Heinrich Schuchardt wrote: > If a driver cannot be bound, provide the driver name in the debug > message. Now the debug message may look like this: > > (virtio-pci.l#0): virtio-rng driver not configured > > Signed-off-by: Heinrich Schuchardt > Revie

Re: [PATCH 1/1] fat: correct sign for deletion mark

2023-08-03 Thread Tom Rini
On Wed, Jul 26, 2023 at 10:33:13AM +0200, Heinrich Schuchardt wrote: > The FAT file systems uses character '\xe5' to mark a deleted directory > entry. If a file name starts with this character, it is substituted by > '\x05' in the directory entry. > > While (signed char)'\xe5' is a negative numbe

Re: [PATCH 3/4] rzn1-snarc: Add missing MAINTAINERS file

2023-08-03 Thread Tom Rini
On Tue, Jul 25, 2023 at 06:31:55PM -0400, Tom Rini wrote: > This should have been included when the platform was added, make one > now. > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 2/4] board/freescale: Drop two orphaned entries

2023-08-03 Thread Tom Rini
On Tue, Jul 25, 2023 at 06:31:54PM -0400, Tom Rini wrote: > As the defconfig files here have been removed we can also remove the > entries. > > Signed-off-by: Tom Rini > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/4] vexpress64: Rework MAINTAINERS file slightly

2023-08-03 Thread Tom Rini
On Tue, Jul 25, 2023 at 06:31:53PM -0400, Tom Rini wrote: > Given that we no longer have a configs/vexpress_aemv8a_defconfig file, > drop that and then include at least the aarch64-specific config.h file > here. Also move Linus and Peter up to the main entry as well so that > they'll get tagged f

Re: [PATCH] ARM: imx: Update MAINTAINERS file on DH electronics i.MX8M Plus DHCOM

2023-08-03 Thread Tom Rini
On Tue, Jul 18, 2023 at 06:14:35PM +0200, Marek Vasut wrote: > Make use of globs to cover all the DTs and defconfigs. > Fill in missing DH u-boot list name. > > Signed-off-by: Marek Vasut Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] freescale: Remove Rajesh Bhagat MAINTAINERS

2023-08-03 Thread Tom Rini
On Tue, Oct 18, 2022 at 02:12:46PM -0400, Sean Anderson wrote: > Rajesh's email bounces. Remove his email from all boards he maintains. > Fortunately, he has co-maintainers on most boards. I have taken the > liberty of volunteering Pramod to maintain the LS1012AFRDM, since he > also maintains the

Re: [PATCH 00/16] bootstd: Improve ChromiumOS support

2023-08-03 Thread Alper Nebi Yasak
Hi Simon, On 2023-07-30 20:16 +03:00, Simon Glass wrote: > The ChromiumOS bootmeth is fairly basic at present. It is able to boot > only x86 kernels and contains quite a few hard-coded offsets. > > This series tidies it up by bringing in some vboot structures and adding > support for ARM. > > It

[PATCH 2/2] rockchip: rk356x-u-boot: Add bootph-all to i2c0_xfer pinctrl node

2023-08-03 Thread Jonas Karlman
A RK8XX PMIC is typically using i2c0 on RK356x devices. Add bootph-all to required pinctrl nodes to simplify use of the prevent booting on power plug-in option in SPL. With the following Kconfig options and nodes in u-boot.dtsi the prevent booting on power plug-in option can work in SPL. CONFIG

[PATCH 1/2] power: pmic: rk8xx: Fix power-on source check in SPL

2023-08-03 Thread Jonas Karlman
The commit 30975fb73d51 ("rockchip: Add option to prevent booting on power plug-in") introduce an option to prevent booting a device when the device was powered on due to power plug-in instead of pressing a power button. This feature works by checking the power-on source during PMIC probe and powe

Re: [PATCH v2 2/2] schemas: Add a schema for binman

2023-08-03 Thread Alper Nebi Yasak
On 2023-07-20 22:56 +03:00, Simon Glass wrote: > With this version I have done with a generic name, in this case 'data', > as suggested by Alper Nebi Yasak. This may be controversial, but we may > as well have the dicussion now. I assume that there are no other > ongoing attempts to define the layo

[PATCH] rockchip: rk356x: Enable poweroff command

2023-08-03 Thread Jonas Karlman
With PMIC_RK8XX, SYSRESET and CMD_POWEROFF options enabled it is possible to power down a board using the poweroff command and turn the board back on using a power button. Enable the poweroff command on RK356x boards that have a button wired to PMIC pwron. Also update to use PMIC poweroff when PMI

Re: [PATCH 2/2] configs: Make TI_SECURE_DEVICE default for K3

2023-08-03 Thread Tom Rini
On Thu, Aug 03, 2023 at 09:54:41AM -0500, Andrew Davis wrote: > All K3 boards now are secure by default, instead of setting this in each > defconfig, make it implied by the ARCH config. > > The only exception is IOT2050, which I do not believe will have any > problems with being a TI_SECURE_DEVIC

Re: [PATCH 1/2] configs: am65x: Merge the HS and non-HS defconfigs

2023-08-03 Thread Tom Rini
On Thu, Aug 03, 2023 at 09:54:40AM -0500, Andrew Davis wrote: > K3 devices have runtime type board detection. Make the default defconfig > include the secure configuration. Then remove the HS specific config. > > Non-HS devices will continue to boot due to runtime device type detection. > > Sign

Re: Pull request efi-2023-10-rc2-2

2023-08-03 Thread Tom Rini
On Thu, Aug 03, 2023 at 05:55:54PM +0200, Heinrich Schuchardt wrote: > Dear Tom, > > The following changes since commit 38dedebc547f795efc3daad17f7c013c515e1285: > > Merge https://source.denx.de/u-boot/custodians/u-boot-riscv > (2023-08-02 12:13:16 -0400) > > are available in the Git reposito

Re: [PATCH 2/2] schemas: Add a schema for binman

2023-08-03 Thread Alper Nebi Yasak
(I think I've strayed far away from schema/dtb side of things towards binman-the-program side, so I'm dropping Rob and devicetree@ from Cc). On 2023-07-20 22:55 +03:00, Simon Glass wrote: > On Thu, 20 Jul 2023 at 09:23, Alper Nebi Yasak > wrote: >> There's also the issue of binman having multipl

[PATCH] buildman: Allow more results while building

2023-08-03 Thread Simon Glass
The -v option enables display of build results while building, instead of needing to do a separate summary step later (or in another terminal). But this resets the build results after each commit, so that all errors are reported fresh, without trying to diff them against previous errors already sho

[PATCH 2/2] buildman: Drop warning about orphaned defconfigs

2023-08-03 Thread Simon Glass
Some boards use a MAINTAINERS entry to specify common files without referencing any defconfigs. This is allowed and should not result in a warning. Drop the warning in this case. Signed-off-by: Simon Glass --- tools/buildman/boards.py| 7 --- tools/buildman/func_test.py | 9 ++---

[PATCH 1/2] buildman: Exit after reading toolchain

2023-08-03 Thread Simon Glass
Recent refactoring changed buildman to continue operation after fetching a toolchain. Fix this. Fixes: b8680646521 ("bulidman: Move toolchain handling to a function") Signed-off-by: Simon Glass --- tools/buildman/control.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/buildman/

[PATCH] arm: mediatek: add usb support for MT7988

2023-08-03 Thread Frank Wunderlich
From: Frank Wunderlich MT7988 has a t-phy and an x-phy controller. There is already a driver for t-phy so we can add USB support for this phy type. Signed-off-by: Frank Wunderlich --- arch/arm/dts/mt7988.dtsi | 60 1 file changed, 60 insertions(+) diff

[PATCH] pinctrl: rockchip: Fix drive and input schmitt on RK3568

2023-08-03 Thread Jonas Karlman
rk3568_set_drive configures a second reg for specific pins. Mainline linux does not do this and vendor U-Boot only run similar code when bit 14 and 15 are both 0 in PMU_GRF_SOC_CON0. Something that presumably only early revisions of the SoC have, all my RK3566/RK3568 boards read back bit 15 as 1, e

Re: [PATCH v18 9/9] arm_ffa: efi: corstone1000: enable MM communication

2023-08-03 Thread Tom Rini
On Thu, Aug 03, 2023 at 05:03:50PM +0100, Abdellatif El Khlifi wrote: > turn on EFI MM communication > > On Corstone-1000 platform MM communication between u-boot > and the secure world (Optee) is done using the FF-A bus. > > Changes made are generated using savedefconfig. > > Signed-off-by: Ab

Re: [PATCH v18 8/9] arm_ffa: efi: introduce FF-A MM communication

2023-08-03 Thread Tom Rini
On Thu, Aug 03, 2023 at 05:03:49PM +0100, Abdellatif El Khlifi wrote: [snip] > diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig > index c5835e6ef6..19e51bf503 100644 > --- a/lib/efi_loader/Kconfig > +++ b/lib/efi_loader/Kconfig [snip] > +config FFA_SHARED_MM_BUF_SIZE > + int "Memor

[PATCH] arm: dts: mediatek: convert gmac link mode to 2500base-x for r3

2023-08-03 Thread Frank Wunderlich
From: Frank Wunderlich Ethernet on Bananapi-r3 is broken after commit bd70f3cea353 ("net: mediatek: add support for SGMII 1Gbps auto-negotiation mode") because changes from this commit were not applied to bpi-r3 devicetree too: commit aef54ea16cac ("arm: dts: medaitek: convert gmac link mode

Re: [PATCH 1/2] Revert "lib: string: Fix strlcpy return value", fix callers

2023-08-03 Thread Sean Anderson
On 7/14/23 07:24, Matthias Schiffer wrote: > Both the Linux kernel and libbsd agree that strlcpy() should always > return strlen(src) and not include the NUL termination. The incorrect > U-Boot implementation makes it impossible to check the return value for > truncation, and breaks code written wi

Re: [PATCH v5 10/11] spl: Convert spi to spl_load

2023-08-03 Thread Sean Anderson
On 8/3/23 04:45, Xavier Drudis Ferran wrote: > El Mon, Jul 31, 2023 at 06:43:02PM -0400, Sean Anderson deia: >> This converts the spi load method to use spl_load. As a consequence, it >> also adds support for LOAD_FIT_FULL. >> >> Signed-off-by: Sean Anderson >> --- >> >> Changes in v5: >> - Rewo

Re: [PATCH v5 04/11] spl: Convert fat to spl_load

2023-08-03 Thread Sean Anderson
On 8/3/23 04:30, Xavier Drudis Ferran wrote: > El Mon, Jul 31, 2023 at 06:42:56PM -0400, Sean Anderson deia: >> This converts the fat loader to use spl_load. Some platforms are very >> tight on space, so we take care to only include the code we really need. >> >> Signed-off-by: Sean Anderson >> -

Re: [PATCHv5 09/13] net/lwip: implement lwip port to u-boot

2023-08-03 Thread Maxim Uvarov
On Thu, 3 Aug 2023 at 03:32, Simon Glass wrote: > Hi Maxim, > > On Wed, 2 Aug 2023 at 08:11, Maxim Uvarov wrote: > > > > subject: U-Boot > > commit message please (throughout series) > > > Signed-off-by: Maxim Uvarov > > --- > > lib/lwip/port/if.c| 256 +

Re: [PATCH v5 05/11] spl: Convert mmc to spl_load

2023-08-03 Thread Sean Anderson
On 8/3/23 04:31, Xavier Drudis Ferran wrote: > El Mon, Jul 31, 2023 at 06:42:57PM -0400, Sean Anderson deia: >> This converts the mmc loader to spl_load. Legacy images are handled by >> spl_load (via spl_parse_image_header), so mmc_load_legacy can be >> omitted. >> > > Yes. I haven't used the lega

[PATCH v4 4/4] arm: dts: k3-am64: Sync DT with Linux v6.5-rc1

2023-08-03 Thread Roger Quadros
Sync all am642-evm/am642-sk related DT files with Linux v6.5-rc1. - drop timer1 in favor of main_timer0 in am64-main.dtsi. Need to delete clock & power domain properties of main_timer1 in -r5.dts else won't boot. This is because timer_init is done during rproc_start to start System Firmware, but w

[PATCH v4 3/4] doc: board: ti: am64: Add boot flow diagram

2023-08-03 Thread Roger Quadros
Add boot flow diagram for AM64 SoC. Suggested-by: Nishanth Menon Signed-off-by: Roger Quadros --- doc/board/ti/am64x_evm.rst | 197 +++ doc/board/ti/img/boot_diagram_am64.svg | 1702 doc/board/ti/k3.rst|1 + 3 files changed, 1900 ins

[PATCH v4 2/4] Revert "ARM: dts: k3-am642-sk-u-boot: add PMIC node"

2023-08-03 Thread Roger Quadros
This reverts commit 28a4c3113445d4400639f357fae0def007a41093. This node should be in the board DT file and should come from upstream. Moreover, this PMIC is no present on all variants of am642-sk and will need a separate board DT file. Signed-off-by: Roger Quadros --- arch/arm/dts/k3-am642-sk-u

[PATCH v4 1/4] board: ti: am64x: Recognize AM64-HSEVM

2023-08-03 Thread Roger Quadros
AM64-HSEVM is AM64-GPEVM with High Security Device. Gets rid of "Unidentified board claims AM64-HSEVM in eeprom header". Signed-off-by: Roger Quadros Acked-by: Andrew Davis --- board/ti/am64x/evm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/ti/am64x/evm.c b/boa

[PATCH v4 0/4] arm: dts: k3-am64: Sync DT with Linux

2023-08-03 Thread Roger Quadros
Hi, This series syncs AM64 DT files from Linux v6.5-rc1. Tested on AM642-EVM GP SR1.0 and AM642-SK-EVM HS-FS SR2.0. cheers, -roger Changelog: v4: -Add documentation for am642-evm and am642-sk-evm. -Add license to am64 svg file -drop mmc0 pinmux from k3-am642-r5-evm.dts -drop stdout-path from -

[PATCH v2 2/2] spl: move SPL_CRC32 option to lib/Kconfig

2023-08-03 Thread Oleksandr Suvorov
All SPL hash algorithm options are collected in lib/Kconfig. Move SPL_CRC32 there as well. Signed-off-by: Oleksandr Suvorov --- Changes in v2: - add a related commit to the series. common/spl/Kconfig | 11 --- lib/Kconfig| 11 +++ 2 files changed, 11 insertions(+), 11 d

[PATCH v2 1/2] spl: remove duplicate SPL_MD5 option

2023-08-03 Thread Oleksandr Suvorov
There is another SPL_MD5 option defined in lib/Kconfig. Renaming SPL_MD5_SUPPORT introduced duplicate option with different description. As for now FIT and hash algorithm options are not related to each others, removing a duplicate option seems OK. Fixes: 4b00fd1a84c ("Kconfig: Rename SPL_MD5_SUPP

[PATCH v18 9/9] arm_ffa: efi: corstone1000: enable MM communication

2023-08-03 Thread Abdellatif El Khlifi
turn on EFI MM communication On Corstone-1000 platform MM communication between u-boot and the secure world (Optee) is done using the FF-A bus. Changes made are generated using savedefconfig. Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass Cc: Ilias Apalodimas Cc: Jens Wikla

[PATCH v18 8/9] arm_ffa: efi: introduce FF-A MM communication

2023-08-03 Thread Abdellatif El Khlifi
Add MM communication support using FF-A transport This feature allows accessing MM partitions services through EFI MM communication protocol. MM partitions such as StandAlonneMM or smm-gateway secure partitions which reside in secure world. An MM shared buffer and a door bell event are used to ex

[PATCH v18 7/9] arm_ffa: introduce armffa command

2023-08-03 Thread Abdellatif El Khlifi
Provide armffa command showcasing the use of the U-Boot FF-A support armffa is a command showcasing how to invoke FF-A operations. This provides a guidance to the client developers on how to call the FF-A bus interfaces. The command also allows to gather secure partitions information and ping thes

[PATCH v18 6/9] arm_ffa: introduce sandbox test cases for UCLASS_FFA

2023-08-03 Thread Abdellatif El Khlifi
Add functional test cases for the FF-A support These tests rely on the FF-A sandbox emulator and FF-A sandbox driver which help in inspecting the FF-A communication. Signed-off-by: Abdellatif El Khlifi Reviewed-by: Simon Glass Cc: Tom Rini Cc: Ilias Apalodimas Cc: Jens Wiklander Cc: Heinrich

[PATCH v18 5/9] arm_ffa: introduce sandbox FF-A support

2023-08-03 Thread Abdellatif El Khlifi
Emulate Secure World's FF-A ABIs and allow testing U-Boot FF-A support Features of the sandbox FF-A support: - Introduce an FF-A emulator - Introduce an FF-A device driver for FF-A comms with emulated Secure World - Provides test methods allowing to read the status of the inspected ABIs The sand

[PATCH v18 4/9] arm_ffa: introduce Arm FF-A support

2023-08-03 Thread Abdellatif El Khlifi
Add Arm FF-A support implementing Arm Firmware Framework for Armv8-A v1.0 The Firmware Framework for Arm A-profile processors (FF-A v1.0) [1] describes interfaces (ABIs) that standardize communication between the Secure World and Normal World leveraging TrustZone technology. This driver uses 64-b

[PATCH v18 3/9] lib: uuid: introduce testcase for uuid_str_to_le_bin

2023-08-03 Thread Abdellatif El Khlifi
provide a test case Signed-off-by: Abdellatif El Khlifi Reviewed-by: Simon Glass Cc: Tom Rini --- Changelog: === v16: * MAINTAINERS: place the UUID part in an alphabetical order v11: * use ut_asserteq_mem() MAINTAINERS | 5 + test/lib/Makefile | 1 + test/lib/uui

[PATCH v18 2/9] lib: uuid: introduce uuid_str_to_le_bin function

2023-08-03 Thread Abdellatif El Khlifi
convert UUID string to little endian binary data Signed-off-by: Abdellatif El Khlifi Reviewed-by: Simon Glass Cc: Tom Rini Cc: Ilias Apalodimas Cc: Jens Wiklander --- Changelog: === v9: * add a full function prototype description in uuid.h v8: * use simple_strtoull() in uuid

[PATCH v18 1/9] arm64: smccc: add support for SMCCCv1.2 x0-x17 registers

2023-08-03 Thread Abdellatif El Khlifi
add support for x0-x17 registers used by the SMC calls In SMCCC v1.2 [1] arguments are passed in registers x1-x17. Results are returned in x0-x17. This work is inspired from the following kernel commit: arm64: smccc: Add support for SMCCCv1.2 extended input/output registers [1]: https://docume

[PATCH v18 0/9] introduce Arm FF-A support

2023-08-03 Thread Abdellatif El Khlifi
Adding support for Arm FF-A v1.0 (Arm Firmware Framework for Armv8-A) [A]. FF-A specifies interfaces that enable a pair of software execution environments aka partitions to communicate with each other. A partition could be a VM in the Normal or Secure world, an application in S-EL0, or a Trusted

Pull request efi-2023-10-rc2-2

2023-08-03 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit 38dedebc547f795efc3daad17f7c013c515e1285: Merge https://source.denx.de/u-boot/custodians/u-boot-riscv (2023-08-02 12:13:16 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2023-10-rc

[PATCH] spl: remove duplicate SPL_MD5 option

2023-08-03 Thread Oleksandr Suvorov
There is another SPL_MD5 option defined in lib/Kconfig. Renaming SPL_MD5_SUPPORT introduced duplicate option with different description. As for now FIT and hash algorithm options are not related to each others, removing a duplicate option seems OK. Fixes: 4b00fd1a84c ("Kconfig: Rename SPL_MD5_SUPP

Re: [PATCH v5 07/11] spl: Convert NVMe to spl_load

2023-08-03 Thread Sean Anderson
On 8/3/23 04:32, Xavier Drudis Ferran wrote: > El Mon, Jul 31, 2023 at 06:42:59PM -0400, Sean Anderson deia: >> This converts the blk load method (used exclusively by NVMe) to use >> spl_load. As a consequence, it also adds support for LOAD_FIT_FULL and >> IMX images. >> >> Signed-off-by: Sean And

Re: [PATCH v5 08/11] spl: Convert nor to spl_load

2023-08-03 Thread Sean Anderson
On 8/3/23 04:33, Xavier Drudis Ferran wrote: > El Mon, Jul 31, 2023 at 06:43:00PM -0400, Sean Anderson deia: >> This converts the nor load method to use spl_load. As a result it also >> adds support for LOAD_FIT_FULL. >> >> Signed-off-by: Sean Anderson >> --- >> >> Changes in v5: >> - Rework to

Re: [PATCH v5 09/11] spl: Convert semihosting to spl_load

2023-08-03 Thread Sean Anderson
On 8/3/23 04:36, Xavier Drudis Ferran wrote: > El Mon, Jul 31, 2023 at 06:43:01PM -0400, Sean Anderson deia: >> This converts the semihosting load method to use spl_load. As a result, it >> also adds support for LOAD_FIT_FULL and IMX images. >> >> Signed-off-by: Sean Anderson >> --- >> >> Change

Re: [PATCHv5 07/13] net/lwip: implement ping cmd

2023-08-03 Thread Maxim Uvarov
On Thu, 3 Aug 2023 at 15:32, Ilias Apalodimas wrote: > On Wed, Aug 02, 2023 at 08:06:52PM +0600, Maxim Uvarov wrote: > > Signed-off-by: Maxim Uvarov > > --- > > lib/lwip/Makefile | 1 + > > lib/lwip/apps/ping/Makefile| 11 ++ > > lib/lwip/apps/ping/lwip_ping.c | 37 +++

[PATCH v3] imx: syscounter: allow timer_init for SPL build

2023-08-03 Thread Oleksandr Suvorov
From: Michael Scott With enabled SKIP_LOWLEVEL_INIT, the weak function timer_init() is used in the SPL build. For iMX6 SoC, this leads MMC to fail once u-boot proper is booted due to a timing issue. Always use iMX-specific timer_init() in SPL to fix timing issues. Fixes: be277c3a89 ("imx: mx7: a

[PATCH v4 3/3] binman: etype: Add xilinx-bootgen etype

2023-08-03 Thread lukas . funke-oss
From: Lukas Funke This adds a new etype 'xilinx-bootgen'. By using this etype it is possible to created an signed SPL (FSBL in Xilinx terms) for ZynqMP boards. The etype uses Xilinx Bootgen tools in order to transform the SPL into a bootable image and sign the image with a given primary and seco

  1   2   3   >