[PATCH v1] scmi_protocols: add PERF protocol ID

2024-10-06 Thread alice . guo
From: Peng Fan Add PERF protocol ID. Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Ye Li --- include/scmi_protocols.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/include/scmi_protocols.h b/include/scmi_protocols.h index e25d94ab5b..43b66be00a

[PATCH v1] firmware: scmi: mailbox: support probe in pre-reloc stage

2024-10-06 Thread alice . guo
From: Peng Fan Support the mailbox agent driver probe in pre-reloc stage. Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Ye Li --- drivers/firmware/scmi/mailbox_agent.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/firmware/scmi/mailbox_agent.c b/drivers

[PATCH v1] scmi_protocols: Update discover list protocol message

2024-10-06 Thread alice . guo
From: Ye Li When work with System Manager, System Manager provides vendor specific protocol, so the protocol array size is not enough. Signed-off-by: Ye Li Signed-off-by: Alice Guo --- include/scmi_protocols.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include

[PATCH v1] scmi_protocols: add MISC ID

2024-10-06 Thread alice . guo
From: Peng Fan Add SCMI MISC ID. Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Ye Li --- include/scmi_protocols.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/scmi_protocols.h b/include/scmi_protocols.h index 36e46f4072..e25d94ab5b 100644 --- a/include

[PATCH v1] arm: global_data: add scmi pointer

2024-10-06 Thread alice . guo
From: Peng Fan Add scmi device and channel pointer for i.MX9. Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Ye Li --- arch/arm/include/asm/global_data.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/include/asm/global_data.h b/arch/arm/include/asm

[PATCH v1 1/2] firmware: scmi: use PAGE_SIZE alignement for ARM64

2024-10-06 Thread alice . guo
From: Peng Fan For ARMv7, the alignment could be SECTION size. But for ARM64, use PAGE_SIZE. Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Ye Li --- drivers/firmware/scmi/smt.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers

[PATCH 1/4] clk: scmi: support set parent

2024-10-06 Thread alice . guo
From: Peng Fan Support SCMI CLK set parent. Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Ye Li --- drivers/clk/clk_scmi.c | 20 include/scmi_protocols.h | 19 +++ 2 files changed, 39 insertions(+) diff --git a/drivers/clk/clk_scmi.c b

[PATCH 4/4] clk: scmi: Add workaround for set_rate/enable/disable

2024-10-06 Thread alice . guo
From: Ye Li Add workaround to set_rate/enable/disable to bus clock that SM will reply DENIED error. Signed-off-by: Ye Li Signed-off-by: Alice Guo Reviewed-by: Peng Fan --- drivers/clk/clk_scmi.c | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a

[PATCH 2/4] scmi_protocols: Update parent clock set ID

2024-10-06 Thread alice . guo
From: Ye Li According to SCMI v3.2, switch to use 0xD for parent clock set. Signed-off-by: Ye Li Signed-off-by: Alice Guo Reviewed-by: Peng Fan --- include/scmi_protocols.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/scmi_protocols.h b/include

[PATCH 3/4] clk: scmi: support probe in pre-reloc stage

2024-10-06 Thread alice . guo
From: Peng Fan Support the clk scmi driver probe in pre-reloc stage. Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Ye Li --- drivers/clk/clk_scmi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/clk_scmi.c b/drivers/clk/clk_scmi.c index 84333cdd0c

[PATCH v1] imx: Kconfig: make IMX8_ROMAPI configurable

2024-10-05 Thread alice . guo
From: Peng Fan Make CONFIG_IMX8_ROMAPI could be configured in defconfig. Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Ye Li --- arch/arm/mach-imx/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx

[PATCH v1 2/2] firmware: scmi: smt: enable doorbel return

2024-10-06 Thread alice . guo
From: Viorel Suman Enable doorbel return to work iMX95 System Manager. Signed-off-by: Viorel Suman Signed-off-by: Alice Guo Reviewed-by: Ye Li --- drivers/firmware/scmi/smt.c | 3 +++ drivers/firmware/scmi/smt.h | 10 ++ 2 files changed, 13 insertions(+) diff --git a/drivers

[PATCH v1] firmware: scmi: dump error string

2024-10-06 Thread alice . guo
From: Peng Fan When error happends, dump string is more intuitive. Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Ye Li --- drivers/firmware/scmi/scmi_agent-uclass.c | 26 +-- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/drivers/firmware

[PATCH v1] pinctrl: nxp: add SCMI pinctrl driver

2024-10-06 Thread alice . guo
From: Peng Fan Add SCMI based iMX pinctrl driver to use SCMI 3.2 pinctrl protocol. Signed-off-by: Ranjani Vaidyanathan Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Ye Li --- drivers/firmware/scmi/scmi_agent-uclass.c | 11 ++ drivers/pinctrl/nxp/Kconfig | 13

[PATCH 12/17] scmi: add the macro SCMI_MSG

2024-10-16 Thread Alice Guo
From: Peng Fan This patch adds the macro SCMI_MSG for protocols that do not need _in_array. Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Ye Li --- include/scmi_agent.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/scmi_agent.h b/include

[PATCH 09/17] imx9: scmi: add i.MX95 SoC and clock related code

2024-10-16 Thread Alice Guo
From: Peng Fan This patch adds i.MX95 SoC and clock related code. Because they are based on SCMI, put them in the scmi subfolder. Signed-off-by: Ye Li Signed-off-by: Alice Guo Reviewed-by: Peng Fan --- arch/arm/include/asm/arch-imx/cpu.h| 3 + arch/arm/include/asm/arch-imx9

[PATCH 11/17] imx9: scmi: soc: Override h_spl_load_read with trampoline buffer

2024-10-16 Thread Alice Guo
n use CPU to copy the image from trampoline buffer to destination secure region. Signed-off-by: Ye Li Signed-off-by: Alice Guo Reviewed-by: Peng Fan --- arch/arm/mach-imx/imx9/scmi/soc.c | 40 +++ common/spl/spl_mmc.c | 2 +- 2 files change

[PATCH 10/17] imx9: add i.MX95 Kconfig and Makefile

2024-10-16 Thread Alice Guo
From: Ye Li This patch adds i.MX95 Kconfig and Makefile. i.MX95 uses SCMI. Signed-off-by: Ye Li Signed-off-by: Alice Guo Reviewed-by: Peng Fan --- arch/arm/mach-imx/imx9/Kconfig | 7 +++ arch/arm/mach-imx/imx9/Makefile | 11 --- 2 files changed, 15 insertions(+), 3 deletions

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

2024-10-16 Thread Alice Guo
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, 1 insertion(+), 1 deletion(-) diff --git a

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

2024-10-16 Thread Alice Guo
From: Ye Li This patch adds i.MX95 19x19 EVK board basic support. Signed-off-by: Ye Li Signed-off-by: Alice Guo Reviewed-by: Peng Fan --- arch/arm/dts/imx95-19x19-evk-u-boot.dtsi | 172 arch/arm/mach-imx/imx9/Kconfig | 6 + board/freescale/imx95_evk

[PATCH 15/17] imx: add V2X container support on i.MX95

2024-10-16 Thread Alice Guo
From: Teo Hall This patch adds V2X container support on i.MX95. Signed-off-by: Ye Li Signed-off-by: Teo Hall Signed-off-by: Alice Guo --- arch/arm/mach-imx/image-container.c | 63 +++-- 1 file changed, 40 insertions(+), 23 deletions(-) diff --git a/arch/arm

[PATCH 17/17] imx: Fix ROMAPI driver to load container image

2024-10-16 Thread Alice Guo
API to handle the unaligned read and around container header size to page size Signed-off-by: Ye Li Signed-off-by: Alice Guo Reviewed-by: Peng Fan --- arch/arm/include/asm/mach-imx/sys_proto.h | 4 +-- arch/arm/mach-imx/image-container.c | 5 ++-- arch/arm/mach-imx/spl_imx_romapi.c

[PATCH 16/17] imx: Support loading container image from RAM device

2024-10-16 Thread Alice Guo
From: Ye Li For some debug case, we have preloaded the full boot image to RAM device. Add the support that SPL can load the u-boot-atf container from the RAM device. Signed-off-by: Ye Li Signed-off-by: Alice Guo --- arch/arm/mach-imx/image-container.c | 22 ++ common/spl

[PATCH 03/17] pinctrl: nxp: add SCMI pin control protocol driver

2024-10-16 Thread Alice Guo
ff-by: Alice Guo Reviewed-by: Ye Li --- drivers/firmware/scmi/scmi_agent-uclass.c | 11 +++ drivers/pinctrl/nxp/Kconfig | 13 +++ drivers/pinctrl/nxp/Makefile | 1 + drivers/pinctrl/nxp/pinctrl-imx.c | 7 +- drivers/pinctrl/nxp/pinctrl-imx.h

[PATCH 01/17] mailbox: add i.MX95 Messaging Unit (MU) driver

2024-10-16 Thread Alice Guo
exchanges on i.MX95 uses a mailbox transport with SMT format, and the harware used is this MU. Signed-off-by: Viorel Suman Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Ye Li --- drivers/mailbox/Kconfig | 7 + drivers/mailbox/Makefile | 1 + drivers/mailbox/imx

[PATCH 02/17] firmware: scmi: smt: Interrupt communication enable

2024-10-16 Thread Alice Guo
. Signed-off-by: Viorel Suman Signed-off-by: Alice Guo Reviewed-by: Ye Li --- drivers/firmware/scmi/smt.c | 4 drivers/firmware/scmi/smt.h | 10 ++ 2 files changed, 14 insertions(+) diff --git a/drivers/firmware/scmi/smt.c b/drivers/firmware/scmi/smt.c index

[PATCH 00/17] (no cover subject)

2024-10-16 Thread Alice Guo
This patch set adds the basic support of i.MX95 and has been tested on i.MX95 19x19 EVK. Signed-off-by: Alice Guo --- Alice Guo (1): imx: Kconfig: IMX8_ROMAPI is not configured for i.MX95 Peng Fan (7): mailbox: add i.MX95 Messaging Unit (MU) driver pinctrl: nxp: add SCMI pin

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

2024-10-16 Thread Alice Guo
From: Peng Fan SCMI misc protocol is intended for miscellaneous functions which are device specific and are usually defined to access bit fields. This patch adds SCMI misc protocol protocol_id and message_id for getting the ROM passover data. Signed-off-by: Peng Fan Signed-off-by: Alice Guo

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

2024-10-16 Thread Alice Guo
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 07/17] clk: scmi: check the clock state/parent/rate control permissions

2024-10-16 Thread Alice Guo
From: Ye Li SCMI clock management protocol driver in Linux checks clock state, parent and rate control permissions. To be consistent with the kernel driver, add this check here. Signed-off-by: Alice Guo Reviewed-by: Peng Fan --- drivers/clk/clk_scmi.c | 116

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

2024-10-16 Thread Alice Guo
Signed-off-by: Alice Guo Reviewed-by: Ye Li --- include/scmi_protocols.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/include/scmi_protocols.h b/include/scmi_protocols.h index 6cda1f00df1f6baf6db65a28b4cab114f8540a4b..08c86a642844570424dddbfcf9670d1e6757d8d1 100644 --- a

[PATCH 08/17] scmi_protocols: update struct scmi_base_discover_list_protocols_out

2024-10-16 Thread Alice Guo
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. Currently, set it to 4 is enough for i.MX95. Signed-off-by: Ye Li Signed-off-by: Alice Guo --- include

[PATCH v1] misc: imx_ele: add ELE release aux API

2024-10-05 Thread alice . guo
From: Peng Fan Add release AUX core ELE API which is used to replace RTC enable on iMX95 to release TROUT. Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Ye Li --- arch/arm/include/asm/mach-imx/ele_api.h | 7 +++ drivers/misc/imx_ele/ele_api.c | 26

[PATCH v1] misc: imx_ele: fuse: Read fuse from ELE when System Manager is enabled

2024-10-05 Thread alice . guo
From: Ye Li Since System Manager will protect sentinel area, FSB can't be accessed. So when System Manager is used, directly read fuse from ELE. Signed-off-by: Ye Li Signed-off-by: Alice Guo Reviewed-by: Peng Fan --- drivers/misc/imx_ele/fuse.c | 4 ++-- 1 file changed, 2 insertions(

[PATCH v1] mtd: spi-nor: Add mt35xu01gbba octal mode SPI NOR flash

2024-10-05 Thread alice . guo
From: Han Xu Add SPI NOR flash id for mt35xu01gbba which supports 4 bytes address with octal mode read. Signed-off-by: Han Xu Signed-off-by: Alice Guo Reviewed-by: Peng Fan --- drivers/mtd/spi/spi-nor-ids.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b

[PATCH v1] gpio: adp5585: Add SPL config for ADP5585 driver

2024-09-27 Thread alice . guo
From: Ye Li So we can disable to build ADP5585 in SPL to save size Signed-off-by: Ye Li Reviewed-by: Peng Fan --- drivers/gpio/Kconfig | 6 ++ drivers/gpio/Makefile | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 399

[PATCH v1] mailbox: add i.MX MU driver

2024-09-28 Thread Alice Guo
From: Peng Fan Add i.MX MU based mailbox driver. Signed-off-by: Viorel Suman Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Ye Li --- drivers/mailbox/Kconfig | 7 + drivers/mailbox/Makefile | 1 + drivers/mailbox/imx-mailbox.c | 417

[PATCH v1] mailbox: support timeout when sending

2024-09-29 Thread alice . guo
From: Peng Fan Add timeout support for mbox_send. Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Ye Li --- drivers/mailbox/mailbox-uclass.c | 19 ++- include/mailbox.h| 2 ++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a

[PATCH v1] mailbox: add i.MX MU driver

2024-09-29 Thread alice . guo
From: Peng Fan Add i.MX MU based mailbox driver. Signed-off-by: Viorel Suman Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Ye Li --- drivers/mailbox/Kconfig | 7 + drivers/mailbox/Makefile | 1 + drivers/mailbox/imx-mailbox.c | 417

[PATCH v2] gpio: adp5585: Add SPL config for ADP5585 driver

2024-09-28 Thread alice . guo
From: Ye Li So we can disable to build ADP5585 in SPL to save size Signed-off-by: Ye Li Signed-off-by: Alice Guo Reviewed-by: Peng Fan --- Changes for v2: - added my Signed-off-by drivers/gpio/Kconfig | 6 ++ drivers/gpio/Makefile | 2 +- 2 files changed, 7 insertions(+), 1 deletion

[PATCH v3 01/17] mailbox: add i.MX95 Messaging Unit (MU) driver

2025-01-02 Thread Alice Guo
exchanges on i.MX95 uses a mailbox transport with SMT format, and the hardware used is this MU. Signed-off-by: Viorel Suman Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Ye Li --- MAINTAINERS | 1 + drivers/mailbox/Kconfig | 7 + drivers/mailbox

[PATCH v2 01/17] mailbox: add i.MX95 Messaging Unit (MU) driver

2024-12-19 Thread Alice Guo
exchanges on i.MX95 uses a mailbox transport with SMT format, and the hardware used is this MU. Signed-off-by: Viorel Suman Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Ye Li --- MAINTAINERS | 1 + drivers/mailbox/Kconfig | 7 + drivers/mailbox

[PATCH v2 00/17] imx: add i.MX95 support

2024-12-19 Thread Alice Guo
1.0.32-193e5781 switch to partitions #0, OK mmc1 is current device Net: No ethernet found. u-boot=> Signed-off-by: Alice Guo --- Alice Guo (3): imx: Kconfig: IMX8_ROMAPI is not configured for i.MX95 binman: add a new entry type for packing DDR PHY firmware images tools: imx8im

[PATCH v2 03/17] pinctrl: nxp: add SCMI pin control protocol driver

2024-12-19 Thread Alice Guo
ff-by: Alice Guo Reviewed-by: Ye Li --- drivers/firmware/scmi/scmi_agent-uclass.c | 11 +++ drivers/pinctrl/nxp/Kconfig | 13 +++ drivers/pinctrl/nxp/Makefile | 1 + drivers/pinctrl/nxp/pinctrl-imx.c | 7 +- drivers/pinctrl/nxp/pinctrl-imx.h

[PATCH v2 06/17] clk: scmi: add the command CLOCK_PARENT_SET

2024-12-19 Thread Alice Guo
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 v2 02/17] firmware: scmi: smt: Interrupt communication enable

2024-12-19 Thread Alice Guo
. Signed-off-by: Viorel Suman Signed-off-by: Alice Guo Reviewed-by: Ye Li --- drivers/firmware/scmi/smt.c | 4 drivers/firmware/scmi/smt.h | 10 ++ 2 files changed, 14 insertions(+) diff --git a/drivers/firmware/scmi/smt.c b/drivers/firmware/scmi/smt.c index

[PATCH v2 05/17] scmi_protocols: add SCMI Performance domain management protocol message IDs

2024-12-19 Thread Alice Guo
Signed-off-by: Alice Guo Reviewed-by: Ye Li --- include/scmi_protocols.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/include/scmi_protocols.h b/include/scmi_protocols.h index 6cda1f00df1f6baf6db65a28b4cab114f8540a4b..08c86a642844570424dddbfcf9670d1e6757d8d1 100644 --- a

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

2024-12-19 Thread Alice Guo
From: Peng Fan SCMI misc protocol is intended for miscellaneous functions which are device specific and are usually defined to access bit fields. This patch adds SCMI misc protocol protocol_id and message_id for getting the ROM passover data. Signed-off-by: Peng Fan Signed-off-by: Alice Guo

[PATCH v2 09/17] imx9: scmi: add i.MX95 SoC and clock related code

2024-12-19 Thread Alice Guo
From: Peng Fan This patch adds i.MX95 SoC and clock related code. Because they are based on SCMI, put them in the scmi subfolder. Signed-off-by: Ye Li Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Peng Fan --- arch/arm/include/asm/arch-imx/cpu.h| 3 + arch/arm

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

2024-12-19 Thread Alice Guo
scmi_clk_probe(), and then obatin the struct clk_scmi variable with container_of(). Signed-off-by: Alice Guo Signed-off-by: Ye Li Reviewed-by: Peng Fan --- arch/sandbox/include/asm/scmi_test.h | 2 + drivers/clk/clk_scmi.c | 173 +++-- drivers

[PATCH v2 11/17] imx9: scmi: soc: Override h_spl_load_read with trampoline buffer

2024-12-19 Thread Alice Guo
n use CPU to copy the image from trampoline buffer to destination secure region. Signed-off-by: Ye Li Signed-off-by: Alice Guo Reviewed-by: Peng Fan --- arch/arm/mach-imx/imx9/scmi/soc.c | 40 +++ common/spl/spl_mmc.c | 2 +- 2 files change

[PATCH v2 14/17] binman: add a new entry type for packing DDR PHY firmware images

2024-12-19 Thread Alice Guo
From: Alice Guo i.MX95 needs to combine DDR PHY firmware images and their byte counts together, so add a new entry type nxp-append-ddrfw for this requirement. Signed-off-by: Alice Guo --- tools/binman/entries.rst | 14 ++ tools/binman/etype/nxp_append_ddrfw.py | 78

[PATCH v2 12/17] scmi: add the macro SCMI_MSG

2024-12-19 Thread Alice Guo
From: Peng Fan This patch adds the macro SCMI_MSG for protocols that do not need _in_array. Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Ye Li --- include/scmi_agent.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/scmi_agent.h b/include

[PATCH v2 08/17] scmi_protocols: update struct scmi_base_discover_list_protocols_out

2024-12-19 Thread Alice Guo
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. Currently, set it to 4 is enough for i.MX95. Signed-off-by: Ye Li Signed-off-by: Alice Guo --- include

[PATCH v2 10/17] imx9: add i.MX95 Kconfig and Makefile

2024-12-19 Thread Alice Guo
From: Ye Li This patch adds i.MX95 Kconfig and Makefile. i.MX95 uses SCMI. Signed-off-by: Ye Li Signed-off-by: Alice Guo Reviewed-by: Peng Fan --- arch/arm/mach-imx/imx9/Kconfig | 6 ++ arch/arm/mach-imx/imx9/Makefile | 11 --- 2 files changed, 14 insertions(+), 3 deletions

[PATCH v2 13/17] imx: Kconfig: IMX8_ROMAPI is not configured for i.MX95

2024-12-19 Thread Alice Guo
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, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH v2 16/17] imx95_evk: add i.MX95 19x19 EVK board basic support

2024-12-19 Thread Alice Guo
From: Ye Li This patch adds i.MX95 19x19 EVK board basic support. Signed-off-by: Ye Li Signed-off-by: Alice Guo Reviewed-by: Peng Fan --- arch/arm/dts/imx95-19x19-evk-u-boot.dtsi | 224 ++ arch/arm/mach-imx/imx9/Kconfig| 6 + arch/arm/mach-imx

[PATCH v2 15/17] tools: imx8image: add i.MX95 support

2024-12-19 Thread Alice Guo
From: Alice Guo i.MX95 uses binman to invoke mkimage to create image container. 2 image containers are needed currently. The first one is composed of ahab-container.img, LPDDR firmware images, OEI images, System Manager image and u-boot-spl.bin. The second one is comsisted of ARM Trusted

[PATCH v2 17/17] imx: add V2X container support on i.MX95

2024-12-19 Thread Alice Guo
From: Teo Hall This patch adds V2X container support on i.MX95. Signed-off-by: Ye Li Signed-off-by: Teo Hall Signed-off-by: Alice Guo --- arch/arm/mach-imx/image-container.c | 63 +++-- 1 file changed, 40 insertions(+), 23 deletions(-) diff --git a/arch/arm

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

2025-01-02 Thread Alice Guo
scmi_clk_probe(), and then obatin the struct clk_scmi variable with container_of(). Signed-off-by: Alice Guo Signed-off-by: Ye Li Reviewed-by: Peng Fan --- arch/sandbox/include/asm/scmi_test.h | 2 + drivers/clk/clk_scmi.c | 173 +++-- drivers

[PATCH v3 06/17] clk: scmi: add the command CLOCK_PARENT_SET

2025-01-02 Thread Alice Guo
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 v3 04/17] scmi_protocols: add SCMI misc protocol protocol_id and message_id for getting the ROM passover data

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

[PATCH v3 05/17] scmi_protocols: add SCMI Performance domain management protocol message IDs

2025-01-02 Thread Alice Guo
Signed-off-by: Alice Guo Reviewed-by: Ye Li --- include/scmi_protocols.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/include/scmi_protocols.h b/include/scmi_protocols.h index 6cda1f00df1f6baf6db65a28b4cab114f8540a4b..08c86a642844570424dddbfcf9670d1e6757d8d1 100644 --- a

[PATCH v3 09/17] imx9: scmi: add i.MX95 SoC and clock related code

2025-01-02 Thread Alice Guo
From: Peng Fan This patch adds i.MX95 SoC and clock related code. Because they are based on SCMI, put them in the scmi subfolder. Signed-off-by: Ye Li Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Peng Fan --- arch/arm/include/asm/arch-imx/cpu.h| 3 + arch/arm

[PATCH v3 11/17] imx9: scmi: soc: Override h_spl_load_read with trampoline buffer

2025-01-02 Thread Alice Guo
n use CPU to copy the image from trampoline buffer to destination secure region. Signed-off-by: Ye Li Signed-off-by: Alice Guo Reviewed-by: Peng Fan --- arch/arm/mach-imx/imx9/scmi/soc.c | 40 +++ common/spl/spl_mmc.c | 2 +- 2 files change

[PATCH v3 14/17] binman: add a new entry type for packing DDR PHY firmware images

2025-01-02 Thread Alice Guo
From: Alice Guo i.MX95 needs to combine DDR PHY firmware images and their byte counts together, so add a new entry type nxp-header-ddrfw for this requirement. Signed-off-by: Alice Guo --- tools/binman/entries.rst | 10 ++ tools/binman/etype/nxp_header_ddrfw.py| 32

[PATCH v3 16/17] imx: add V2X container support on i.MX95

2025-01-02 Thread Alice Guo
From: Teo Hall This patch adds V2X container support on i.MX95. Signed-off-by: Ye Li Signed-off-by: Teo Hall Signed-off-by: Alice Guo --- arch/arm/mach-imx/image-container.c | 63 +++-- 1 file changed, 40 insertions(+), 23 deletions(-) diff --git a/arch/arm

[PATCH v3 12/17] scmi: add the macro SCMI_MSG

2025-01-02 Thread Alice Guo
From: Peng Fan This patch adds the macro SCMI_MSG for protocols that do not need _in_array. Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Ye Li --- include/scmi_agent.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/scmi_agent.h b/include

[PATCH v3 03/17] pinctrl: nxp: add SCMI pin control protocol driver

2025-01-02 Thread Alice Guo
ff-by: Alice Guo Reviewed-by: Ye Li --- drivers/firmware/scmi/scmi_agent-uclass.c | 11 +++ drivers/pinctrl/nxp/Kconfig | 13 +++ drivers/pinctrl/nxp/Makefile | 1 + drivers/pinctrl/nxp/pinctrl-imx.c | 7 +- drivers/pinctrl/nxp/pinctrl-imx.h

[PATCH v3 02/17] firmware: scmi: smt: Interrupt communication enable

2025-01-02 Thread Alice Guo
. Signed-off-by: Viorel Suman Signed-off-by: Alice Guo Reviewed-by: Ye Li --- drivers/firmware/scmi/smt.c | 4 drivers/firmware/scmi/smt.h | 10 ++ 2 files changed, 14 insertions(+) diff --git a/drivers/firmware/scmi/smt.c b/drivers/firmware/scmi/smt.c index

[PATCH v3 10/17] imx9: add i.MX95 Kconfig and Makefile

2025-01-02 Thread Alice Guo
From: Ye Li This patch adds i.MX95 Kconfig and Makefile. i.MX95 uses SCMI. Signed-off-by: Ye Li Signed-off-by: Alice Guo Reviewed-by: Peng Fan --- arch/arm/mach-imx/imx9/Kconfig | 6 ++ arch/arm/mach-imx/imx9/Makefile | 11 --- 2 files changed, 14 insertions(+), 3 deletions

[PATCH v3 08/17] scmi_protocols: update struct scmi_base_discover_list_protocols_out

2025-01-02 Thread Alice Guo
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. Currently, set it to 4 is enough for i.MX95. Signed-off-by: Ye Li Signed-off-by: Alice Guo --- include

[PATCH v3 13/17] imx: Kconfig: IMX8_ROMAPI is not configured for i.MX95

2025-01-02 Thread Alice Guo
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, 1 insertion(+), 1 deletion(-) diff --git a

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

2025-01-02 Thread Alice Guo
From: Ye Li This patch adds i.MX95 19x19 EVK board basic support. Signed-off-by: Ye Li Signed-off-by: Alice Guo Reviewed-by: Peng Fan --- arch/arm/dts/imx95-19x19-evk-u-boot.dtsi | 68 ++ arch/arm/dts/imx95-u-boot.dtsi| 173 + arch/arm

[PATCH v3 15/17] tools: imx8image: add i.MX95 support

2025-01-02 Thread Alice Guo
From: Alice Guo i.MX95 uses binman to invoke mkimage to create image container. 2 image containers are needed currently. The first one is composed of ahab-container.img, LPDDR firmware images, OEI images, System Manager image and u-boot-spl.bin. The second one is comsisted of ARM Trusted

[PATCH v3 00/17] imx: add i.MX95 support

2025-01-02 Thread Alice Guo
vice tree into an imx95-u-boot.dtsi file - correct issues in imx95_19x19_evk.env Signed-off-by: Alice Guo --- Alice Guo (3): imx: Kconfig: IMX8_ROMAPI is not configured for i.MX95 binman: add a new entry type for packing DDR PHY firmware images tools: imx8image: add i.MX95 support

[PATCH v4 03/20] pinctrl: nxp: add a pin controller driver based on SCMI pin control protocol

2025-01-15 Thread Alice Guo
From: Alice Guo This patch provides a pinctrl driver based on SCMI pin control protocol. Currently, only the PINCTRL_CONFIG_SET command is implemented. Signed-off-by: Ranjani Vaidyanathan Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Ye Li --- drivers/pinctrl/nxp/Kconfig

[PATCH v4 05/20] scmi_protocols: add SCMI misc protocol protocol_id and message_id for getting the ROM passover data

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

[PATCH v4 06/20] scmi_protocols: add SCMI Performance domain management protocol message IDs

2025-01-15 Thread Alice Guo
Signed-off-by: Alice Guo Reviewed-by: Ye Li --- include/scmi_protocols.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/include/scmi_protocols.h b/include/scmi_protocols.h index 6cda1f00df1f6baf6db65a28b4cab114f8540a4b..08c86a642844570424dddbfcf9670d1e6757d8d1 100644 --- a

[PATCH v4 01/20] mailbox: add i.MX95 Messaging Unit (MU) driver

2025-01-15 Thread Alice Guo
exchanges on i.MX95 uses a mailbox transport with SMT format, and the hardware used is this MU. This id ported from Linux (v6.12.8) driver drivers/mailbox/imx-mailbox.c. Signed-off-by: Viorel Suman Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Ye Li --- MAINTAINERS

[PATCH v4 00/20] imx: add i.MX95 support

2025-01-15 Thread Alice Guo
Signed-off-by: Alice Guo --- Alice Guo (8): pinctrl: nxp: add a pin controller driver based on SCMI pin control protocol firmware: scmi: add pin control protocol support to SCMI agent clk: scmi: check the clock state/parent/rate control permissions sandbox: add SCMI clock

[PATCH v4 04/20] firmware: scmi: add pin control protocol support to SCMI agent

2025-01-15 Thread Alice Guo
From: Alice Guo This patch adds SCMI pin control protocol support so that the pin controller driver based on SCMI, such as drivers/pinctrl/nxp/pinctrl-scmi.c, can be bound to the SCMI agent device whose protocol id is 0x19. Signed-off-by: Alice Guo --- drivers/firmware/scmi/scmi_agent

[PATCH v4 02/20] firmware: scmi: smt: Interrupt communication enable

2025-01-15 Thread Alice Guo
Interrupt Control Register (GCR). U-Boot polls General-purpose Status (GSR) to check if the operation is finished. Signed-off-by: Viorel Suman Signed-off-by: Alice Guo Reviewed-by: Ye Li --- drivers/firmware/scmi/Kconfig | 6 ++ drivers/firmware/scmi/smt.c | 3 +++ drivers/firmware/scmi

[PATCH v4 17/20] tools: imx8image: add i.MX95 support

2025-01-15 Thread Alice Guo
From: Alice Guo i.MX95 uses binman to invoke mkimage to create image container. 2 image containers are needed currently. The first one is composed of ahab-container.img, LPDDR firmware images, OEI images, System Manager image and u-boot-spl.bin. The second one is comsisted of ARM Trusted

[PATCH v4 12/20] imx9: scmi: add i.MX95 SoC and clock related code

2025-01-15 Thread Alice Guo
From: Peng Fan This patch adds i.MX95 SoC and clock related code. Because they are based on SCMI, put them in the scmi subfolder. Signed-off-by: Ye Li Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Peng Fan --- arch/arm/include/asm/arch-imx/cpu.h| 2 + arch/arm

[PATCH v4 14/20] imx9: add i.MX95 Kconfig and Makefile

2025-01-15 Thread Alice Guo
From: Ye Li This patch adds i.MX95 Kconfig and Makefile. i.MX95 uses SCMI. Signed-off-by: Ye Li Signed-off-by: Alice Guo Reviewed-by: Peng Fan --- arch/arm/mach-imx/imx9/Kconfig | 8 arch/arm/mach-imx/imx9/Makefile | 9 +++-- 2 files changed, 15 insertions(+), 2 deletions

[PATCH v4 16/20] binman: add a new entry type for packing DDR PHY firmware images

2025-01-15 Thread Alice Guo
From: Alice Guo i.MX95 needs to combine DDR PHY firmware images and their byte counts together, so add a new entry type nxp-header-ddrfw for this requirement. Signed-off-by: Alice Guo --- tools/binman/entries.rst | 10 ++ tools/binman/etype/nxp_header_ddrfw.py| 32

[PATCH v4 11/20] scmi: add the macro SCMI_MSG

2025-01-15 Thread Alice Guo
From: Peng Fan This patch adds the macro SCMI_MSG for protocols that do not need _in_array. Signed-off-by: Peng Fan Signed-off-by: Alice Guo Reviewed-by: Ye Li --- include/scmi_agent.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/scmi_agent.h b/include

[PATCH v4 13/20] spl: imx: use trampoline buffer to load images to secure region

2025-01-15 Thread Alice Guo
from trampoline buffer to destination secure region. Signed-off-by: Ye Li Signed-off-by: Alice Guo Reviewed-by: Peng Fan --- arch/arm/mach-imx/imx9/scmi/soc.c | 18 + common/spl/Kconfig| 6 ++ common/spl/spl_imx_container.c

[PATCH v4 15/20] imx: Kconfig: IMX8_ROMAPI is not configured for i.MX95

2025-01-15 Thread Alice Guo
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, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH v4 08/20] clk: scmi: check the clock state/parent/rate control permissions

2025-01-15 Thread Alice Guo
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

[PATCH v4 07/20] clk: scmi: add the command CLOCK_PARENT_SET

2025-01-15 Thread Alice Guo
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 v4 09/20] sandbox: add SCMI clock control permissions to sandbox

2025-01-15 Thread Alice Guo
This patch is used to add SCMI clock control permissions to sandbox for testing. Signed-off-by: Alice Guo --- arch/sandbox/include/asm/scmi_test.h | 2 ++ drivers/firmware/scmi/sandbox-scmi_agent.c | 56 -- 2 files changed, 55 insertions(+), 3 deletions

[PATCH v4 10/20] scmi_protocols: update struct scmi_base_discover_list_protocols_out

2025-01-15 Thread Alice Guo
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. Currently, set it to 4 is enough for i.MX95. Signed-off-by: Ye Li Signed-off-by: Alice Guo --- include

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

2025-01-15 Thread Alice Guo
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

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

2025-01-15 Thread Alice Guo
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

[PATCH v4 18/20] imx: add V2X container support on i.MX95

2025-01-15 Thread Alice Guo
From: Teo Hall This patch adds V2X container support on i.MX95. Signed-off-by: Ye Li Signed-off-by: Teo Hall Signed-off-by: Alice Guo --- arch/arm/mach-imx/image-container.c | 63 +++-- 1 file changed, 40 insertions(+), 23 deletions(-) diff --git a/arch/arm

[PATCH v6 20/20] Makefile: add some files to CLEAN_FILES

2025-02-28 Thread 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 --- Ma

[PATCH v6 09/20] sandbox: add SCMI clock control permissions to sandbox

2025-02-28 Thread Alice Guo
This patch is used to add SCMI clock control permissions to sandbox for testing. Signed-off-by: Alice Guo --- arch/sandbox/include/asm/scmi_test.h | 2 ++ drivers/firmware/scmi/sandbox-scmi_agent.c | 56 -- 2 files changed, 55 insertions(+), 3 deletions

[PATCH v7 08/19] sandbox: add SCMI clock control permissions to sandbox

2025-03-05 Thread Alice Guo
This patch is used to add SCMI clock control permissions to sandbox for testing. Signed-off-by: Alice Guo --- arch/sandbox/include/asm/scmi_test.h | 2 ++ drivers/firmware/scmi/sandbox-scmi_agent.c | 56 -- 2 files changed, 55 insertions(+), 3 deletions

  1   2   3   >