Re: [PATCH v2 1/2] cmd: bcb: support various block device interfaces for BCB command

2023-11-14 Thread Mattijs Korpershoek
Hi Dmitrii, Thank you for your patch. On ven., nov. 10, 2023 at 05:59, Dmitrii Merkurev wrote: > Currently BCB command-line, C APIs and implementation only > support MMC interface. Extend it to allow various block > device interfaces. > > Signed-off-by: Dmitrii Merkurev > Cc: Eugeniu Rosca >

Re: [PATCH 0/2] cmd: bcb: extend BCB APIs to support Android boot flow

2023-11-14 Thread Mattijs Korpershoek
Hi Dmitrii, Next time, please add the version (v2) in the cover letter as you did in the patches (subject should start with "[PATCH v2 0/2]") No need to respin the series for this. Thanks again for your contribution! Cheers Mattijs On ven., nov. 10, 2023 at 05:59, Dmitrii Merkurev wrote: > F

[UBOOT PATCH v3] test/py: net: Add dhcp abort test

2023-11-14 Thread Love Kumar
Abort the dhcp request in the middle by pressing ctrl + c on u-boot prompt and validate the abort status. Signed-off-by: Love Kumar --- Changes in v2: - Mark CMD_MII command dependency Changes in v3: - Skip the test if PHY device not present --- test/py/tests/test_net.py | 47

[PATCH v2 0/4] fix/add npcm845 serial and board error

2023-11-14 Thread Jim Liu
1. Fix serial error and add bypass serial setting. 2. Fix/Add dts node node. 3. Add full function defconfig Jim Liu (4): arm: dts: npcm845-evb: fix/add node and aliases configs: arbel: Enable full functions serial: npcm: support skip uart clock setting board: nuvoton: update console enviro

[PATCH v2 1/4] arm: dts: npcm845-evb: fix/add node and aliases

2023-11-14 Thread Jim Liu
Modify spi and usb aliases name. Add dt-binding for usb phy define and fix usb phy reset error. Add tpm/otpee and host_intf node. Signed-off-by: Jim Liu --- Changes for v2: - add espi node --- arch/arm/dts/nuvoton-common-npcm8xx.dtsi | 11 ++- arch/arm/dts/nuvoton-npcm845-evb.dts

[PATCH v2 2/4] configs: arbel: Enable full functions

2023-11-14 Thread Jim Liu
Enable more functions/commands for arbel evb. Signed-off-by: Jim Liu --- Changes for v2: --- no change --- configs/arbel_evb_defconfig | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/configs/arbel_evb_defconfig b/configs/arbel_evb_defconfig index 6cfb5a7d

[PATCH v2 3/4] serial: npcm: support skip uart clock setting

2023-11-14 Thread Jim Liu
Skip the uart clock setting if CONFIG_SYS_SKIP_UART_INIT is enabled. Fix divisor error. Signed-off-by: Jim Liu --- Changes for v2: - no change --- drivers/serial/serial_npcm.c | 39 ++-- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/drivers/se

[PATCH v2 4/4] board: nuvoton: update console environment variable

2023-11-14 Thread Jim Liu
If CONFIG_SYS_SKIP_UART_INIT is enabled, calculate the current baud rate and update the "console" environment variable. Signed-off-by: Jim Liu --- Changes for v2: --- rename file --- modify board_set_console to void function --- board/nuvoton/arbel_evb/Kconfig | 1 + board/nuvoton/arb

[PATCH v3] clk: nuvoton: add read only feature for clk driver

2023-11-14 Thread Jim Liu
Add a flag to set ahb/apb/fiu/spi clock divider as read-only The spi clock setting is related to booting flash, it is setup by early bootloader. It just protects the clock source and can't modify it in uboot. Signed-off-by: Jim Liu --- Changes for v3: - add commit message Changes for v2: -

Re: [PATCH v12 9/9] doc: uefi: add HTTP Boot support

2023-11-14 Thread Fabio Estevam
Hi Masahisa, On Fri, Nov 10, 2023 at 1:29 AM Masahisa Kojima wrote: > +Set up the load option specifying the target URI:: > + > +efidebug boot add -u 1 netinst http://foo/bar > + > +When this load option is selected as boot selection, resolve the > +host ip address by dns, then download the

Re: [PATCH v1 1/5] fastboot: multiresponse support

2023-11-14 Thread Mattijs Korpershoek
Hi Svyatoslav, Thank you for your patch. On mar., nov. 07, 2023 at 14:42, Svyatoslav Ryhel wrote: > From: Ion Agorria > > Currently u-boot fastboot can only send one message back to host, > so if there is a need to print more than one line messages must be > kept sending until all the required

[PATCH 0/2] fix FMP versioning for FWU multi bank update

2023-11-14 Thread Masahisa Kojima
The current FMP versioning does not work when CONFIG_FWU_MULTI_BANK_UPDATE is enabled. This series aims to support FMP versioning for FWU multi bank update. Masahisa Kojima (2): efi_loader: use original image_index for FMP versioning efi_loader: support FMP versioning for FWU multi bank update

[PATCH 1/2] efi_loader: use original image_index for FMP versioning

2023-11-14 Thread Masahisa Kojima
FMP versioning uses the image_index argument of EFI_FIRMWARE_MANAGEMENT_PROTOCOL.SetImage() service. When CONFIG_FWU_MULTI_BANK_UPDATE is enabled, image_index is updated by fwu_get_image_index() function. This commit saves the original image_index argument and use it for FMP versioning. Signed-off

[PATCH 2/2] efi_loader: support FMP versioning for FWU multi bank update

2023-11-14 Thread Masahisa Kojima
Current FMP versioning uses the FMPState UEFI variables that indicates image_index. When CONFIG_FWU_MULTI_BANK_UPDATE is enabled, U-Boot instances installed in different banks read the same FMPState variable and it ends up with reading wrong fw_version. This commit includes the bank_i

Re: [PATCH v1 2/5] fastboot: implement "getvar all"

2023-11-14 Thread Mattijs Korpershoek
Hi Svyatoslav, Thank you for your patch. On mar., nov. 07, 2023 at 14:42, Svyatoslav Ryhel wrote: > From: Ion Agorria > > This commit implements "fastboot getvar all" listing > by iterating the existing dispatchers that don't require > parameters (as we pass NULL), uses fastboot multiresponse.

Re: [PATCH v1 2/5] fastboot: implement "getvar all"

2023-11-14 Thread Svyatoslav Ryhel
14 листопада 2023 р. 11:32:35 GMT+02:00, Mattijs Korpershoek написав(-ла): >Hi Svyatoslav, > >Thank you for your patch. > >On mar., nov. 07, 2023 at 14:42, Svyatoslav Ryhel wrote: > >> From: Ion Agorria >> >> This commit implements "fastboot getvar all" listing >> by iterating the existing d

Re: [PATCH v1 5/5] fastboot: add oem console command support

2023-11-14 Thread Mattijs Korpershoek
Hi Svyatoslav, Thank you for your patch. On mar., nov. 07, 2023 at 14:42, Svyatoslav Ryhel wrote: > From: Ion Agorria > > "oem console" serves to read console record buffer. > > Signed-off-by: Ion Agorria > Signed-off-by: Svyatoslav Ryhel > --- > doc/android/fastboot.rst | 1 + > driv

Re: [PATCH] clk: meson: add Hardware Clock measure driver

2023-11-14 Thread Neil Armstrong
Hi, On 13/11/2023 19:00, Igor Prusov wrote: Hi Neil, On Mon, Nov 13, 2023 at 09:49:32AM +0100, Neil Armstrong wrote: Amlogic SoCs embeds an hardware clock measure block, port it from Linux and implement it as a UCLK_CLK with only the dump op and fail-only xlate. Signed-off-by: Neil Armstrong

Re: [PATCH v1 5/5] fastboot: add oem console command support

2023-11-14 Thread Svyatoslav Ryhel
14 листопада 2023 р. 12:24:52 GMT+02:00, Mattijs Korpershoek написав(-ла): >Hi Svyatoslav, > >Thank you for your patch. > >On mar., nov. 07, 2023 at 14:42, Svyatoslav Ryhel wrote: > >> From: Ion Agorria >> >> "oem console" serves to read console record buffer. >> >> Signed-off-by: Ion Agorri

Re: [PATCH 0/3] exynos: Include missing CPU headers

2023-11-14 Thread Minkyu Kang
Hi 2023년 10월 21일 (토) 06:46, Sam Protsenko 님이 작성: > During porting a new Exynos-based board to U-Boot I faced a couple of > similar build errors due to missing inclusion. This > series make sure it's fixed in all places I found. > > Sam Protsenko (3): > arm: exynos: Include missing CPU header

Re: [PATCH] exynos: Avoid duplicate reset_cpu with SYSRESET enabled

2023-11-14 Thread Minkyu Kang
Hi, 2023년 10월 31일 (화) 02:36, Tom Rini 님이 작성: > On Mon, Oct 30, 2023 at 11:55:02AM -0500, Sam Protsenko wrote: > > > The sysreset uclass unconditionally provides a definition of the > > reset_cpu() function. So does the exynos soc code. Fix the build with > > SYSRESET enabled by omitting the func

Re: [PATCH] serial: s5p: Fix clk_get_by_index() error code check

2023-11-14 Thread Minkyu Kang
Hi 2023년 11월 8일 (수) 03:39, Sam Protsenko 님이 작성: > clk_get_by_index() returns negative number on error. Assigning it to > unsigned int makes the subsequent "ret < 0" check always false, leading > in turn to possible unhandled errors. Change 'ret' variable type to > signed int so the code checks an

Re: [PATCH] clk: exynos: Add header guard for clk-pll.h

2023-11-14 Thread Minkyu Kang
Hi, 2023년 11월 9일 (목) 04:54, Sean Anderson 님이 작성: > On 11/7/23 16:22, Sam Protsenko wrote: > > The clk-pll.h is going to be included in multiple files soon. Add > > missing header guard to prevent possible build errors in future. > > > > Signed-off-by: Sam Protsenko > > Fixes: 166097e87753 ("clk

[PATCH 01/13] sandbox: move asm-generic include to the end of file

2023-11-14 Thread Igor Prusov
Generic version of io.h should be included at the end of architecture-specific ones to make sure that arch implementations are used and to avoid redefinitions. Signed-off-by: Igor Prusov --- arch/sandbox/include/asm/io.h | 28 ++-- 1 file changed, 14 insertions(+), 14 de

[PATCH 02/13] x86: Add defines for ins/outs functions

2023-11-14 Thread Igor Prusov
Add defines for {in,out}s{b,w,l}() functions to make sure that they will be used by asm-generic/io.h Signed-off-by: Igor Prusov --- arch/x86/include/asm/io.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h index 83dc09757e..5efb2e1

[PATCH 03/13] mips: io.h: Add const to reads functions params

2023-11-14 Thread Igor Prusov
Currently reads{b,w,l}() functions don't have const qualifier for their address parameter. Since asm-generic/io.h in Linux has const for all read functions, add it here as well to keep signatures in sync. Signed-off-by: Igor Prusov --- arch/mips/include/asm/io.h | 3 ++- 1 file changed, 2 inser

[PATCH 04/13] mips: io.h: Add defines for read/write/in/out functions

2023-11-14 Thread Igor Prusov
Add defines for {read,write}{b,w,l,q}(), {read,write}s{b,w,l,q}() and {in,out}s{b,w,l,q}() functions to make asm-generic/io.h aware of them. Signed-off-by: Igor Prusov --- arch/mips/include/asm/io.h | 32 1 file changed, 32 insertions(+) diff --git a/arch/mips/

[PATCH 05/13] riscv: io.h: Add defines for reads/writes functions

2023-11-14 Thread Igor Prusov
Add defines for {read,write}s{b,w,l} functions to make asm-generic/io.h aware of them. Signed-off-by: Igor Prusov --- arch/riscv/include/asm/io.h | 8 1 file changed, 8 insertions(+) diff --git a/arch/riscv/include/asm/io.h b/arch/riscv/include/asm/io.h index 4170877a1a..cedd5375d6 10

[PATCH 06/13] riscv: io.h: Fix signatures of reads/writes functions

2023-11-14 Thread Igor Prusov
Change type of address parameter from int* to volatile void* for {read,write}s{b,w,l}() functions and add const qualifier for reads. This is done to keep function signatures in sync with asm-generic/io.h and other platforms. Signed-off-by: Igor Prusov --- arch/riscv/include/asm/io.h | 18 ++

[PATCH 07/13] nios2: io.h: Add defines for ins/outs functions

2023-11-14 Thread Igor Prusov
Add defines for {in,out}s{b,w,l} functions to make asm-generic/io.h aware of them. Signed-off-by: Igor Prusov --- arch/nios2/include/asm/io.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/nios2/include/asm/io.h b/arch/nios2/include/asm/io.h index 817cd72e00..321e4fd1ca 100644

[PATCH 08/13] powerpc: io.h: Add defines for __raw_{read, write} functions

2023-11-14 Thread Igor Prusov
Add defines for __raw_{read,write}{b,w,l}() functions to make make asm-generic/io.h aware of them. Signed-off-by: Igor Prusov --- arch/powerpc/include/asm/io.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/powerpc/include/asm/io.h b/arch/powerpc/include/asm/io.h index f6

[PATCH 09/13] xtensa: io.h: Add defines for ins/outs functions

2023-11-14 Thread Igor Prusov
Add defines for {in,out}s{b,w,l}() functions to make asm-generic/io.h aware of them. Signed-off-by: Igor Prusov --- arch/xtensa/include/asm/io.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/xtensa/include/asm/io.h b/arch/xtensa/include/asm/io.h index 76a646e882..87ad9faa29 100

[PATCH 10/13] asm-generic: Import functions from Linux

2023-11-14 Thread Igor Prusov
Currently {read,write}s{b,w,lq}() functions are available only on some architectures, and there are no io{read,write}{8,16,32,64}_rep() functions in u-boot. This patch adds generic versions that may be used without arch-specific implementation. Since some of added functions were already added loca

[PATCH 11/13] spi: meson_spifc_a1: Switch to io{read,write}32_rep()

2023-11-14 Thread Igor Prusov
Use io{read,write}32_rep() functions to sync code with Linux version. Signed-off-by: Igor Prusov --- drivers/spi/meson_spifc_a1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/meson_spifc_a1.c b/drivers/spi/meson_spifc_a1.c index 099c4c037d..a33b1a3879 1006

[PATCH 12/13] treewide: Include linux/io.h instead of asm-generic/io.h

2023-11-14 Thread Igor Prusov
Directly including asm-generic/io.h may break build because it will cause redefenition of generic io macros if linux/io.h gets included later, hence replace it with direct include of linux/io.h Signed-off-by: Igor Prusov --- drivers/spi/cadence_qspi.c | 2 +- drivers/usb/cdns3/cdns3-ti.

[PATCH 13/13] musb-new: Remove implementation of io.h functions

2023-11-14 Thread Igor Prusov
Since {read,write}s{l, w, b}() functions are now supported in linux/io.h there is no need to add custom implementation to driver. Signed-off-by: Igor Prusov --- drivers/usb/musb-new/musb_io.h | 24 1 file changed, 24 deletions(-) diff --git a/drivers/usb/musb-new/musb_

Re: [PATCH] led: Do not overwrite label

2023-11-14 Thread Christian Gmeiner
ping Am Mo., 23. Okt. 2023 um 10:26 Uhr schrieb Marek Vasut : > > On 10/23/23 10:21, Christian Gmeiner wrote: > > label might have been set by a non device-tree based U-Boot driver already. > > > > In my concrete case there is a PCI driver that uses device_bind_driver(..) > > for different class t

Re: [PATCH 2/6] led-uclass: honour ->label field populated by driver's own .bind

2023-11-14 Thread Christian Gmeiner
ping Am Mo., 23. Okt. 2023 um 12:45 Uhr schrieb Marek Vasut : > > On 10/23/23 10:51, Rasmus Villemoes wrote: > > On 19/10/2023 15.54, Marek Vasut wrote: > >> On 10/19/23 11:58, Rasmus Villemoes wrote: > >>> If the driver's own .bind method has populated uc_plat->label, don't > >>> override that. T

Re: [PATCH v1 5/5] fastboot: add oem console command support

2023-11-14 Thread Mattijs Korpershoek
Hi Svyatoslav, On mar., nov. 14, 2023 at 12:30, Svyatoslav Ryhel wrote: > 14 листопада 2023 р. 12:24:52 GMT+02:00, Mattijs Korpershoek > написав(-ла): >>Hi Svyatoslav, >> >>Thank you for your patch. >> >>On mar., nov. 07, 2023 at 14:42, Svyatoslav Ryhel wrote: >> >>> From: Ion Agorria >>> >>

[PATCH 00/13] Import "string" I/O functions from Linux

2023-11-14 Thread Igor Prusov
This series imports generic versions of ioread_rep/iowrite_rep and reads/writes from Linux. Some cleanup is done to make sure that all platforms have proper defines for implemented functions and there are no redefinitions. Igor Prusov (13): sandbox: move asm-generic include to the end of file

[PATCH] spl: fix TPL_SYS_MALLOC_F description

2023-11-14 Thread John Keeping
This config option enables the malloc() pool in TPL not the SPL. Fix the description to accurately reflect this. Fixes: fd8497dae54 (spl: Create proper symbols for enabling the malloc() pool) Signed-off-by: John Keeping --- Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

Re: [PATCH v12 9/9] doc: uefi: add HTTP Boot support

2023-11-14 Thread Masahisa Kojima
Hi Fabio, On Tue, 14 Nov 2023 at 18:05, Fabio Estevam wrote: > > Hi Masahisa, > > On Fri, Nov 10, 2023 at 1:29 AM Masahisa Kojima > wrote: > > > +Set up the load option specifying the target URI:: > > + > > +efidebug boot add -u 1 netinst http://foo/bar > > + > > +When this load option is se

[PATCH 0/2] serial: msm-geni: rework oversampling and fix clk API bug

2023-11-14 Thread Caleb Connolly
These patches improve GENI UART support during init by implementing the parent property read directly rather than via a misc device, and fixing the error path when the clock can't be found. In my testing, the first few lines of UART output on platforms with non-default oversampling values is often

[PATCH 1/2] serial: msm-geni: don't rely on parent misc device

2023-11-14 Thread Caleb Connolly
commit 1b15483deb3f ("misc: add Qualcomm GENI SE QUP device driver") introduced support for platform-specific oversampling values, necessary to configure the UART clocks on all platforms at runtime. However it relies in probing a parent device. Despite the DM_FLAG_PRE_RELOC flag, this is not done c

[PATCH 2/2] serial: msm-geni: handle devm_clk_get() errors

2023-11-14 Thread Caleb Connolly
devm_clk_get() returns an ERR_PTR on failure, not null. Fix the check to avoid the board crashing when the clock isn't available. Additionally, add the missing error handling for this function. Fixes: 324df15a292e ("serial: qcom: add support for GENI serial driver") Signed-off-by: Caleb Connolly

[PATCH v3 0/4] arm: mach-snapdragon: Qualcomm pinctrl driver cleanup

2023-11-14 Thread Caleb Connolly
This series moves the Qualcomm pinctrl drivers from mach-snapdragon and mach-ipq40xx to drivers/pinctrl/qcom. It then makes the necessary changes to enable compatibility with Linux DTs. The pinctrl hardware on most Qualcomm platforms is made up of "tiles", these are just banks of pins at different

[PATCH v3 1/4] pinctrl: qcom: move out of mach-snapdragon

2023-11-14 Thread Caleb Connolly
Move the Qualcomm pinctrl drivers out of mach-snapdragon and over to the rest of the pinctrl drivers, adjust the drivers so that support for each platform can be enabled/disabled individually and introduce platform specific configuration options. Reviewed-by: Sumit Garg Signed-off-by: Caleb Conno

[PATCH v3 2/4] pinctrl: qcom: move ipq4019 driver from mach-ipq40xx

2023-11-14 Thread Caleb Connolly
Drop the duplicated pinctrl-snapdragon driver from mach-ipq40xx and add it to drivers/pinctrl/qcom. Acked-by: Sumit Garg Signed-off-by: Caleb Connolly --- arch/arm/Kconfig | 1 + arch/arm/mach-ipq40xx/Makefile | 8 - arch/arm/mach-ipq40x

[PATCH v3 3/4] pinctrl: qcom: make compatible with linux DTs

2023-11-14 Thread Caleb Connolly
The pinctrl and GPIO drivers are currently heavily incompatible with upstream. Most Qualcomm pinctrl blocks feature "tiles" of pins, each at it's own address. Introduce support for these by allowing the soc driver to specify per-pin register offsets similarly to the Linux driver. Adjust the GPIO d

[PATCH v3 4/4] msm_gpio: use unsigned int

2023-11-14 Thread Caleb Connolly
Replaces the uses of "unsigned" with "unsigned int". Reviewed-by: Sumit Garg Signed-off-by: Caleb Connolly --- drivers/gpio/msm_gpio.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/msm_gpio.c b/drivers/gpio/msm_gpio.c index d9355ed4430c..80cd28bb231f 1

Re: [PATCH v3] clk: nuvoton: add read only feature for clk driver

2023-11-14 Thread Sean Anderson
On 11/14/23 04:00, Jim Liu wrote: Add a flag to set ahb/apb/fiu/spi clock divider as read-only The spi clock setting is related to booting flash, it is setup by early bootloader. It just protects the clock source and can't modify it in uboot. Signed-off-by: Jim Liu --- Changes for v3: -

Re: [PATCH 2/3] sunxi: H616: remove default AXP305 selection

2023-11-14 Thread Jaehoon Chung
On 11/14/23 10:31, Andre Przywara wrote: > The original H616 devices released about three years ago were typically > paired with an X-Powers AXP305 PMIC. Newer devices uses the smaller > AXP313, and there seem to be far more systems with this PMIC around now. > > Remove the default AXP305 selec

Re: U-Booters at LPC

2023-11-14 Thread Sean Anderson
Hi Simon, On 11/13/23 15:26, Simon Glass wrote: Hi Sean, On Mon, 13 Nov 2023 at 11:15, Sean Anderson wrote: Hi All, I'm at LPC this week, and I'd love to chat with anyone else who's there in person. That would be good, but sadly I am not :-( Ah, well, there's always more conferences. Ma

Re: [PATCH 1/2] dt-bindings: misc: Move esm-k3.txt to ti,j721e-esm.yaml

2023-11-14 Thread Tom Rini
On Mon, Nov 13, 2023 at 01:52:16PM -0600, Nishanth Menon wrote: > On 10:00-20231113, Neha Malcom Francis wrote: > > Move esm-k3.txt to ti,j721e-esm.yaml in line with the devicetree > > documentation in kernel. > > > > Signed-off-by: Neha Malcom Francis > > --- > > doc/device-tree-bindings/misc/e

[PATCH v3 0/5] Qualcomm PMIC fixes

2023-11-14 Thread Caleb Connolly
This series addresses some long-standing issues with the SPMI arb driver, the PMIC, and the PMIC GPIO. It fixes compatibility with upstream Linux devicetrees, and simplifies pwrkey/resin support by rewriting the pon driver to be a button driver rather than a GPIO driver. Existing users are adjuste

[PATCH v3 1/5] gpio: qcom_pmic: fix silent dev_read_addr downcast

2023-11-14 Thread Caleb Connolly
priv->pid is uint32_t, but dev_read_addr() returns a uint64_t on arm64, with the upper bits being used for error codes. Do error checking before downcasting to u32 to prevent errors being silently ignored. Signed-off-by: Caleb Connolly --- drivers/gpio/qcom_pmic_gpio.c | 14 ++ 1 fil

[PATCH v3 2/5] gpio: qcom_pmic: rework pwrkey driver into a button driver

2023-11-14 Thread Caleb Connolly
The power and resin keys were implemented as GPIOs here, but their only use would be as buttons. Avoid the additional layer of introspection and rework this driver into a button driver. While we're here, replace the "qcom,pm8998-pwrkey" compatible with "qcom,pm8941-pwrkey" to match upstream (Linux

[PATCH v3 3/5] gpio: qcom_pmic: fix support for upstream DT

2023-11-14 Thread Caleb Connolly
Linux devicetrees use the "gpio-ranges" property, add support for parsing it instead of "gpio-count" so that upstream DTs can be used with U-Boot. Signed-off-by: Caleb Connolly --- arch/arm/dts/dragonboard410c.dts | 3 +-- arch/arm/dts/dragonboard820c.dts | 3 +-- arch/arm/dts/qcs404-evb.dts

[PATCH v3 4/5] spmi: msm: fix register range names

2023-11-14 Thread Caleb Connolly
The core and chnl register ranges were swapped on SDM845. Fix it, and fetch the register ranges by name instead of by index. Drop the cosmetic "version" variable and clean up the debug logging. Signed-off-by: Caleb Connolly --- arch/arm/dts/sdm845.dtsi | 2 +- drivers/spmi/spmi-msm.c | 46 +++

[PATCH v3 5/5] pmic: qcom: dont use dev_read_addr to get USID

2023-11-14 Thread Caleb Connolly
Linux DTs stuff a value indicating if the USID is a USID or a GSID in the reg property, the Linux SPMI driver then reads the two address cells separately. U-boot's dev_read_addr() doesn't know how to handle this, so use ofnode_read_u32_index() to get just the USID. The Qcom pmic driver doesn't hav

Re: [PATCH 1/4] rockchip: rk3588: Fix boot from SPI flash

2023-11-14 Thread Quentin Schulz
Hi Jonas, On 11/12/23 11:26, Jonas Karlman wrote: The commit fd6e425be243 ("rockchip: rk3588-rock-5b: Enable boot from SPI NOR flash") added a new BROM_BOOTSOURCE_SPINOR_RK3588 with value 6. At the time the reason for this new bootsource id value 6 was unknown. We now know that the BootRom on

Re: [PATCH 3/4] arm: dts: k3-am625-beagleplay-u-boot: drop duplicate bootph-nodes

2023-11-14 Thread Nishanth Menon
On 09:03-20231114, Dhruva Gole wrote: [...] > > #ifdef CONFIG_TARGET_AM625_A53_EVM > > > > #define SPL_AM625_BEAGLEPLAY_DTB "spl/dts/k3-am625-beagleplay.dtb" > > You didn't talk about this in the commit message? There is nothing changing in this pat

Re: [PATCH 1/2] serial: msm-geni: don't rely on parent misc device

2023-11-14 Thread Caleb Connolly
> diff --git a/drivers/serial/serial_msm_geni.c > b/drivers/serial/serial_msm_geni.c > index 78fd9389c036..3e2e15b6cefe 100644 > --- a/drivers/serial/serial_msm_geni.c > +++ b/drivers/serial/serial_msm_geni.c [...] > @@ -499,16 +499,22 @@ static void geni_set_oversampling(struct udevice *dev) >

[PATCH] doc: avoid using deprecated sphinx function

2023-11-14 Thread Caleb Connolly
The execfile_() function in sphinx has been removed after being deprecated for some time. Follow what sphinx upstream does in [1] to avoid using this function. This fixes "make htmldocs" on at least Arch Linux but likely other distros too. [1]: https://github.com/sphinx-doc/sphinx/commit/9ced1e35

Re: [PATCH] doc: avoid using deprecated sphinx function

2023-11-14 Thread Tom Rini
On Tue, Nov 14, 2023 at 03:18:02PM +, Caleb Connolly wrote: > The execfile_() function in sphinx has been removed after being > deprecated for some time. Follow what sphinx upstream does in [1] to > avoid using this function. This fixes "make htmldocs" on at least Arch > Linux but likely other

Re: [PATCH] doc: avoid using deprecated sphinx function

2023-11-14 Thread Heinrich Schuchardt
On 11/14/23 16:46, Tom Rini wrote: On Tue, Nov 14, 2023 at 03:18:02PM +, Caleb Connolly wrote: The execfile_() function in sphinx has been removed after being deprecated for some time. Follow what sphinx upstream does in [1] to avoid using this function. This fixes "make htmldocs" on at lea

[PATCH 2/3] arm: mach-k3: Remove incorrect checks for SPL build

2023-11-14 Thread Andrew Davis
The kconfig option SPL means this build supports SPL but not that this build is SPL, nor that this build is the SPL running on R5. For options that are for R5 SPL use CPU_V7R. Signed-off-by: Andrew Davis --- arch/arm/mach-k3/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) di

[PATCH 1/3] arm: mach-k3: Move R5 specific code into new r5/ directory

2023-11-14 Thread Andrew Davis
This makes it clear these are only to be used by the R5 builds of SPL. And this will be used to later more cleanly split the two builds. Signed-off-by: Andrew Davis --- arch/arm/mach-k3/Makefile | 6 +- arch/arm/mach-k3/r5/Makefile | 13 +

[PATCH 3/3] arm: mach-k3: Move sysfw-loader into R5 directory

2023-11-14 Thread Andrew Davis
SYSFW is only ever loaded by the R5 core, move the code into that directory. While here also move the related Kconfig symbols. Signed-off-by: Andrew Davis --- arch/arm/mach-k3/Kconfig | 51 ++-- arch/arm/mach-k3/Makefile| 1 - arch/arm/mach-k3

Re: [PATCH] doc: avoid using deprecated sphinx function

2023-11-14 Thread Caleb Connolly
On 14/11/2023 15:58, Heinrich Schuchardt wrote: > On 11/14/23 16:46, Tom Rini wrote: >> On Tue, Nov 14, 2023 at 03:18:02PM +, Caleb Connolly wrote: >> >>> The execfile_() function in sphinx has been removed after being >>> deprecated for some time. Follow what sphinx upstream does in [1] to

[PATCH 1/1] docs: Fix the docs build with Sphinx 6.0

2023-11-14 Thread Heinrich Schuchardt
From: Jonathan Corbet Sphinx 6.0 removed the execfile_() function, which we use as part of the configuration process. They *did* warn us... Just open-code the functionality as is done in Sphinx itself. Tested (using SPHINX_CONF, since this code is only executed with an alternative config file)

Re: [PATCH v4 09/12] x86: Enable SSE in 64-bit mode

2023-11-14 Thread Tom Rini
On Tue, Nov 14, 2023 at 09:49:08AM +0800, Bin Meng wrote: > Hi Tom, > > On Tue, Nov 14, 2023 at 7:52 AM Tom Rini wrote: > > > > On Tue, Nov 14, 2023 at 07:46:36AM +0800, Bin Meng wrote: > > > Hi Tom, > > > > > > On Tue, Nov 14, 2023 at 6:59 AM Tom Rini wrote: > > > > > > > > On Mon, Nov 13, 2023

Re: [PATCH v2 0/4] fix/add npcm845 serial and board error

2023-11-14 Thread Tom Rini
On Tue, Nov 14, 2023 at 04:51:55PM +0800, Jim Liu wrote: > 1. Fix serial error and add bypass serial setting. > 2. Fix/Add dts node node. > 3. Add full function defconfig > > Jim Liu (4): > arm: dts: npcm845-evb: fix/add node and aliases > configs: arbel: Enable full functions > serial: npc

Re: [PATCH v2 5/5] boot: Don't allow kernel_noload with compression

2023-11-14 Thread Tom Rini
On Sat, Nov 11, 2023 at 08:49:57PM -0700, Simon Glass wrote: > It is not possible to execute the kernel in-place without loading it. > Detect this and show an error, to avoid a crash. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 3/5] bootm: Allow omitting the load address

2023-11-14 Thread Tom Rini
On Sat, Nov 11, 2023 at 08:49:55PM -0700, Simon Glass wrote: > The kernel_noload image type indicates that no loading is to be done by > U-Boot. This works well when the image is uncompressed. > > When the image is compressed, loading is of course required. The load > address in the FIT is used f

[PATCH 1/1] acpi: consider XSDT in acpi_find_table()

2023-11-14 Thread Heinrich Schuchardt
The RSDT table is deprecated and does not exist on all systems. By preference scan XSDT for the table to find. If no XSDT table exists, try to use the RSDT table. Signed-off-by: Heinrich Schuchardt --- lib/acpi/acpi.c | 20 1 file changed, 16 insertions(+), 4 deletions(-)

Re: [PATCH v2 1/5] image: Correct load_bug typo

2023-11-14 Thread Tom Rini
On Sat, Nov 11, 2023 at 08:49:53PM -0700, Simon Glass wrote: > Correct a typo in the function comment for image_decomp(). > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 3/5] bootm: Allow omitting the load address

2023-11-14 Thread Tom Rini
On Tue, Nov 14, 2023 at 11:38:46AM -0500, Tom Rini wrote: > On Sat, Nov 11, 2023 at 08:49:55PM -0700, Simon Glass wrote: > > > The kernel_noload image type indicates that no loading is to be done by > > U-Boot. This works well when the image is uncompressed. > > > > When the image is compressed,

Re: [PATCH v2 1/1] efi_loader: expose the device-tree file name

2023-11-14 Thread Mark Kettenis
> From: Simon Glass > Date: Fri, 3 Nov 2023 13:17:18 -0600 > > Hi, > > On Mon, 23 Oct 2023 at 11:06, Mark Kettenis wrote: > > > > > Date: Mon, 23 Oct 2023 12:34:55 -0400 > > > From: Tom Rini > > > > > > On Mon, Oct 23, 2023 at 05:37:34PM +0200, Mark Kettenis wrote: > > > > > From: Simon Glass

[PATCH] arm: dts: k3-am625-verdin-wifi-dev-u-boot.dtsi: Fix DMA with BCDMA

2023-11-14 Thread Roger Quadros
BCDMA can be used at SPL for OSPI boot and mem-to-mem DMA so add "bootph-all" to BCDMA node. Suggested-by: Nishanth Menon Fixes: 9a3f2b6798b0 ("arm: dts: k3-am625-verdin-wifi-dev-u-boot.dtsi: Fix DMA/Ethernet") Signed-off-by: Roger Quadros --- arch/arm/dts/k3-am625-verdin-wifi-dev-u-boot.dtsi

[PATCH v2] arch: arm: Kconfig: Enable BOOTSTD_FULL for Rockchip SoCs

2023-11-14 Thread Shantur Rathore
Signed-off-by: Shantur Rathore --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index d812685c98..fca6ef6d7e 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1986,6 +1986,7 @@ config ARCH_ROCKCHIP imply CMD_DM imp

Re: [PATCH] common: usb-hub: Reset hub port before scanning

2023-11-14 Thread Shantur Rathore
+Patrice +Patrick from get_maintainer script On Mon, Nov 13, 2023 at 1:28 PM Shantur Rathore wrote: > > +Simon +Trini > > On Fri, Nov 10, 2023 at 2:13 PM Shantur Rathore wrote: > > > > Currently when a hub is turned on, all the ports are powered on. > > This works well for hubs which have indivi

Re: [PATCH] configs: rockpro64: Enable SPI command and full BOOTSTD

2023-11-14 Thread Shantur Rathore
Hi Jonas / Simon, I have submitted a patch based on Jonas's suggestion. Apologies, I am new to email based patch management and it went as new thread (at least for me) It's here - https://lore.kernel.org/u-boot/20231114203309.852289-...@shantur.com/ Kind regards, Shantur On Mon, Nov 13, 2023 a

[PATCH] timer-uclass: Always use "clock-frequency" property as fallback

2023-11-14 Thread Alex Bee
Currently the "clock-frequency" DT property is only being considered as an fallback if either there is no clock driver, the clock driver implements the request-op correctly or there is no clock defined for the timer at all. This patch makes "clock-frequency" also being picked as a fallback if gett

Re: [PATCH v2 2/5] image: Show the load address when decompressing

2023-11-14 Thread Tom Rini
On Sat, Nov 11, 2023 at 08:49:54PM -0700, Simon Glass wrote: > The destination address for decompression (or copying) is useful > information. Show this to the user while booting, e.g.: > >Uncompressing Kernel Image (no loading done) to 208 > > Signed-off-by: Simon Glass Reviewed-by: T

Re: [PATCH v2 1/1] efi_loader: expose the device-tree file name

2023-11-14 Thread Tom Rini
On Tue, Nov 14, 2023 at 08:09:52PM +0100, Mark Kettenis wrote: > > From: Simon Glass > > Date: Fri, 3 Nov 2023 13:17:18 -0600 > > > > Hi, > > > > On Mon, 23 Oct 2023 at 11:06, Mark Kettenis wrote: > > > > > > > Date: Mon, 23 Oct 2023 12:34:55 -0400 > > > > From: Tom Rini > > > > > > > > On Mon

Re: [PATCH 01/13] sandbox: move asm-generic include to the end of file

2023-11-14 Thread Simon Glass
On Tue, 14 Nov 2023 at 04:03, Igor Prusov wrote: > > Generic version of io.h should be included at the end of > architecture-specific ones to make sure that arch implementations are > used and to avoid redefinitions. > > Signed-off-by: Igor Prusov > --- > > arch/sandbox/include/asm/io.h | 28 +++

Re: [PATCH 5/5] test: dm: add scmi command test

2023-11-14 Thread Simon Glass
Hi, On Mon, 13 Nov 2023 at 18:41, AKASHI Takahiro wrote: > > On Mon, Nov 13, 2023 at 11:01:17AM -0700, Simon Glass wrote: > > Hi, > > > > On Sun, 12 Nov 2023 at 18:46, AKASHI Takahiro > > wrote: > > > > > > Hi Tom, > > > > > > On Fri, Nov 10, 2023 at 01:21:37PM -0500, Tom Rini wrote: > > > > On

Re: [PATCH v3 1/5] test: dm: skip scmi tests against disabled protocols

2023-11-14 Thread Simon Glass
On Mon, 13 Nov 2023 at 19:14, AKASHI Takahiro wrote: > > This is a precautionary change to make scmi tests workable whether or not > a specific protocol be enabled. If a given protocol is not configured, > we skip the test by returning -EAGAIN. > > Signed-off-by: AKASHI Takahiro > --- > v9 > * re

Re: [PATCH] spl: fix TPL_SYS_MALLOC_F description

2023-11-14 Thread Simon Glass
On Tue, 14 Nov 2023 at 04:30, John Keeping wrote: > > This config option enables the malloc() pool in TPL not the SPL. Fix > the description to accurately reflect this. > > Fixes: fd8497dae54 (spl: Create proper symbols for enabling the malloc() pool) > Signed-off-by: John Keeping > --- > Kconf

Re: [PATCH v3 2/5] firmware: scmi: support protocols on sandbox only if enabled

2023-11-14 Thread Simon Glass
On Mon, 13 Nov 2023 at 19:14, AKASHI Takahiro wrote: > > This change will be useful when we manually test SCMI on sandbox > by enabling/disabling a specific SCMI protocol. > > Signed-off-by: AKASHI Takahiro > --- > v9 > * use CONFIG_IS_ENABLED() rather than IS_ENABLED() > * remove goto by introdu

Booting an x86-64 BIOS Machine

2023-11-14 Thread Desone Burns
Hello, I have an application in which I need to boot an x86-64 machine with a legacy BIOS. I've read about the U-Boot executable, the SPL, and the TPL. I'm just having a bit of trouble figuring out which pieces are supposed to go where. Looking to Grub, I see there exists a minimal "boot.img" file

Re: [PATCH v4 09/12] x86: Enable SSE in 64-bit mode

2023-11-14 Thread Bin Meng
Hi Tom, On Wed, Nov 15, 2023 at 12:22 AM Tom Rini wrote: > > On Tue, Nov 14, 2023 at 09:49:08AM +0800, Bin Meng wrote: > > Hi Tom, > > > > On Tue, Nov 14, 2023 at 7:52 AM Tom Rini wrote: > > > > > > On Tue, Nov 14, 2023 at 07:46:36AM +0800, Bin Meng wrote: > > > > Hi Tom, > > > > > > > > On Tue,

Re: [PATCH v4 09/12] x86: Enable SSE in 64-bit mode

2023-11-14 Thread Simon Glass
Hi, On Tue, 14 Nov 2023 at 17:44, Bin Meng wrote: > > Hi Tom, > > On Wed, Nov 15, 2023 at 12:22 AM Tom Rini wrote: > > > > On Tue, Nov 14, 2023 at 09:49:08AM +0800, Bin Meng wrote: > > > Hi Tom, > > > > > > On Tue, Nov 14, 2023 at 7:52 AM Tom Rini wrote: > > > > > > > > On Tue, Nov 14, 2023 at

Re: [PATCH v4 09/12] x86: Enable SSE in 64-bit mode

2023-11-14 Thread Tom Rini
On Wed, Nov 15, 2023 at 08:44:22AM +0800, Bin Meng wrote: > Hi Tom, > > On Wed, Nov 15, 2023 at 12:22 AM Tom Rini wrote: > > > > On Tue, Nov 14, 2023 at 09:49:08AM +0800, Bin Meng wrote: > > > Hi Tom, > > > > > > On Tue, Nov 14, 2023 at 7:52 AM Tom Rini wrote: > > > > > > > > On Tue, Nov 14, 202

Re: [PATCH v4 09/12] x86: Enable SSE in 64-bit mode

2023-11-14 Thread Tom Rini
On Sun, Nov 12, 2023 at 01:02:46PM -0700, Simon Glass wrote: > This is needed to support Truetype fonts. In any case, the compiler > expects SSE to be available in 64-bit mode. Provide an option to enable > SSE so that hardware floating-point arithmetic works. > > Signed-off-by: Simon Glass > Su

[PATCH] xen: pvblock: fix the maximum io size in one operation

2023-11-14 Thread AKASHI Takahiro
The current implementation may cause BUG_ON() in blkfront_aio() BUG_ON(n > BLKIF_MAX_SEGMENTS_PER_REQUEST); In pvblock_iop(), a read/write operation will be split into smaller chunks of data so that the size in one access (aio_nbytes) is limited to, at the maximum, BLKIF_MAX_SEGMEN

RE: [PATCH v2] timer: starfive: Add Starfive timer support

2023-11-14 Thread KuanLim . Lee
Hi, May anyone please help to review to this version 2 patch? Best Regards, KL Lee On 11/6/23 13:13, Kuan Lim Lee wrote: > Subject: [PATCH v2] timer: starfive: Add Starfive timer support > > Add timer driver in Starfive SoC. It is an timer that outside of CPU core and > inside Starfive SoC. >

Re: [PATCH] riscv: binman: fix the load field format

2023-11-14 Thread Simon Glass
Hi Randolph, On Mon, 13 Nov 2023 at 23:26, Randolph Lin wrote: > > Hi Simon, > Thanks a lot. > On Fri, Nov 10, 2023 at 04:50:24AM -0700, Simon Glass wrote: > > Hi Randolph, > > > > On Wed, Nov 8, 2023, 20:15 Randolph wrote: > > > > > > The #address-cells is now equal to 2. The format of the load

Re: Booting an x86-64 BIOS Machine

2023-11-14 Thread Simon Glass
Hi Desone, On Tue, 14 Nov 2023 at 17:43, Desone Burns wrote: > > Hello, > > I have an application in which I need to boot an x86-64 machine with a > legacy BIOS. I've read about the U-Boot executable, the SPL, and the > TPL. I'm just having a bit of trouble figuring out which pieces are > suppose

  1   2   >