[PATCH] common: define time_t as 64bit

2023-07-15 Thread Heinrich Schuchardt
To avoid the year 2038 problem time_t must be 64bit on all architectures. Signed-off-by: Heinrich Schuchardt --- include/linux/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/types.h b/include/linux/types.h index baa2c491ea..9df930afd1 100644 --- a/inclu

[PATCH v3 1/3] toradex: tdx-cfg-block: add verdin am62 skus

2023-07-15 Thread Marcel Ziswiler
From: Marcel Ziswiler Add initial Verdin AM62 Quad 1GB WB IT prototype and launch configuration SKUs to ConfigBlock handling. 0069: Verdin AM62 Quad 1GB WB IT 0071: Verdin AM62 Solo 512MB 0072: Verdin AM62 Solo 512MB WB IT 0073: Verdin AM62 Dual 1GB ET 0074: Verdin AM62 Dual 1GB IT 0075: Verdin

[PATCH v3 2/3] arm: mach-k3: am62: fix 2nd mux option of clkout0

2023-07-15 Thread Marcel Ziswiler
From: Marcel Ziswiler Fix second mux option of clkout0 which should really be DEV_BOARD0_CLKOUT0_IN_PARENT_HSDIV4_16FFT_MAIN_2_HSDIVOUT1_CLK10 rather than twice the same according to [1]. [1] https://software-dl.ti.com/tisci/esd/latest/5_soc_doc/am62x/clocks.html#clocks-for-board0-device Signe

[PATCH v3 0/3] board: toradex: add verdin am62 support

2023-07-15 Thread Marcel Ziswiler
From: Marcel Ziswiler This series adds initial support for the Toradex Verdin AM62 SoM [1]. The first commit adds resp. PID4 to the ConfigBlock, the second one fixes an early clocking issue confirmed to be a weird bug in TI's scripting. And last but not least support for the Toradex Verdin AM62

Re: [PATCH v1 0/6] Add support for PMICs used on Tegra 3 devices

2023-07-15 Thread Svyatoslav Ryhel
Greetings! I have one more improvement for these drivers which is implementation of do_poweroff ability directly into them. I have tested it already and it is a trivial task. What is non trivial is that pmic can be not responsible for poweroff if the device uses 2 or more pmics. Solution I am loo

[PATCH 1/1] test: avoid function name 'setup'

2023-07-15 Thread Heinrich Schuchardt
pytest 7.3.2 treats the function name 'setup' as a fixture [1]. This leads to errors like: TypeError: setup() missing 2 required positional arguments: 'disk_img' and 'osindications' Rename setup() to capsule_setup(). [1] How to run tests written for nose https://docs.pytest.org/en/7

Re: [PATCH v10 3/4] Boot var automatic management for removable medias

2023-07-15 Thread Heinrich Schuchardt
On 7/9/23 10:56, Heinrich Schuchardt wrote: On 6/19/23 23:23, Raymond Mao wrote: Changes for complying to EFI spec §3.5.1.1 'Removable Media Boot Behavior'. Boot variables can be automatically generated during a removable media is probed. At the same time, unused boot variables will be detected

Re: [PATCH v2 3/3] board: rockchip: Add Hardkernel ODROID-M1

2023-07-15 Thread Jonas Karlman
On 2023-07-12 19:07, Jonas Karlman wrote: > Hardkernel ODROID-M1 is a single board computer with a RK3568B2 SoC, > a slightly modified version of the RK3568 SoC. > > Features tested on a ODROID-M1 8GB v1.0 2022-06-13: > - SD-card boot > - eMMC boot > - SPI Flash boot > - PCIe/NVMe/AHCI > - SATA po

Re: [PATCH] stdio: Remove stdio_init()

2023-07-15 Thread Masahiro Yamada
On Thu, Jun 22, 2023 at 3:41 AM Tom Rini wrote: > > On Tue, Jun 06, 2023 at 08:37:42PM +0900, Masahiro Yamada wrote: > > > This function is not used by anyone. > > > > Signed-off-by: Masahiro Yamada > > Reviewed-by: Simon Glass > > Applied to u-boot/next, thanks! > > -- > Tom I am pretty muc

Re: [PATCH v2 8/9] rockchip: rk3568-rock-3a: Enable PCIe and NVMe support

2023-07-15 Thread Jonas Karlman
On 2023-05-18 00:53, Jonas Karlman wrote: > Add missing pinctrl and defconfig options to enable PCIe and NVMe > support on Radxa ROCK 3 Model A. > > Use of pcie20m1_pins and pcie30x2m1_pins ensure IO mux selection M1. > The following pcie_reset_h and pcie3x2_reset_h ensure GPIO func is > restored

[PATCH 0/4] rockchip: rk3308: improve support for ROCK Pi S

2023-07-15 Thread Pegorer Massimo
Some ROCK Pi S SKU/models are not equipped with SD-NAND (eMMC): add support for SPL to access sdmmc to boot. Also fix debug uart init, which broke sdmmc access due to pimux conflict, and boot devices definitions in DTS causing 'same-as-spl' feature not to work. Massimo Pegorer (4): rockchip: rk3

[PATCH 1/4] rockchip: rk3308: fix board_debug_uart_init

2023-07-15 Thread Pegorer Massimo
Definition of function board_debug_uart_init() must be under CONFIG_DEBUG_UART_BOARD_INIT and not under CONFIG_DEBUG_UART, as it was: see debug_uart.h. In this way the debug uart can be used but its board-specific initialization skipped by configuration, if useless. Signed-off-by: Massimo Pegorer

[PATCH 2/4] rockchip: rk3308: no DEBUG_UART_BOARD_INIT for ROCK Pi S

2023-07-15 Thread Pegorer Massimo
Call to board_debug_uart_init() is useless, as mainline U-Boot can not build TPL for rk3308, and proprietary ddr.bin to be used as TPL is responsible to init debug uart. Moreover current implementation of board_debug_uart_init() is not compatible with ROCK Pi S, as it sets pins for UART2 channel 1

[PATCH 3/4] rockchip: rk3308: add support for sdmmc boot

2023-07-15 Thread Pegorer Massimo
Some ROCK Pi S SKU/models are not equipped with SD-NAND (eMMC), therefore SPL needs access to sdmmc: add it to rk3308-u-boot.dtsi with bootph-all property. Signed-off-by: Massimo Pegorer --- arch/arm/dts/rk3308-rock-pi-s-u-boot.dtsi | 2 +- arch/arm/dts/rk3308-u-boot.dtsi | 5 + 2

[PATCH 4/4] rockchip: rk3308: fix same-as-spl boot order

2023-07-15 Thread Pegorer Massimo
Boot devices defined in rk3308.c and in rk3308.dtsi do not match, causing 'same-as-spl' feature not to work. Update DTS definitions, aligning to Linux kernel DTS and to other Rockchip DTS files, i.e. from dwmmc to mmc. Add rk3308-rock-pi-s.dtb in dtb-y targets for CONFIG_ROCKCHIP_RK3308. Signed-o

Pull request efi-2023-10-rc1

2023-07-15 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit b3bbad816e97538c8c3b8acad7c7e134261cf3a3: Merge branch '2023-07-14-expo-initial-config-editor' (2023-07-14 13:26:42 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2023-10-rc1 for

Re: [PATCH 2/3] iopoll: Add readb_poll_sleep_timeout

2023-07-15 Thread Mark Kettenis
> Date: Fri, 14 Jul 2023 23:22:00 +0200 > From: Marek Vasut > > On 7/14/23 22:43, Mark Kettenis wrote: > > Add a variant of readl_poll_sleep_timeout that reads a single > > byte to match the readb_poll_timeout API that Linux has. > > > > Signed-off-by: Mark Kettenis > > --- > > include/linux/

Re: [PATCH v2 5/8] tools: mkeficapsule: Add support for parsing capsule params from config file

2023-07-15 Thread Sughosh Ganu
On Fri, 14 Jul 2023 at 16:14, Michal Simek wrote: > > > > On 6/24/23 15:41, Sughosh Ganu wrote: > > Add support for specifying the parameters needed for capsule > > generation through a config file, instead of passing them through > > command-line. Parameters for more than a single capsule file ca

Re: [PATCH 1/3] apple: Set up file system firmware loader

2023-07-15 Thread Mark Kettenis
> Date: Fri, 14 Jul 2023 23:27:42 +0200 > From: Marek Vasut > > On 7/14/23 22:43, Mark Kettenis wrote: > > Find the appropriate EFI system partition on the internal NVMe > > storage and set the U-Boot environment variables such that > > the file system firmware loader can load firmware from it. >

Re: [PATCH 3/3] usb: xhci-pci: Load ASMedia XHCI controller firmware

2023-07-15 Thread Mark Kettenis
> Date: Fri, 14 Jul 2023 23:30:43 +0200 > From: Marek Vasut Hi Marek, Your suggestions are reasonable, but would make the driver deviate further from its Linux equivalent: https://github.com/AsahiLinux/linux/blob/asahi/drivers/usb/host/xhci-pci-asmedia.c Right now I can actually easily diff

Re: [PATCH] bootstd: Make efi_mgr bootmeth work for non-sandbox setups

2023-07-15 Thread Mark Kettenis
> Date: Fri, 14 Jul 2023 22:21:04 +0200 > From: Heinrich Schuchardt Hi Heinrich, > Am 14. Juli 2023 21:56:02 MESZ schrieb Mark Kettenis : > >Enable the bootflow based on this bootmeth if the BootOrder EFI > >variable is set. > > > >Signed-off-by: Mark Kettenis > >--- > > boot/bootmeth_efi_mgr.c

[PATCH v4 00/12] Integrate EFI capsule tasks into u-boot's build flow

2023-07-15 Thread Sughosh Ganu
This patchset aims to bring two capsule related tasks under the u-boot build flow. One is the embedding of the public key into the platform's dtb. The public key is in the form of an EFI Signature List(ESL) file and is used for capsule authentication. This is being achieved by adding the signatu

[PATCH v4 01/12] binman: bintool: Build a tool from a list of commands

2023-07-15 Thread Sughosh Ganu
Add support to build a tool from source with a list of commands. This is useful when a tool can be built with multiple commands instead of a single command. Signed-off-by: Sughosh Ganu --- Changes since V3: * New patch to support passing multiple commands to the build_from_git function to build

[PATCH v4 02/12] nuvoton: npcm845-evb: Add a newline at the end of file

2023-07-15 Thread Sughosh Ganu
Add a newline at the end of the dts, without which the build fails when including the u-boot.dtsi file. Signed-off-by: Sughosh Ganu Reviewed-by: Simon Glass --- Changes since V3: None arch/arm/dts/nuvoton-npcm845-evb.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/

[PATCH v4 03/12] capsule: authenticate: Add capsule public key in platform's dtb

2023-07-15 Thread Sughosh Ganu
The EFI capsule authentication logic in u-boot expects the public key in the form of an EFI Signature List(ESL) to be provided as part of the platform's dtb. Currently, the embedding of the ESL file into the dtb needs to be done manually. Add a signature node in the u-boot dtsi file and include th

[PATCH v4 04/12] doc: capsule: Document the new mechanism to embed ESL file into dtb

2023-07-15 Thread Sughosh Ganu
Update the document to specify how the EFI Signature List(ESL) file can be embedded into the platform's dtb as part of the u-boot build. Signed-off-by: Sughosh Ganu Reviewed-by: Simon Glass --- Changes since V3: None doc/develop/uefi/uefi.rst | 22 +- 1 file changed, 9 inse

[PATCH v4 05/12] tools: mkeficapsule: Add support for parsing capsule params from config file

2023-07-15 Thread Sughosh Ganu
Add support for specifying the parameters needed for capsule generation through a config file, instead of passing them through command-line. Parameters for more than a single capsule file can be specified, resulting in generation of multiple capsules through a single invocation of the command. Thi

[PATCH v4 06/12] binman: capsule: Add support for generating capsules

2023-07-15 Thread Sughosh Ganu
Add support in binman for generating capsules. The capsule parameters can be specified either through a config file or through the capsule binman entry. Also add test cases in binman for capsule generation, and enable this testing on the sandbox_spl variant. Signed-off-by: Sughosh Ganu --- Change

[PATCH v4 07/12] doc: Add documentation to highlight capsule generation related updates

2023-07-15 Thread Sughosh Ganu
The UEFI capsule can now be generate by specifying the capsule parameters through a config file. Additionally, the capsules can be generated as part of u-boot build, through binman. Highlight these changes in the documentation. Signed-off-by: Sughosh Ganu --- Changes since V3: * Move the paragrap

[PATCH v4 08/12] CI: capsule: Setup the files needed for capsule update testing

2023-07-15 Thread Sughosh Ganu
Support has being added through earlier commits to build capsules and embed the public key needed for capsule authentication as part of u-boot build. >From the testing point-of-view, this means the input files needed for generating the above have to be setup before invoking the build. Set this up

[PATCH v4 09/12] test: py: Setup capsule files for testing

2023-07-15 Thread Sughosh Ganu
Support has being added through earlier commits to build capsules and embed the public key needed for capsule authentication as part of u-boot build. >From the testing point-of-view, this means the input files needed for the above have to be setup before invoking the build. Set this up in the pyte

[PATCH v4 10/12] test: capsule: Remove public key embed logic from capsule update test

2023-07-15 Thread Sughosh Ganu
The embedding of the public key EFI Signature List(ESL) file into the platform's DTB is now done at the time of u-boot build. Remove this logic from the capsule update test' configuration. Include the public key for the sandbox and sandbox_flattree variant as part of the build. Signed-off-by: Sug

[PATCH v4 11/12] sandbox: capsule: Add a config file for generating capsules

2023-07-15 Thread Sughosh Ganu
Support has been added to the mkeficapsule tool to generate capsules by parsing the capsule parameters through a config file. Add a config file for generating capsules. These capsules will be used for testing the capsule update feature on sandbox platform. Enable generation of capsules through the

[PATCH v4 12/12] sandbox: capsule: Generate capsule related files through binman

2023-07-15 Thread Sughosh Ganu
The EFI capsule files can now be generated as part of u-boot build. This is done through binman. Add capsule entry nodes in the u-boot.dtsi for the sandbox architecture for generating the capsules. Remove the corresponding generation of capsules from the capsule update conftest file. The capsules

Re: [PATCH] fwu: Show number of attempts in Trial State

2023-07-15 Thread Jassi Brar
On Fri, 14 Jul 2023 at 03:47, Michal Simek wrote: > > It is not visible anywhere in Trial State if this is the first, second, etc > attempt that's why show a message to be aware about status. > > Signed-off-by: Michal Simek > --- Acked-by: Jassi Brar

Re: [PATCH] fwu: Allow code to properly decode trial state

2023-07-15 Thread Jassi Brar
On Thu, 13 Jul 2023 at 09:35, Michal Simek wrote: > > Current code after capsule update (mtd write) is not changing active_index > in mdata to previous_active_index. > On the reboot this is shown but showing message > "Boot idx 1 is not matching active idx 0, changing active_idx" > which is changi

Re: [PATCH] stdio: Remove stdio_init()

2023-07-15 Thread Tom Rini
On Sat, Jul 15, 2023 at 06:38:38PM +0900, Masahiro Yamada wrote: > On Thu, Jun 22, 2023 at 3:41 AM Tom Rini wrote: > > > > On Tue, Jun 06, 2023 at 08:37:42PM +0900, Masahiro Yamada wrote: > > > > > This function is not used by anyone. > > > > > > Signed-off-by: Masahiro Yamada > > > Reviewed-by:

[PATCH] .mailmap: Correct entires for Masahiro Yamada

2023-07-15 Thread Tom Rini
His entries had the correct email address listed last rather than first, correct this. Fixes 4fa4227cdd14 (".mailmap: Record all address for main U-Boot contributor") Signed-off-by: Tom Rini --- .mailmap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.mailmap b/.mailmap

Re: [PATCH v1 1/4] ARM: config: Enable config to decompress the FIT image

2023-07-15 Thread Tom Rini
On Tue, Jun 13, 2023 at 03:45:53PM +0800, Jim Liu wrote: > Enable FIT and SHA config to decompress the kernel image > > Signed-off-by: Jim Liu For the series, applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v1 1/4] board: nuvoton: arbel: change uboot load address

2023-07-15 Thread Tom Rini
On Tue, Jul 04, 2023 at 04:00:11PM +0800, Jim Liu wrote: > use new memory layout and change uboot load address. > open tpm, tee and more config feature > > No need to reserve top memory because the reserved space > is moved to the bottom area of memory. > > Signed-off-by: Jim Liu For the serie

Re: [PATCH] clk: scmi: claim the dependency on CONFIG_CLK

2023-07-15 Thread Tom Rini
On Mon, Jun 12, 2023 at 10:14:49AM +0900, AKASHI Takahiro wrote: > Without CONFIG_CLK, the build fails with the following message: > LD u-boot > aarch64-none-linux-gnu-ld.bfd: drivers/firmware/scmi/scmi_agent-uclass.o: \ > in function `scmi_bind_protocols': > .../drive

Re: [PATCH] hash: fix a memory leak

2023-07-15 Thread Tom Rini
On Mon, Jun 12, 2023 at 10:59:10PM +0300, Sergei Antonov wrote: > memalign() returns a pointer which is to be freed by free(). To call > unmap_sysmem() is incorrect, furthermore it was called in a wrong scope. > > Also add a check for allocation error. > > Fixes: d7af2baa49c6 ("crypto/fsl: Fix H

Re: [PATCH] firmware: scmi: return a right errno for SCMI status code

2023-07-15 Thread Tom Rini
On Tue, Jun 13, 2023 at 10:30:45AM +0900, AKASHI Takahiro wrote: > scmi_to_linux_errno() is set to return an appropriate errno > which corresponds to a given SCMI status code. > But the current implementation always returns the same value. > > Signed-off-by: AKASHI Takahiro Applied to u-boot/ma

Re: [PATCH v2] env: mmc: statically set the environment partition name

2023-07-15 Thread Tom Rini
On Wed, Jun 14, 2023 at 12:05:28PM +0200, Emmanuel Di Fede wrote: > The new opt-out setting, CONFIG_ENV_MMC_PARTITION, statically sets > the MMC environment partition name. Prior to this patch, the only way > to declare this partition name was by creating a > 'u-boot,mmc-env-partition' parameter i

Re: [v1] disable NFS support by default

2023-07-15 Thread Tom Rini
On Wed, Jun 14, 2023 at 03:41:10PM +0100, Peter Robinson wrote: > While NFS is widely used in data centres, and private > networks it's quite a nuanced usecase for device firmware. > A lot of devices already disable it. > > Various network protocols should really be opt in, not opt > out, because

Re: [PATCH] net: ti: am65-cpsw-nuss: Use dedicated port mode control registers

2023-07-15 Thread Tom Rini
On Wed, Jun 14, 2023 at 05:28:53PM -0500, Andreas Dannenberg wrote: > The different CPSW sub-system Ethernet ports have different PHY mode > control registers. In order to allow the modes to get configured > independently only the register for the port in question must be > accessed, otherwise we

Re: [PATCH] lib/zlib: Fix a bug when getting a gzip header extra field

2023-07-15 Thread Tom Rini
On Thu, Jun 15, 2023 at 05:54:34PM +0300, Oleksandr Suvorov wrote: > This fixes CVE-2022-37434 [1] and bases on 2 commits from Mark > Adler's zlib master repo - the original fix of CVE bug [2] and > the fix for the fix [3]. > > [1] > https://github.com/advisories/GHSA-cfmr-vrgj-vqwv > [2] > https

Re: [PATCH v2] board_f: Relocate fdt even if GD_FLG_SKIP_RELOC is set

2023-07-15 Thread Tom Rini
On Tue, Jun 20, 2023 at 07:50:48PM +0900, Kunihiko Hayashi wrote: > In case of OF_SEPARATE (!OF_EMBED), the devicetree blob is placed > after _end, and fdt_find_separate() always returns _end. There is > a .bss section after _end and the section is cleared before relocation. > > When GD_FLG_SKIP_

Re: [PATCH] drivers: led: bcm6753: do not use null label to find the top

2023-07-15 Thread Tom Rini
On Thu, Jun 29, 2023 at 11:25:23AM +0200, Philippe Reynes wrote: > This driver considers that a node with an empty label is the top. > But the led class has changed, if a label is not provided for a led, > the label is filed with the node name. So we update this driver > to use a wrapper to manage

Re: [PATCH] ufs: Use 'TASK_TAG' to construct the ucd_req_ptr->header.dword_0

2023-07-15 Thread Tom Rini
On Mon, Jul 03, 2023 at 12:39:12AM +0530, Bhupesh Sharma wrote: > Instead of using the hard-coded value of 0x1f, use 'TASK_TAG' > macro instead to construct the ucd_req_ptr->header.dword_0 > > This is in sync with what the Linux UFS driver does, i.e. > set the byte0 equal to TASK_TAG (see [1]). >

Re: [PATCH] lzma: Fix decompression speed regression

2023-07-15 Thread Tom Rini
On Wed, Jul 05, 2023 at 10:34:26AM +0200, Christophe Leroy wrote: > Uncompressing a 1.7Mbytes FIT image on U-boot 2023.04 takes > approx 7s on a powerpc 8xx. > The same on U-boot 2023.07-rc6 takes approx 28s unless watchdog > is disabled. > > During that decompression, LzmaDec_DecodeReal() calls

Re: [PATCH] powerpc: Fix flush_cache() speed regression

2023-07-15 Thread Tom Rini
On Wed, Jul 05, 2023 at 04:51:37PM +0200, Christophe Leroy wrote: > Flushing kernel image after decompression was taking 113 milliseconds > with U-boot 2022.10. With U-boot 2023.01 and 2023.04, flushing > the same amount of memory takes approx 1.5 seconds. With > U-boot 2023.07-rc6, it takes 6.5 s

Re: [PATCH 1/2] cmd: thordown: Add proper dependency for CMD_THOR_DOWNLOAD

2023-07-15 Thread Tom Rini
On Sun, Jul 09, 2023 at 07:09:57AM -0600, Ashok Reddy Soma wrote: > When CONFIG_CMD_USB and CONFIG_USB are disabled some compilation errors > are seen as below. > > cmd/thordown.o: in function `usb_gadget_initialize': > include/linux/usb/gadget.h:981: undefined reference to `board_usb_init' > cmd

Re: [PATCH 1/2] cmd: thordown: Add proper dependency for CMD_THOR_DOWNLOAD

2023-07-15 Thread Tom Rini
On Sat, Jul 15, 2023 at 11:03:53AM -0400, Tom Rini wrote: > On Sun, Jul 09, 2023 at 07:09:57AM -0600, Ashok Reddy Soma wrote: > > > When CONFIG_CMD_USB and CONFIG_USB are disabled some compilation errors > > are seen as below. > > > > cmd/thordown.o: in function `usb_gadget_initialize': > > inclu

[PATCH] ARM: dts: imx: Switch USB1 port control to GPIO on Data Modul i.MX8M Plus eDM SBC

2023-07-15 Thread Marek Vasut
The USB_PWR signal operation is not reliable on this DWC3 controller instance in case the signal is active high. Switch to GPIO control, which always behaves correctly. Perform the change in u-boot extras until this hits Linux upstream. Signed-off-by: Marek Vasut --- Cc: Fabio Estevam Cc: Peng F

[PATCH v2 0/2] power: pmic: add TPS65913 support

2023-07-15 Thread Svyatoslav Ryhel
Existing PALMAS PMIC driver is fully compatible with TI TPS65913 PMIC found in many Tegra 4 devices, like Tegra Note 7 and ASUS TF701T. Add TPS65913 dts compatible with TPS659038 data. Issue with regulators is more general then I though initially. It touches all pmic regulators. Currently device

[PATCH v2 1/2] power: pmic: support TI TPS65913 PMIC

2023-07-15 Thread Svyatoslav Ryhel
Existing PALMAS PMIC driver is fully compatible with TI TPS65913 PMIC found in many Tegra 4 devices, like Tegra Note 7 and ASUS TF701T. TPS65913 shares same structure of regulators like TPS659038 so data can be reused. Tested-by: Svyatoslav Ryhel # NVIDIA Tegratab Signed-off-by: Svyatoslav Ryhel

[PATCH v2 2/2] power: pmic: fix regulators behaviour

2023-07-15 Thread Svyatoslav Ryhel
Currently device tree entries of regulators are completely ignored and regulators are probed only if they are called by the device which uses it. This results into two issues: regulators which must run under boot-on or always-on mode are ignored and not enabled; dts props like voltage are not appli

[PATCH] add axp313a support

2023-07-15 Thread SASANO Takayoshi
Here is the diff of AXP313A PMIC driver. (No board configuration is included) Signed-off-by: SASANO Takayoshi --- arch/arm/mach-sunxi/pmic_bus.c | 4 +- board/sunxi/board.c| 9 +- drivers/power/Kconfig | 16 ++- drivers/power/Makefile | 1 + drivers/power/a

[PATCH v2 0/5] rockchip: rk3568: Use dwc3-generic driver

2023-07-15 Thread Jonas Karlman
This series add support for rk3568 in dwc3-generic driver and change to use the dwc3-generic driver for rk3568 devices having usb enabled. After these changes it should be possible to support usb gadget on rk3568 with e.g.: # CONFIG_USB_FUNCTION_FASTBOOT is not set CONFIG_DM_USB_GADGET=y CO

[PATCH v2 2/5] usb: dwc3-generic: Return early when there is no child node

2023-07-15 Thread Jonas Karlman
The current error check for device_find_first_child is not working as expected, the documentation for device_find_first_child mention: @devp: Returns first child device, or NULL if none Return: 0 Change to return early when there is no child node to avoid any possible null pointer dereference

[PATCH v2 1/5] Revert "arm: dts: rockchip: radxa-cm3-io, rock-3a: enable regulators for usb"

2023-07-15 Thread Jonas Karlman
Remove regulator-boot-on prop from regulators now that the phy core has support for phy-supply after the commit c57e0dcd9384 ("phy: add support for phy-supply"). This reverts commit 7911f409ff20dce5995cc1b703a6e30c94022f6b. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang --- v2: - No chang

[PATCH v2 3/5] usb: dwc3-generic: Relax unsupported dr_mode check

2023-07-15 Thread Jonas Karlman
When dr_mode is peripheral or otg and U-Boot has not been built with DM_USB_GADGET support, booting such device may end up with: dwc3_glue_bind_common: subnode name: usb@fcc0 Error binding driver 'dwc3-generic-wrapper': -6 Some drivers failed to bind initcall sequence effbca08

[PATCH v2 4/5] usb: dwc3-generic: Add rk3568 support

2023-07-15 Thread Jonas Karlman
RK3568 share glue and ctrl in a single node. Use glue_get_ctrl_dev to return the glue node as the ctrl node. Signed-off-by: Jonas Karlman Reviewed-by: Jagan Teki --- v2: - No change - Collect r-b tag drivers/usb/dwc3/dwc3-generic.c | 17 + 1 file changed, 17 insertions(+) diff

[PATCH v2 5/5] rockchip: rk3568: Use dwc3-generic driver

2023-07-15 Thread Jonas Karlman
Change RK3568 devices to use the newer dwc3-generic driver instead of the old xhci-dwc3 driver for USB 3.0 support. Signed-off-by: Jonas Karlman --- v2: - No change configs/radxa-cm3-io-rk3566_defconfig | 2 +- configs/rock-3a-rk3568_defconfig | 2 +- 2 files changed, 2 insertions(+), 2 de

Re: [PATCH v2 0/2] power: pmic: add TPS65913 support

2023-07-15 Thread Jonas Karlman
On 2023-07-15 20:34, Svyatoslav Ryhel wrote: > Existing PALMAS PMIC driver is fully compatible with TI TPS65913 > PMIC found in many Tegra 4 devices, like Tegra Note 7 and ASUS > TF701T. Add TPS65913 dts compatible with TPS659038 data. > > Issue with regulators is more general then I though initia

Re: [PATCH 4/5] CI: Update to gcc-13.1.0

2023-07-15 Thread Simon Glass
On Thu, 13 Jul 2023 at 18:38, Tom Rini wrote: > > As this is the current version of the public cross toolchains we use, > upgrade to this now. > > Suggested-by: Alexey Brodkin > Signed-off-by: Tom Rini > --- > Cc: Heinrich Schuchardt > > Heinrich, at this point is there a newer grub we should b

Re: [PATCH v2] xilinx: board: Add support to pick bootscr address from DT

2023-07-15 Thread Simon Glass
Hi Michal, On Fri, 14 Jul 2023 at 00:19, Michal Simek wrote: > > > > On 7/13/23 22:51, Simon Glass wrote: > > Hi Michal, > > > > On Thu, 13 Jul 2023 at 06:54, Michal Simek wrote: > >> > >> From: Algapally Santosh Sagar > >> > >> The bootscript is expected at a default address specific to each >

Re: [PATCH 15/18] k3-*-binman: dts: Pack u-boot.dtb instead of soc specific dtb

2023-07-15 Thread Simon Glass
On Thu, 13 Jul 2023 at 23:55, Manorit Chawdhry wrote: > > FIT signature requires the updates to u-boot.dtb and the DTB that we > pack don't get updates with the changes of the signature node. > > Pack u-boot.dtb as the default DTB so that the signature node changes > can be reflected in them. > >

Re: [PATCH v5 1/3] binman: Add support for externally encrypted blobs

2023-07-15 Thread Simon Glass
On Fri, 14 Jul 2023 at 03:14, wrote: > > From: Christian Taedcke > > This adds a new etype encrypted. > > It creates a new cipher node in the related image similar to the > cipher node used by u-boot, see boot/image-cipher.c. > > Signed-off-by: Christian Taedcke > --- > > Changes in v5: > - encr

Re: [PATCH] CI: Add automatic retry for test.py jobs

2023-07-15 Thread Simon Glass
Hi Tom, On Thu, 13 Jul 2023 at 15:57, Tom Rini wrote: > > On Thu, Jul 13, 2023 at 03:03:57PM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 12 Jul 2023 at 14:38, Tom Rini wrote: > > > > > > On Wed, Jul 12, 2023 at 02:32:18PM -0600, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Wed

Re: [PATCH v3 00/18] bootstd: Add a bootmeth for ChromiumOS on x86

2023-07-15 Thread Simon Glass
Hi Tom, On Fri, 14 Jul 2023 at 11:29, Tom Rini wrote: > > On Fri, Jul 14, 2023 at 05:29:40PM +0800, Bin Meng wrote: > > Hi Simon, > > > > On Thu, Jul 13, 2023 at 9:14 PM Bin Meng wrote: > > > > > > On Wed, Jul 12, 2023 at 11:04 PM Simon Glass wrote: > > > > > > > > This series adds a simple boo

Re: [PATCH v4 35/45] x86: Record the start and end of the tables

2023-07-15 Thread Simon Glass
Hi Bin, On Thu, 13 Jul 2023 at 04:49, Bin Meng wrote: > > Hi Simon, > > On Mon, Jun 19, 2023 at 8:02 PM Simon Glass wrote: > > > > The ACPI tables are special in that they are passed to EFI as a separate > > piece, independent of other tables. > > > > Also they can be spread over two areas of me

Re: [PATCH 5/5] CI: Update to the latest "Jammy" tag

2023-07-15 Thread Simon Glass
On Thu, 13 Jul 2023 at 18:38, Tom Rini wrote: > > Move to the latest "Jammy" tag from Ubuntu. > > Signed-off-by: Tom Rini > --- > .azure-pipelines.yml| 2 +- > .gitlab-ci.yml | 2 +- > tools/docker/Dockerfile | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) Reviewed-by: S

Re: [PATCH 1/1] test: avoid function name 'setup'

2023-07-15 Thread Simon Glass
Hi Heinrich, On Sat, 15 Jul 2023 at 03:05, Heinrich Schuchardt wrote: > > pytest 7.3.2 treats the function name 'setup' as a fixture [1]. > > This leads to errors like: > > TypeError: setup() missing 2 required positional arguments: > 'disk_img' and 'osindications' > > Rename setup() to c

Re: [PATCH v4 38/45] x86: link: Support Micron memory

2023-07-15 Thread Simon Glass
Hi Bin, On Thu, 13 Jul 2023 at 04:50, Bin Meng wrote: > > Hi Simon, > > On Mon, Jun 19, 2023 at 8:02 PM Simon Glass wrote: > > > > Add the required tag so that micron memory can be set up correctly. > > > > Signed-off-by: Simon Glass > > --- > > > > (no changes since v2) > > > > Changes in v2:

Re: [PATCH v4 32/45] fs: fat: Support reading from a larger block size

2023-07-15 Thread Simon Glass
Hi Bin, On Thu, 13 Jul 2023 at 04:49, Bin Meng wrote: > > Hi Simon, > > On Mon, Jun 19, 2023 at 8:02 PM Simon Glass wrote: > > > > At present it is not possible to read from some CDROM drives since the > > FAT sector size does not match the media's block size. Add a conversion > > option for thi

Re: [PATCH] add axp313a support

2023-07-15 Thread Simon Glass
Hi, On Sat, 15 Jul 2023 at 16:01, SASANO Takayoshi wrote: > > > Here is the diff of AXP313A PMIC driver. > (No board configuration is included) > > Signed-off-by: SASANO Takayoshi > --- > > arch/arm/mach-sunxi/pmic_bus.c | 4 +- > board/sunxi/board.c| 9 +- > drivers/power/Kconf

Re: Please pull u-boot-dm

2023-07-15 Thread Simon Glass
Hi Tom, On Wed, 12 Jul 2023 at 14:31, Tom Rini wrote: > > On Wed, Jul 12, 2023 at 02:17:45PM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 12 Jul 2023 at 14:14, Tom Rini wrote: > > > > > > On Wed, Jul 12, 2023 at 02:09:19PM -0600, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Wed

Re: [PATCH v1 1/2] drivers: firmware: introduce Meson Secure Monitor driver

2023-07-15 Thread Simon Glass
Hi, On Thu, 13 Jul 2023 at 23:30, AKASHI Takahiro wrote: > > On Tue, Jul 11, 2023 at 01:13:29PM -0600, Simon Glass wrote: > > +AKASHI Takahiro > > Me? Yes, I'm asking for your help to try to clean this stuff up. > > > Hi Alexey, > > > > On Tue, 11 Jul 2023 at 04:25, Alexey Romanov > > wrote:

Re: [PATCH v4 03/12] capsule: authenticate: Add capsule public key in platform's dtb

2023-07-15 Thread Simon Glass
Hi Sughosh, On Sat, 15 Jul 2023 at 07:46, Sughosh Ganu wrote: > > The EFI capsule authentication logic in u-boot expects the public key > in the form of an EFI Signature List(ESL) to be provided as part of > the platform's dtb. Currently, the embedding of the ESL file into the > dtb needs to be d

Re: [PATCH v5 3/3] binman: Add tests for etype encrypted

2023-07-15 Thread Simon Glass
On Fri, 14 Jul 2023 at 03:14, wrote: > > From: Christian Taedcke > > Add tests to reach 100% code coverage for the added etype encrypted. > > Signed-off-by: Christian Taedcke > --- > > Changes in v5: > - add comments to test functions > > Changes in v4: > - fix failing test testEncryptedKeyFile

Re: [PATCH v2 2/2] power: pmic: fix regulators behaviour

2023-07-15 Thread Simon Glass
Hi Svyatoslav, On Sat, 15 Jul 2023 at 12:34, Svyatoslav Ryhel wrote: > > Currently device tree entries of regulators are completely > ignored and regulators are probed only if they are called > by the device which uses it. This results into two issues: > regulators which must run under boot-on or

Re: [RFC PATCH 1/3] scripts: kconfig: Add config fragment support in board/../

2023-07-15 Thread Simon Glass
Hi Tom, On Thu, 13 Jul 2023 at 16:54, Tom Rini wrote: > > On Wed, Jul 12, 2023 at 08:00:28AM -0600, Simon Glass wrote: > > Hi Jason, > > > > On Tue, 11 Jul 2023 at 16:29, Jason Kacines wrote: > > > > > > Add support to config fragments (.config) located in the /board > > > directory. This will a

Re: [PATCH v4 11/12] sandbox: capsule: Add a config file for generating capsules

2023-07-15 Thread Simon Glass
Hi, On Sat, 15 Jul 2023 at 07:46, Sughosh Ganu wrote: > > Support has been added to the mkeficapsule tool to generate capsules > by parsing the capsule parameters through a config file. Add a config > file for generating capsules. These capsules will be used for testing > the capsule update featu

Re: [PATCH v4 06/12] binman: capsule: Add support for generating capsules

2023-07-15 Thread Simon Glass
Hi Sughosh, On Sat, 15 Jul 2023 at 07:46, Sughosh Ganu wrote: > > Add support in binman for generating capsules. The capsule parameters > can be specified either through a config file or through the capsule > binman entry. Also add test cases in binman for capsule generation, > and enable this te

Re: [RFC PATCH 0/3] Minimal platform configuration

2023-07-15 Thread Simon Glass
Hi Nishanth, On Thu, 13 Jul 2023 at 16:34, Nishanth Menon wrote: > > On 08:00-20230712, Simon Glass wrote: > > Hi Jason, > > > > On Tue, 11 Jul 2023 at 16:28, Jason Kacines wrote: > > > > > > When someone attempts to bring up a custom board using TI SoCs (am62x in > > > this case), it often take

Re: [PATCH v4 29/45] x86: Enable display for QEMU 64-bit

2023-07-15 Thread Simon Glass
Hi Bin, On Wed, 12 Jul 2023 at 23:17, Bin Meng wrote: > > Hi Simon, > > On Mon, Jun 19, 2023 at 8:02 PM Simon Glass wrote: > > > > Enable the various options needed for display to work on the qemu-x86_64 > > board. This includes expanding the available malloc() memory in SPL, > > since the PCI b

Re: [PATCH v4 01/12] binman: bintool: Build a tool from a list of commands

2023-07-15 Thread Simon Glass
Hi Sughosh, On Sat, 15 Jul 2023 at 07:46, Sughosh Ganu wrote: > > Add support to build a tool from source with a list of commands. This > is useful when a tool can be built with multiple commands instead of a > single command. > > Signed-off-by: Sughosh Ganu > --- > Changes since V3: > * New pat

Re: [PATCH 07/10] test: dm: add SCMI base protocol test

2023-07-15 Thread Simon Glass
Hi, On Thu, 13 Jul 2023 at 18:42, AKASHI Takahiro wrote: > > Hi Simon, > > On Tue, Jul 11, 2023 at 12:41:58PM -0600, Simon Glass wrote: > > Hi Takahiro, > > > > On Mon, 10 Jul 2023 at 19:02, AKASHI Takahiro > > wrote: > > > > > > Hi Simon, > > > > > > On Mon, Jul 10, 2023 at 01:45:58PM -0600, Si

Re: [PATCH v4 08/45] x86: Show the CPU physical address size with bdinfo

2023-07-15 Thread Simon Glass
Hi Bin, On Wed, 12 Jul 2023 at 08:02, Bin Meng wrote: > > Hi Simon, > > On Mon, Jun 19, 2023 at 8:01 PM Simon Glass wrote: > > > > This is useful information so show it with the bdinfo command. > > > > Signed-off-by: Simon Glass > > --- > > > > (no changes since v1) > > > > arch/x86/lib/bdinfo

Re: [PATCH v5 2/3] binman: Allow cipher node as special section

2023-07-15 Thread Simon Glass
On Fri, 14 Jul 2023 at 03:14, wrote: > > From: Christian Taedcke > > The new encrypted etype generates a cipher node in the device tree > that should not be evaluated by binman, but still be kept in the > output device tree. > > Signed-off-by: Christian Taedcke > --- > > (no changes since v3) >

Re: [PATCH v4 27/45] pci: Adjust video BIOS debugging to be SPL-friendly

2023-07-15 Thread Simon Glass
Hi Bin, On Wed, 12 Jul 2023 at 23:17, Bin Meng wrote: > > Hi Simon, > > On Mon, Jun 19, 2023 at 8:01 PM Simon Glass wrote: > > > > A hex value is expected for the VGA mode. Drop the 0x prefix, which is > > not supported in SPL. > > > > Signed-off-by: Simon Glass > > --- > > > > (no changes sinc

Re: [PATCH 3/5] spl: Correct spl_board_boot_device function prototype

2023-07-15 Thread Simon Glass
On Thu, 13 Jul 2023 at 18:38, Tom Rini wrote: > > With gcc-13.1 we get a warning about enum vs int here, so correct the > declaration to match the implementation. > > Signed-off-by: Tom Rini > --- > include/spl.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > Reviewed-by: Simon Gla

Re: [PATCH v4 08/12] CI: capsule: Setup the files needed for capsule update testing

2023-07-15 Thread Simon Glass
Hi, On Sat, 15 Jul 2023 at 07:46, Sughosh Ganu wrote: > > Support has being added through earlier commits to build capsules > and embed the public key needed for capsule authentication as part of > u-boot build. > > From the testing point-of-view, this means the input files needed for > generatin

Re: [PATCH 12/18] include: armv7: Enable distroboot across all configs

2023-07-15 Thread Simon Glass
Hi Manorit, On Thu, 13 Jul 2023 at 23:54, Manorit Chawdhry wrote: > > Since K3 devices are moving towards distroboot, remove duplicates and > add it in common file to import from. > > Signed-off-by: Manorit Chawdhry > --- > include/configs/am62ax_evm.h | 71 > -

Re: [PATCH v4 12/12] sandbox: capsule: Generate capsule related files through binman

2023-07-15 Thread Simon Glass
Hi Sughosh, On Sat, 15 Jul 2023 at 07:46, Sughosh Ganu wrote: > > The EFI capsule files can now be generated as part of u-boot > build. This is done through binman. Add capsule entry nodes in the > u-boot.dtsi for the sandbox architecture for generating the > capsules. Remove the corresponding ge

Re: [PATCH v5 1/3] binman: Add support for externally encrypted blobs

2023-07-15 Thread Jonas Karlman
Hi Christian, On 2023-07-14 11:14, christian.taedcke-...@weidmueller.com wrote: > From: Christian Taedcke > > This adds a new etype encrypted. > > It creates a new cipher node in the related image similar to the > cipher node used by u-boot, see boot/image-cipher.c. > > Signed-off-by: Christia

Re: [PATCH] sunxi: H6: Enable Ethernet on Orange Pi One Plus

2023-07-15 Thread Andre Przywara
On Tue, 11 Jul 2023 19:40:21 + Anne Macedo wrote: Hi Anne, thanks for reaching out to the list! But please try to avoid pushing any patches downstream (Yocto) before they are accepted or at least discussed upstream, see below. > On 11.07.2023 02:39, Anne Macedo wrote: > > Enable Ethernet on

Re: [PATCH] add axp313a support

2023-07-15 Thread SASANO Takayoshi
Hello, On Sun, 16 Jul 2023 08:40:36 +0900, Simon Glass wrote: > > Hi, > > On Sat, 15 Jul 2023 at 16:01, SASANO Takayoshi wrote: > > > > > > Here is the diff of AXP313A PMIC driver. > > (No board configuration is included) > > > > Signed-off-by: SASANO Takayoshi > > --- > > > > arch/arm/mach-s

  1   2   3   >