[PATCH] net: fix NetConsole documentation reference

2023-12-17 Thread Baruch Siach
Fixes: d0253f7e5ca1 ("doc: move README.NetConsole to HTML documentation") Signed-off-by: Baruch Siach --- net/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/Kconfig b/net/Kconfig index 4215889127c9..92a22ac1ea55 100644 --- a/net/Kconfig +++ b/net/Kconfig @@ -57,7

[PATCH 7/7] hmibsc: Enable LAN75XX USB ethernet driver

2023-12-17 Thread Sumit Garg
HMIBSC board has hardwired support for 2 USB host LAN75XX ethernet adaptors. So enable corresponding driver in u-boot. Steps to test networking: hmibsc => setenv bootfile fitImage hmibsc => setenv serverip 192.168.1.24 hmibsc => usb start starting USB... Bus ehci@78d9000: USB EHCI 1.00 scanning

[PATCH 6/7] hmibsc: enable U-Boot Environment variables protection

2023-12-17 Thread Sumit Garg
Enable Environment protection with: CONFIG_ENV_WRITEABLE_LIST=y CONFIG_ENV_ACCESS_IGNORE_FORCE=y Signed-off-by: Sumit Garg --- configs/hmibsc_defconfig | 4 include/configs/hmibsc.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/configs/hmibsc_defconfig b/configs/hmibsc_defconfig

[PATCH 5/7] hmibsc: Enable RAUC support

2023-12-17 Thread Sumit Garg
Signed-off-by: Sumit Garg --- include/configs/hmibsc.h | 38 ++ 1 file changed, 38 insertions(+) diff --git a/include/configs/hmibsc.h b/include/configs/hmibsc.h index 04052ed6dee..b614dec7870 100644 --- a/include/configs/hmibsc.h +++

[PATCH 4/7] board: Add SE HMIBSC board support

2023-12-17 Thread Sumit Garg
Support for Schneider Electric HMIBSC. Features: - Qualcomm Snapdragon 410C SoC - APQ8016 (4xCortex A53, Adreno 306) - 2GiB RAM - 64GiB eMMC, SD slot - WiFi and Bluetooth - 2x Host, 1x Device USB port - HDMI - Discrete TPM2 chip over SPI Signed-off-by: Sumit Garg --- arch/arm/dts/Makefile

[PATCH 3/7] serial_msm: Enable RS232 flow control

2023-12-17 Thread Sumit Garg
SE HMIBSC board debug console requires RS232 flow control, so enable corresponding support if RS232 gpios are present. Signed-off-by: Sumit Garg --- drivers/serial/serial_msm.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/drivers/serial/serial_msm.c

[PATCH 2/7] serial_msm: Add support for RS232 GPIOs

2023-12-17 Thread Sumit Garg
Signed-off-by: Sumit Garg --- drivers/serial/serial_msm.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/serial/serial_msm.c b/drivers/serial/serial_msm.c index a22623c316e..43e58595dc2 100644 --- a/drivers/serial/serial_msm.c +++ b/drivers/serial/serial_msm.c @@ -16,6 +16,7

[PATCH 1/7] clk: apq8016: Add support for UART1 clocks

2023-12-17 Thread Sumit Garg
SE HMIBSC board uses UART1 as the main debug console, so add corresponding clocks support. Signed-off-by: Sumit Garg --- drivers/clk/qcom/clock-apq8016.c | 44 1 file changed, 39 insertions(+), 5 deletions(-) diff --git a/drivers/clk/qcom/clock-apq8016.c

[PATCH 0/7] Add SE HMBSC board support

2023-12-17 Thread Sumit Garg
SE HMIBSC board is based on Qcom APQ8016 SoC. One of the major difference from db410c is serial port where HMIBSC board uses UART1 as the debug console with an RS232 port, patch #1 - #3 adds corresponding driver support. Patch #4 adds main HMIBSC board specific bits, features: - Qualcomm

Re: [PATCH 0/8] An effort to bring DT bindings compliance within U-boot

2023-12-17 Thread Sumit Garg
On Sat, 16 Dec 2023 at 00:49, Tom Rini wrote: > > On Fri, Dec 15, 2023 at 02:45:11PM +, Conor Dooley wrote: > > On Fri, Dec 15, 2023 at 08:37:43AM -0500, Tom Rini wrote: > > > On Fri, Dec 15, 2023 at 08:50:51AM +0100, Krzysztof Kozlowski wrote: > > > > On 14/12/2023 20:48, Rob Herring wrote:

Re: [PATCH] efi_loader: fix iteration of FMP protocols

2023-12-17 Thread Masahisa Kojima
On Fri, 15 Dec 2023 at 19:07, Ilias Apalodimas wrote: > > Hi Kojima-san > > On Fri, 8 Dec 2023 at 07:40, Masahisa Kojima > wrote: > > > > If one of the FMP protocols fails when calling GetImageInfo(), > > populating the ESRT ends up with failure and other FMP protocols > > are not added to the

[PATCH v3 4/4] fs: remove explicit efi configuration dependency

2023-12-17 Thread AKASHI Takahiro
Now it is clear that the feature actually depends on efi interfaces, not "bootefi" command. efi_set_bootdev() will automatically be nullified if necessary efi component is disabled. Signed-off-by: AKASHI Takahiro --- fs/fs.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff

[PATCH v3 3/4] net: tftp: remove explicit efi configuration dependency

2023-12-17 Thread AKASHI Takahiro
Now it is clear that the feature actually depends on efi interfaces, not "bootefi" command. efi_set_bootdev() will automatically be nullified if necessary efi component is disabled. Signed-off-by: AKASHI Takahiro --- net/tftp.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-)

[PATCH v3 1/4] efi_loader: split unrelated code from efi_bootmgr.c

2023-12-17 Thread AKASHI Takahiro
Some code moved from cmd/bootefi.c is actually necessary only for "bootefi " command (starting an image manually loaded by a user using U-Boot load commands or other methods (like JTAG debugger). The code will never been opted out as unused code by a compiler which doesn't know how EFI boot

[PATCH v3 2/4] efi_loader: rename BOOTEFI_BOOTMGR to EFI_BOOTMGR

2023-12-17 Thread AKASHI Takahiro
At this point, EFI boot manager interfaces is fully independent from bootefi command. So just rename the configuration parameter. Signed-off-by: AKASHI Takahiro --- boot/Makefile | 2 +- cmd/Kconfig | 4 ++-- cmd/efidebug.c | 4 ++-- lib/efi_loader/Kconfig | 2 +-

[PATCH v3 0/4] cmd: bootefi: refactor the code for bootmgr

2023-12-17 Thread AKASHI Takahiro
This patch set is motivated by the discussion[1] regarding CONFIG_BOOTEFI_BOOTMGR option. # It has been partially merged in -next branch. So this version (v3) # contains only the remaining commits. At the end, bootefi.c will be decomposed into two parts, one for providing the command itself and

Re: [PATCH 10/10] Makefile: Use the fdtgrep -u flag

2023-12-17 Thread Tom Rini
On Sun, Dec 17, 2023 at 09:36:23AM -0700, Simon Glass wrote: > Use this flag so that the bootph binding is obeyed correctly. > > Signed-off-by: Simon Glass > Fixes: https://source.denx.de/u-boot/custodians/u-boot-dm/-/issues/12 First of all, yay, this will I believe unblock upstreaming of these

Re: [PATCH v2] arm: Add OVERLAY command to BSS section on ARM64

2023-12-17 Thread Tom Rini
On Sun, Dec 17, 2023 at 01:33:39AM +0100, Marek Vasut wrote: > Avoid allocating and loading the BSS section. > > $ aarch64-linux-gnu-objdump -Sh u-boot > > Before: > 10 .bss_start 000f21d8 000f21d8 001021d8 > 2**0 >CONTENTS, ALLOC, LOAD,

Re: [PATCH 2/2 v3] smbios: Fallback to the default DT if sysinfo nodes are missing

2023-12-17 Thread Tom Rini
On Sat, Dec 16, 2023 at 11:46:18AM -0700, Simon Glass wrote: > Hi Tom, > > On Thu, 14 Dec 2023 at 06:11, Tom Rini wrote: > > > > On Wed, Dec 13, 2023 at 08:19:11PM -0700, Simon Glass wrote: > > > > [snip] > > > The new DT nodes / SMBIOS binding [1] allows for the correct > > > information to be

Re: [NEXT] Pull request for efi-next-20231217

2023-12-17 Thread Tom Rini
upt allocations > in board config" (2023-12-15 20:23:59 -0500) > > are available in the Git repository at: > > https://source.denx.de/u-boot/custodians/u-boot-efi.git > tags/efi-next-20231217 > > for you to fetch changes up to 291ab919355df5ee28183546049d5fb

Re: [PATCH 1/1] test: build test/boot for CONFIG_UT_BOOTSTD=n

2023-12-17 Thread Ilias Apalodimas
On Sat, 16 Dec 2023 at 17:20, Heinrich Schuchardt wrote: > > Building sandbox_defconfig with > > CONFIG_UT_BOOTSTD=n > CONFIG_MEASURMENT=y > > results in an error: > > /usr/bin/ld: test/cmd_ut.o:(.data.rel.cmd_ut_sub+0x408): > undefined reference to `do_ut_measurement' > > Fixes:

Re: [PATCH 1/1] cmd: CONFIG_CMD_BOOTEFI_HELLO_COMPILE dependencies

2023-12-17 Thread Ilias Apalodimas
On Sun, 17 Dec 2023 at 13:45, Heinrich Schuchardt wrote: > > CONFIG_EFI_LOADER cannot be chosen for ARM v7m. Remove the superfluous > dependency on CONFIG_CPU_V7M=n. > > Fixes: b20bb09b2108 ("efi_loader: restrict EFI_LOADER to armv7 and armv8 on > ARM") > Signed-off-by: Heinrich Schuchardt >

Re: [PATCH v2 1/1] clk: clk-gpio: add actual gated clock

2023-12-17 Thread Sean Anderson
On 12/17/23 11:45, Marek Vasut wrote: On 12/17/23 16:37, Sean Anderson wrote: On 12/17/23 10:19, Marek Vasut wrote: On 12/17/23 02:20, Sean Anderson wrote: On 12/16/23 19:19, Marek Vasut wrote: On 12/16/23 17:56, Sean Anderson wrote: On 12/16/23 11:52, Marek Vasut wrote: On 12/16/23 16:37,

Re: [PATCH v2 1/1] clk: clk-gpio: add actual gated clock

2023-12-17 Thread Marek Vasut
On 12/17/23 16:37, Sean Anderson wrote: On 12/17/23 10:19, Marek Vasut wrote: On 12/17/23 02:20, Sean Anderson wrote: On 12/16/23 19:19, Marek Vasut wrote: On 12/16/23 17:56, Sean Anderson wrote: On 12/16/23 11:52, Marek Vasut wrote: On 12/16/23 16:37, Sean Anderson wrote: On 12/16/23

Re: [PATCH v2 1/1] clk: clk-gpio: add actual gated clock

2023-12-17 Thread Marek Vasut
On 12/16/23 17:55, Svyatoslav Ryhel wrote: сб, 16 груд. 2023 р. о 18:52 Marek Vasut пише: On 12/16/23 16:37, Sean Anderson wrote: On 12/16/23 03:48, Svyatoslav Ryhel wrote: Existing gpio-gate-clock driver acts like a simple GPIO switch without any effect on gated clock. Add actual clock

[PATCH 10/10] Makefile: Use the fdtgrep -u flag

2023-12-17 Thread Simon Glass
Use this flag so that the bootph binding is obeyed correctly. Signed-off-by: Simon Glass Fixes: https://source.denx.de/u-boot/custodians/u-boot-dm/-/issues/12 --- scripts/Makefile.lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.lib

[PATCH 09/10] fdtgrep: Allow propagating properties up to supernodes

2023-12-17 Thread Simon Glass
The existing bootph binding is defined such that properties in a subnode are also implied in the supernode also, as in this example: buttons { /* bootph,pre-ram is implied by btn1 */ compatible = "gpio-keys"; btn1 { bootph,pre-ram; gpios = <_a 3 0>;

[PATCH 08/10] sandbox: Correct SPL condition for building devicetree

2023-12-17 Thread Simon Glass
With sandbox, CONFIG_SANDBOX is y so the current rule ends up building the devicetree for only those SPL builds where it is unwanted. Correct the condition. This allows sandbox_vpl to produce a u-boot-vpl.dtb file. Fixes: e7fb789612e ("sandbox: Remove OF_HOSTFILE") Signed-off-by: Simon Glass

[PATCH 07/10] fdtgrep: Move property checking into a function

2023-12-17 Thread Simon Glass
The h_include() function includes a piece which checks if a node contains a property being searched for. Move this into its own function to reduce the size of the h_include() function. Signed-off-by: Simon Glass --- tools/fdtgrep.c | 48 +++- 1 file

[PATCH 06/10] fdtgrep: Simplify code to inverting the match

2023-12-17 Thread Simon Glass
The code to invert the match in h_include() is a bit convoluted. Simplify it by using disp->invert only once. Signed-off-by: Simon Glass --- tools/fdtgrep.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tools/fdtgrep.c b/tools/fdtgrep.c index

[PATCH 04/10] fdtgrep: Correct references to fdt_find_regions()

2023-12-17 Thread Simon Glass
The function name is actually fdtgrep_find_regions() so update the name in comments accordinging. Signed-off-by: Simon Glass --- tools/fdtgrep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/fdtgrep.c b/tools/fdtgrep.c index 41d8b41252dd..b56d2fe21c9a 100644

[PATCH 05/10] fdtgrep: Tidy up comment for h_include()

2023-12-17 Thread Simon Glass
Copy the comment from fdt_first_region() so that it is clear what value this function returns. Signed-off-by: Simon Glass --- tools/fdtgrep.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tools/fdtgrep.c b/tools/fdtgrep.c index b56d2fe21c9a..a6cdc326709d

[PATCH 03/10] fdtgrep: Correct ordering of flags

2023-12-17 Thread Simon Glass
Two of the flags are out of order, so fix this. Also adjust the ordering of one flag in the main switch() Signed-off-by: Simon Glass --- tools/fdtgrep.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/fdtgrep.c b/tools/fdtgrep.c index

[PATCH 02/10] fdtgrep: Tidy up a few type warnings and comments

2023-12-17 Thread Simon Glass
Align the code with the upstream version at fdt-tools which had a few tweaks before being applied. Signed-off-by: Simon Glass --- tools/fdtgrep.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/tools/fdtgrep.c b/tools/fdtgrep.c index

[PATCH 01/10] x86: coral: Align bootph SPI-flash subnodes with parent

2023-12-17 Thread Simon Glass
The subnode has different tags from the parents, which is not correct. Fix the subnode. Signed-off-by: Simon Glass --- arch/x86/dts/chromebook_coral.dts | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/x86/dts/chromebook_coral.dts

[PATCH 00/10] Make bootph tags transistive to parents

2023-12-17 Thread Simon Glass
The bootph binding[1] is defined such that if a tag is present in a subnode then it is supposed to apply to the parent node as well. This series aligned U-Boot with that binding. It also includes a few clean-ups. [1] https://github.com/devicetree-org/dt-schema/blob/main/dtschema/

Re: [PATCH v2 1/1] clk: clk-gpio: add actual gated clock

2023-12-17 Thread Sean Anderson
On 12/17/23 10:19, Marek Vasut wrote: On 12/17/23 02:20, Sean Anderson wrote: On 12/16/23 19:19, Marek Vasut wrote: On 12/16/23 17:56, Sean Anderson wrote: On 12/16/23 11:52, Marek Vasut wrote: On 12/16/23 16:37, Sean Anderson wrote: On 12/16/23 03:48, Svyatoslav Ryhel wrote: Existing

Re: [PATCH v2 1/1] clk: clk-gpio: add actual gated clock

2023-12-17 Thread Marek Vasut
On 12/17/23 02:20, Sean Anderson wrote: On 12/16/23 19:19, Marek Vasut wrote: On 12/16/23 17:56, Sean Anderson wrote: On 12/16/23 11:52, Marek Vasut wrote: On 12/16/23 16:37, Sean Anderson wrote: On 12/16/23 03:48, Svyatoslav Ryhel wrote: Existing gpio-gate-clock driver acts like a simple

Re: [PATCH] rock-pi-4: Enable SPI flash

2023-12-17 Thread Dragan Simic
On 2023-12-17 12:40, Stefan Nagy wrote: Am Freitag, dem 15.12.2023 um 19:26 +0100 schrieb Dragan Simic: On 2023-12-15 15:00, Stefan Nagy wrote: > The ROCK Pi 4A/B/C boards come with a 32 Mbit SPI NOR flash chip > (XTX Technology Limited XT25F32). > > Sync the devicetrees from Linux to enable

Re: [NEXT] Pull request for efi-next-20231217

2023-12-17 Thread Sean Anderson
3:59 -0500) are available in the Git repository at:   https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-next-20231217 for you to fetch changes up to 291ab919355df5ee28183546049d5fbdb2777d2d:   doc: Replace examples of MD5 and SHA1 with SHA256 (2023-12-17 13:06:48 +0100) Gitlab

[NEXT] Pull request for efi-next-20231217

2023-12-17 Thread Heinrich Schuchardt
repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-next-20231217 for you to fetch changes up to 291ab919355df5ee28183546049d5fbdb2777d2d: doc: Replace examples of MD5 and SHA1 with SHA256 (2023-12-17 13:06:48 +0100) Gitlab CI showed no issues: https://source.denx.de/u-boot/

Re: [PATCH] rock-pi-4: Enable SPI flash

2023-12-17 Thread Stefan Nagy
Am Freitag, dem 15.12.2023 um 19:26 +0100 schrieb Dragan Simic: > On 2023-12-15 15:00, Stefan Nagy wrote: > > The ROCK Pi 4A/B/C boards come with a 32 Mbit SPI NOR flash chip > > (XTX Technology Limited XT25F32). > > > > Sync the devicetrees from Linux to enable spi1 and add a device > > node for

Re: [PATCH v2 02/12] cmd: bootefi: re-organize do_bootefi()

2023-12-17 Thread Heinrich Schuchardt
On 12/17/23 13:00, Heinrich Schuchardt wrote: On 11/21/23 02:29, AKASHI Takahiro wrote: Replicate some code and re-organize do_bootefi() into three cases, which will be carved out as independent functions in the next two commits. Signed-off-by: AKASHI Takahiro ---   cmd/Kconfig  | 15

Re: [PATCH v2 02/12] cmd: bootefi: re-organize do_bootefi()

2023-12-17 Thread Heinrich Schuchardt
On 11/21/23 02:29, AKASHI Takahiro wrote: Replicate some code and re-organize do_bootefi() into three cases, which will be carved out as independent functions in the next two commits. Signed-off-by: AKASHI Takahiro --- cmd/Kconfig | 15 ++-- cmd/bootefi.c| 82

Re: [PATCH v2 06/12] cmd: bootefi: move library interfaces under lib/efi_loader

2023-12-17 Thread Heinrich Schuchardt
On 11/21/23 02:29, AKASHI Takahiro wrote: In the prior commits, interfaces for executing EFI binary and boot manager were carved out. Move them under efi_loader directory so that they can be called from other places without depending on bootefi command. Only efi_selftest-related code will be

[PATCH 1/1] cmd: CONFIG_CMD_BOOTEFI_HELLO_COMPILE dependencies

2023-12-17 Thread Heinrich Schuchardt
CONFIG_EFI_LOADER cannot be chosen for ARM v7m. Remove the superfluous dependency on CONFIG_CPU_V7M=n. Fixes: b20bb09b2108 ("efi_loader: restrict EFI_LOADER to armv7 and armv8 on ARM") Signed-off-by: Heinrich Schuchardt --- cmd/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH v2 06/12] cmd: bootefi: move library interfaces under lib/efi_loader

2023-12-17 Thread Heinrich Schuchardt
On 11/21/23 02:29, AKASHI Takahiro wrote: In the prior commits, interfaces for executing EFI binary and boot manager were carved out. Move them under efi_loader directory so that they can be called from other places without depending on bootefi command. Only efi_selftest-related code will be

Re: [PATCH] efi_loader: eliminate efi_disk_obj structure

2023-12-17 Thread Heinrich Schuchardt
On 12/14/23 09:23, Masahisa Kojima wrote: Depending on the number of handles and pointers this will take a considerable time. A private field for the handle appended to struct efi_block_io would allow a fast lookup. EDK II does the same. See the definition of RAM_DISK_PRIVATE_FROM_BLKIO which