[U-Boot] [PATCH 00/25] remoteproc: Add support for R5F and DSP processors

2019-08-28 Thread Lokesh Vutla
This series addds support loading and starting for the following remote processors: - ARM Cortex-R5F in lockstep and split mode - C66x DSP - C7x DSP Enable these remoteprocessor in AM654-evm and J721E evm. Kedar Chitnis (1): armv8: K3: j721e: Updated ddr address regions in MMU table Lokesh

[U-Boot] [PATCH 02/25] remoteproc: ops: Add elf section size as input parameter to device_to_virt api

2019-08-28 Thread Lokesh Vutla
Introduce a new parameter size that accepts elf section size to remoteproc ops callback device_to_virt(). This can enforce more checks on the elf section that is being loaded. Signed-off-by: Lokesh Vutla --- drivers/remoteproc/rproc-elf-loader.c | 3 ++- drivers/remoteproc/sandbox_testproc.c

Re: [U-Boot] [PATCH v2] arm: dts: Makefile: clean *dtb_HS

2019-08-16 Thread Lokesh Vutla
On 16/08/19 2:16 PM, suni...@techveda.org wrote: > From: Suniel Mahesh > > TI HS platforms generate *dtb_HS binary blobs and there is no > rule for cleanup. Added entry for cleanup in clean-files target. > > Signed-off-by: Suniel Mahesh Reviewed-by: Lokesh Vutla Thanks a

Re: [U-Boot] [PATCH] Makefile: clean *dtb_HS

2019-08-16 Thread Lokesh Vutla
On 16/08/19 12:32 PM, suni...@techveda.org wrote: > From: Suniel Mahesh > > All TI HS platforms generate HS images/binaries along with > the normal images. These *dtb_HS are generated in dts dir > and there is no rule for cleanup. Added entry for cleanup > in clean and distclean targets. > >

Re: [U-Boot] [PATCH] firmware: ti_sci: Parse all resource ranges even if some is not available

2019-08-05 Thread Lokesh Vutla
i > > Signed-off-by: Vignesh Raghavendra Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH] power: domain: ti-sci-power-domain: Add device ID info to get/set_device failure

2019-08-01 Thread Lokesh Vutla
: Nishanth Menon Signed-off-by: Lokesh Vutla --- drivers/power/domain/ti-sci-power-domain.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/power/domain/ti-sci-power-domain.c b/drivers/power/domain/ti-sci-power-domain.c index b9cd37b612..4c4351d2d9 100644 --- a/dri

Re: [U-Boot] [PATCH 1/2] configs: am65x_evm_a53: Disable K3_SYSTEM_CONTROLLER

2019-07-30 Thread Lokesh Vutla
On 30/07/19 9:48 PM, Tom Rini wrote: > On Tue, Jul 30, 2019 at 11:16:19AM -0500, Suman Anna wrote: >> Hi Lokesh, >> >> On 7/29/19 11:08 PM, Lokesh Vutla wrote: >>> >>> >>> On 29/07/19 10:18 PM, Suman Anna wrote: >>>> The

Re: [U-Boot] [PATCH 1/2] configs: am65x_evm_a53: Disable K3_SYSTEM_CONTROLLER

2019-07-29 Thread Lokesh Vutla
On 29/07/19 10:18 PM, Suman Anna wrote: > The K3 System Controller driver is used for loading and starting > the System Firmware, and is used only on R5 SPL. It need not be > enabled and built for the A53 U-Boot and SPL, so disable it from > both the GP and HS AM65x A53 defconfigs. > > While at

Re: [U-Boot] [PATCH] arm: dts: k3-am654-base-board: Fix cpsw_nuss power-domains property

2019-07-29 Thread Lokesh Vutla
for > each node") > Signed-off-by: Suman Anna Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH] spl_mmc: always use find_mmc_device() to get mmc handler

2019-07-25 Thread Lokesh Vutla
+Peng Hi Kever, On 25/07/19 3:10 PM, Kever Yang wrote: > Like cmd/mmc.c, the spl_mmc.c are using block driver interface > like blk_dread() to access mmc devices, we need to get the mmc device > handler by block driver interface so that we can always get correct > device number, eg. the alias may

Re: [U-Boot] [PATCH v2 05/12] armV7R: K3: am654: Allow using SPL BSS pre-relocation

2019-07-25 Thread Lokesh Vutla
Hi Simon, On 25/07/19 12:31 PM, Simon Goldschmidt wrote: > Hi Lokesh, > > thanks for following up on this. > > On Thu, Jul 25, 2019 at 6:36 AM Lokesh Vutla wrote: >> >> Hi Tom, >> >> On 20/07/19 9:21 PM, Tom Rini wrote: >>> On Fri, Jul 19, 2

Re: [U-Boot] [PATCH v2 05/12] armV7R: K3: am654: Allow using SPL BSS pre-relocation

2019-07-24 Thread Lokesh Vutla
Hi Tom, On 20/07/19 9:21 PM, Tom Rini wrote: > On Fri, Jul 19, 2019 at 07:29:37AM +0200, Simon Goldschmidt wrote: >> On Fri, Jul 19, 2019 at 2:29 AM Tom Rini wrote: >>> >>> On Tue, Jun 04, 2019 at 05:55:48PM -0500, Andreas Dannenberg wrote: >>> In order to be able to use more advanced

Re: [U-Boot] [PATCH v2 1/2] dm: core: device: switch off power domain after device removal

2019-07-23 Thread Lokesh Vutla
On 15/07/19 1:27 AM, Anatolij Gustschin wrote: > The power domain associated with a device is enabled when probing, > but currently the domain remains enabled when the device is removed. > Some boards started to disable power domains for selected devices > via custom board_quiesce_devices(), but

Re: [U-Boot] [PATCH] remoteproc: Fix potential build issues with SPL remoteproc

2019-07-21 Thread Lokesh Vutla
not selected. > > Fix this by replacing the existing precompiler macro usage with > CONFIG_IS_ENABLED. > > Fixes: ddf56bc7e3ef ("drivers: Introduce a simplified remoteproc framework") > Signed-off-by: Suman Anna Reviewed-by: L

Re: [U-Boot] [PATCH v4] spl: kconfig: separate sysreset and firmware drivers from misc

2019-07-16 Thread Lokesh Vutla
L build (and accordingly for TPL) since there are boards using > non-DM (non UCLASS_MISC) files from drivers/misc. Such boards don't > have CONFIG_SPL_MISC enabled, so cannot use this to include > drivers/misc into the SPL build. > > Signed-off-by: Simon Goldschmidt

Re: [U-Boot] [PATCH v2] arm: mach-keystone: Use appended original image size in image processing

2019-07-16 Thread Lokesh Vutla
ct. > > Read off the original size and report it back from the image post > processing stage. > > Signed-off-by: Andrew F. Davis Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH] arm: ti: boot: Increase system partition size

2019-07-16 Thread Lokesh Vutla
t want to make it more than 1 GiB, because we should > keep userdata partition big enough (for user files, like media etc.), > and eMMC size on BeagleBoard-X15 is only 3.5 GiB. > > Signed-off-by: Sam Protsenko Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh

Re: [U-Boot] [PATCH] arm: ti: boot: Remove legacy Android partitions

2019-07-16 Thread Lokesh Vutla
tion > > While at it, rename "reserved" partition to "uboot-env", as it's > actually stores U-Boot environment. > > Signed-off-by: Sam Protsenko Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh ___ U-Boot mailing list U-B

Re: [U-Boot] [PATCH 1/2] env: ti: Increase boot partition

2019-07-16 Thread Lokesh Vutla
gt; > Signed-off-by: Sam Protsenko Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 2/2] arm: am57xx: Allow bootm to load larger kernels

2019-07-16 Thread Lokesh Vutla
Signed-off-by: Sam Protsenko Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH] arm: mach-keystone: Use appended original image size in image processing

2019-07-15 Thread Lokesh Vutla
On 13/07/19 1:03 AM, Andrew F. Davis wrote: > When an image is signed/encrypted on K2 devices the image may get padded > to meet alignment requirements for the signature/encryption type. The > original size is appended as 4 bytes little-endian to the end of the > final image. > > Normally the

Re: [U-Boot] [PATCH v3] spl: kconfig: separate sysreset and firmware drivers from misc

2019-07-15 Thread Lokesh Vutla
On 16/07/19 1:06 AM, Simon Goldschmidt wrote: > This adds separate kconfig options for drivers/sysreset and > drivers/firmware. > > Up to now, CONFIG_SPL_DRIVERS_MISC_SUPPORT added drivers/misc to SPL > build but also added drivers/firmware and drivers/sysreset at the same > time. > > Since

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

2019-07-09 Thread Lokesh Vutla
On 09/07/19 12:05 PM, Keerthy wrote: > > > On 09/07/19 12:00 PM, Lokesh Vutla wrote: >> >> >> On 09/07/19 10:30 AM, Keerthy wrote: >>> From: Grygorii Strashko >>> >>> Enable TI K3 AM65x CPSW NUSS driver. >>> >>> Si

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

2019-07-09 Thread Lokesh Vutla
On 09/07/19 10:30 AM, Keerthy wrote: > From: Grygorii Strashko > > Enable TI K3 AM65x CPSW NUSS driver. > > Signed-off-by: Grygorii Strashko > Signed-off-by: Keerthy > Reviewed-by: Tom Rini > Acked-by: Joe Hershberger > --- > > Changes in v6: > > * Removed unused HEXDUMP config. > *

[U-Boot] [PATCH v3 08/16] board: ti: j721e: Add board support for j721e evm

2019-06-12 Thread Lokesh Vutla
Add board specific initialization for j721e evm Signed-off-by: Lokesh Vutla Signed-off-by: Jean-Jacques Hiblot Signed-off-by: Andreas Dannenberg --- arch/arm/mach-k3/Kconfig| 1 + board/ti/j721e/Kconfig | 55 +++ board/ti/j721e/Makefile | 8 +++ board/ti

[U-Boot] [PATCH v3 13/16] arm: dts: k3-j721e: Add initial support for common processor board

2019-06-12 Thread Lokesh Vutla
for this common processor board. Signed-off-by: Lokesh Vutla --- arch/arm/dts/Makefile | 1 + arch/arm/dts/k3-j721e-common-proc-board.dts | 63 + arch/arm/dts/k3-j721e-som-p0.dtsi | 29 ++ 3 files changed, 93 insertions(+) create mode 100644 arch

[U-Boot] [PATCH v3 09/16] board: ti: j721e: Enable fixing up msmc sram node

2019-06-12 Thread Lokesh Vutla
From: Suman Anna Create a ft_board_setup() api that gets called as part of DT fixup before jumping to kernel. In this ft_board_setup() call fdt_fixup_msmc_ram that update msmc sram node. Signed-off-by: Suman Anna Signed-off-by: Lokesh Vutla --- board/ti/j721e/evm.c | 14 ++ 1

[U-Boot] [PATCH v3 11/16] dt-bindings: pinctrl: k3: Introduce pinmux definitions for J721E

2019-06-12 Thread Lokesh Vutla
Add pinctrl macros for J721E SoC. These macro definitions are similar to that of AM6, but adding new definitions to avoid any naming confusions in the soc dts files. Signed-off-by: Lokesh Vutla Signed-off-by: Andreas Dannenberg --- include/dt-bindings/pinctrl/k3.h | 3 +++ 1 file changed, 3

[U-Boot] [PATCH v3 06/16] armv7R: K3: j721e: Load SYSFW binary and config from boot media

2019-06-12 Thread Lokesh Vutla
Signed-off-by: Lokesh Vutla --- arch/arm/mach-k3/j721e_init.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/mach-k3/j721e_init.c b/arch/arm/mach-k3/j721e_init.c index 5514dc963e..733e414654 100644 --- a/arch/arm/mach-k3/j721e_init.c +++ b/arch/arm/mach-k3

[U-Boot] [PATCH v3 14/16] arm: dts: k3-j721e: Add r5 specific dt support

2019-06-12 Thread Lokesh Vutla
Add initial support for dt that runs on r5. Signed-off-by: Lokesh Vutla Signed-off-by: Andreas Dannenberg --- arch/arm/dts/Makefile | 3 +- .../k3-j721e-common-proc-board-u-boot.dtsi| 75 ++ .../arm/dts/k3-j721e-r5-common-proc-board.dts | 141

[U-Boot] [PATCH v3 12/16] arm: dts: ti: Add Support for J721E SoC

2019-06-12 Thread Lokesh Vutla
Add initial SoC definition for J721E SoC. Kernel dts posted here: https://lore.kernel.org/lkml/20190522161921.20750-1...@ti.com/ Signed-off-by: Lokesh Vutla --- arch/arm/dts/k3-j721e-main.dtsi | 231 ++ arch/arm/dts/k3-j721e-mcu-wakeup.dtsi | 72 arch/arm

[U-Boot] [PATCH v3 15/16] configs: j721e_evm_r5: Add initial support

2019-06-12 Thread Lokesh Vutla
Add initial defconfig support for J721e that runs on R5. Signed-off-by: Lokesh Vutla --- configs/j721e_evm_r5_defconfig | 95 ++ 1 file changed, 95 insertions(+) create mode 100644 configs/j721e_evm_r5_defconfig diff --git a/configs/j721e_evm_r5_defconfig b

[U-Boot] [PATCH v3 16/16] configs: j721e_evm_a72: Add initial support

2019-06-12 Thread Lokesh Vutla
Add initial defconfig support for J721e that runs on A72. Signed-off-by: Lokesh Vutla --- configs/j721e_evm_a72_defconfig | 86 + 1 file changed, 86 insertions(+) create mode 100644 configs/j721e_evm_a72_defconfig diff --git a/configs/j721e_evm_a72_defconfig b

[U-Boot] [PATCH v3 07/16] armv8: K3: j721e: Add custom MMU support

2019-06-12 Thread Lokesh Vutla
the proper code. A separate table based on the current AM65x table is added for J721E SoCs, since the number of remote processors and their DDR usage will be different between the two SoC families. Signed-off-by: Suman Anna Signed-off-by: Lokesh Vutla --- arch/arm/mach-k3/arm64-mmu.c | 55

[U-Boot] [PATCH v3 10/16] mmc: am654_sdhci: Separate J721E compatible into 8bit and 4bit versions

2019-06-12 Thread Lokesh Vutla
for the 4 bit compatible instances. Also update the compatibles in k3-j721e-main.dtsi to avoid breaking boot with the new compatibles. Signed-off-by: Faiz Abbas Signed-off-by: Lokesh Vutla --- drivers/mmc/am654_sdhci.c | 114 -- 1 file changed, 71 insertions

[U-Boot] [PATCH v3 04/16] armv7R: K3: j721e: Store boot index from ROM

2019-06-12 Thread Lokesh Vutla
From: Andreas Dannenberg Obtain the boot index as left behind by the device boot ROM and store it in scratch pad SRAM for later use before it may get overwritten. Signed-off-by: Andreas Dannenberg --- arch/arm/mach-k3/j721e_init.c | 17 +++-- 1 file changed, 15 insertions(+), 2

[U-Boot] [PATCH v3 05/16] armv7R: K3: j721e: Shut down R5 core after ATF startup on A72

2019-06-12 Thread Lokesh Vutla
Populate the release_resources_for_core_shutdown() api with shutting down r5 cores so that it will by called just after jumping to ATF. Signed-off-by: Lokesh Vutla --- arch/arm/mach-k3/j721e_init.c | 57 +++ 1 file changed, 57 insertions(+) diff --git a/arch/arm

[U-Boot] [PATCH v3 02/16] armv7R: K3: j721e: Add support for boot device detection

2019-06-12 Thread Lokesh Vutla
a value at a particular address. Add support for reading this information and determining the boot media correctly. Signed-off-by: Lokesh Vutla Signed-off-by: Andreas Dannenberg Signed-off-by: Faiz Abbas --- arch/arm/mach-k3/include/mach/hardware.h | 4 ++ .../arm/mach-k3/include/mach

[U-Boot] [PATCH v3 03/16] armv7R: K3: j721e: Unlock all applicable control MMR registers

2019-06-12 Thread Lokesh Vutla
From: Andreas Dannenberg To access various control MMR functionality the registers need to be unlocked. Do that for all control MMR regions in the MCU and MAIN domains. We may want to go back later and limit the unlocking that's being done. Signed-off-by: Andreas Dannenberg ---

[U-Boot] [PATCH v3 00/16] arm: k3: arm64: Initial support for Texas Instrument's J721E Platform

2019-06-12 Thread Lokesh Vutla
Lokesh Vutla (10): arm: K3: j721e: Add basic support for J721E SoC definition armv7R: K3: j721e: Add support for boot device detection armv7R: K3: j721e: Shut down R5 core after ATF startup on A72 board: ti: j721e: Add board support for j721e evm dt-bindings: pinctrl: k3: Introduce pinmux

[U-Boot] [PATCH v3 01/16] arm: K3: j721e: Add basic support for J721E SoC definition

2019-06-12 Thread Lokesh Vutla
Management (DMSC) See J721E Technical Reference Manual (SPRUIL1, May 2019) for further details: http://www.ti.com/lit/pdf/spruil1 Add base support for J721E SoC Signed-off-by: Lokesh Vutla Signed-off-by: Andreas Dannenberg Signed-off-by: Nishanth Menon --- arch/arm/mach-k3/Kconfig | 12

Re: [U-Boot] [PATCH v2 02/16] armv7R: K3: j721e: Add support for boot device detection

2019-06-12 Thread Lokesh Vutla
On 13/06/19 3:01 AM, Andreas Dannenberg wrote: > Hi Lokesh, > > On Fri, Jun 07, 2019 at 07:31:41PM +0530, Lokesh Vutla wrote: >> J721E allows for booting from primary or backup boot media. >> Both media can be chosen individually based on switch settings. >>

[U-Boot] [PATCH v2 10/16] mmc: am654_sdhci: Separate J721E compatible into 8bit and 4bit versions

2019-06-07 Thread Lokesh Vutla
for the 4 bit compatible instances. Also update the compatibles in k3-j721e-main.dtsi to avoid breaking boot with the new compatibles. Signed-off-by: Faiz Abbas Signed-off-by: Lokesh Vutla --- drivers/mmc/am654_sdhci.c | 114 -- 1 file changed, 71 insertions

[U-Boot] [PATCH v2 07/16] armv8: K3: j721e: Add custom MMU support

2019-06-07 Thread Lokesh Vutla
the proper code. A separate table based on the current AM65x table is added for J721E SoCs, since the number of remote processors and their DDR usage will be different between the two SoC families. Signed-off-by: Suman Anna Signed-off-by: Lokesh Vutla --- arch/arm/mach-k3/arm64-mmu.c | 55

[U-Boot] [PATCH v2 04/16] armv7R: K3: j721e: Store boot index from ROM

2019-06-07 Thread Lokesh Vutla
From: Andreas Dannenberg Obtain the boot index as left behind by the device boot ROM and store it in scratch pad SRAM for later use before it may get overwritten. Signed-off-by: Andreas Dannenberg --- arch/arm/mach-k3/j721e_init.c | 17 +++-- 1 file changed, 15 insertions(+), 2

[U-Boot] [PATCH v2 06/16] armv7R: K3: j721e: Load SYSFW binary and config from boot media

2019-06-07 Thread Lokesh Vutla
Signed-off-by: Lokesh Vutla --- arch/arm/mach-k3/j721e_init.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/mach-k3/j721e_init.c b/arch/arm/mach-k3/j721e_init.c index 5514dc963e..733e414654 100644 --- a/arch/arm/mach-k3/j721e_init.c +++ b/arch/arm/mach-k3

[U-Boot] [PATCH v2 15/16] configs: j721e_evm_r5: Add initial support

2019-06-07 Thread Lokesh Vutla
Add initial defconfig support for J721e that runs on R5. Signed-off-by: Lokesh Vutla --- configs/j721e_evm_r5_defconfig | 95 ++ 1 file changed, 95 insertions(+) create mode 100644 configs/j721e_evm_r5_defconfig diff --git a/configs/j721e_evm_r5_defconfig b

[U-Boot] [PATCH v2 00/16] arm: k3: arm64: Initial support for Texas Instrument's J721E Platform

2019-06-07 Thread Lokesh Vutla
from boot media Faiz Abbas (1): mmc: am654_sdhci: Separate J721E compatible into 8bit and 4bit versions Lokesh Vutla (10): arm: K3: j721e: Add basic support for J721E SoC definition armv7R: K3: j721e: Add support for boot device detection armv7R: K3: j721e: Shut down R5 core after ATF

[U-Boot] [PATCH v2 05/16] armv7R: K3: j721e: Shut down R5 core after ATF startup on A72

2019-06-07 Thread Lokesh Vutla
Populate the release_resources_for_core_shutdown() api with shutting down r5 cores so that it will by called just after jumping to ATF. Signed-off-by: Lokesh Vutla --- arch/arm/mach-k3/j721e_init.c | 57 +++ 1 file changed, 57 insertions(+) diff --git a/arch/arm

[U-Boot] [PATCH v2 08/16] board: ti: j721e: Add board support for j721e evm

2019-06-07 Thread Lokesh Vutla
Add board specific initialization for j721e evm Signed-off-by: Lokesh Vutla Signed-off-by: Jean-Jacques Hiblot Signed-off-by: Andreas Dannenberg --- arch/arm/mach-k3/Kconfig| 1 + board/ti/j721e/Kconfig | 55 +++ board/ti/j721e/Makefile | 8 +++ board/ti

[U-Boot] [PATCH v2 13/16] arm: dts: k3-j721e: Add initial support for common processor board

2019-06-07 Thread Lokesh Vutla
for this common processor board. Signed-off-by: Lokesh Vutla --- arch/arm/dts/Makefile | 1 + arch/arm/dts/k3-j721e-common-proc-board.dts | 63 + arch/arm/dts/k3-j721e-som-p0.dtsi | 29 ++ 3 files changed, 93 insertions(+) create mode 100644 arch

[U-Boot] [PATCH v2 12/16] arm: dts: ti: Add Support for J721E SoC

2019-06-07 Thread Lokesh Vutla
Add initial SoC definition for J721E SoC. Kernel dts posted here: https://lore.kernel.org/lkml/20190522161921.20750-1...@ti.com/ Signed-off-by: Lokesh Vutla --- arch/arm/dts/k3-j721e-main.dtsi | 231 ++ arch/arm/dts/k3-j721e-mcu-wakeup.dtsi | 72 arch/arm

[U-Boot] [PATCH v2 16/16] configs: j721e_evm_a72: Add initial support

2019-06-07 Thread Lokesh Vutla
Add initial defconfig support for J721e that runs on A72. Signed-off-by: Lokesh Vutla --- configs/j721e_evm_a72_defconfig | 86 + 1 file changed, 86 insertions(+) create mode 100644 configs/j721e_evm_a72_defconfig diff --git a/configs/j721e_evm_a72_defconfig b

[U-Boot] [PATCH v2 14/16] arm: dts: k3-j721e: Add r5 specific dt support

2019-06-07 Thread Lokesh Vutla
Add initial support for dt that runs on r5. Signed-off-by: Lokesh Vutla Signed-off-by: Andreas Dannenberg --- arch/arm/dts/Makefile | 3 +- .../k3-j721e-common-proc-board-u-boot.dtsi| 75 ++ .../arm/dts/k3-j721e-r5-common-proc-board.dts | 141

[U-Boot] [PATCH v2 03/16] armv7R: K3: j721e: Unlock all applicable control MMR registers

2019-06-07 Thread Lokesh Vutla
From: Andreas Dannenberg To access various control MMR functionality the registers need to be unlocked. Do that for all control MMR regions in the MCU and MAIN domains. We may want to go back later and limit the unlocking that's being done. Signed-off-by: Andreas Dannenberg ---

[U-Boot] [PATCH v2 11/16] dt-bindings: pinctrl: k3: Introduce pinmux definitions for J721E

2019-06-07 Thread Lokesh Vutla
Add pinctrl macros for J721E SoC. These macro definitions are similar to that of AM6, but adding new definitions to avoid any naming confusions in the soc dts files. Signed-off-by: Lokesh Vutla Signed-off-by: Andreas Dannenberg --- include/dt-bindings/pinctrl/k3.h | 3 +++ 1 file changed, 3

[U-Boot] [PATCH v2 02/16] armv7R: K3: j721e: Add support for boot device detection

2019-06-07 Thread Lokesh Vutla
a value at a particular address. Add support for reading this information and determining the boot media correctly. Signed-off-by: Lokesh Vutla Signed-off-by: Andreas Dannenberg Signed-off-by: Faiz Abbas --- arch/arm/mach-k3/include/mach/hardware.h | 4 ++ .../arm/mach-k3/include/mach

[U-Boot] [PATCH v2 01/16] arm: K3: j721e: Add basic support for J721E SoC definition

2019-06-07 Thread Lokesh Vutla
Management (DMSC) See J721E Technical Reference Manual (SPRUIL1, May 2019) for further details: http://www.ti.com/lit/pdf/spruil1 Add base support for J721E SoC Signed-off-by: Lokesh Vutla Signed-off-by: Andreas Dannenberg Signed-off-by: Nishanth Menon --- arch/arm/mach-k3/Kconfig | 12

[U-Boot] [PATCH v2 09/16] board: ti: j721e: Enable fixing up msmc sram node

2019-06-07 Thread Lokesh Vutla
From: Suman Anna Create a ft_board_setup() api that gets called as part of DT fixup before jumping to kernel. In this ft_board_setup() call fdt_fixup_msmc_ram that update msmc sram node. Signed-off-by: Suman Anna Signed-off-by: Lokesh Vutla --- board/ti/j721e/evm.c | 14 ++ 1

[U-Boot] [PATCH v2 1/5] cmd: remoteproc: Add support for initializing devices individually

2019-06-07 Thread Lokesh Vutla
which when passed initializes only that specific core. If no id is passed, command will initializes all the cores which is compatible with the existing behaviour. Signed-off-by: Lokesh Vutla --- cmd/remoteproc.c | 33 ++--- 1 file changed, 18 insertions(+), 15 deletions

[U-Boot] [PATCH v2 3/5] remoteproc: tisci: add TI-SCI processor control helper functions

2019-06-07 Thread Lokesh Vutla
remote processors on the SoC. The common macros required by the R5 remoteproc driver were also added. The remoteproc drivers are expected to manage the life-cycle of their ti_sci_proc_dev local structures. Signed-off-by: Lokesh Vutla Signed-off-by: Suman Anna --- drivers/remoteproc

[U-Boot] [PATCH v2 5/5] remoteproc: k3_rproc: Rename to ti_k3_arm64_rproc

2019-06-07 Thread Lokesh Vutla
k3_rproc driver is specifically meant for controlling an arm64 core using TISCI protocol. So rename the driver, Kconfig symbol, compatible and functions accordingly. While at it drop this remoteproc selection for a53 defconfig. Signed-off-by: Lokesh Vutla --- configs/am65x_evm_a53_defconfig

[U-Boot] [PATCH v3 8/9] power: domain: ti_sci_power_domains: Add support for exclusive and shared access

2019-06-07 Thread Lokesh Vutla
for getting this information from DT by increasing the power-domain cells to 2. For keeping the DT backward compatibility intact, defaulting the device permissions to set the exclusive flag set. In this case the power-domain-cells is 1. Signed-off-by: Lokesh Vutla --- drivers/power/domain/ti-sci

[U-Boot] [PATCH v3 9/9] arm: dts: k3-am654: Update power-domains property for each node

2019-06-07 Thread Lokesh Vutla
Update the power-domain-cells to 2 and add the permissions to each node. Mark the following nodes accessed by r5 as shared: - DDR node - main uart 0 Signed-off-by: Lokesh Vutla --- arch/arm/dts/k3-am65-main.dtsi | 10 +- arch/arm/dts/k3-am65-mcu.dtsi| 2

[U-Boot] [PATCH v2 2/5] cmd: remoteproc: Allow list command to print the probed devices

2019-06-07 Thread Lokesh Vutla
'rproc list' is currently allowed only after probing all the available remoteproc devices. Given that 'rproc init' is updated to probe and initialize devices individually, allow the 'rproc list' command to print all probed devices at any point. Signed-off-by: Lokesh Vutla --- cmd/remoteproc.c

[U-Boot] [PATCH v2 4/5] remoteproc: k3_rproc: Update the driver to use ti_sci_proc helpers

2019-06-07 Thread Lokesh Vutla
Update the k3_rproc driver to use the generic ti_sci_proc helper apis which simplifies the driver a bit. Signed-off-by: Lokesh Vutla --- drivers/remoteproc/k3_rproc.c | 79 ++- 1 file changed, 31 insertions(+), 48 deletions(-) diff --git a/drivers/remoteproc

[U-Boot] [PATCH v2 0/5] remoteproc: cleanup k3_rpoc driver

2019-06-07 Thread Lokesh Vutla
. - Rebased on top of latest master Lokesh Vutla (5): cmd: remoteproc: Add support for initializing devices individually cmd: remoteproc: Allow list command to print the probed devices remoteproc: tisci: add TI-SCI processor control helper functions remoteproc: k3_rproc: Update the driver to use

[U-Boot] [PATCH v3 7/9] dt-bindings: ti_sci_pm_domains: Add support for exclusive and shared access

2019-06-07 Thread Lokesh Vutla
for getting this information from DT by increasing the power-domain cells to 2. Signed-off-by: Lokesh Vutla --- doc/device-tree-bindings/power/ti,sci-pm-domain.txt | 11 +-- include/dt-bindings/soc/ti,sci_pm_domain.h | 9 + 2 files changed, 18 insertions(+), 2 deletions

[U-Boot] [PATCH v3 5/9] armv7R: k3: Release all the exclusive devices

2019-06-07 Thread Lokesh Vutla
Release all the exclusive devices held by SPL. Signed-off-by: Lokesh Vutla --- arch/arm/mach-k3/common.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-k3/common.c b/arch/arm/mach-k3/common.c index ee84d44de8..4e7fe2076c 100644 --- a/arch/arm/mach-k3/common.c +++ b/arch

[U-Boot] [PATCH v3 6/9] power-domain: Add private data to power domain

2019-06-07 Thread Lokesh Vutla
Certain drivers want to attach private data corresponding to each power domain. This data might be specific be to the drvier. So add a priv entry into the power_domain structure. Signed-off-by: Lokesh Vutla --- include/power-domain.h | 15 ++- 1 file changed, 2 insertions(+), 13

[U-Boot] [PATCH v3 4/9] armv7R: K3: am654: Shut down R5 core after ATF startup on A53

2019-06-07 Thread Lokesh Vutla
the R5 cores back online if desired. Signed-off-by: Andreas Dannenberg Signed-off-by: Lokesh Vutla --- arch/arm/mach-k3/am6_init.c | 62 +++ arch/arm/mach-k3/common.c | 6 ++- arch/arm/mach-k3/include/mach/sys_proto.h | 2 +- 3 files changed

[U-Boot] [PATCH v3 3/9] firmware: ti_sci: Add a command for releasing all exclusive devices

2019-06-07 Thread Lokesh Vutla
. So add a command that releases all the exclusive devices that is acquired by the current host. This should be used with utmost care and can be called only at the end of the execution. Signed-off-by: Lokesh Vutla --- drivers/firmware/ti_sci.c | 75 ++ include

[U-Boot] [PATCH v3 2/9] firmware: ti_sci: Add processor shutdown API method

2019-06-07 Thread Lokesh Vutla
From: Andreas Dannenberg Add and expose a new processor shutdown API that wraps the two TISCI messages involved in initiating a core shutdown. The API will first queue a message to have the DMSC wait for a certain processor boot status to happen followed by a message to trigger the actual

[U-Boot] [PATCH v3 1/9] firmware: ti_sci: Allow for device shared and exclusive requests

2019-06-07 Thread Lokesh Vutla
will be nacked by sysfw. Current tisci driver enables this flag for every device requests. But this may not be true for all the devices. So provide a separate commands in driver for exclusive and shared device requests. Signed-off-by: Lokesh Vutla --- drivers/firmware/ti_sci.c | 25

[U-Boot] [PATCH v3 0/9] arm: k3: Allow for exclusive and shared device requests

2019-06-07 Thread Lokesh Vutla
for releasing exclusive devices before shutdown - Rebased on top of AM65x EEPROM support: https://patchwork.ozlabs.org/project/uboot/list/?series=111847 Andreas Dannenberg (2): firmware: ti_sci: Add processor shutdown API method armv7R: K3: am654: Shut down R5 core after ATF startup on A53 Lokesh

Re: [U-Boot] [PATCH v7 11/15] mmc: sdhci: Add support for HOST_CONTROL2 and setting UHS timings

2019-06-06 Thread Lokesh Vutla
Reviewed-by: Tom Rini > Tested-by: Lokesh Vutla This is causing build failure for the following defconfig: xilinx_zynqmp_zcu104_revA_defconfig ➜ u-boot git:(master) v78make xilinx_zynqmp_zcu104_revA_defconfig HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o YACCscripts/k

Re: [U-Boot] [PATCH v3 00/18] Add EEPROM-based board detect support for TI K3 SoCs

2019-06-05 Thread Lokesh Vutla
SFW. > Step 6 & beyond) Various rproc patches, etc. > tested this series on AM654 evm using SD boot. FWIW: Tested-by: Lokesh Vutla Thanks and regards, Lokesh ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v2 00/12] System Firmware Loader for TI K3 family SoCs

2019-06-05 Thread Lokesh Vutla
es on AM654 evm using SD boot. FWIW: Tested-by: Lokesh Vutla > > I have not yet included support for TI's newest K3 family J721E SoC > which Lokesh posted an initial patch series [5] for due to the > complex dependencies of all the different series we have currently > posted/pe

Re: [U-Boot] [PATCH v6 00/15] Add Support for eMMC in Am65x-evm

2019-06-04 Thread Lokesh Vutla
On 04/06/19 11:57 PM, Andreas Dannenberg wrote: > On Tue, Jun 04, 2019 at 09:32:21PM +0530, Lokesh Vutla wrote: >> >> >> On 04/06/19 6:46 PM, Faiz Abbas wrote: >>> Add Support for eMMC in TI's AM65x-evm. The series starts >>> by syncing the sdhci0

Re: [U-Boot] [PATCH v6 00/15] Add Support for eMMC in Am65x-evm

2019-06-04 Thread Lokesh Vutla
line wrapping in patch 8. Thanks for the quick update. For the entire series: Tested-by: Lokesh Vutla Thanks and regards, Lokesh ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v5 01/15] arm64: dts: k3: Sync sdhci0 node from kernel and change driver name

2019-06-03 Thread Lokesh Vutla
On 29/05/19 3:15 PM, Faiz Abbas wrote: > Sync the sdhci0 node from kernel. This changes the compatible that is > required to be there in the driver. Change the same for the SD card node > which is not yet supported in kernel. This also syncs the main_pmx0 node > as a side effect. > > Also

Re: [U-Boot] [PATCH 1/7] clk: add support for clk_is_match()

2019-06-02 Thread Lokesh Vutla
On 15/05/19 7:44 PM, Sekhar Nori wrote: > Add support for clk_is_match() which is required to > know if two clock pointers point to the same exact > physical clock. > > Signed-off-by: Sekhar Nori Reviewed-by: Lokesh Vutla Thanks and

Re: [U-Boot] [PATCH 2/7] dm: core: add support for getting register address and size

2019-06-02 Thread Lokesh Vutla
d some test cases under test/dm/test-fdt.c Other than that: Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh > --- > drivers/core/fdtaddr.c | 17 + > drivers/core/read.c| 20 > include/dm/fdtaddr.h | 18 +

Re: [U-Boot] [PATCH v3 2/7] remoteproc: fix function headers

2019-06-02 Thread Lokesh Vutla
On 31/05/19 6:41 PM, Fabien Dessenne wrote: > Add full function comment headers. > Fix rproc_is_initialized() return value description. > > Signed-off-by: Fabien Dessenne Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh > --- > include/

Re: [U-Boot] [PATCH v3 3/7] remoteproc: add device_to_virt ops

2019-06-02 Thread Lokesh Vutla
On 31/05/19 6:41 PM, Fabien Dessenne wrote: > Introduce the device_to_virt function to allow translation between > device address (remote processor view) and virtual address (main > processor view). > > Signed-off-by: Loic Pallardy > Signed-off-by: Fabien Dessenne Reviewe

Re: [U-Boot] [PATCH v3 4/7] remoteproc: add elf file load support

2019-06-02 Thread Lokesh Vutla
valid */ > +int rproc_elf32_load_image(struct udevice *dev, unsigned long addr) > +{ > + Elf32_Ehdr *ehdr; /* Elf header structure pointer */ > + Elf32_Phdr *phdr; /* Program header structure pointer */ > + const struct dm_rproc_ops *ops; > + unsigned int i; > + I would prefer to call rproc_elf32_sanity_check() here and reduce the burden on user. It's my preference and no strong objections. Other than that: Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH 5/5] remoteproc: k3_rproc: Rename to ti_k3_arm64_rproc

2019-05-28 Thread Lokesh Vutla
k3_rproc driver is specifically meant for controlling an arm64 core using TISCI protocol. So rename the driver, Kconfig symbol, compatible and functions accordingly. While at it drop this remoteproc selection for a53 defconfig. Signed-off-by: Lokesh Vutla --- configs/am65x_evm_a53_defconfig

[U-Boot] [PATCH 2/5] cmd: remoteproc: Allow list command to print the probed devices

2019-05-28 Thread Lokesh Vutla
'rproc list' is currently allowed only after probing all the available remoteproc devices. Given that 'rproc init' is updated to probe and initialize devices individually, allow the 'rproc list' command to print all probed devices at any point. Signed-off-by: Lokesh Vutla --- cmd/remoteproc.c

[U-Boot] [PATCH 4/5] remoteproc: k3_rproc: Update the driver to use ti_sci_proc helpers

2019-05-28 Thread Lokesh Vutla
Update the k3_rproc driver to use the generic ti_sci_proc helper apis which simplifies the driver a bit. Signed-off-by: Lokesh Vutla --- drivers/remoteproc/k3_rproc.c | 79 ++- 1 file changed, 31 insertions(+), 48 deletions(-) diff --git a/drivers/remoteproc

[U-Boot] [PATCH 3/5] remoteproc: tisci: add TI-SCI processor control helper functions

2019-05-28 Thread Lokesh Vutla
remote processors on the SoC. The common macros required by the R5 remoteproc driver were also added. The remoteproc drivers are expected to manage the life-cycle of their ti_sci_proc_dev local structures. Signed-off-by: Lokesh Vutla Signed-off-by: Suman Anna --- drivers/remoteproc

[U-Boot] [PATCH 1/5] cmd: remoteproc: Add support for initializing devices individually

2019-05-28 Thread Lokesh Vutla
which when passed initializes only that specific core. If no id is passed, command will initializes all the cores which is compatible with the existing behaviour. Signed-off-by: Lokesh Vutla --- cmd/remoteproc.c | 23 ++- 1 file changed, 18 insertions(+), 5 deletions(-) diff

[U-Boot] [PATCH 0/5] remoteproc: cleanup k3_rpoc driver

2019-05-28 Thread Lokesh Vutla
, c66x and c7x) drivers for J721e SoC. This series also updates the 'rproc init' to probe and init devices individually. Sandbox test for the 'rpoc init' update: https://pastebin.ubuntu.com/p/tBSp95sKsC/ Lokesh Vutla (5): cmd: remoteproc: Add support for initializing devices individually cmd

Re: [U-Boot] [PATCH v2 4/7] remoteproc: add elf file load support

2019-05-28 Thread Lokesh Vutla
On 27/05/19 5:53 PM, Fabien Dessenne wrote: > The current implementation supports only binary file load. > Add helpers to support ELF format (sanity check, and load). > Note that since an ELF image is built for the remote processor, the load > function uses the device_to_virt ops to translate

[U-Boot] [PATCH 09/14] dt-bindings: pinctrl: k3: Introduce pinmux definitions for J721E

2019-05-22 Thread Lokesh Vutla
Add pinctrl macros for J721E SoC. These macro definitions are similar to that of AM6, but adding new definitions to avoid any naming confusions in the soc dts files. Signed-off-by: Lokesh Vutla Signed-off-by: Andreas Dannenberg --- include/dt-bindings/pinctrl/k3.h | 3 +++ 1 file changed, 3

[U-Boot] [PATCH 11/14] arm: dts: k3-j721e: Add initial support for common processor board

2019-05-22 Thread Lokesh Vutla
for this common processor board. Signed-off-by: Lokesh Vutla --- arch/arm/dts/Makefile | 1 + arch/arm/dts/k3-j721e-common-proc-board.dts | 64 + arch/arm/dts/k3-j721e-som-p0.dtsi | 29 ++ 3 files changed, 94 insertions(+) create mode 100644 arch

[U-Boot] [PATCH 10/14] arm: dts: ti: Add Support for J721E SoC

2019-05-22 Thread Lokesh Vutla
Add initial SoC definition for J721E SoC. Kernel dts posted here: https://lore.kernel.org/lkml/20190522161921.20750-1...@ti.com/ Signed-off-by: Lokesh Vutla --- arch/arm/dts/k3-j721e-main.dtsi | 231 ++ arch/arm/dts/k3-j721e-mcu-wakeup.dtsi | 72 arch/arm

[U-Boot] [PATCH 13/14] configs: j721e_evm_r5: Add initial support

2019-05-22 Thread Lokesh Vutla
Add initial defconfig support for J721e that runs on R5. Signed-off-by: Lokesh Vutla --- configs/j721e_evm_r5_defconfig | 85 ++ 1 file changed, 85 insertions(+) create mode 100644 configs/j721e_evm_r5_defconfig diff --git a/configs/j721e_evm_r5_defconfig b

[U-Boot] [PATCH 08/14] mmc: am654_sdhci: Separate J721E compatible into 8bit and 4bit versions

2019-05-22 Thread Lokesh Vutla
for the 4 bit compatible instances. Also update the compatibles in k3-j721e-main.dtsi to avoid breaking boot with the new compatibles. Signed-off-by: Faiz Abbas Signed-off-by: Lokesh Vutla --- drivers/mmc/am654_sdhci.c | 114 -- 1 file changed, 71 insertions

[U-Boot] [PATCH 06/14] armv7R: K3: j721e: Shut down R5 core after ATF startup on A72

2019-05-22 Thread Lokesh Vutla
Populate the release_resources_for_core_shutdown() api with shutting down r5 cores so that it will by called just after jumping to ATF. Signed-off-by: Lokesh Vutla --- arch/arm/mach-k3/j721e_init.c | 57 +++ 1 file changed, 57 insertions(+) diff --git a/arch/arm

[U-Boot] [PATCH 00/14] arm: k3: arm64: Initial support Texas Instrument's J721E Platform

2019-05-22 Thread Lokesh Vutla
Lokesh Vutla (10): arm: K3: j721e: Add basic support for J721E SoC definition armV7R: K3: j721e: Add support for boot device detection armv7R: K3: j721e: Shut down R5 core after ATF startup on A72 board: ti: j721e: Add board support for j721e evm dt-bindings: pinctrl: k3: Introduce pinmux

<    3   4   5   6   7   8   9   10   11   12   >