[PATCH v4 06/10] arm: dts: k3-j721e-r5: Add fs_loader node

2020-01-21 Thread Keerthy
Add fs_loader node which will be needed for loading firmwares from the boot media/filesystem. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla --- arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/dts/k3-j721e-r5-common-proc

[PATCH v4 07/10] arm: dts: k3-j721e-r5: Enable r5fss0 cluster in SPL

2020-01-21 Thread Keerthy
Enable MAIN domain r5fss0 cluster and its core0 in R5 spl. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla --- arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/dts/k3-j721e-r5-common-proc-board.dts b/arch/arm/dts/k3

[PATCH v4 04/10] armv7R: K3: r5_mpu: Enable execute permission for MCU0 BTCM

2020-01-21 Thread Keerthy
Enable execute permission for mcu_r5fss0_core0 BTCM so that we can jump to a firmware directly from SPL. Signed-off-by: Keerthy --- arch/arm/mach-k3/r5_mpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-k3/r5_mpu.c b/arch/arm/mach-k3/r5_mpu.c index

[PATCH v4 05/10] armv7R: K3: Add support for jumping to firmware

2020-01-21 Thread Keerthy
MCU Domain rf50 is currently shutting down after loading the ATF. Load elf firmware and jump to firmware post loading ATF. ROM doesn't enable ATCM memory, so make sure that firmware that is being loaded doesn't use ATCM memory or override SPL. Signed-off-by: Keerthy Signed-off-by: Lo

[PATCH v4 08/10] include: configs: j721e_evm: Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0

2020-01-21 Thread Keerthy
Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0 firmware loadaddr and name. Signed-off-by: Keerthy --- Changes in v4: * Env variable names changed. include/configs/j721e_evm.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/j721e_evm.h b/include/con

[PATCH v4 09/10] configs: j721e_evm_r5: Enable R5F remoteproc support

2020-01-21 Thread Keerthy
Enable R5F remoteproc support in R5 defconfig so that R5s can be started in SPL. While at it enable the SPL_FS_EXT4 config option to load the firmwares from file system. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla --- configs/j721e_evm_r5_defconfig | 2 ++ 1 file changed, 2 insertions

[PATCH v4 10/10] configs: j721e_evm_r5_defconfig: Remove saving ENV in eMMC

2020-01-21 Thread Keerthy
Remove saving ENV in eMMC in R5 as the power domains are not setup. Environment in eMMC cannot be read if we do not boot from eMMC. Signed-off-by: Keerthy --- configs/j721e_evm_r5_defconfig | 4 1 file changed, 4 deletions(-) diff --git a/configs/j721e_evm_r5_defconfig b/configs

Re: [PATCH v3 02/10] arm: k3: Add support for loading non linux remote cores

2020-01-22 Thread Keerthy
On 22/01/20 9:55 pm, Andrew F. Davis wrote: On 1/21/20 8:10 PM, keerthy wrote: On 1/21/2020 6:26 PM, Andrew F. Davis wrote: On 1/21/20 6:07 AM, Keerthy wrote: Add MAIN domain R5FSS0 remoteproc support from spl. This enables loading the elf firmware in SPL and starting the remotecore. In

Re: [PATCH v3 02/10] arm: k3: Add support for loading non linux remote cores

2020-01-23 Thread Keerthy
On 23/01/20 6:54 pm, Andrew F. Davis wrote: On 1/22/20 11:10 PM, Keerthy wrote: On 22/01/20 9:55 pm, Andrew F. Davis wrote: On 1/21/20 8:10 PM, keerthy wrote: On 1/21/2020 6:26 PM, Andrew F. Davis wrote: On 1/21/20 6:07 AM, Keerthy wrote: Add MAIN domain R5FSS0 remoteproc support

Re: [PATCH v3 02/10] arm: k3: Add support for loading non linux remote cores

2020-01-23 Thread Keerthy
On 23/01/20 10:35 pm, Andrew F. Davis wrote: On 1/23/20 11:44 AM, Keerthy wrote: On 23/01/20 6:54 pm, Andrew F. Davis wrote: On 1/22/20 11:10 PM, Keerthy wrote: On 22/01/20 9:55 pm, Andrew F. Davis wrote: On 1/21/20 8:10 PM, keerthy wrote: On 1/21/2020 6:26 PM, Andrew F. Davis

Re: [PATCH v3 02/10] arm: k3: Add support for loading non linux remote cores

2020-01-24 Thread Keerthy
On 23/01/20 10:49 pm, Keerthy wrote: On 23/01/20 10:35 pm, Andrew F. Davis wrote: On 1/23/20 11:44 AM, Keerthy wrote: On 23/01/20 6:54 pm, Andrew F. Davis wrote: On 1/22/20 11:10 PM, Keerthy wrote: On 22/01/20 9:55 pm, Andrew F. Davis wrote: On 1/21/20 8:10 PM, keerthy wrote: On

Re: [PATCH v4 01/10] env: nowhere: set default enviroment

2020-01-26 Thread Keerthy
On 24/01/20 8:22 pm, Tom Rini wrote: On Wed, Jan 22, 2020 at 09:29:56AM +0530, Keerthy wrote: Set default enviroment so that set_env calls succeed when only ENV_IS_NOWHERE set. Signed-off-by: Keerthy --- Changes in v4: * Reworded commit log env/nowhere.c | 1 + 1 file changed, 1

Re: [PATCH v4 02/10] lib: elf: Move the generic elf loading/validating functions to lib

2020-01-26 Thread Keerthy
On 24/01/20 8:24 pm, Tom Rini wrote: On Wed, Jan 22, 2020 at 09:29:57AM +0530, Keerthy wrote: Move the generic elf loading/validating functions to lib/ so that they can be re-used and accessed by code existing outside cmd. Signed-off-by: Keerthy Suggested-by: Simon Goldschmidt Reviewed-by

Re: [PATCH v4 06/10] arm: dts: k3-j721e-r5: Add fs_loader node

2020-01-26 Thread Keerthy
On 24/01/20 8:25 pm, Tom Rini wrote: On Wed, Jan 22, 2020 at 09:30:01AM +0530, Keerthy wrote: Add fs_loader node which will be needed for loading firmwares from the boot media/filesystem. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla --- arch/arm/dts/k3-j721e-r5-common-proc

Re: [PATCH v4 02/10] lib: elf: Move the generic elf loading/validating functions to lib

2020-01-26 Thread Keerthy
On 27/01/20 10:01 am, Keerthy wrote: On 24/01/20 8:24 pm, Tom Rini wrote: On Wed, Jan 22, 2020 at 09:29:57AM +0530, Keerthy wrote: Move the generic elf loading/validating functions to lib/ so that they can be re-used and accessed by code existing outside cmd. Signed-off-by: Keerthy

Re: [PATCH v4 01/10] env: nowhere: set default enviroment

2020-01-27 Thread Keerthy
On 27/01/20 7:42 pm, Tom Rini wrote: On Mon, Jan 27, 2020 at 02:34:17PM +0100, Wolfgang Denk wrote: Dear Keerthy, In message you wrote: Set default enviroment so that set_env calls succeed when only ENV_IS_NOWHERE set. Signed-off-by: Keerthy --- Changes in v4: * Reworded commit

Re: [PATCH v4 02/10] lib: elf: Move the generic elf loading/validating functions to lib

2020-01-27 Thread Keerthy
On 27/01/20 7:46 pm, Tom Rini wrote: On Mon, Jan 27, 2020 at 10:46:19AM +0530, Keerthy wrote: On 27/01/20 10:01 am, Keerthy wrote: On 24/01/20 8:24 pm, Tom Rini wrote: On Wed, Jan 22, 2020 at 09:29:57AM +0530, Keerthy wrote: Move the generic elf loading/validating functions to lib/ so

Re: [PATCH v4 06/10] arm: dts: k3-j721e-r5: Add fs_loader node

2020-01-27 Thread Keerthy
On 27/01/20 7:44 pm, Tom Rini wrote: On Mon, Jan 27, 2020 at 10:07:31AM +0530, Keerthy wrote: On 24/01/20 8:25 pm, Tom Rini wrote: On Wed, Jan 22, 2020 at 09:30:01AM +0530, Keerthy wrote: Add fs_loader node which will be needed for loading firmwares from the boot media/filesystem

[PATCH v5 01/10] env: nowhere: set default enviroment

2020-01-28 Thread Keerthy
In case only CONFIG_ENV_IS_NOWHERE without any of the memory based configs like CONFIG_ENV_IS_IN_MMC the env_set function fails as the gd->flags & GD_FLG_ENV_READY check fails. Set default enviroment so that set_env calls succeed when only ENV_IS_NOWHERE set. Signed-off-by: Keerthy -

[PATCH v5 00/10] Add support for loading main_r5fss0_core0

2020-01-28 Thread Keerthy
ions under lib/elf.c Keerthy (10): env: nowhere: set default enviroment lib: elf: Move the generic elf loading/validating functions to lib arm: k3: Add support for loading non linux remote cores armv7R: K3: r5_mpu: Enable execute permission for MCU0 BTCM armv7R: K3: Add support for jumpin

[PATCH v5 03/10] arm: k3: Add support for loading non linux remote cores

2020-01-28 Thread Keerthy
Add MAIN domain R5FSS0 remoteproc support from spl. This enables loading the elf firmware in SPL and starting the remotecore. In order to start the core, there should be a file with path "/lib/firmware/j7-main-r5f0_0-fw" under filesystem of respective boot mode. Signed-off-by: Keert

[PATCH v5 02/10] lib: elf: Move the generic elf loading/validating functions to lib

2020-01-28 Thread Keerthy
Move the generic elf loading/validating functions to lib/ so that they can be re-used and accessed by code existing outside cmd. Signed-off-by: Keerthy Suggested-by: Simon Goldschmidt Reviewed-by: Simon Goldschmidt --- cmd/Kconfig | 1 + cmd/elf.c | 229

[PATCH v5 04/10] armv7R: K3: r5_mpu: Enable execute permission for MCU0 BTCM

2020-01-28 Thread Keerthy
Enable execute permission for mcu_r5fss0_core0 BTCM so that we can jump to a firmware directly from SPL. Signed-off-by: Keerthy --- arch/arm/mach-k3/r5_mpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-k3/r5_mpu.c b/arch/arm/mach-k3/r5_mpu.c index

[PATCH v5 06/10] arm: dts: k3-j721e-r5-u-boot: Add fs_loader node

2020-01-28 Thread Keerthy
Add fs_loader node which will be needed for loading firmwares from the boot media/filesystem. Signed-off-by: Keerthy --- .../dts/k3-j721e-r5-common-proc-board-u-boot.dtsi | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 arch/arm/dts/k3-j721e-r5-common-proc-board-u

[PATCH v5 05/10] armv7R: K3: Add support for jumping to firmware

2020-01-28 Thread Keerthy
MCU Domain rf50 is currently shutting down after loading the ATF. Load elf firmware and jump to firmware post loading ATF. ROM doesn't enable ATCM memory, so make sure that firmware that is being loaded doesn't use ATCM memory or override SPL. Signed-off-by: Keerthy Signed-off-by: Lo

[PATCH v5 07/10] arm: dts: k3-j721e-r5: Enable r5fss0 cluster in SPL

2020-01-28 Thread Keerthy
Enable MAIN domain r5fss0 cluster and its core0 in R5 spl. Signed-off-by: Keerthy --- .../dts/k3-j721e-r5-common-proc-board-u-boot.dtsi| 12 arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 2 ++ 2 files changed, 14 insertions(+) diff --git a/arch/arm/dts/k3-j721e-r5

[PATCH v5 10/10] configs: j721e_evm_r5_defconfig: Remove saving ENV in eMMC

2020-01-28 Thread Keerthy
Remove saving ENV in eMMC in R5 as the power domains are not setup. Environment in eMMC cannot be read if we do not boot from eMMC. Signed-off-by: Keerthy --- configs/j721e_evm_r5_defconfig | 4 1 file changed, 4 deletions(-) diff --git a/configs/j721e_evm_r5_defconfig b/configs

[PATCH v5 08/10] include: configs: j721e_evm: Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0

2020-01-28 Thread Keerthy
Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0 firmware loadaddr and name. Signed-off-by: Keerthy --- include/configs/j721e_evm.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h index 4371c471e5..fc73a9c932 10

[PATCH v5 09/10] configs: j721e_evm_r5: Enable R5F remoteproc support

2020-01-28 Thread Keerthy
Enable R5F remoteproc support in R5 defconfig so that R5s can be started in SPL. While at it enable the SPL_FS_EXT4 config option to load the firmwares from file system. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla --- configs/j721e_evm_r5_defconfig | 2 ++ 1 file changed, 2 insertions

Re: [PATCH v5 00/10] Add support for loading main_r5fss0_core0

2020-01-28 Thread Keerthy
On 29/01/20 8:05 am, Lokesh Vutla wrote: On 28/01/20 4:21 PM, Keerthy wrote: This patch series enables mcu_r5fss0_core0 & main_r5fss0_core0. Tested for firmware loading and execution on J721e. Changes in v5: * Moved the fs_loader node under r5-common-proc-board-u-boot.dtsi * A

[PATCH v6 02/10] lib: elf: Move the generic elf loading/validating functions to lib

2020-01-28 Thread Keerthy
Move the generic elf loading/validating functions to lib/ so that they can be re-used and accessed by code existing outside cmd. While at it remove the duplicate static version of load_elf_image_phdr under arch/arm/mach-imx/imx_bootaux.c. Signed-off-by: Keerthy Suggested-by: Simon Goldschmidt

Re: [PATCH v5 02/10] lib: elf: Move the generic elf loading/validating functions to lib

2020-02-03 Thread Keerthy
On 29/01/20 9:27 pm, Tom Rini wrote: On Tue, Jan 28, 2020 at 04:21:07PM +0530, Keerthy wrote: Move the generic elf loading/validating functions to lib/ so that they can be re-used and accessed by code existing outside cmd. Signed-off-by: Keerthy Suggested-by: Simon Goldschmidt Reviewed-by

[PATCH v7 00/10] Add support for loading main_r5fss0_core0

2020-02-03 Thread Keerthy
ges in v3: * Removed saving env in MMC and fixed env saving in SPL when nowhere option is set. Changes in v2: * Factored out all the generic elf handling functions under lib/elf.c Keerthy (10): env: nowhere: set default enviroment lib: elf: Move the generic elf loading/validating functions to

[PATCH v7 01/10] env: nowhere: set default enviroment

2020-02-03 Thread Keerthy
In case only CONFIG_ENV_IS_NOWHERE without any of the memory based configs like CONFIG_ENV_IS_IN_MMC the env_set function fails as the gd->flags & GD_FLG_ENV_READY check fails. Set default enviroment so that set_env calls succeed when only ENV_IS_NOWHERE set. Signed-off-by: Keerthy Revi

[PATCH v7 02/10] lib: elf: Move the generic elf loading/validating functions to lib

2020-02-03 Thread Keerthy
Move the generic elf loading/validating functions to lib/ so that they can be re-used and accessed by code existing outside cmd. While at it remove the duplicate static version of load_elf_image_phdr under arch/arm/mach-imx/imx_bootaux.c. Signed-off-by: Keerthy Suggested-by: Simon Goldschmidt

[PATCH v7 04/10] armv7R: K3: r5_mpu: Enable execute permission for MCU0 BTCM

2020-02-03 Thread Keerthy
Enable execute permission for mcu_r5fss0_core0 BTCM so that we can jump to a firmware directly from SPL. Signed-off-by: Keerthy --- arch/arm/mach-k3/r5_mpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-k3/r5_mpu.c b/arch/arm/mach-k3/r5_mpu.c index

[PATCH v7 03/10] arm: k3: Add support for loading non linux remote cores

2020-02-03 Thread Keerthy
Add MAIN domain R5FSS0 remoteproc support from spl. This enables loading the elf firmware in SPL and starting the remotecore. In order to start the core, there should be a file with path "/lib/firmware/j7-main-r5f0_0-fw" under filesystem of respective boot mode. Signed-off-by: Keert

[PATCH v7 05/10] armv7R: K3: Add support for jumping to firmware

2020-02-03 Thread Keerthy
MCU Domain rf50 is currently shutting down after loading the ATF. Load elf firmware and jump to firmware post loading ATF. ROM doesn't enable ATCM memory, so make sure that firmware that is being loaded doesn't use ATCM memory or override SPL. Signed-off-by: Keerthy Signed-off-by: Lo

[PATCH v7 06/10] arm: dts: k3-j721e-r5-u-boot: Add fs_loader node

2020-02-03 Thread Keerthy
Add fs_loader node which will be needed for loading firmwares from the boot media/filesystem. Signed-off-by: Keerthy Reviewed-by: Tom Rini --- .../dts/k3-j721e-r5-common-proc-board-u-boot.dtsi | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 arch/arm/dts/k3-j721e-r5

[PATCH v7 07/10] arm: dts: k3-j721e-r5: Enable r5fss0 cluster in SPL

2020-02-03 Thread Keerthy
Enable MAIN domain r5fss0 cluster and its core0 in R5 spl. Signed-off-by: Keerthy Reviewed-by: Tom Rini --- .../dts/k3-j721e-r5-common-proc-board-u-boot.dtsi| 12 arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 2 ++ 2 files changed, 14 insertions(+) diff --git a/arch

[PATCH v7 10/10] configs: j721e_evm_r5_defconfig: Remove saving ENV in eMMC

2020-02-03 Thread Keerthy
Remove saving ENV in eMMC in R5 as the power domains are not setup. Environment in eMMC cannot be read if we do not boot from eMMC. Signed-off-by: Keerthy --- configs/j721e_evm_r5_defconfig | 4 1 file changed, 4 deletions(-) diff --git a/configs/j721e_evm_r5_defconfig b/configs

[PATCH v7 09/10] configs: j721e_evm_r5: Enable R5F remoteproc support

2020-02-03 Thread Keerthy
Enable R5F remoteproc support in R5 defconfig so that R5s can be started in SPL. While at it enable the SPL_FS_EXT4 config option to load the firmwares from file system. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla --- configs/j721e_evm_r5_defconfig | 2 ++ 1 file changed, 2 insertions

[PATCH v7 08/10] include: configs: j721e_evm: Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0

2020-02-03 Thread Keerthy
Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0 firmware loadaddr and name. Signed-off-by: Keerthy --- include/configs/j721e_evm.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h index 4371c471e5..fc73a9c932 10

Re: [PATCH v7 00/10] Add support for loading main_r5fss0_core0

2020-02-05 Thread keerthy
On 2/5/2020 2:45 PM, Lokesh Vutla wrote: On 04/02/20 12:06 PM, Keerthy wrote: This patch series enables mcu_r5fss0_core0 & main_r5fss0_core0. Tested for firmware loading and execution on J721e. I still see build error with multiple imx bo

[PATCH v8 2/9] arm: k3: Add support for loading non linux remote cores

2020-02-12 Thread Keerthy
Add MAIN domain R5FSS0 remoteproc support from spl. This enables loading the elf firmware in SPL and starting the remotecore. In order to start the core, there should be a file with path "/lib/firmware/j7-main-r5f0_0-fw" under filesystem of respective boot mode. Signed-off-by: Keert

[PATCH v8 3/9] armv7R: K3: r5_mpu: Enable execute permission for MCU0 BTCM

2020-02-12 Thread Keerthy
Enable execute permission for mcu_r5fss0_core0 BTCM so that we can jump to a firmware directly from SPL. Signed-off-by: Keerthy --- arch/arm/mach-k3/r5_mpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-k3/r5_mpu.c b/arch/arm/mach-k3/r5_mpu.c index

[PATCH v8 0/9] Add support for loading main_r5fss0_core0

2020-02-12 Thread Keerthy
hanges in v4: * Changed env variable names, config names and enhanced commit logs. Changes in v3: * Removed saving env in MMC and fixed env saving in SPL when nowhere option is set. Changes in v2: * Factored out all the generic elf handling functions under lib/elf.c Keerthy (9):

[PATCH v8 1/9] lib: elf: Move the generic elf loading/validating functions to lib

2020-02-12 Thread Keerthy
Move the generic elf loading/validating functions to lib/ so that they can be re-used and accessed by code existing outside cmd. While at it remove the duplicate static version of load_elf_image_phdr under arch/arm/mach-imx/imx_bootaux.c. Signed-off-by: Keerthy Suggested-by: Simon Goldschmidt

[PATCH v8 5/9] arm: dts: k3-j721e-r5-u-boot: Add fs_loader node

2020-02-12 Thread Keerthy
Add fs_loader node which will be needed for loading firmwares from the boot media/filesystem. Signed-off-by: Keerthy Reviewed-by: Tom Rini --- .../dts/k3-j721e-r5-common-proc-board-u-boot.dtsi | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 arch/arm/dts/k3-j721e-r5

[PATCH v8 7/9] include: configs: j721e_evm: Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0

2020-02-12 Thread Keerthy
Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0 firmware loadaddr and name. Signed-off-by: Keerthy --- include/configs/j721e_evm.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h index 4371c471e5..fc73a9c932 10

[PATCH v8 6/9] arm: dts: k3-j721e-r5: Enable r5fss0 cluster in SPL

2020-02-12 Thread Keerthy
Enable MAIN domain r5fss0 cluster and its core0 in R5 spl. Signed-off-by: Keerthy Reviewed-by: Tom Rini --- .../dts/k3-j721e-r5-common-proc-board-u-boot.dtsi| 12 arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 2 ++ 2 files changed, 14 insertions(+) diff --git a/arch

[PATCH v8 4/9] armv7R: K3: Add support for jumping to firmware

2020-02-12 Thread Keerthy
MCU Domain rf50 is currently shutting down after loading the ATF. Load elf firmware and jump to firmware post loading ATF. ROM doesn't enable ATCM memory, so make sure that firmware that is being loaded doesn't use ATCM memory or override SPL. Signed-off-by: Keerthy Signed-off-by: Lo

[PATCH v8 8/9] configs: j721e_evm_r5: Enable R5F remoteproc support

2020-02-12 Thread Keerthy
Enable R5F remoteproc support in R5 defconfig so that R5s can be started in SPL. While at it enable the SPL_FS_EXT4 config option to load the firmwares from file system. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla --- configs/j721e_evm_r5_defconfig | 2 ++ 1 file changed, 2 insertions

[PATCH v8 9/9] configs: j721e_evm_r5_defconfig: Remove saving ENV in eMMC

2020-02-12 Thread Keerthy
Remove saving ENV in eMMC in R5 as the power domains are not setup. Environment in eMMC cannot be read if we do not boot from eMMC. Signed-off-by: Keerthy --- configs/j721e_evm_r5_defconfig | 4 1 file changed, 4 deletions(-) diff --git a/configs/j721e_evm_r5_defconfig b/configs

[PATCH] power: regulator: tps62360_regulator: Convert ofdata_to_platdata to the missing probe

2020-01-10 Thread Keerthy
k sequence: tps62360_regulator_ofdata_to_platdata --> i2c_get_chip --> device_probe(tps62360) --> tps62360_regulator_ofdata_to_platdata Hence convert ofdata_to_platdata to the missing probe function to fix the hang. Fixes: 22e8f18980d6 ("power: regulator: tps6236x: add support for tps6236x regulators&

Re: [PATCH] arm: dts: k3-am654-r5-base-board: Fix power-domains for wkup_vtm0

2020-01-10 Thread keerthy
nnect@10/interconnect@2838/interconnect@4204/ wkup_vtm@4205:power-domains: property size (8) too small for cell size 2 Fix this by updating the power-domain cells. Reviewed-by: Keerthy Fixes: cfa6bd549c ("arm: dts: k3-am654-r5-base-board: Add VTM node") Signed-off-b

[PATCH 00/10] arm: k3: Add support for loading main_r5fss0_core0

2020-01-10 Thread Keerthy
This patch series enables mcu_r5fss0_core0 & main_r5fss0_core0. Tested for firmware loading and execution on J721e. Faiz Abbas (1): configs: j721e_evm_r5: Add configs for environment in eMMC Keerthy (9): cmd: elf: Export out load_elf_image_phdr Makefile: Enable CMD_ELF for SPL as

[PATCH 04/10] armv7R: K3: r5_mpu: Enable execute permission for MCU0 BTCM

2020-01-10 Thread Keerthy
Enable execute permission for mcu_r5fss0_core0 BTCM so that we can jump to a firmware directly from SPL. Signed-off-by: Keerthy --- arch/arm/mach-k3/r5_mpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-k3/r5_mpu.c b/arch/arm/mach-k3/r5_mpu.c index

[PATCH 03/10] arm: k3: Add support for loading non linux remote cores

2020-01-10 Thread Keerthy
Add MAIN domain R5FSS0 remoteproc support from spl. This enables loading the elf firmware in SPL and starting the remotecore. In order to start the core, there should be a file with path "/lib/firmware/j7-main-r5f0_0-fw" under filesystem of respective boot mode. Signed-off-by: Keert

[PATCH 02/10] Makefile: Enable CMD_ELF for SPL as well

2020-01-10 Thread Keerthy
Enable CMD_ELF for SPL as well. While at it stub out code not relevant for SPL. Signed-off-by: Keerthy --- cmd/Makefile | 2 +- cmd/elf.c| 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/Makefile b/cmd/Makefile index 8df39f3a19..95bb87c6db 100644 --- a/cmd/Makefile

[PATCH 05/10] armv7R: K3: Add support for jumping to firmware

2020-01-10 Thread Keerthy
MCU Domain rf50 is currently shutting down after loading the ATF. Load elf firmware and jump to firmware post loading ATF. ROM doesn't enable ATCM memory, so make sure that firmware that is being loaded doesn't use ATCM memory or override SPL. Signed-off-by: Keerthy Signed-off-by: Lo

[PATCH 01/10] cmd: elf: Export out load_elf_image_phdr

2020-01-10 Thread Keerthy
Export out load_elf_image_phdr so that it can be reused to load elf segments outside cmd/elf Signed-off-by: Keerthy --- cmd/elf.c | 4 ++-- include/elf.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/elf.c b/cmd/elf.c index 32f12a72b9..ea76fb42aa 100644 --- a

[PATCH 06/10] arm: dts: k3-j721e-r5: Add fs_loader node

2020-01-10 Thread Keerthy
Add fs_loader node which will be needed for loading firmwares from the boot media/filesystem. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla --- arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/dts/k3-j721e-r5-common-proc

[PATCH 07/10] arm: dts: k3-j721e-r5: Enable r5fss0 cluster in SPL

2020-01-10 Thread Keerthy
Enable MAIN domain r5fss0 cluster and its core0 in R5 spl. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla --- arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/dts/k3-j721e-r5-common-proc-board.dts b/arch/arm/dts/k3

[PATCH 09/10] configs: j721e_evm_r5: Add configs for environment in eMMC

2020-01-10 Thread Keerthy
From: Faiz Abbas Add config to save and read back environment from eMMC. Signed-off-by: Faiz Abbas Signed-off-by: Keerthy --- configs/j721e_evm_a72_defconfig | 3 +++ configs/j721e_evm_r5_defconfig | 2 ++ include/configs/j721e_evm.h | 6 ++ 3 files changed, 11 insertions(+) diff

[PATCH 08/10] include: configs: j721e_evm: Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0

2020-01-10 Thread Keerthy
Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0 firmware loadaddr and name. Signed-off-by: Keerthy --- include/configs/j721e_evm.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h index 84518786c7..d3a9330069 10

[PATCH 10/10] configs: j721e_evm_r5: Enable R5F remoteproc support

2020-01-10 Thread Keerthy
Enable r5f remoteproc support in r5 defconfig so that r5s can be started in spl. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla --- configs/j721e_evm_r5_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/j721e_evm_r5_defconfig b/configs/j721e_evm_r5_defconfig index

Re: [PATCH 02/10] Makefile: Enable CMD_ELF for SPL as well

2020-01-10 Thread keerthy
On 1/10/2020 4:00 PM, Simon Goldschmidt wrote: On Fri, Jan 10, 2020 at 11:24 AM Keerthy wrote: Enable CMD_ELF for SPL as well. While at it stub out code not relevant for SPL. Signed-off-by: Keerthy --- cmd/Makefile | 2 +- cmd/elf.c| 2 ++ 2 files changed, 3 insertions(+), 1

[PATCH v2 3/9] armv7R: K3: r5_mpu: Enable execute permission for MCU0 BTCM

2020-01-12 Thread Keerthy
Enable execute permission for mcu_r5fss0_core0 BTCM so that we can jump to a firmware directly from SPL. Signed-off-by: Keerthy --- arch/arm/mach-k3/r5_mpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-k3/r5_mpu.c b/arch/arm/mach-k3/r5_mpu.c index

[PATCH v2 0/9]k3: Add support for loading main_r5fss0_core0

2020-01-12 Thread Keerthy
This patch series enables mcu_r5fss0_core0 & main_r5fss0_core0. Tested for firmware loading and execution on J721e. Changes in v2: * Factored out all the generic elf handling functions under lib/elf.c Faiz Abbas (1): configs: j721e_evm_r5: Add configs for environment in eMMC Keerth

[PATCH v2 4/9] armv7R: K3: Add support for jumping to firmware

2020-01-12 Thread Keerthy
MCU Domain rf50 is currently shutting down after loading the ATF. Load elf firmware and jump to firmware post loading ATF. ROM doesn't enable ATCM memory, so make sure that firmware that is being loaded doesn't use ATCM memory or override SPL. Signed-off-by: Keerthy Signed-off-by: Lo

[PATCH v2 1/9] lib: elf: Move the generic elf loading/validating functions to lib

2020-01-12 Thread Keerthy
Move the generic elf loading/validating functions to lib/ so that they can be re-used and accessed by code existing outside cmd. Signed-off-by: Keerthy Suggested-by: Simon Goldschmidt --- Changes in v2: * Factored out all the generic elf handling functions under lib/elf.c cmd/Kconfig

[PATCH v2 5/9] arm: dts: k3-j721e-r5: Add fs_loader node

2020-01-12 Thread Keerthy
Add fs_loader node which will be needed for loading firmwares from the boot media/filesystem. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla --- arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/dts/k3-j721e-r5-common-proc

[PATCH v2 6/9] arm: dts: k3-j721e-r5: Enable r5fss0 cluster in SPL

2020-01-12 Thread Keerthy
Enable MAIN domain r5fss0 cluster and its core0 in R5 spl. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla --- arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/dts/k3-j721e-r5-common-proc-board.dts b/arch/arm/dts/k3

[PATCH v2 2/9] arm: k3: Add support for loading non linux remote cores

2020-01-12 Thread Keerthy
Add MAIN domain R5FSS0 remoteproc support from spl. This enables loading the elf firmware in SPL and starting the remotecore. In order to start the core, there should be a file with path "/lib/firmware/j7-main-r5f0_0-fw" under filesystem of respective boot mode. Signed-off-by: Keert

[PATCH v2 7/9] include: configs: j721e_evm: Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0

2020-01-12 Thread Keerthy
Add env variables for mcu_r5fss0_core0 & main_r5fss0_core0 firmware loadaddr and name. Signed-off-by: Keerthy --- include/configs/j721e_evm.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h index 84518786c7..d3a9330069 10

[PATCH v2 9/9] configs: j721e_evm_r5: Enable R5F remoteproc support

2020-01-12 Thread Keerthy
Enable r5f remoteproc support in r5 defconfig so that r5s can be started in spl. Signed-off-by: Keerthy Signed-off-by: Lokesh Vutla --- configs/j721e_evm_r5_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/j721e_evm_r5_defconfig b/configs/j721e_evm_r5_defconfig index

[PATCH v2 8/9] configs: j721e_evm_r5: Add configs for environment in eMMC

2020-01-12 Thread Keerthy
From: Faiz Abbas Add config to save and read back environment from eMMC. Signed-off-by: Faiz Abbas Signed-off-by: Keerthy --- configs/j721e_evm_a72_defconfig | 3 +++ configs/j721e_evm_r5_defconfig | 2 ++ include/configs/j721e_evm.h | 6 ++ 3 files changed, 11 insertions(+) diff

Re: [PATCH v2 1/9] lib: elf: Move the generic elf loading/validating functions to lib

2020-01-17 Thread Keerthy
On 17/01/20 1:19 pm, Simon Goldschmidt wrote: On Fri, Jan 17, 2020 at 5:27 AM Lokesh Vutla wrote: Simon, On 13/01/20 11:24 AM, Keerthy wrote: Move the generic elf loading/validating functions to lib/ so that they can be re-used and accessed by code existing outside cmd. Signed-off-by

[U-Boot] [PATCH] board: ti: ks2_evm: Over ride spl_get_load_buffer function

2018-11-27 Thread Keerthy
like UART boot will need the address to be 0xc00 hence override the spl_get_load_buffer to have image_header address as CONFIG_SYS_TEXT_BASE aka 0xc00 Signed-off-by: Keerthy --- Boot tetsed on K2G and K2E evms for UART, MMC and SPI modes. board/ti/ks2_evm/board.c | 5 + 1 file

Re: [U-Boot] [PATCH] board: ti: ks2_evm: Over ride spl_get_load_buffer function

2018-12-04 Thread Keerthy
On Tuesday 27 November 2018 05:52 PM, Keerthy wrote: > Currently k2 spi boot is broken as the image header > is getting copied to an invalid memory location > > CONFIG_SYS_TEXT_BASE - sizeof (struct image_size) > which maps to 0xc00 - 0x40 = 0xbc0 being a reserved >

Re: [U-Boot] Please pull u-boot-dm

2018-12-04 Thread Keerthy
and then locally when I installed clang-7.0 from https://apt.llvm.org/ I > see that: > 5ca3927deff30458f5d5b384f6699f70b9509315 is the first bad commit > commit 5ca3927deff30458f5d5b384f6699f70b9509315 > Author: Keerthy > Date: Mon Nov 19 11:44:48 2018 +0530 > > co

Re: [U-Boot] Please pull u-boot-dm

2018-12-10 Thread Keerthy
On Tuesday 11 December 2018 06:34 AM, Simon Glass wrote: > Hi, > > On Tue, 4 Dec 2018 at 21:10, Keerthy wrote: >> >> >> >> On Friday 30 November 2018 08:25 PM, Tom Rini wrote: >>> On Thu, Nov 29, 2018 at 01:55:14PM -0700, Simon Glass wrote: >&g

[U-Boot] [RFC PATCH] common: fdt_support: Remove fdt_add_mem_rsv in fdt_shrink_to_minimum

2019-01-30 Thread Keerthy
-off-by: Keerthy --- I am sure there are better solutions so just wanted to know if there is one. common/fdt_support.c | 5 - 1 file changed, 5 deletions(-) diff --git a/common/fdt_support.c b/common/fdt_support.c index 42583e3ed8..2bb101e56e 100644 --- a/common/fdt_support.c +++ b/common

[U-Boot] [PATCH 1/5] driver: net: ti: cpsw-mdio: use phys_addr_t for mdio_base addr

2019-01-30 Thread Keerthy
From: Grygorii Strashko Use phys_addr_t for mdio_base address to avoid build warnings on arm64. Signed-off-by: Grygorii Strashko Signed-off-by: Keerthy --- drivers/net/ti/cpsw_mdio.c | 2 +- drivers/net/ti/cpsw_mdio.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a

[U-Boot] [PATCH 0/5] net: ethernet: ti: Introduce am654 gigabit eth switch subsystem driver

2019-01-30 Thread Keerthy
Add new driver for the TI AM65x SoC Gigabit Ethernet Switch subsystem (CPSW NUSS). It has two ports and provides Ethernet packet communication for the device and can be configured as an Ethernet switch. CPSW NUSS features: the Reduced Gigabit Media Independent Interface (RGMII), Reduced Media Indep

[U-Boot] [PATCH 2/5] net: ethernet: ti: Introduce am654 gigabit eth switch subsystem driver

2019-01-30 Thread Keerthy
. Signed-off-by: Grygorii Strashko Signed-off-by: Keerthy --- drivers/net/ti/Kconfig | 8 + drivers/net/ti/Makefile | 1 + drivers/net/ti/am65-cpsw-nuss.c | 834 3 files changed, 843 insertions(+) create mode 100644 drivers/net/ti/am65-cpsw

[U-Boot] [PATCH 4/5] arm64: dts: k3-am654-base-board: add mcu cpsw nuss pinmux and phy defs

2019-01-30 Thread Keerthy
From: Grygorii Strashko Add mcu cpsw nuss pinmux and phy defs required by cpsw. Signed-off-by: Grygorii Strashko Signed-off-by: Keerthy --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 59 1 file changed, 59 insertions(+) diff --git a/arch/arm/dts/k3-am654-base-board

[U-Boot] [PATCH 5/5] configs: am65x_evm_a53: enable networking

2019-01-30 Thread Keerthy
From: Grygorii Strashko Enable TI K3 AM65x CPSW NUSS driver. Signed-off-by: Grygorii Strashko Signed-off-by: Keerthy --- configs/am65x_evm_a53_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index

[U-Boot] [PATCH 3/5] arm64: dts: ti: k3-am65: add mcu cpsw node

2019-01-30 Thread Keerthy
From: Grygorii Strashko Add mcu cpsw and its components along with scm_conf node to have ethernet functional. Signed-off-by: Grygorii Strashko Signed-off-by: Keerthy --- arch/arm/dts/k3-am65.dtsi| 2 + arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 111

[U-Boot] [PATCH v2 3/5] arm64: dts: ti: k3-am65: add mcu cpsw node

2019-02-03 Thread Keerthy
From: Grygorii Strashko Add mcu cpsw and its components along with scm_conf node to have ethernet functional. Signed-off-by: Grygorii Strashko Signed-off-by: Keerthy Reviewed-by: Tom Rini --- Changes in v2: Added Tom's Reviewed-by arch/arm/dts/k3-am65

[U-Boot] [PATCH v2 0/5] net: ethernet: ti: Introduce am654 gigabit eth switch subsystem driver

2019-02-03 Thread Keerthy
cpsw nuss pinmux and phy defs configs: am65x_evm_a53: enable networking Keerthy (1): net: ethernet: ti: Introduce am654 gigabit eth switch subsystem driver arch/arm/dts/k3-am65.dtsi| 2 + arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 170 co

[U-Boot] [PATCH v2 1/5] driver: net: ti: cpsw-mdio: use phys_addr_t for mdio_base addr

2019-02-03 Thread Keerthy
From: Grygorii Strashko Use phys_addr_t for mdio_base address to avoid build warnings on arm64. Signed-off-by: Grygorii Strashko Signed-off-by: Keerthy Reviewed-by: Tom Rini --- Changes in v2: Added Tom's Reviewed-by drivers/net/ti/cpsw_mdio.c | 2 +- drivers/net/ti/cpsw_m

[U-Boot] [PATCH v2 2/5] net: ethernet: ti: Introduce am654 gigabit eth switch subsystem driver

2019-02-03 Thread Keerthy
Strashko Signed-off-by: Keerthy --- Changes in v2: * Removed the debug macros and replaced them with pr_err where necessory drivers/net/ti/Kconfig | 8 + drivers/net/ti/Makefile | 1 + drivers/net/ti/am65-cpsw-nuss.c | 794 3 files

[U-Boot] [PATCH v3 2/5] net: ethernet: ti: Introduce am654 gigabit eth switch subsystem driver

2019-02-03 Thread Keerthy
. Signed-off-by: Grygorii Strashko Signed-off-by: Keerthy --- Changes in v3: * Corrected $Author Changes in v2: * Removed the debug macros and replaced them with pr_err where necessory drivers/net/ti/Kconfig | 8 + drivers/net/ti/Makefile | 1 + drivers/net/ti

Re: [U-Boot] [PATCH v2 2/5] net: ethernet: ti: Introduce am654 gigabit eth switch subsystem driver

2019-02-03 Thread Keerthy
On 04/02/19 9:34 AM, Keerthy wrote: > Add new driver for the TI AM65x SoC Gigabit Ethernet Switch subsystem (CPSW > NUSS). It has two ports and provides Ethernet packet communication for the > device and can be configured as an Ethernet switch. CPSW NUSS features: the > Reduced G

[U-Boot] [PATCH v2 4/5] arm64: dts: k3-am654-base-board: add mcu cpsw nuss pinmux and phy defs

2019-02-03 Thread Keerthy
From: Grygorii Strashko Add mcu cpsw nuss pinmux and phy defs required by cpsw. Signed-off-by: Grygorii Strashko Signed-off-by: Keerthy Reviewed-by: Tom Rini --- Changes in v2: Added Tom's Reviewed-by arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 59 1

[U-Boot] [PATCH v2 5/5] configs: am65x_evm_a53: enable networking

2019-02-03 Thread Keerthy
From: Grygorii Strashko Enable TI K3 AM65x CPSW NUSS driver. Signed-off-by: Grygorii Strashko Signed-off-by: Keerthy Reviewed-by: Tom Rini --- Changes in v2: Added Tom's Reviewed-by configs/am65x_evm_a53_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/co

[U-Boot] [PATCH 0/2] lib: fdtdec: Couple of fies

2018-12-21 Thread Keerthy
Couple of fixes for fdtdec_get_addr_size and fdtdec_get_addr_size_fixed functions. Keerthy (2): lib: fdtdec: fdtdec_get_addr_size_fixed remove checks lib: fdtdec: fixup fdtdec_get_addr_size lib/fdtdec.c | 17 ++--- 1 file changed, 2 insertions(+), 15 deletions(-) -- 1.9.1

[U-Boot] [PATCH 1/2] lib: fdtdec: fdtdec_get_addr_size_fixed remove checks

2018-12-21 Thread Keerthy
With 8 bytes addressing even on 32 bit machines these checks are no longer valid. Remove them. Signed-off-by: Keerthy --- lib/fdtdec.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/lib/fdtdec.c b/lib/fdtdec.c index 6f8ec0d..18663ce 100644 --- a/lib/fdtdec.c +++ b/lib/fdtdec.c

<    1   2   3   4   5   6   >