Re: [PATCH v8 09/19] scmi_protocols: update struct scmi_base_discover_list_protocols_out

2025-03-21 Thread Marek Vasut
On 3/21/25 8:15 AM, Alice Guo (OSS) wrote: [...] @@ -276,22 +276,31 @@ static int scmi_base_discover_list_protocols_int(struct udevice *dev, if (ret) return ret; This math here could really use a code comment to explain what is going on here. I assume there is 1

Re: [PATCH v8 03/19] firmware: scmi_agent: add SCMI pin control protocol support

2025-03-21 Thread Marek Vasut
On 3/21/25 8:15 AM, Alice Guo (OSS) wrote: [...] @@ -352,6 +358,22 @@ static int scmi_fill_base_info(struct udevice *agent, struct udevice *dev) return 0; } +static struct driver *scmi_proto_driver_get(unsigned int proto_id) +{ + struct scmi_proto_driver *start, *entry; +

[PATCH v8 00/19] imx: add i.MX95 support

2025-03-21 Thread Alice Guo (OSS)
+ tools/imx8image.c | 147 - tools/imx9_image.sh | 8 + 50 files changed, 2937 insertions(+), 76 deletions(-) --- base-commit: 8543664bffdbc49d9fbd600131c21a7c4b5ca935 change-id: 20250321-imx95-aec019806ab6 Best regards, -- Alice Guo

[PATCH v8 01/19] firmware: scmi: smt: Interrupt communication enable

2025-03-21 Thread Alice Guo (OSS)
From: Viorel Suman i.MX95 System Manager uses interrupt driven communication which requires the caller to set Bit[0] of channel flags to 1. When transmission completes and the previous general purpose interrupt has been processed by the other core, i.MX95 System Manager will set General Purpose I

[PATCH v8 03/19] firmware: scmi_agent: add SCMI pin control protocol support

2025-03-21 Thread Alice Guo (OSS)
From: Alice Guo This patch adds SCMI pin control protocol support to make the pin controller driver based on SCMI, such as drivers/pinctrl/nxp/pinctrl-imx-scmi.c, can be bound to the SCMI agent device whose protocol id is 0x19. Add U_BOOT_SCMI_PROTO_DRIVER() so that the SCMI agent device can cho

[PATCH v8 05/19] scmi_protocols: add SCMI Performance domain management protocol message IDs

2025-03-21 Thread Alice Guo (OSS)
From: Peng Fan SCMI Performance domain management protocol is intended for performance management of groups of devices or APs that run in the same performance domain. The functionality provided by the callee-side can be used by passing the corresponding message_id. Signed-off-by: Peng Fan Signe

[PATCH v8 07/19] clk: scmi: check the clock state/parent/rate control permissions

2025-03-21 Thread Alice Guo (OSS)
From: Alice Guo Clock driver based on SCMI clock management protocol in Linux checks clock state, parent and rate control permissions. To be consistent with the kernel driver, add this check here. When using common clock framework (CCF), use the clock signal ID to get the clock registered by clk

[PATCH v8 16/19] imx: container: add V2X container support for i.MX95

2025-03-21 Thread Alice Guo (OSS)
From: Ye Li This patch adds V2X container support for i.MX95. Since V2X container may not be included in ahab-container.img of i.MX95, check if V2X container exists in order to get the correct image end. Signed-off-by: Ye Li Signed-off-by: Alice Guo Reviewed-by: Peng Fan --- arch/arm/mach-im

[PATCH v8 17/19] doc: imx: add document for i.MX95 Image Container Format

2025-03-21 Thread Alice Guo (OSS)
From: Alice Guo This patch add a document for i.MX95 Image Container Format. Signed-off-by: Alice Guo --- doc/imx/imx95_container.txt | 136 1 file changed, 136 insertions(+) diff --git a/doc/imx/imx95_container.txt b/doc/imx/imx95_container.txt ne

[PATCH v8 06/19] clk: scmi: add the command CLOCK_PARENT_SET

2025-03-21 Thread Alice Guo (OSS)
From: Peng Fan This patch adds the command CLOCK_PARENT_SET that can be used to set the parent of a clock. ARM SCMI Version 3.2 supports to change the parent of a clock device. Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Ye Li --- drivers/clk/clk_scmi.c | 20 +

[PATCH v8 09/19] scmi_protocols: update struct scmi_base_discover_list_protocols_out

2025-03-21 Thread Alice Guo (OSS)
From: Ye Li @protocols is an array of protocol identifiers that are implemented, excluding the Base protocol. The number of elements of @protocols is specified by callee-side. Signed-off-by: Ye Li Signed-off-by: Alice Guo --- drivers/firmware/scmi/base.c | 24 +--- include

[PATCH v8 18/19] imx95_evk: add i.MX95 19x19 EVK board basic support

2025-03-21 Thread Alice Guo (OSS)
From: Ye Li This patch adds i.MX95 19x19 EVK board basic support. Messaging unit for EdgeLock Secure Enclave, messaging unit for System Manager, uSDHC for SD Card, gpio, lpuart are supported now. Signed-off-by: Ye Li Signed-off-by: Alice Guo Reviewed-by: Peng Fan --- arch/arm/dts/imx95-19x1

[PATCH v8 19/19] Makefile: add some files to CLEAN_FILES

2025-03-21 Thread Alice Guo (OSS)
From: Alice Guo When building the flash.bin of i.MX95 with binman, mkimage.imx-boot.spl, mkimage.imx-boot.u-boot, mkimage-out.imx-boot.spl and mkimage-out.imx-boot.u-boot are created. Add these files to CLEAN_FILES so that they can be removed when running "make clean". Signed-off-by: Alice Guo

Re: [PATCH v5 45/46] acpi: Support checking checksums

2025-03-21 Thread Heinrich Schuchardt
On 21.03.25 11:49, Heinrich Schuchardt wrote: On 15.03.25 15:26, Simon Glass wrote: When the ACPI tables come from an earlier bootloader it is helpful to see whether the checksums are correct or not. Add a -c flag to the 'acpi list' command to support that. Signed-off-by: Simon Glass --- (no

Re: [PATCH] configs: Remove duplicated bootcmd 'mmc dev ${mmcdev}'

2025-03-21 Thread Fabio Estevam
On Wed, Mar 19, 2025 at 9:40 AM Aristo Chen wrote: > > The 'mmc dev ${mmcdev}' is defined twice, so remove the duplicated one > > Signed-off-by: Aristo Chen Applied to u-boot-imx/next, thanks.

Re: [PATCH] phycore_imx8mp: Rework some of the RAM related Kconfig symbols

2025-03-21 Thread Fabio Estevam
On Fri, Mar 14, 2025 at 10:30 PM Tom Rini wrote: > > As the code is today, we get a warning about "select" statements on > "choice" options not doing anything. In this case we can easily fix this > by dropping the select line as the following choice statement handles > things correctly. We also dr

Re: [PATCH v5 45/46] acpi: Support checking checksums

2025-03-21 Thread Heinrich Schuchardt
On 15.03.25 15:26, Simon Glass wrote: When the ACPI tables come from an earlier bootloader it is helpful to see whether the checksums are correct or not. Add a -c flag to the 'acpi list' command to support that. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new pat

Re: [RFC PATCH] cmd: fwu: Dump custom fields from mdata structure

2025-03-21 Thread Michal Simek
On 3/21/25 08:40, Sughosh Ganu wrote: On Wed, 5 Jun 2024 at 20:25, Michal Simek wrote: The commit cb9ae40a16f0 ("tools: mkfwumdata: add logic to append vendor data to the FWU metadata") added support for adding vendor data to mdata structure but it is not visible anywhere that's why extend

Re: [RFC PATCH] cmd: fwu: Dump custom fields from mdata structure

2025-03-21 Thread Sughosh Ganu
On Fri, 21 Mar 2025 at 14:09, Michal Simek wrote: > > > > On 3/21/25 08:40, Sughosh Ganu wrote: > > On Wed, 5 Jun 2024 at 20:25, Michal Simek wrote: > >> > >> The commit cb9ae40a16f0 ("tools: mkfwumdata: add logic to append vendor > >> data to the FWU metadata") added support for adding vendor da

Re: [PATCH v5 44/46] test: acpi: Correct memory leaks

2025-03-21 Thread Heinrich Schuchardt
On 15.03.25 15:26, Simon Glass wrote: Free the memory used in tests to avoid a leak. Also unmap the addresses for sandbox. Signed-off-by: Simon Glass Reviewed-by: Heinrich Schuchardt --- (no changes since v3) Changes in v3: - Add new patch to correct memory leaks in the ACPI test test

Re: [PATCH] net: remove commented out line

2025-03-21 Thread Ilias Apalodimas
On Fri, 21 Mar 2025 at 14:42, Jerome Forissier wrote: > > Commit 1d5d292b7941 ("net: split net into net{,-common,-legacy,-lwip}") > inadvertendly left a commented out declaration for do_wget() in > net-common.h. Remove it. > > Signed-off-by: Jerome Forissier > --- > include/net-common.h | 1 - >

[PATCH v8 04/19] scmi_protocols: add SCMI misc protocol protocol_id and message_id for getting the ROM passover data

2025-03-21 Thread Alice Guo (OSS)
From: Peng Fan SCMI misc protocol is intended for miscellaneous functions which are device specific and are usually defined to access bit fields. It is i.MX specific. This patch adds SCMI misc protocol protocol_id and message_id for getting the ROM passover data. Signed-off-by: Peng Fan Signed-

Re: [PATCH 00/52] expo: Various features and improvements

2025-03-21 Thread Simon Glass
Hi Tom, On Thu, 20 Mar 2025 at 15:21, Tom Rini wrote: > > On Thu, Mar 20, 2025 at 03:39:26AM +, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 19 Mar 2025 at 15:57, Tom Rini wrote: > > > > > > On Wed, Mar 19, 2025 at 03:54:05PM +0100, Simon Glass wrote: > > > > > > > This series collects tog

Re: [PATCH V2 3/5] arm64: imx: imx8mm-beacon: Enable CPU_IMX

2025-03-21 Thread Fabio Estevam
On Thu, Mar 20, 2025 at 11:27 PM Marek Vasut wrote: > Yes, I know. But then, I can safely say it is desired on hardware I > maintain, I think we could try and run a quick poll and see if others > see it the same way ? I think it is a good idea to imply the thermal driver at the SoC level instead

[GIT PULL] Please pull u-boot-dfu-20250321

2025-03-21 Thread Mattijs Korpershoek
7ad543619463e8817b3044041ac74749a217bbe0: board: verdin-am62: remove spl_perform_fixups (2025-03-20 08:02:12 -0600) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-dfu.git tags/u-boot-dfu-20250321 for you to fetch changes up to 0916053ebc566245b06d0a179533f6622b6ad392: usb: dwc3: gadget

[PATCH] net: remove commented out line

2025-03-21 Thread Jerome Forissier
Commit 1d5d292b7941 ("net: split net into net{,-common,-legacy,-lwip}") inadvertendly left a commented out declaration for do_wget() in net-common.h. Remove it. Signed-off-by: Jerome Forissier --- include/net-common.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/net-common.h b/incl

Re: [GIT PULL] Please pull u-boot-imx-next-20250321

2025-03-21 Thread Tom Rini
On Fri, 21 Mar 2025 09:29:47 -0300, Fabio Estevam wrote: > Please pull from u-boot-imx/next, thanks. > > The following changes since commit 8bc3542384e3a1219e5ffb62b79d16dddc1b1fb9: > > Merge patch series "pxe: Precursor series for supporting read_all() in > extlinux / PXE" (2025-03-18 13:12:

[PATCH 1/5] acpi: new function acpi_update_checksum()

2025-03-21 Thread Heinrich Schuchardt
Introduce a new function to update ACPI table headers. This allows to simplify the existing code. Signed-off-by: Heinrich Schuchardt --- include/acpi/acpi_table.h | 7 +++ lib/acpi/acpi.c | 7 +++ 2 files changed, 14 insertions(+) diff --git a/include/acpi/acpi_table.h b/inclu

[PATCH 4/5] qemu-sbsa: simplify updating ACPI table header checksum

2025-03-21 Thread Heinrich Schuchardt
Use acpi_update_checksum() to update table header. Signed-off-by: Heinrich Schuchardt --- board/emulation/qemu-sbsa/acpi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/emulation/qemu-sbsa/acpi.c b/board/emulation/qemu-sbsa/acpi.c index ba85e08fc7d..7e4c55cc818 10

[PATCH 2/5] acpi: simplify updating header checksum

2025-03-21 Thread Heinrich Schuchardt
Use acpi_update_checksum() for updating ACPI table header checksum. Signed-off-by: Heinrich Schuchardt --- lib/acpi/acpi_table.c | 18 +++--- lib/acpi/base.c | 6 ++ lib/acpi/csrt.c | 2 +- lib/acpi/mcfg.c | 2 +- lib/acpi/ssdt.c | 2 +- 5 files change

[PATCH 5/5] arm: simplify updating ACPI table header checksum

2025-03-21 Thread Heinrich Schuchardt
Use acpi_update_checksum() to update table header. Signed-off-by: Heinrich Schuchardt --- arch/arm/mach-bcm283x/bcm2711_acpi.c | 4 ++-- board/raspberrypi/rpi/rpi.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-bcm283x/bcm2711_acpi.c b/arch/arm/ma

Re: [PATCH V2] cmd: env: select: Add output for available evironment targets

2025-03-21 Thread Marek Vasut
On 3/21/25 7:43 PM, Christoph Niedermaier wrote: Add parameter "-l" for printing available environment targets. The active target is marked with an asterisk. This is done by adding the function env_select_print_list(). If "env select" is called without a target parameter the result is "Select En

Re: [PATCH] net: remove commented out line

2025-03-21 Thread Heinrich Schuchardt
On 21.03.25 13:42, Jerome Forissier wrote: Commit 1d5d292b7941 ("net: split net into net{,-common,-legacy,-lwip}") inadvertendly left a commented out declaration for do_wget() in net-common.h. Remove it. Signed-off-by: Jerome Forissier The definition was moved to include/net-lwip.h. Reviewed

Re: [PATCH v5 38/46] boot: Consider non-bootable partitions

2025-03-21 Thread Simon Glass
Hi Tom, On Thu, 20 Mar 2025 at 15:22, Tom Rini wrote: > > On Thu, Mar 20, 2025 at 03:43:36AM +, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 19 Mar 2025 at 16:40, Tom Rini wrote: > > > > > > On Wed, Mar 19, 2025 at 03:03:49PM +, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Tue

[PATCH 0/5] acpi: simplify updating ACPI table header checksum

2025-03-21 Thread Heinrich Schuchardt
Introduce a new function to update ACPI table headers. This allows to simplify the existing code. Heinrich Schuchardt (5): acpi: new function acpi_update_checksum() acpi: simplify updating header checksum x86/acpi: simplify updating header checksum qemu-sbsa: simplify updating ACPI table h

[PATCH 3/5] x86/acpi: simplify updating header checksum

2025-03-21 Thread Heinrich Schuchardt
Use acpi_update_checksum() for updating ACPI table header checksum. Signed-off-by: Heinrich Schuchardt --- arch/x86/cpu/apollolake/hostbridge.c | 2 +- arch/x86/lib/acpi_nhlt.c | 2 +- arch/x86/lib/acpi_table.c| 11 --- 3 files changed, 6 insertions(+), 9 deleti

Re: [PATCH V2 3/5] arm64: imx: imx8mm-beacon: Enable CPU_IMX

2025-03-21 Thread Marek Vasut
On 3/21/25 2:27 PM, Adam Ford wrote: On Fri, Mar 21, 2025 at 7:10 AM Fabio Estevam wrote: On Thu, Mar 20, 2025 at 11:27 PM Marek Vasut wrote: Yes, I know. But then, I can safely say it is desired on hardware I maintain, I think we could try and run a quick poll and see if others see it the

[PATCH v1 0/1] USB xHCI wrong act_len calculation in case of using multipe TRB

2025-03-21 Thread bigunclemax
From: Maksim Kiselev Hello everyone! I've encountered an issue where the actual length of received data is calculated incorrectly in the case of a multiple TRB request. Below, I'll try to describe the essence of the problem: A USB-ethernet adapter ASIX ax88179 is connected to my board Li4pi, a

[PATCH v2] cmd: fwu: Dump custom fields from mdata structure

2025-03-21 Thread Michal Simek
The commit cb9ae40a16f0 ("tools: mkfwumdata: add logic to append vendor data to the FWU metadata") added support for adding vendor data to mdata structure but it is not visible anywhere that's why extend fwu command to dump it. Tested-by: Sughosh Ganu Reviewed-by: Sughosh Ganu Signed-off-by: Mic

Re: [PATCH v8 02/19] pinctrl: nxp: add a pin controller driver based on SCMI pin control protocol

2025-03-21 Thread Marek Vasut
On 3/21/25 8:15 AM, Alice Guo (OSS) wrote: [...] +static int imx_scmi_pinctrl_probe(struct udevice *dev) +{ + struct imx_scmi_pinctrl_priv *priv = dev_get_priv(dev); + + priv->daisy_offset = is_imx93() ? DAISY_OFFSET_IMX93 : DAISY_OFFSET_IMX95; + + return devm_scmi_of_get_cha

Re: [PATCH v8 11/19] spl: imx: use trampoline buffer to load images to secure region

2025-03-21 Thread Marek Vasut
On 3/21/25 8:15 AM, Alice Guo (OSS) wrote: [...] @@ -42,12 +53,30 @@ static struct boot_img_t *read_auth_image(struct spl_image_info *spl_image, debug("%s: container: %p offset: %lu size: %lu\n", __func__, container, offset, size); - if (info->read(info, offset, size

Re: 回复: [PATCH v7 10/19] imx9: scmi: add i.MX95 SoC and clock related code

2025-03-21 Thread Marek Vasut
On 3/21/25 8:17 AM, Alice Guo (OSS) wrote: [...] diff --git a/arch/arm/mach-imx/imx9/scmi/clock.c b/arch/arm/mach-imx/imx9/scmi/clock.c new file mode 100644 index 00..9ebd380976 --- /dev/null +++ b/arch/arm/mach-imx/imx9/scmi/clock.c @@ -0,0 +1,105 @@ +// SPDX-License-Identifier: GPL-

Re: [PATCH v8 06/19] clk: scmi: add the command CLOCK_PARENT_SET

2025-03-21 Thread Marek Vasut
On 3/21/25 8:15 AM, Alice Guo (OSS) wrote: From: Peng Fan This patch adds the command CLOCK_PARENT_SET that can be used to set the parent of a clock. ARM SCMI Version 3.2 supports to change the parent of a clock device. Reviewed-by: Marek Vasut

Re: [PATCH v8 13/19] imx: Kconfig: IMX8_ROMAPI is not configured for i.MX95

2025-03-21 Thread Marek Vasut
On 3/21/25 8:15 AM, Alice Guo (OSS) wrote: From: Alice Guo i.MX95 only supports low power boot, which means A55 is kicked by M33. There is no ROM runs on A55 in such case so that deselect IMX8_ROMAPI for i.MX95. Signed-off-by: Alice Guo --- arch/arm/mach-imx/Kconfig | 2 +- 1 file changed,

Re: [PATCH v8 00/19] imx: add i.MX95 support

2025-03-21 Thread Marek Vasut
On 3/21/25 8:15 AM, Alice Guo (OSS) wrote: Changes for v7: - separate i.MX Messaging Unit driver patch from this patch set - add U_BOOT_SCMI_PROTO_DRIVER() to avoid putting i.MX related code in scmi_agent-uclass.c. - update drivers/clk/clk_scmi.c according to comment - dynamically alloca

[PATCH] power: regulator: scmi: Move regulator subnode hack to scmi_regulator

2025-03-21 Thread Marek Vasut
The current code attempts to bind scmi_voltage_domain to regulator subnode of the SCMI protocol node, so scmi_voltage_domain can then bind regulators directly to subnodes of its node. This kind of behavior should not be in core code, move it into scmi_voltage_domain driver code. Let the driver desc

Re: [PATCH v8 04/19] scmi_protocols: add SCMI misc protocol protocol_id and message_id for getting the ROM passover data

2025-03-21 Thread Marek Vasut
On 3/21/25 8:15 AM, Alice Guo (OSS) wrote: From: Peng Fan SCMI misc protocol is intended for miscellaneous functions which are device specific and are usually defined to access bit fields. It is i.MX specific. This patch adds SCMI misc protocol protocol_id and message_id for getting the ROM pas