Add M4 remoteproc driver for TI K3 SoCs
cover Add M4 remoteproc driver for TI K3 SoCs
This series adds support for M4 remoteproc driver for K3 devices.
Logs: https://paste.sr.ht/~hnagalla/62811c4003c27ada83bc1c94500f7714ab30092a
Hari Nagalla (3):
remoteproc: k3-m4: Introduce K3 remote proc driver for M4 subsystem
configs: am62x_evm_a53_defconfig: Enable M4 remote proc driver
board: ti: am62x: Add remote proc env variables
board/ti/am62x/am62x.env | 4 + configs/am62x_evm_a53_defconfig | 2 + drivers/remoteproc/Kconfig | 10 + drivers/remoteproc/Makefile | 1 + drivers/remoteproc/ti_k3_m4_rproc.c | 421 ++++++++++++++++++++++++++++ 5 files changed, 438 insertions(+) create mode 100644 drivers/remoteproc/ti_k3_m4_rproc.c
Signature · 1 line
2.34.1
PATCH 1/3 remoteproc: k3-m4: Introduce K3 remote proc driver for M4 subsystem
Some K3 devices like AM64, AM62 devices have a M4 processor in MCU voltage domain.
Add a remote proc driver to support this subsystem to be able to load and boot the M4 core.
--- drivers/remoteproc/Kconfig | 10 + drivers/remoteproc/Makefile | 1 + drivers/remoteproc/ti_k3_m4_rproc.c | 421 ++++++++++++++++++++++++++++ 3 files changed, 432 insertions(+) create mode 100644 drivers/remoteproc/ti_k3_m4_rproc.c
drivers/remoteproc/Kconfig +10 -0
@@ -72,6 +72,16 @@ config REMOTEPROC_TI_K3_R5F on various TI K3 family of SoCs through the remote processor framework. +config REMOTEPROC_TI_K3_M4F + bool "TI K3 M4F remoteproc support" + select REMOTEPROC + depends on ARCH_K3 + depends on TI_SCI_PROTOCOL + help + Say y here to support TI's M4F remote processor subsystems + on various TI K3 family of SoCs through the remote processor + framework. + config REMOTEPROC_TI_POWER bool "Support for TI Power processor" select REMOTEPROC
drivers/remoteproc/Makefile +1 -0
@@ -12,6 +12,7 @@ obj-$(CONFIG_REMOTEPROC_SANDBOX) += sandbox_testproc.o obj-$(CONFIG_REMOTEPROC_STM32_COPRO) += stm32_copro.o obj-$(CONFIG_REMOTEPROC_TI_K3_ARM64) += ti_k3_arm64_rproc.o obj-$(CONFIG_REMOTEPROC_TI_K3_DSP) += ti_k3_dsp_rproc.o +obj-$(CONFIG_REMOTEPROC_TI_K3_M4F) += ti_k3_m4_rproc.o obj-$(CONFIG_REMOTEPROC_TI_K3_R5F) += ti_k3_r5f_rproc.o obj-$(CONFIG_REMOTEPROC_TI_POWER) += ti_power_proc.o obj-$(CONFIG_REMOTEPROC_TI_PRU) += pru_rproc.o
drivers/remoteproc/ti_k3_m4_rproc.c new file +421 -0
421 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH 2/3 configs: am62x_evm_a53_defconfig: Enable M4 remote proc driver
In reply to Hari NagallaEnable configs needed to add M4 remote proc driver to AM62.
--- configs/am62x_evm_a53_defconfig | 2 ++ 1 file changed, 2 insertions(+)
configs/am62x_evm_a53_defconfig +2 -0
@@ -96,6 +96,7 @@ CONFIG_POWER_DOMAIN=y CONFIG_TI_SCI_POWER_DOMAIN=y CONFIG_K3_SYSTEM_CONTROLLER=y CONFIG_REMOTEPROC_TI_K3_ARM64=y +CONFIG_REMOTEPROC_TI_K3_M4F=y CONFIG_RESET_TI_SCI=y CONFIG_DM_RTC=y CONFIG_RTC_EMULATION=y
@@ -111,3 +112,4 @@ CONFIG_SPL_SYSRESET=y CONFIG_SYSRESET_TI_SCI=y CONFIG_FS_FAT_MAX_CLUSTSIZE=16384 CONFIG_EFI_SET_TIME=y +CONFIG_CMD_REMOTEPROC=y
Signature · 1 line
2.34.1
PATCH 3/3 board: ti: am62x: Add remote proc env variables
In reply to Hari NagallaAdd remote proc support environment variables.
--- board/ti/am62x/am62x.env | 4 ++++ 1 file changed, 4 insertions(+)
board/ti/am62x/am62x.env +4 -0
@@ -1,5 +1,8 @@ #include <env/ti/ti_common.env> #include <env/ti/mmc.env> +#if CONFIG_CMD_REMOTEPROC +#include <env/ti/k3_rproc.env> +#endif name_kern=Image console=ttyS2,115200n8
@@ -18,3 +21,4 @@ splashfile=ti_logo_414x97_32bpp.bmp.gz splashimage=0x80200000 splashpos=m,m splashsource=sf +rproc_fw_binaries= 0 /lib/firmware/am62-mcu-m4f0_0-fw
Signature · 1 line
2.34.1
Re: [PATCH 3/3] board: ti: am62x: Add remote proc env variables
Quoted 28 lines · Hari Nagalla
Add remote proc support environment variables.
Signed-off-by Hari Nagalla <[email protected]>--- board/ti/am62x/am62x.env | 4 ++++ 1 file changed, 4 insertions(+)board/ti/am62x/am62x.env +4
-0@@ -1,5 +1,8 @@ #include <env/ti/ti_common.env> #include <env/ti/mmc.env> +#if CONFIG_CMD_REMOTEPROC +#include <env/ti/k3_rproc.env> +#endif name_kern=Image console=ttyS2,115200n8@@ -18,3 +21,4 @@ splashfile=ti_logo_414x97_32bpp.bmp.gz splashimage=0x80200000 splashpos=m,m splashsource=sf +rproc_fw_binaries= 0 /lib/firmware/am62-mcu-m4f0_0-fwSignature · 1 line
2.34.1
Grumble - instead of keeping on adding new SoCs, can we not spend some effort in trying to integrate to stdboot bootmethod?
Signature · 3 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
Quoted 3 lines · Hari Nagalla
This series adds support for M4 remoteproc driver for K3 devices.
Logs: https://paste.sr.ht/~hnagalla/62811c4003c27ada83bc1c94500f7714ab30092a
Obviously - this cannot work with out an M4F node in dts, correct? you should have mentioned that in your email.
Quoted 6 lines
Hari Nagalla (3):
remoteproc: k3-m4: Introduce K3 remote proc driver for M4 subsystem
configs:am62x_evm_a53_defconfig: Enable M4 remote proc driver
board: ti: am62x: Add remote proc env variables
Quoted 11 lines
board/ti/am62x/am62x.env | 4 + configs/am62x_evm_a53_defconfig | 2 + drivers/remoteproc/Kconfig | 10 + drivers/remoteproc/Makefile | 1 + drivers/remoteproc/ti_k3_m4_rproc.c | 421 ++++++++++++++++++++++++++++ 5 files changed, 438 insertions(+) create mode 100644 drivers/remoteproc/ti_k3_m4_rproc.cSignature · 1 line
2.34.1
I know we are close[1], but do wait for upstream kernel to accept the bindings before using the same in driver etc. the dts has no m4 support atm.
[1] https://lore.kernel.org/r/[email protected]
Signature · 3 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
Quoted 7 lines · Nishanth Menon
Quoted 3 lines · Hari Nagalla
This series adds support for M4 remoteproc driver for K3 devices.
Logs:https://paste.sr.ht/~hnagalla/62811c4003c27ada83bc1c94500f7714ab30092a
Obviously - this cannot work with out an M4F node in dts, correct? you should have mentioned that in your email.
Yes, that is correct. It needs M4F node in dts. I should have mentioned it in the email, that the kernel to u-boot device tree sync is needed for it to work.