Re: [PATCH] dm: button: support remapping phone keys

2024-07-15 Thread Dragan Simic
Hello Caleb, On 2024-07-15 08:24, Caleb Connolly wrote: On 14/07/2024 22:47, Dragan Simic wrote: On 2024-07-14 21:49, Caleb Connolly wrote: We don't have audio support in U-Boot, but we do have boot menus. Add an option to re-map the volume and power buttons to up/down/enter so that in situa

Re: [PATCH v5 2/2] led: Add dts property to specify blinking of the led

2024-07-15 Thread Simon Glass
Hi Mikhail, On Sat, 13 Jul 2024 at 17:32, Mikhail Kshevetskiy wrote: > > > On 13.07.2024 18:13, Simon Glass wrote: > > Hi Mikhail, > > > > On Fri, 12 Jul 2024 at 06:25, Mikhail Kshevetskiy > > wrote: > >> From: Michael Polyntsov > >> > >> The standard property > >> > >> linux,default-trigge

Re: [PATCH v3 08/19] test: Introduce the concept of a role

2024-07-15 Thread Simon Glass
Hi Tom, On Sat, 13 Jul 2024 at 17:57, Tom Rini wrote: > > On Sat, Jul 13, 2024 at 04:13:55PM +0100, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 3 Jul 2024 at 00:12, Tom Rini wrote: > > > > > > On Thu, Jun 27, 2024 at 09:37:18AM +0100, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Wed,

Re: [PATCH 1/1] doc: move out-of-tree building info to HTML

2024-07-15 Thread Simon Glass
On Sun, 14 Jul 2024 at 08:18, Heinrich Schuchardt wrote: > > Move the information about out-of-tree building > from README to the generated HTML documentation. > > Signed-off-by: Heinrich Schuchardt > --- > README| 20 > doc/build/gcc.rst | 28 +++

Re: [PATCH] dm: button: support remapping phone keys

2024-07-15 Thread Caleb Connolly
On 15/07/2024 09:03, Dragan Simic wrote: Hello Caleb, On 2024-07-15 08:24, Caleb Connolly wrote: On 14/07/2024 22:47, Dragan Simic wrote: On 2024-07-14 21:49, Caleb Connolly wrote: We don't have audio support in U-Boot, but we do have boot menus. Add an option to re-map the volume and pow

Re: [PATCH 1/3] arm64: dts: rockchip: add PCIe3 support on rk3588-jaguar

2024-07-15 Thread Kever Yang
On 2024/7/4 20:53, Quentin Schulz wrote: From: Heiko Stuebner The Jaguar SBC provides an M.2 slot connected to the pcie3 controller. In contrast to a number of other boards the pcie-refclk is gpio-controlled, so the necessary clock and is added to the list of pcie3 clocks. Signed-off-by: Hei

Re: [PATCH 2/3] rockchip: jaguar-rk3588: add PCIe M.2 M-KEY NVMe support

2024-07-15 Thread Kever Yang
On 2024/7/4 20:53, Quentin Schulz wrote: From: Quentin Schulz Jaguar has an M.2 M-KEY slot for NVMes, connected to the PCIe3 4-lane PHY on RK3588. CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y is technically not necessary since it's required only for the M.2 E-KEY slot on the main PCB, but that is u

Re: [PATCH 3/3] rockchip: tiger-rk3588: add PCIe support

2024-07-15 Thread Kever Yang
On 2024/7/4 20:53, Quentin Schulz wrote: From: Quentin Schulz This enables PCIe support on Tiger as exposed on Q7_PCIE[0123]_[RT]X_[PN] signals and more specifically on the `PCI Express` connector on the Haikou devkit. This was tested with a PCIe to NVMe adapter (e.g. https://www.amazon.de/d

Re: [PATCH] dm: button: support remapping phone keys

2024-07-15 Thread Dragan Simic
On 2024-07-15 09:15, Caleb Connolly wrote: On 15/07/2024 09:03, Dragan Simic wrote: On 2024-07-15 08:24, Caleb Connolly wrote: On 14/07/2024 22:47, Dragan Simic wrote: On 2024-07-14 21:49, Caleb Connolly wrote: We don't have audio support in U-Boot, but we do have boot menus. Add an option to

Re: [PATCH] dm: button: support remapping phone keys

2024-07-15 Thread Quentin Schulz
Hi Caleb, On 7/14/24 9:49 PM, Caleb Connolly wrote: We don't have audio support in U-Boot, but we do have boot menus. Add an option to re-map the volume and power buttons to up/down/enter so that in situations where these are the only available buttons (such as on mobile phones) it's still possi

Re: [PATCH] dm: button: support remapping phone keys

2024-07-15 Thread Caleb Connolly
Hi Quentin, On 15/07/2024 10:16, Quentin Schulz wrote: Hi Caleb, On 7/14/24 9:49 PM, Caleb Connolly wrote: We don't have audio support in U-Boot, but we do have boot menus. Add an option to re-map the volume and power buttons to up/down/enter so that in situations where these are the only avai

Re: [PATCH] dm: button: support remapping phone keys

2024-07-15 Thread Caleb Connolly
Hi Quentin, +static int button_remap_phone_keys(int code) +{ +    switch (code) { +    case KEY_VOLUMEUP: +    return KEY_UP; +    case KEY_VOLUMEDOWN: +    return KEY_DOWN; +    case KEY_POWER: +    return KEY_ENTER; +    default: +    return code; +    } +} + ... I suggest

Re: [PATCH] dm: button: support remapping phone keys

2024-07-15 Thread Quentin Schulz
Hi Caleb, On 7/15/24 10:38 AM, Caleb Connolly wrote: Hi Quentin, On 15/07/2024 10:16, Quentin Schulz wrote: Hi Caleb, On 7/14/24 9:49 PM, Caleb Connolly wrote: We don't have audio support in U-Boot, but we do have boot menus. Add an option to re-map the volume and power buttons to up/down/en

Re: [RFC PATCH v2 17/48] lmb: allow lmb module to be used in SPL

2024-07-15 Thread Sughosh Ganu
hi Simon, On Sat, 13 Jul 2024 at 20:45, Simon Glass wrote: > > Hi Sughosh, > > On Thu, 4 Jul 2024 at 08:37, Sughosh Ganu wrote: > > > > With the introduction of separate config symbols for the SPL phase of > > U-Boot, the condition checks need to be tweaked so that platforms that > > enable the

Re: [RFC PATCH v2 12/48] lmb: allow for resizing lmb regions

2024-07-15 Thread Sughosh Ganu
hi Simon, On Sat, 13 Jul 2024 at 20:45, Simon Glass wrote: > > Hi Sughosh, > > On Thu, 4 Jul 2024 at 08:36, Sughosh Ganu wrote: > > > > Allow for resizing of LMB regions if the region attributes match. The > > current code returns a failure status on detecting an overlapping > > address. This wo

Re: [RFC PATCH v2 10/48] lmb: remove local instances of the lmb structure variable

2024-07-15 Thread Sughosh Ganu
hi Simon, On Sat, 13 Jul 2024 at 20:45, Simon Glass wrote: > > Hi Sughosh, > > On Thu, 4 Jul 2024 at 08:36, Sughosh Ganu wrote: > > > > With the move of the LMB structure to a persistent state, there is no > > need to declare the variable locally, and pass it as part of the LMB > > API's. Remove

Re: [RFC PATCH v2 09/48] lmb: remove call to lmb_init()

2024-07-15 Thread Sughosh Ganu
hi Simon, On Sat, 13 Jul 2024 at 20:45, Simon Glass wrote: > > kHi Sughosh, > > On Thu, 4 Jul 2024 at 08:36, Sughosh Ganu wrote: > > > > The LMB module will be changed to have persistent and global memory > > maps of available and used memory. With this change, there won't be > > any need to exp

Re: [PATCH v2 4/6] power: pmic: sunxi: add AXP717 SPL support

2024-07-15 Thread Ryan Walklin
On Mon, 15 Jul 2024, at 11:38 AM, Andre Przywara wrote: > On Sun, 14 Jul 2024 20:20:44 +1200 > "Ryan Walklin" wrote: > > Hi Ryan, > > I consider the fact that the AXP209 and the AXP717 use the same I2C > address a sheer coincidence, so would like to keep the code readable > and maintainable. This

Re: [RFC PATCH v2 41/48] efi_memory: add an event handler to update memory map

2024-07-15 Thread Sughosh Ganu
hi Simon, On Sat, 13 Jul 2024 at 20:46, Simon Glass wrote: > > Hi Sughosh, > > On Thu, 4 Jul 2024 at 08:38, Sughosh Ganu wrote: > > > > There are events that would be used to notify other interested modules > > of any changes in available and occupied memory. This would happen > > when a module

Re: [RFC PATCH v2 46/48] lmb: mark the EFI runtime memory regions as reserved

2024-07-15 Thread Sughosh Ganu
hi Simon, On Sat, 13 Jul 2024 at 20:46, Simon Glass wrote: > > Hi Sughosh, > > On Thu, 4 Jul 2024 at 08:38, Sughosh Ganu wrote: > > > > Mark the EFI runtime memory region as reserved memory during board > > init so that it does not get allocated by the LMB module on subsequent > > memory request

Re: [RFC PATCH v2 13/48] lmb: make LMB memory map persistent and global

2024-07-15 Thread Sughosh Ganu
hi Simon, On Sat, 13 Jul 2024 at 20:46, Simon Glass wrote: > > Hi Sughosh, > > On Thu, 4 Jul 2024 at 08:36, Sughosh Ganu wrote: > > > > The current LMB API's for allocating and reserving memory use a > > per-caller based memory view. Memory allocated by a caller can then be > > overwritten by an

[PATCH v6 00/24] qcom: rpmh core and regulator support

2024-07-15 Thread Caleb Connolly
This series introduces support for the RPMh (Resource Power Manager (hardened)) co-processor and associated regulator driver found on most modern Qualcomm platforms (since ~2017). Even though most regulators are controlled via SPMI, the specific regions on the PMICs for controlling the regulators

[PATCH v6 01/24] dm: core: scan reserved-memory nodes

2024-07-15 Thread Caleb Connolly
Qualcomm platforms may have drivers that bind to reserved memory nodes (cmd-db [1] and smem [2]) which are relevant to U-Boot. Include /reserved-memory in dm_extended_scan() so that these will be handled correctly. [1]: https://www.kernel.org/doc/Documentation/devicetree/bindings/reserved-memory/

[PATCH v6 02/24] linux/bitmap.h: add bitmap_empty helper

2024-07-15 Thread Caleb Connolly
Import this function from Linux as of 6.10-rc6 Reviewed-by: Tom Rini Acked-by: Sumit Garg Signed-off-by: Caleb Connolly --- include/linux/bitmap.h | 8 1 file changed, 8 insertions(+) diff --git a/include/linux/bitmap.h b/include/linux/bitmap.h index 0a8503af9f14..40ca2212cb40 100644

[PATCH v6 04/24] soc: qcom: cmd-db: adjust headers for U-Boot

2024-07-15 Thread Caleb Connolly
Replace unused/unsupported Linux headers with appropriate U-Boot alternatives. Acked-by: Sumit Garg Signed-off-by: Caleb Connolly --- drivers/soc/qcom/cmd-db.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/drivers/soc/qcom/cmd-db.c b/drivers/soc/qcom/cmd-db

[PATCH v6 03/24] soc: qcom: import rpmh and cmd-db drivers from Linux

2024-07-15 Thread Caleb Connolly
Import RPMh and cmd-db framework from Linux 6.10-rc6. Acked-by: Sumit Garg Signed-off-by: Caleb Connolly --- drivers/soc/qcom/cmd-db.c| 393 + drivers/soc/qcom/rpmh-internal.h | 148 + drivers/soc/qcom/rpmh-rsc.c | 1162 ++ driv

[PATCH v6 05/24] soc: qcom: cmd-db: drop unused functions

2024-07-15 Thread Caleb Connolly
Due to our simpler rpmh-rsc driver and lack of debugfs, we don't need quite a few cmd-db functions, just drop them. Acked-by: Sumit Garg Signed-off-by: Caleb Connolly --- drivers/soc/qcom/cmd-db.c | 144 -- include/soc/qcom/cmd-db.h | 15 - 2 fil

[PATCH v6 06/24] soc: qcom: cmd-db: adjust probe for U-Boot

2024-07-15 Thread Caleb Connolly
Integrate cmd-db into the U-Boot driver model. This is just a wrapper around an in-memory database, so we just need to get the address and validate that cmd-db is there. Since cmd_db_header will be stored in the .data section we can skip bind if it's already set. Signed-off-by: Caleb Connolly -

[PATCH v6 07/24] soc: qcom: cmd-db: adjust for U-Boot API

2024-07-15 Thread Caleb Connolly
Keep the header pointer in the .data section so we don't initialize it again after relocation, adjust cmd_db_get_header() to work with the U-Boot API, and skip validating the header since all cmd-db users are children of the rpmh-rsc and those children will only probe if cmd-db initializes successf

[PATCH v6 08/24] soc: qcom: rpmh-rsc: drop unused multi-threading and non-active TCS support

2024-07-15 Thread Caleb Connolly
Since U-Boot is single threaded, we can avoid most of the complexity that comes with handling more than one in-flight TCS. Drop all the rpmh code associated with multi-threading as we'll instead wait for a response on each TCS. Acked-by: Sumit Garg Signed-off-by: Caleb Connolly --- drivers/soc/

[PATCH v6 09/24] soc: qcom: rpmh-rsc: adjust headers for U-Boot

2024-07-15 Thread Caleb Connolly
Remove unsupported / unused Linux headers and add those needed for U-Boot. Acked-by: Sumit Garg Signed-off-by: Caleb Connolly --- drivers/soc/qcom/rpmh-rsc.c | 36 1 file changed, 12 insertions(+), 24 deletions(-) diff --git a/drivers/soc/qcom/rpmh-rsc.c b/

[PATCH v6 10/24] soc: qcom: rpmh-rsc: adjust probe for U-Boot

2024-07-15 Thread Caleb Connolly
Rework the rpmh-rsc initialization to use U-Boot's driver model and initialize cmd-db. Acked-by: Sumit Garg Signed-off-by: Caleb Connolly --- drivers/soc/qcom/rpmh-internal.h | 14 ++--- drivers/soc/qcom/rpmh-rsc.c | 123 ++- 2 files changed, 34 inserti

[PATCH v6 11/24] soc: qcom: rpmh-rsc: remaining U-Boot API changes

2024-07-15 Thread Caleb Connolly
Minor adjustments to fix building with U-Boot and work correctly as a synchronous driver without interrupts. RPMh is fast enough that we can get away with just firing off requests and assuming they complete. U-Boot behaviour changes are annotated with a "U-Boot:" comment. Acked-by: Sumit Garg Si

[PATCH v6 12/24] soc: qcom: rpmh: adjust headers for U-Boot

2024-07-15 Thread Caleb Connolly
Drop unused/unsupported Linux headers and add dm/device.h for U-Boot. Acked-by: Sumit Garg Signed-off-by: Caleb Connolly --- drivers/soc/qcom/rpmh.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/soc/qcom/rpmh.c b/drivers/soc/qcom/rpmh.c index 8903ed95

[PATCH v6 13/24] soc: qcom: rpmh: drop unused functions

2024-07-15 Thread Caleb Connolly
A lot of the features in here are only relevant when running multi-threaded with interrupts. Drop everything except what we need to run single-threaded with a single TCS (which is all the rpmh-rsc framework in U-Boot supports). Keep rpmh_write_async() for simplicity and make it wrap the regular rp

[PATCH v6 14/24] soc: qcom: rpmh: U-Boot API changes

2024-07-15 Thread Caleb Connolly
Fix build errors, add some debug logging. Acked-by: Sumit Garg Signed-off-by: Caleb Connolly --- drivers/soc/qcom/rpmh.c | 53 +++-- include/soc/qcom/rpmh.h | 4 ++-- 2 files changed, 22 insertions(+), 35 deletions(-) diff --git a/drivers/soc/qcom/r

[PATCH v6 15/24] soc: qcom: add build infrastructure

2024-07-15 Thread Caleb Connolly
Add Kconfig / Makefiles to build rpmh and cmd-db drivers. Signed-off-by: Caleb Connolly --- drivers/soc/Kconfig | 1 + drivers/soc/Makefile | 1 + drivers/soc/qcom/Kconfig | 27 +++ drivers/soc/qcom/Makefile | 4 4 files changed, 33 insertions(+) diff

[PATCH v6 17/24] power: regulator: qcom-rpmh-regulator: adjust headers for U-Boot

2024-07-15 Thread Caleb Connolly
Remove unused/unsupported Linux headers and add necessary U-Boot ones. Acked-by: Sumit Garg Signed-off-by: Caleb Connolly --- drivers/power/regulator/qcom-rpmh-regulator.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/power/regulator/qcom-rpmh-regul

[PATCH v6 18/24] power: regulator: qcom-rpmh-regulator: port over lineage_range helpers

2024-07-15 Thread Caleb Connolly
Import struct linear_range() and builder macro from Linux regulator core. Acked-by: Sumit Garg Signed-off-by: Caleb Connolly --- drivers/power/regulator/qcom-rpmh-regulator.c | 37 +++ 1 file changed, 37 insertions(+) diff --git a/drivers/power/regulator/qcom-rpmh-regul

[PATCH v6 19/24] power: regulator: qcom-rpmh-regulator: adjust structs for U-Boot

2024-07-15 Thread Caleb Connolly
Switch to our linear_range helpers and remove unused/unsupported linux-isms. Acked-by: Sumit Garg Signed-off-by: Caleb Connolly --- drivers/power/regulator/qcom-rpmh-regulator.c | 28 +-- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/drivers/power/regul

[PATCH v6 16/24] power: regulator: import qcom-rpmh-regulator from Linux

2024-07-15 Thread Caleb Connolly
Import the driver from Linux 6.10-rc6. Acked-by: Sumit Garg Signed-off-by: Caleb Connolly --- drivers/power/regulator/qcom-rpmh-regulator.c | 1709 + 1 file changed, 1709 insertions(+) diff --git a/drivers/power/regulator/qcom-rpmh-regulator.c b/drivers/power/regulator

[PATCH v6 21/24] power: regulator: qcom-rpmh-regulator: port ops to U-Boot

2024-07-15 Thread Caleb Connolly
Port over the regulator ops to U-Boot's regulator API. Add back the pmic5 mode map using U-Boot dm_regulator_mode API and adjust the pmic5_pldo and pmic5_pldo_lv definitions. No functional changes. Acked-by: Sumit Garg Signed-off-by: Caleb Connolly --- drivers/power/regulator/qcom-rpmh-regulato

[PATCH v6 20/24] power: regulator: qcom-rpmh-regulator: remove unused regulators

2024-07-15 Thread Caleb Connolly
Initially just include the few regulators needed for the RB5 board. Others can be added back as-needed. Acked-by: Sumit Garg Signed-off-by: Caleb Connolly --- drivers/power/regulator/qcom-rpmh-regulator.c | 1281 - 1 file changed, 1281 deletions(-) diff --git a/drivers/

[PATCH v6 22/24] power: regulator: qcom-rpmh-regulator: adjust probe for U-Boot

2024-07-15 Thread Caleb Connolly
Refactor initialization to use U-Boot's driver model and API. Acked-by: Sumit Garg Signed-off-by: Caleb Connolly --- drivers/power/regulator/qcom-rpmh-regulator.c | 136 +++--- 1 file changed, 102 insertions(+), 34 deletions(-) diff --git a/drivers/power/regulator/qcom-rpmh

[PATCH v6 23/24] power: regulator: qcom-rpmh-regulator: add build infra

2024-07-15 Thread Caleb Connolly
Add Kconfig and Makefile entries for this driver now that it can build for U-Boot. Signed-off-by: Caleb Connolly --- drivers/power/regulator/Kconfig | 8 drivers/power/regulator/Makefile | 1 + 2 files changed, 9 insertions(+) diff --git a/drivers/power/regulator/Kconfig b/drivers/pow

[PATCH v6 24/24] qcom_defconfig: enable rpmh regulators

2024-07-15 Thread Caleb Connolly
Enable RPMh, cmd-db, and RPMh regulators. Additionally enable CMD_REGULATOR for debugging. Acked-by: Sumit Garg Signed-off-by: Caleb Connolly --- configs/qcom_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/qcom_defconfig b/configs/qcom_defconfig index ac5ffe772ade..1

[PATCH 01/13] MAINTAINERS: Rename BOOTDEVICE

2024-07-15 Thread Simon Glass
Rename this to BOOTSTD which is the normal name for the feature. Signed-off-by: Simon Glass --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 2c6de3a1d84..9bee9284cca 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -918,7 +918,7 @@

[PATCH 02/13] doc: Move bootstd into its own directory

2024-07-15 Thread Simon Glass
Before adding more files, move the bootstd docs into a new directory, with an index. Signed-off-by: Simon Glass --- MAINTAINERS | 2 +- doc/board/starfive/milk-v_mars_cm.rst | 2 +- doc/develop/board_best_practices.rst | 2 +- do

[PATCH 00/13] doc: Add documentation for bootmeths

2024-07-15 Thread Simon Glass
This series adds some documentation about most of the bootmeths and tidies up a few minor areas. It also fixes a bug in network-based booting of a script. Simon Glass (13): MAINTAINERS: Rename BOOTDEVICE doc: Move bootstd into its own directory doc: Add a description for bootmeth_extlinux

[PATCH 03/13] doc: Add a description for bootmeth_extlinux

2024-07-15 Thread Simon Glass
Add documentation for the extlinux bootmeth. Signed-off-by: Simon Glass --- doc/develop/bootstd/extlinux.rst | 27 +++ doc/develop/bootstd/index.rst| 1 + doc/develop/bootstd/overview.rst | 2 +- 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644

[PATCH 04/13] doc: Add a description for bootmeth_pxe

2024-07-15 Thread Simon Glass
Add documentation for the pxe bootmeth. Signed-off-by: Simon Glass --- doc/develop/bootstd/index.rst| 1 + doc/develop/bootstd/overview.rst | 2 +- doc/develop/bootstd/pxelinux.rst | 27 +++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 doc/d

[PATCH 05/13] doc: Add a description for bootmeth_qfw

2024-07-15 Thread Simon Glass
Add documentation for the qfw bootmeth. Fix up the compatible string to drop the 'extlinux' part, which is not relevant to this bootmeth. Signed-off-by: Simon Glass --- boot/bootmeth_qfw.c | 2 +- doc/develop/bootstd/index.rst| 1 + doc/develop/bootstd/overview.rst | 1 + d

[PATCH 06/13] doc: Add a description for bootmeth_cros

2024-07-15 Thread Simon Glass
Add documentation for the cros bootmeth. Signed-off-by: Simon Glass --- doc/develop/bootstd/cros.rst | 33 doc/develop/bootstd/index.rst| 1 + doc/develop/bootstd/overview.rst | 1 + 3 files changed, 35 insertions(+) create mode 100644 doc/develop/boo

[PATCH 07/13] doc: Add a description for bootmeth_sandbox

2024-07-15 Thread Simon Glass
Add documentation for the sandbox bootmeth. Fix up the compatible string to drop the 'extlinux' part, which is not relevant to this bootmeth. Signed-off-by: Simon Glass --- boot/bootmeth_sandbox.c | 2 +- doc/develop/bootstd/index.rst| 1 + doc/develop/bootstd/overview.rst | 1

[PATCH 08/13] bootstd: Tidy up comments on the boothmeth drivers

2024-07-15 Thread Simon Glass
Fix a typo in the comment and add one to the EFI driver too. Signed-off-by: Simon Glass --- boot/bootmeth_efi.c | 1 + boot/bootmeth_extlinux.c | 2 +- boot/bootmeth_script.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/boot/bootmeth_efi.c b/boot/bootmeth_efi.c

[PATCH 09/13] bootstd: Correct handling of script from network

2024-07-15 Thread Simon Glass
When reading a script from a network, no block device is available. Update the implementation to support this correctly, avoiding setting environment variables which relate only to block devices. Signed-off-by: Simon Glass --- boot/bootmeth_script.c | 51 +---

[PATCH 10/13] doc: Add a description for bootmeth_script

2024-07-15 Thread Simon Glass
Add documentation for the script bootmeth. Signed-off-by: Simon Glass --- doc/develop/bootstd/index.rst| 1 + doc/develop/bootstd/overview.rst | 2 +- doc/develop/bootstd/script.rst | 49 3 files changed, 51 insertions(+), 1 deletion(-) create mode 1006

[PATCH 11/13] doc: Add a link to VBE from the bootstd docs

2024-07-15 Thread Simon Glass
Link to this page to make it easier to find the VBE docs. Signed-off-by: Simon Glass --- doc/develop/bootstd/overview.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/develop/bootstd/overview.rst b/doc/develop/bootstd/overview.rst index 7d31d5e6427..0d7454246f6 100644

[PATCH 12/13] boot: Correct indentation in efi bootmeth

2024-07-15 Thread Simon Glass
Fix a minor indentation / whitespace problem in a comment. Signed-off-by: Simon Glass --- boot/bootmeth_efi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/bootmeth_efi.c b/boot/bootmeth_efi.c index 56a6e47f5b2..39232eb2e25 100644 --- a/boot/bootmeth_efi.c +++ b/boot/

[PATCH 13/13] doc: Describe the bootstd settings

2024-07-15 Thread Simon Glass
The bootstd node provides some configuration properties. Add these to the documentation. Signed-off-by: Simon Glass --- doc/develop/bootstd/overview.rst | 13 + 1 file changed, 13 insertions(+) diff --git a/doc/develop/bootstd/overview.rst b/doc/develop/bootstd/overview.rst index 0

Re: [PATCH RFC v2 22/23] sysreset: rockchip: use fst reset for ARM64 SOC

2024-07-15 Thread Kever Yang
On 2024/6/1 00:44, Jonas Karlman wrote: Hi Anand and Kever, On 2024-05-31 16:18, Anand Moon wrote: From: Kever Yang Rockchip ARM64 SOC will change cpu entry, only fst reset can reset it. What is this trying to fix? And what SoCs is affected? Both fst and snd softreset are available for S

Re: [PATCH] arm: dts: mvebu: Migrate to upstream DT for Synology DS116 (Armada 385) board

2024-07-15 Thread Stefan Roese
On 5/22/24 23:51, Tony Dinh wrote: Enable OF_UPSTREAM to use upstream DT and add marvell/ prefix to the DEFAULT_DEVICE_TREE in DS116 defconfig. Remove current DTS in arch/arm/dts/ directory. Signed-off-by: Tony Dinh Applied to u-boot-marvell/master Thanks, Stefan --- arch/arm/dts/Makefi

Re: [PATCH v3] arm: mvebu: Enable bootstd and other modernization for Synology DS414 (Armada XP) board

2024-07-15 Thread Stefan Roese
On 7/8/24 06:39, Tony Dinh wrote: - Switch to standard boot (in include/configs/ds414.h and configs/ds414_defconfig) - Implement board_late_init() to ensure successful enumeration of USB3 devices - Remove unnecessary checkboard() - Updated IDENT_STRING to indicate this u-boot supports both Synolo

Please pull u-boot-marvell/master

2024-07-15 Thread Stefan Roese
Hi Tom, please pull this small batch of Marvell related patches: - mvebu: Migrate to upstream DT for Synology DS116 (Armada 385) board (Tony) - mvebu: Enable bootstd and other modernization for Synology DS414 (Armada XP) board (To

[RESEND PATCH] soc: ti: k3-socinfo: Add support for J721E SR2.0

2024-07-15 Thread Neha Malcom Francis
Add support for identifying J721E SR2.0 Signed-off-by: Neha Malcom Francis --- Resending as it was not sent to the mailing-list earlier, sorry for the spam. Boot logs: https://gist.github.com/nehamalcom/e5c3884961c3eb70464321aa4bfbcf78 drivers/soc/soc_ti_k3.c | 2 +- 1 file changed, 1 insertio

[PATCH 0/1] tpm: fix uninitalized field access

2024-07-15 Thread lukas . funke-oss
From: Lukas Funke tpm_tis_wait_init() is using the 'chip->timeout_b' field which is initialized in tpm_tis_init(). However, the init-function is called *after* tpm_tis_wait_init() introducing an uninitalized field access. This series/commit fixes the issue. Lukas Funke (1): tpm: call tpm_t

[PATCH 1/1] tpm: call tpm_tis_wait_init() after tpm_tis_init()

2024-07-15 Thread lukas . funke-oss
From: Lukas Funke tpm_tis_wait_init() is using the 'chip->timeout_b' field which is initialized in tpm_tis_init(). However, the init-function is called *after* tpm_tis_wait_init() introducing an uninitalized field access. This commit switches both routines. Signed-off-by: Lukas Funke --- dri

Re: [PATCH v6 01/24] dm: core: scan reserved-memory nodes

2024-07-15 Thread Simon Glass
On Mon, 15 Jul 2024 at 11:08, Caleb Connolly wrote: > > Qualcomm platforms may have drivers that bind to reserved memory nodes > (cmd-db [1] and smem [2]) which are relevant to U-Boot. Include > /reserved-memory in dm_extended_scan() so that these will be handled > correctly. > > [1]: > https://w

Re: [PATCH v6 06/24] soc: qcom: cmd-db: adjust probe for U-Boot

2024-07-15 Thread Simon Glass
On Mon, 15 Jul 2024 at 11:08, Caleb Connolly wrote: > > Integrate cmd-db into the U-Boot driver model. > > This is just a wrapper around an in-memory database, so we just need to > get the address and validate that cmd-db is there. > > Since cmd_db_header will be stored in the .data section we can

Re: [RFC PATCH v2 12/48] lmb: allow for resizing lmb regions

2024-07-15 Thread Simon Glass
Hi Sughosh, On Mon, 15 Jul 2024 at 10:27, Sughosh Ganu wrote: > > hi Simon, > > On Sat, 13 Jul 2024 at 20:45, Simon Glass wrote: > > > > Hi Sughosh, > > > > On Thu, 4 Jul 2024 at 08:36, Sughosh Ganu wrote: > > > > > > Allow for resizing of LMB regions if the region attributes match. The > > > c

Re: [RFC PATCH v2 09/48] lmb: remove call to lmb_init()

2024-07-15 Thread Simon Glass
Hi Sughosh, On Mon, 15 Jul 2024 at 10:31, Sughosh Ganu wrote: > > hi Simon, > > On Sat, 13 Jul 2024 at 20:45, Simon Glass wrote: > > > > kHi Sughosh, > > > > On Thu, 4 Jul 2024 at 08:36, Sughosh Ganu wrote: > > > > > > The LMB module will be changed to have persistent and global memory > > > ma

Re: [RFC PATCH v2 41/48] efi_memory: add an event handler to update memory map

2024-07-15 Thread Simon Glass
Hi Sughosh, On Mon, 15 Jul 2024 at 10:39, Sughosh Ganu wrote: > > hi Simon, > > On Sat, 13 Jul 2024 at 20:46, Simon Glass wrote: > > > > Hi Sughosh, > > > > On Thu, 4 Jul 2024 at 08:38, Sughosh Ganu wrote: > > > > > > There are events that would be used to notify other interested modules > > >

Re: [RFC PATCH v2 46/48] lmb: mark the EFI runtime memory regions as reserved

2024-07-15 Thread Simon Glass
Hi Sughosh, On Mon, 15 Jul 2024 at 10:42, Sughosh Ganu wrote: > > hi Simon, > > On Sat, 13 Jul 2024 at 20:46, Simon Glass wrote: > > > > Hi Sughosh, > > > > On Thu, 4 Jul 2024 at 08:38, Sughosh Ganu wrote: > > > > > > Mark the EFI runtime memory region as reserved memory during board > > > init

Re: [RFC PATCH v2 13/48] lmb: make LMB memory map persistent and global

2024-07-15 Thread Simon Glass
Hi Sughosh, On Mon, 15 Jul 2024 at 10:48, Sughosh Ganu wrote: > > hi Simon, > > On Sat, 13 Jul 2024 at 20:46, Simon Glass wrote: > > > > Hi Sughosh, > > > > On Thu, 4 Jul 2024 at 08:36, Sughosh Ganu wrote: > > > > > > The current LMB API's for allocating and reserving memory use a > > > per-cal

Re: [v2] bootstash: Do not provide a default address for all

2024-07-15 Thread Simon Glass
Hi Tom, On Sat, 13 Jul 2024 at 17:50, Tom Rini wrote: > > On Sat, Jul 13, 2024 at 04:13:50PM +0100, Simon Glass wrote: > > Hi Tom, > > > > On Thu, 11 Jul 2024 at 22:27, Tom Rini wrote: > > > > > > A valid memory location to stash bootstage information at will be > > > architecture dependent. Mov

[PATCH v3] bootstash: Do not provide a default address for all

2024-07-15 Thread Simon Glass
From: Tom Rini A valid memory location to stash bootstage information at will be architecture dependent. Move the existing defaults to the main Kconfig file for this option and set 0x0 as the default only for sandbox. Signed-off-by: Tom Rini Signed-off-by: Simon Glass --- Changes in v3: - Use

Re: [PATCH 0/7] Add the USB5744 hub driver as per new DT binding

2024-07-15 Thread Michal Simek
Hi Tom, Marek and Fabrice, st 5. 6. 2024 v 12:02 odesílatel Venkatesh Yadav Abbarapu napsal: > > Add the usb5744/usb2744 hub driver which does the reset gpio toggling > and the i2c initialization sequence. > > Tested the USB5744/USB2744 usb hub for usb0, usb1 with the > DT nodes on KR260 board. >

Re: [PATCH v6 15/24] soc: qcom: add build infrastructure

2024-07-15 Thread Neil Armstrong
On 15/07/2024 12:08, Caleb Connolly wrote: Add Kconfig / Makefiles to build rpmh and cmd-db drivers. Signed-off-by: Caleb Connolly --- drivers/soc/Kconfig | 1 + drivers/soc/Makefile | 1 + drivers/soc/qcom/Kconfig | 27 +++ drivers/soc/qcom/Makefile |

Re: [PATCH v6 23/24] power: regulator: qcom-rpmh-regulator: add build infra

2024-07-15 Thread Neil Armstrong
On 15/07/2024 12:08, Caleb Connolly wrote: Add Kconfig and Makefile entries for this driver now that it can build for U-Boot. Signed-off-by: Caleb Connolly --- drivers/power/regulator/Kconfig | 8 drivers/power/regulator/Makefile | 1 + 2 files changed, 9 insertions(+) diff --git

Re: [PATCH v2 0/2] a little RPi watchdog cleanup

2024-07-15 Thread Rasmus Villemoes
Stefan Roese writes: > @Tom, > > I can't find these patches (and v1) in patchworks. Do you have an > idea, why this is the case? > Perhaps because they (v2) have already been merged to master via a PR from Peter? commit 1ca216522d4. So one has to change 'state' from 'action required' to see th

Re: [PATCH v2 0/2] a little RPi watchdog cleanup

2024-07-15 Thread Stefan Roese
On 7/15/24 15:03, Rasmus Villemoes wrote: Stefan Roese writes: @Tom, I can't find these patches (and v1) in patchworks. Do you have an idea, why this is the case? Perhaps because they (v2) have already been merged to master via a PR from Peter? commit 1ca216522d4. Ah, I was not aware th

[PATCH 1/1] drivers/mtd/nvmxip: nvmxip.h is a global include

2024-07-15 Thread Heinrich Schuchardt
include/nvmxip.h is a global and not a local include. So we should use angle brackets. Fixes: dc3abd8006c5 ("nvmxip: move header to include") Signed-off-by: Heinrich Schuchardt --- drivers/mtd/nvmxip/nvmxip-uclass.c | 2 +- drivers/mtd/nvmxip/nvmxip.c| 2 +- drivers/mtd/nvmxip/nvmxip_qsp

Re: [PATCH v2] sandbox: Fix LTO to work with STACKPROTECTOR

2024-07-15 Thread Simon Glass
On Tue, 2 Jul 2024 at 18:00, Andrew Goodbody wrote: > > Add the STACKPROTECTOR symbols to the script that generates the > symbols that should not be removed by the use of LTO when linking > a shared object. This prevents a fail to build due to link errors. > > https://source.denx.de/u-boot/u-boot/

Re: [PATCH v2 0/2] a little RPi watchdog cleanup

2024-07-15 Thread Peter Robinson
> > I can't find these patches (and v1) in patchworks. Do you have an > > idea, why this is the case? > > > > Perhaps because they (v2) have already been merged to master via a PR from > Peter? commit 1ca216522d4. They were there, although weirdly they weren't assigned to me and I had to dig for

Re: [PATCH v3 5/6] u_boot_pylib: Use correct coverage tool within venv

2024-07-15 Thread Simon Glass
When running within a Python venv we must use the 'coverage' tool (which is within the venv) so that the venv packages are used in preference to system packages. Otherwise the coverage tests run in a different environment from the normal tests and may fail due to missing packages. Handle this by d

Re: [PATCH v3 4/6] buildman: Always use the full path in CROSS_COMPILE

2024-07-15 Thread Simon Glass
On Wed, Jun 26, 2024 at 09:00:43AM +0100, Simon Glass wrote: > Hi Andrejs, > > On Tue, 25 Jun 2024 at 16:16, Andrejs Cainikovs > wrote: > > > > On Tue, Jun 25, 2024 at 01:38:07PM +0100, Simon Glass wrote: > > > Hi Andrejs, > > > > > > On Tue, 25 Jun 2024 at 01:06, Andrejs Cainikovs > > > wrote: >

Re: [PATCH v3 3/6] buildman: Fix a few typos in toolchain code

2024-07-15 Thread Simon Glass
Fix 'Thie' and capitalise 'unicode'. Signed-off-by: Simon Glass Suggested-by: Heinrich Schuchardt --- (no changes since v2) Changes in v2: - Add new patch to fix a few typos in toolchain code tools/buildman/toolchain.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Applied to u-

Re: [PATCH v3 2/6] buildman: Add python3-pycryptodome

2024-07-15 Thread Simon Glass
This is used by some Binman entry types, so add it to allow more tests to pass. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- (no changes since v2) Changes in v2: - Add to buildman requirements instead tools/buildman/requirements.txt | 1 + 1 file changed, 1 insertion(+) Applied to u

Re: [PATCH v3 1/6] buildman: Add python3-coverage

2024-07-15 Thread Simon Glass
Add this package so we can run code-coverage tests for Binman. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- (no changes since v2) Changes in v2: - Add to buildman requirements instead tools/buildman/requirements.txt | 1 + 1 file changed, 1 insertion(+) Applied to u-boot-dm, thanks!

Re: [PATCH v2 14/14] buildman: Add a way to limit the number of buildmans

2024-07-15 Thread Simon Glass
Buildman uses all available CPUs by default, so running more than one or two concurrent processes is not normally useful. However in some CI cases we want to be able to run several jobs at once to save time. For example, in a lab situation we may want to run a test on 20 boards at a time, since on

Re: [PATCH v2 12/14] buildman: Add a flag to force mrproper on failure

2024-07-15 Thread Simon Glass
When a file is removed by a commit (e.g. include/common.h yay!) it can cause incremental build failures since one of the dependency files from a previous build may mention the file. Add an option to run 'make mrproper' automatically when a build fails. This can be used to automatically resolve the

Re: [PATCH v2 11/14] buildman: Avoid rebuilding when --mrproper is used

2024-07-15 Thread Simon Glass
When this flag is enabled, 'make mrproper' is always used when reconfiguring, so there is no point in doing it again. Update this. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Applied to u-boot-dm,

Re: [PATCH v2 10/14] buildman: Make mrproper an argument to run_commit()

2024-07-15 Thread Simon Glass
Pass this in so the caller can change it independently of the member variable. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v2 09/14] buildman: Make mrproper an argument to _config_and_build()

2024-07-15 Thread Simon Glass
Pass this in so the caller can change it independently of the member variable. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v2 07/14] x86: Set up some assumed sizes for binary blobs

2024-07-15 Thread Simon Glass
Add assumed sizes so that Binman can check that the U-Boot binaries do not grow too large. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/dts/u-boot.dtsi | 5 + 1 file changed, 5 insertions(+) Applied to u-boot-dm, thanks!

Re: [PATCH v2 08/14] buildman: Make mrproper an argument to _reconfigure()

2024-07-15 Thread Simon Glass
Pass this in so the caller can change it independently of the member variable. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) Applied to u-boot-dm, thanks!

Re: [PATCH v2 06/14] binman: Make Intel ME default to position 0x1000

2024-07-15 Thread Simon Glass
This cannot ever go at offset 0 since the descriptor is there. Use a better offset for the ME, as used by link and coral, for example. This matters when we start using assumed sizes for missing blobs. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/etype/intel_descriptor.py

Re: [PATCH v2 05/14] binman: Support an assumed size for missing binaries

2024-07-15 Thread Simon Glass
Binman has a the useful feature of handling missing external blobs gracefully, including allowing them to be missing, deciding whether the resulting image is functional or not and faking blobs when this is necessary for particular tools (e.g. mkimage). This feature is widely used in CI. One drawba

Re: [PATCH v2 04/14] binman: Update the entrydocs header

2024-07-15 Thread Simon Glass
Reduce the length of the underline for this header, to match the heading itself. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Applied to u-boot-dm, thanks!

Re: [PATCH v2 03/14] binman: ti: Regenerate entry docs

2024-07-15 Thread Simon Glass
Correct formatting errors in the documentation. Regenerate the entries.rst file to include this recent addition. Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/entries.rst| 35 + tools/binman/etype/ti_secure.py | 45 +-

  1   2   3   >