Re: [PATCH 1/2] arm: mach-k3: am625: copy bootindex to OCRAM for main domain SPL

2024-03-04 Thread Vignesh Raghavendra
On 05/03/24 01:57, Bryan Brattlof wrote: > Hey Vignesh! > > On March 4, 2024 thus sayeth Vignesh Raghavendra: >> Hi Wadim, >> >> On 26/02/24 19:00, Wadim Egorov wrote: >>> Texas Instruments has begun enabling security settings on the SoCs it >>&g

Re: [PATCH 1/2] arm: mach-k3: am625: copy bootindex to OCRAM for main domain SPL

2024-03-03 Thread Vignesh Raghavendra
Hi Wadim, On 26/02/24 19:00, Wadim Egorov wrote: > Texas Instruments has begun enabling security settings on the SoCs it > produces to instruct ROM and TIFS to begin protecting the Security > Management Subsystem (SMS) from other binaries we load into the chip by > default. > > One way ROM and

Re: [PATCH] arm: dts: k3-am625-verdin-r5: Change CPU frequency to 1000MHz

2024-02-19 Thread Vignesh Raghavendra
On 19/02/24 18:04, Vitor Soares wrote: > From: Vitor Soares > > The same U-Boot binary is compatible with multiple Verdin AM62 board > variants. However, some of the SoC models can only operate at a maximum > speed of 1 GHz. > > Previously, the boards with lower-speed grades were running at

Re: [PATCH 1/3] board: ti: common: add rtc setup to common folder

2023-11-07 Thread Vignesh Raghavendra
On 08/11/23 04:51, Bryan Brattlof wrote: > All of the starter kit boards for the am62xxx extended family utilize > the same 32k crystal oscillator for a more accurate clock for the RTC > instance. Add the setup the clock mux and debounce configuration to the > common board directory so the

Re: Question about boot failure of AM64-SK

2023-09-24 Thread Vignesh Raghavendra
Hi, On 21/09/23 21:52, Masahiro Yamada wrote: > On Fri, Sep 22, 2023 at 12:03 AM Masahiro Yamada wrote: >> >> Hi. >> >> I am seeing a boot failure on AM64-SK. >> >> >> I got the following error in SPL of the main core. >> Do you have any clue? > > > > As a side-topic, I downloaded a prebuilt

Re: Question about boot failure of AM64-SK

2023-09-24 Thread Vignesh Raghavendra
Hi Masahiro, On 21/09/23 20:33, Masahiro Yamada wrote: > Hi. [...] > spl: mmc boot mode: fs > Found FIT > Error reading cluster > fit read sector 0, sectors=985528, dst=, count=18446744073709551615, > size=0xf09b8 > SPL: failed to boot from all boot devices > ### ERROR ### Please RESET the board

[PATCH] arm: mach-k3: am62a7_init: Open up FSS_DAT_REG3 firewall

2023-07-02 Thread Vignesh Raghavendra
-off-by: Vignesh Raghavendra --- arch/arm/mach-k3/am62a7_init.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/mach-k3/am62a7_init.c b/arch/arm/mach-k3/am62a7_init.c index 1f51b0408969..8ac834cffdf9 100644 --- a/arch/arm/mach-k3/am62a7_init.c +++ b/arch/arm/mach-k3

[PATCH] common: spl: Warn about overflow of SRAM stack

2023-06-06 Thread Vignesh Raghavendra
If early stack usage is exactly same as SIZE_LIMIT_PROVIDE_STACK, then its most likely to have overflowed beyond this limit and corrupted any regions beyond stack. Warn about this to the user. Signed-off-by: Vignesh Raghavendra --- I found this useful when debugging slient corruption of code

[PATCH] configs: am64x_evm_*_defconfig: Enable High Secure device support

2023-06-03 Thread Vignesh Raghavendra
Enable CONFIG_TI_SECURE_DEVICE to support booting High Secure(HS) variants of AM64x SoC. Signed-off-by: Vignesh Raghavendra --- configs/am64x_evm_a53_defconfig | 1 + configs/am64x_evm_r5_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/am64x_evm_a53_defconfig b/configs

Re: [PATCH v2 03/10] arm: K3: Add basic support for J784S4 SoC definition

2023-05-08 Thread Vignesh Raghavendra
[...] On 21/03/23 19:40, Hari Nagalla wrote: > default 0x43c3f290 if SOC_K3_AM62A7 && CPU_V7R > @@ -172,7 +175,7 @@ config K3_ATF_LOAD_ADDR > > config K3_DM_FW > bool "Separate DM firmware image" > - depends on SPL && CPU_V7R && (SOC_K3_J721E || SOC_K3_J721S2 || > SOC_K3_AM625

Re: [PATCH v2 08/10] soc: ti: k3-socinfo: Add entry for J784S4 SoC

2023-05-08 Thread Vignesh Raghavendra
On 21/03/23 19:40, Hari Nagalla wrote: > Add support for J784S4 SoC Identification. > > Signed-off-by: Hari Nagalla > --- > drivers/soc/soc_ti_k3.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/soc/soc_ti_k3.c b/drivers/soc/soc_ti_k3.c > index 8af0ac7051..caf8db9574

Re: [PATCH v2 2/3] Kconfig: j721s2: Change K3_MCU_SCRATCHPAD_BASE to non firewalled region

2023-05-07 Thread Vignesh Raghavendra
On 08/05/23 10:21, Manorit Chawdhry wrote: > Hi Nishanth, > > On 08:45-20230505, Nishanth Menon wrote: >> Manorit, >> >> On 20:59-20230504, Tom Rini wrote: >>> On Thu, May 04, 2023 at 11:07:07AM +0530, Manorit Chawdhry wrote: >>> On K3 HS-SE devices all the firewalls are locked by default

[PATCH] configs: am62ax_evm_a53_defconfig: Enable YMODEM support at A53 SPL

2023-05-07 Thread Vignesh Raghavendra
This is required for UART boot flow where u-boot.img needs to be downloaded via YMODEM. Signed-off-by: Vignesh Raghavendra --- configs/am62ax_evm_a53_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am62ax_evm_a53_defconfig b/configs/am62ax_evm_a53_defconfig index

Re: [PATCH v1 2/6] video: bridge: add Solomon SSD2825 DSI/LVDS driver

2023-04-20 Thread Vignesh Raghavendra
On 20/04/23 22:02, Svyatoslav Ryhel wrote: ..] > +static int ssd2825_spi_write(struct udevice *dev, int reg, > +const void *buf, int flags) > +{ > + struct spi_slave *slave = dev_get_parent_priv(dev); > + u8 command[2]; >

[PATCH] arm: mach-k3: common: Default to non fitImage boot on HS-FS

2023-04-20 Thread Vignesh Raghavendra
Allow non fitImage bootflow on Field Securable (HS-FS) devices in addition to GP, force fitImage boot only on Security enforced (HS-SE) devices where signed images are necessary to maintain chain of trust. Signed-off-by: Vignesh Raghavendra --- arch/arm/mach-k3/common.c | 4 ++-- 1 file changed

[PATCH] arm: mach-k3: Workaround errata ID i2331

2023-04-06 Thread Vignesh Raghavendra
() in case of cold boot in order to trigger warm reset. This needs enabling SYSRESET driver in R5 SPL to enable TI SCI reset driver. Signed-off-by: Nitin Yadav Signed-off-by: Vignesh Raghavendra --- arch/arm/mach-k3/am642_init.c | 33 + configs/am64x_evm_r5_defconfig

Re: [PATCH V6 08/13] cmd: bmp: Split bmp commands and functions

2023-04-06 Thread Vignesh Raghavendra
Hi Nikhil, On 06/04/23 11:57, Nikhil M Jain wrote: >>> +struct bmp_image *gunzip_bmp(unsigned long addr, unsigned long *lenp, >>> +    void **alloc_addr) >>> +{ >>> +   void *dst; >>> +   unsigned long len; >>> +   struct bmp_image *bmp; >>> + >> >> if

[PATCH] board: ti: am64x: Add support for AM64B SK

2023-04-06 Thread Vignesh Raghavendra
the board same as an AM64x SK. Signed-off-by: Judith Mendez Acked-by: Andrew Davis Signed-off-by: Vignesh Raghavendra --- board/ti/am64x/evm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/board/ti/am64x/evm.c b/board/ti/am64x/evm.c index c88139ac7acc..9aead2bc3

[PATCH] dma: ti: k3-udma: Fix channel hang on teardown

2023-03-07 Thread Vignesh Raghavendra
Failures seen when downloading multiple files one after the other on AM64/AM62 SoCs. Fixes: 9a92851c33e8 ("dma: ti: k3-udma: Add BCDMA and PKTDMA support") Reported-by: Nishanth Menon Signed-off-by: Vignesh Raghavendra --- drivers/dma/ti/k3-udma.c | 2 +- 1 file changed, 1 insertion(+),

Re: [EXTERNAL] Re: [PATCH 3/9] arm: dts: k3-am62-main: Add device tree node for TIDSS

2023-01-17 Thread Vignesh Raghavendra
Hi Nikhil, On 17/01/23 18:49, Tom Rini wrote: > On Tue, Jan 17, 2023 at 10:09:00AM +0530, Nikhl M Jain wrote: >> Hi, Tom >> >> On 13/01/23 20:13, Tom Rini wrote: >>> On Fri, Jan 13, 2023 at 01:59:21PM +0530, Nikhil M Jain wrote: >>> Add device tree node which includes the register

Re: [PATCH] configs: Increase malloc size after relocation

2023-01-11 Thread Vignesh Raghavendra
On 11/01/23 11:34, Neha Malcom Francis wrote: > Current default size of 0x10 is not capable of getting the FIT > buffer during boot when transitioning to using binman generated boot > images for certain K3 devices, so increase it to 0x40. Since A72 SPL > is coming after relocation to

Re: [PATCH 04/12] drivers: dma: Add support for J784S4

2022-12-20 Thread Vignesh Raghavendra
On 20/11/22 00:29, Hari Nagalla wrote: > diff --git a/drivers/dma/ti/Makefile b/drivers/dma/ti/Makefile > index 6807eb8e8b..bd4ce68d9c 100644 > --- a/drivers/dma/ti/Makefile > +++ b/drivers/dma/ti/Makefile > @@ -8,3 +8,4 @@ k3-psil-data-$(CONFIG_SOC_K3_J721E) += k3-psil-j721e.o >

Re: [PATCH 016/347] FogBugz #516535: Fix QSPI write issues

2022-10-25 Thread Vignesh Raghavendra
Hi, On 30/08/22 11:50 am, Jit Loon Lim wrote: > From: Chee Hong Ang > > QSPI driver perform chip select on every flash read/write > access. The driver need to disable/enable the QSPI controller > while performing chip select. This may cause some data lost > especially the QSPI controller is

[PATCH] firmware: ti_sci_static_data: Make file board agnostic

2022-06-15 Thread Vignesh Raghavendra
Static DMA channel data for R5 SPL is mostly board agnostic so use SOC configs instead of EVM specific config to ease adding new board support. Drop J7200 EVM specific settings as its same as J721e Signed-off-by: Vignesh Raghavendra --- drivers/firmware/ti_sci_static_data.h | 42

[PATCH v2 09/12] board: ti: Introduce the basic files to support AM62 SK board

2022-05-25 Thread Vignesh Raghavendra
Signed-off-by: Nishanth Menon Signed-off-by: Vignesh Raghavendra --- arch/arm/mach-k3/Kconfig | 1 + board/ti/am62x/Kconfig | 59 board/ti/am62x/Makefile | 8 ++ board/ti/am62x/evm.c | 39 ++ 4 files changed, 107

[PATCH v2 10/12] arm: dts: Add support for AM62-SK

2022-05-25 Thread Vignesh Raghavendra
-by: Vignesh Raghavendra --- arch/arm/dts/Makefile |3 + arch/arm/dts/k3-am625-r5-sk.dts| 140 ++ arch/arm/dts/k3-am625-sk-u-boot.dtsi | 100 + arch/arm/dts/k3-am625-sk.dts | 150 ++ arch/arm/dts/k3-am62x-sk-ddr4-1600MTs.dtsi | 2189

[PATCH v2 08/12] arm: dts: Introduce base AM62 SoC dtsi files

2022-05-25 Thread Vignesh Raghavendra
From: Suman Anna Introduce the basic AM62 SoC description dtsi files describing most peripherals as per kernel dts. Signed-off-by: Gowtham Tammana Signed-off-by: Suman Anna Signed-off-by: Vignesh Raghavendra --- arch/arm/dts/k3-am62-ddr.dtsi| 11 + arch/arm/dts/k3-am62-main.dtsi

[PATCH v2 12/12] doc: ti: Add readme for AM62x SK

2022-05-25 Thread Vignesh Raghavendra
Add info of boot flow and build steps for AM62x SK. Signed-off-by: Vignesh Raghavendra --- doc/board/ti/am62x_sk.rst | 231 ++ doc/board/ti/index.rst| 1 + 2 files changed, 232 insertions(+) create mode 100644 doc/board/ti/am62x_sk.rst diff --git

[PATCH v2 11/12] configs: Add configs for AM62x SK

2022-05-25 Thread Vignesh Raghavendra
Signed-off-by: Vignesh Raghavendra --- board/ti/am62x/MAINTAINERS | 8 +++ configs/am62x_evm_a53_defconfig | 71 + configs/am62x_evm_r5_defconfig | 91 +++ include/configs/am62x_evm.h | 106 4 files changed, 276

[PATCH v2 07/12] firmware: ti_sci_static_data: add static DMA chan data

2022-05-25 Thread Vignesh Raghavendra
Add range of DMA channels available for R5 SPL usage before DM firmware is loaded. Signed-off-by: Vignesh Raghavendra --- drivers/firmware/ti_sci_static_data.h | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/firmware/ti_sci_static_data.h b/drivers/firmware

[PATCH v2 04/12] arm: mach-k3: Introduce the basic files to support AM62

2022-05-25 Thread Vignesh Raghavendra
device of the family. Add DT bindings for the same. More details can be found in the Technical Reference Manual: https://www.ti.com/lit/pdf/spruiv7 Signed-off-by: Suman Anna Signed-off-by: Gowtham Tammana Signed-off-by: Aswath Govindraju Signed-off-by: Nishanth Menon Signed-off-by: Vignesh

[PATCH v2 05/12] arm: mach-k3: am62: Introduce autogenerated SoC data

2022-05-25 Thread Vignesh Raghavendra
From: Suman Anna Introduce autogenerated SoC data support clk and device data for the AM62. Hook it upto to power-domain and clk frameworks of U-Boot. Signed-off-by: Dave Gerlach Signed-off-by: Suman Anna Signed-off-by: Vignesh Raghavendra --- arch/arm/mach-k3/am62x/Makefile| 6

[PATCH v2 06/12] dma: ti: Add PSIL data for AM62x DMASS

2022-05-25 Thread Vignesh Raghavendra
Add PSIL data for AM62x SoC. Signed-off-by: Vignesh Raghavendra --- drivers/dma/ti/Makefile | 1 + drivers/dma/ti/k3-psil-am62.c | 50 +++ drivers/dma/ti/k3-psil-priv.h | 1 + drivers/dma/ti/k3-psil.c | 2 ++ 4 files changed, 54 insertions

[PATCH v2 03/12] soc: ti: k3-socinfo: Add entry for AM62X SoC family

2022-05-25 Thread Vignesh Raghavendra
From: Suman Anna Add support for AM62x SoC identification. Signed-off-by: Suman Anna Signed-off-by: Vignesh Raghavendra --- drivers/soc/soc_ti_k3.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/soc/soc_ti_k3.c b/drivers/soc/soc_ti_k3.c index 965728e818..42344145f9 100644

[PATCH v2 02/12] dt-bindings: pinctrl: k3: Introduce pinmux definitions for AM62

2022-05-25 Thread Vignesh Raghavendra
be enclosed in parentheses However, we do not need parentheses enclosing the values for this macro as we do intend it to generate two separate values as has been done for other similar platforms. Signed-off-by: Suman Anna Signed-off-by: Vignesh Raghavendra --- include/dt-bindings/pinctrl/k3.h | 3

[PATCH v2 00/12] TI: Add support for AM62 SoC

2022-05-25 Thread Vignesh Raghavendra
Vignesh Raghavendra (4): dma: ti: Add PSIL data for AM62x DMASS firmware: ti_sci_static_data: add static DMA chan data configs: Add configs for AM62x SK doc: ti: Add readme for AM62x SK arch/arm/dts/Makefile |3 + arch/arm/dts/k3-am62-ddr.dtsi | 11

[PATCH v2 01/12] drivers: mmc: am654_sdhci: Add new compatible for AM62 SoC

2022-05-25 Thread Vignesh Raghavendra
instance. Signed-off-by: Aswath Govindraju Signed-off-by: Vignesh Raghavendra --- drivers/mmc/am654_sdhci.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index 4305967d78..42a6134364 100644 --- a/drivers/mmc/am654_sdhci.c +++ b/drivers

Re: [PATCH 11/11] doc: ti: Add readme for AM62x SK

2022-04-18 Thread Vignesh Raghavendra
On 18/04/22 8:26 pm, Andrew Davis wrote: > On 4/15/22 9:09 AM, Vignesh Raghavendra wrote: >> Add info of boot flow and build steps for AM62x SK. >> >> Signed-off-by: Vignesh Raghavendra >> --- >>   doc/board/ti/am62x_sk.rst | 231

Re: [PATCH 04/11] arm: mach-k3: Introduce the basic files to support AM62

2022-04-16 Thread Vignesh Raghavendra
Hi, On 15/04/22 11:11 pm, Tom Rini wrote: > On Fri, Apr 15, 2022 at 10:08:32PM +0530, Vignesh Raghavendra wrote: >> >> >> On 15/04/22 9:57 pm, Tom Rini wrote: >>> On Fri, Apr 15, 2022 at 07:39:24PM +0530, Vignesh Raghavendra wrote: >>> >>> [snip] &

Re: [PATCH 07/11] arm: dts: Introduce base AM62 SoC dtsi files

2022-04-15 Thread Vignesh Raghavendra
On 15/04/22 9:58 pm, Tom Rini wrote: > On Fri, Apr 15, 2022 at 07:39:27PM +0530, Vignesh Raghavendra wrote: >> From: Suman Anna >> >> Introduce the basic AM62 SoC description dtsi files. While doing this, >> lets reuse the DDR controller definition from AM64 as

Re: [PATCH 04/11] arm: mach-k3: Introduce the basic files to support AM62

2022-04-15 Thread Vignesh Raghavendra
On 15/04/22 9:57 pm, Tom Rini wrote: > On Fri, Apr 15, 2022 at 07:39:24PM +0530, Vignesh Raghavendra wrote: > > [snip] >> diff --git a/arch/arm/mach-k3/am625_init.c b/arch/arm/mach-k3/am625_init.c >> new file mode 100644 >> index 00..ee902a774e >> ---

Re: [PATCH 02/11] dt-bindings: pinctrl: k3: Introduce pinmux definitions for AM62

2022-04-15 Thread Vignesh Raghavendra
On 15/04/22 9:57 pm, Tom Rini wrote: > On Fri, Apr 15, 2022 at 07:39:22PM +0530, Vignesh Raghavendra wrote: >> From: Suman Anna >> >> Add pinctrl macros for AM62x SoCs. These macro definitions are similar >> to that of previous platforms, but adding new definit

[PATCH 09/11] arm: dts: Add support for AM62-SK

2022-04-15 Thread Vignesh Raghavendra
Signed-off-by: Nishanth Menon Signed-off-by: Aswath Govindraju Signed-off-by: Nishanth Menon Signed-off-by: Dave Gerlach Signed-off-by: Vignesh Raghavendra --- arch/arm/dts/Makefile |3 + arch/arm/dts/k3-am62-main.dtsi | 44 +- arch/arm/dts/k3-am62

[PATCH 11/11] doc: ti: Add readme for AM62x SK

2022-04-15 Thread Vignesh Raghavendra
Add info of boot flow and build steps for AM62x SK. Signed-off-by: Vignesh Raghavendra --- doc/board/ti/am62x_sk.rst | 231 ++ doc/board/ti/index.rst| 1 + 2 files changed, 232 insertions(+) create mode 100644 doc/board/ti/am62x_sk.rst diff --git

[PATCH 10/11] configs: Add configs for AM62x SK

2022-04-15 Thread Vignesh Raghavendra
Add am62x_evm_r5_defconfig for R5 SPL and am62x_evm_a53_defconfig for A53 SPL and U-Boot support. Signed-off-by: Aswath Govindraju Signed-off-by: Vignesh Raghavendra --- board/ti/am62x/MAINTAINERS | 8 +++ configs/am62x_evm_a53_defconfig | 110 ++ configs

[PATCH 08/11] board: ti: Introduce the basic files to support AM62 SK board

2022-04-15 Thread Vignesh Raghavendra
From: Suman Anna Add basic support for AM64 SK. This has 2GB DDR. Note that stack for R5 SPL is in OCRAM @ 0x7000 so that is away from BSS and does not step on BSS section Signed-off-by: Suman Anna Signed-off-by: Aswath Govindraju Signed-off-by: Nishanth Menon Signed-off-by: Vignesh

[PATCH 07/11] arm: dts: Introduce base AM62 SoC dtsi files

2022-04-15 Thread Vignesh Raghavendra
From: Suman Anna Introduce the basic AM62 SoC description dtsi files. While doing this, lets reuse the DDR controller definition from AM64 as the instance is the same Signed-off-by: Gowtham Tammana Signed-off-by: Suman Anna Signed-off-by: Vignesh Raghavendra --- arch/arm/dts/k3-am62

[PATCH 06/11] dma: ti: Add PSIL data for AM62x DMASS

2022-04-15 Thread Vignesh Raghavendra
Add PSIL data for AM62x SoC Signed-off-by: Vignesh Raghavendra --- drivers/dma/ti/Makefile | 1 + drivers/dma/ti/k3-psil-am62.c | 50 +++ drivers/dma/ti/k3-psil-priv.h | 1 + drivers/dma/ti/k3-psil.c | 2 ++ 4 files changed, 54 insertions(+) create

[PATCH 05/11] arm: mach-k3: am62: Introduce autogenerated SoC data

2022-04-15 Thread Vignesh Raghavendra
From: Suman Anna Introduce autogenerated SoC data support clk and device data for the AM62. Hook it upto to power-domain and clk frameworks of U-Boot. Signed-off-by: Dave Gerlach Signed-off-by: Suman Anna Signed-off-by: Vignesh Raghavendra --- arch/arm/mach-k3/am62x/Makefile| 6

[PATCH 04/11] arm: mach-k3: Introduce the basic files to support AM62

2022-04-15 Thread Vignesh Raghavendra
device of the family. Add DT bindings for the same. More details can be found in the Technical Reference Manual: https://www.ti.com/lit/pdf/spruiv7 Signed-off-by: Suman Anna Signed-off-by: Gowtham Tammana Signed-off-by: Aswath Govindraju Signed-off-by: Nishanth Menon Signed-off-by: Vignesh

[PATCH 03/11] soc: ti: k3-socinfo: Add entry for AM62X SoC family

2022-04-15 Thread Vignesh Raghavendra
From: Suman Anna Add support for AM62x SoC identification. Signed-off-by: Suman Anna Signed-off-by: Vignesh Raghavendra --- drivers/soc/soc_ti_k3.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/soc/soc_ti_k3.c b/drivers/soc/soc_ti_k3.c index 965728e818..42344145f9 100644

[PATCH 02/11] dt-bindings: pinctrl: k3: Introduce pinmux definitions for AM62

2022-04-15 Thread Vignesh Raghavendra
be enclosed in parentheses However, we do not need parentheses enclosing the values for this macro as we do intend it to generate two separate values as has been done for other similar platforms. Signed-off-by: Suman Anna Signed-off-by: Vignesh Raghavendra --- include/dt-bindings/pinctrl/k3.h | 3

[PATCH 01/11] drivers: mmc: am654_sdhci: Add new compatible for AM62 SoC

2022-04-15 Thread Vignesh Raghavendra
instance. Signed-off-by: Aswath Govindraju Signed-off-by: Vignesh Raghavendra --- drivers/mmc/am654_sdhci.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index 4305967d78..42a6134364 100644 --- a/drivers/mmc/am654_sdhci.c +++ b/drivers

[PATCH 00/11] TI: Add support for AM62 SoC

2022-04-15 Thread Vignesh Raghavendra
the basic files to support AM62 SK board Vignesh Raghavendra (3): dma: ti: Add PSIL data for AM62x DMASS configs: Add configs for AM62x SK doc: ti: Add readme for AM62x SK arch/arm/dts/Makefile |3 + arch/arm/dts/k3-am62-ddr.dtsi | 11 + arch

Re: [PATCH] ARM: dts: k3-j721s2: Correct timer frequency

2022-04-09 Thread Vignesh Raghavendra
On 07/03/22 2:55 pm, Vignesh Raghavendra wrote: > MCU Timer0 runs at 250MHz, and the clock-frequency defined in DT appears > incorrect. > > Without this delays in R5 SPL are 10x off. > > Signed-off-by: Vignesh Raghavendra > --- > arch/arm/dts/k3-j721s2-common-pr

[PATCH v2 2/2] ARM: dts: k3-am642: Correct timer frequency

2022-03-11 Thread Vignesh Raghavendra
Timer0 runs at 200MHz,and the clock-frequency defined in DT is incorrect. Fix it. Signed-off-by: Vignesh Raghavendra --- arch/arm/dts/k3-am642-evm-u-boot.dtsi | 2 +- arch/arm/dts/k3-am642-sk-u-boot.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/k3

[PATCH v2 1/2] configs: am64x_evm_a53_defconfig: Switch to per-cpu timer as tick provider

2022-03-11 Thread Vignesh Raghavendra
-by: Vignesh Raghavendra --- configs/am64x_evm_a53_defconfig | 3 --- 1 file changed, 3 deletions(-) diff --git a/configs/am64x_evm_a53_defconfig b/configs/am64x_evm_a53_defconfig index 7397436def..bceb35f5ec 100644 --- a/configs/am64x_evm_a53_defconfig +++ b/configs/am64x_evm_a53_defconfig @@ -135,9

[PATCH v2 0/2] AM64: Tick timer fixes

2022-03-11 Thread Vignesh Raghavendra
: lore.kernel.org/r/20220307092059.669376-1-vigne...@ti.com Vignesh Raghavendra (2): configs: am64x_evm_a53_defconfig: Switch to per-cpu timer as tick provider ARM: dts: k3-am642: Correct timer frequency arch/arm/dts/k3-am642-evm-u-boot.dtsi | 2 +- arch/arm/dts/k3-am642-sk-u-boot.dtsi | 2 +- configs

[PATCH] ARM: dts: k3-j721s2: Correct timer frequency

2022-03-07 Thread Vignesh Raghavendra
MCU Timer0 runs at 250MHz, and the clock-frequency defined in DT appears incorrect. Without this delays in R5 SPL are 10x off. Signed-off-by: Vignesh Raghavendra --- arch/arm/dts/k3-j721s2-common-proc-board-u-boot.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch

[PATCH 2/2] ARM: dts: k3-am642: Fix correct timer frequency

2022-03-07 Thread Vignesh Raghavendra
Timer0 runs at 200MHz,and the clock-frequency defined in DT appears is incorrect. Signed-off-by: Vignesh Raghavendra --- arch/arm/dts/k3-am642-evm-u-boot.dtsi | 2 +- arch/arm/dts/k3-am642-sk-u-boot.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/k3

[PATCH 0/2] AM64: Tick timer fixes

2022-03-07 Thread Vignesh Raghavendra
Patch 1 switches AM64 to use GTC as system timer at A53 SPL/U-boot stage as done in other TI K3 platforms Patch 2 corrects DM timer freq to be 200MHz (used at R5 SPL stage) Vignesh Raghavendra (2): configs: am64x_evm_a53_defconfig: Switch to GTC as tick timer ARM: dts: k3-am642: Fix correct

[PATCH 1/2] configs: am64x_evm_a53_defconfig: Switch to GTC as tick timer

2022-03-07 Thread Vignesh Raghavendra
GTC is to be used as tick timer for A53 SPL/U-Boot, but currently AM64 ends up using DM timer as driver is enabled in the config, drop OMAP DM Timer related configs so that GTC is used by default. Signed-off-by: Vignesh Raghavendra --- configs/am64x_evm_a53_defconfig | 3 --- 1 file changed, 3

[PATCH] spl: ymodem: Fix buffer overflow during Image copy

2022-01-30 Thread Vignesh Raghavendra
buffer is passed during UART boot since commit 03f1f78a9b44 ("spl: fit: Prefer a malloc()'d buffer for loading images") With this, UART boot works again on K3 (AM654, J7, AM64) family of devices. Fixes: 03f1f78a9b44 ("spl: fit: Prefer a malloc()'d buffer for loading images") Si

[PATCH] net: ti: am65-cpsw: Cleanup resources before jump to kernel

2022-01-27 Thread Vignesh Raghavendra
Gmeiner Signed-off-by: Vignesh Raghavendra --- drivers/net/ti/am65-cpsw-nuss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ti/am65-cpsw-nuss.c b/drivers/net/ti/am65-cpsw-nuss.c index 454986ff15..87f51b3b99 100644 --- a/drivers/net/ti/am65-cpsw-nuss.c +++ b

Re: [PATCH 8/8] configs: am64x_evm_r5/a53_defconfig: Enable configs required for Ethboot

2022-01-21 Thread Vignesh Raghavendra
On 21/01/22 8:27 pm, Tom Rini wrote: > On Fri, Jan 21, 2022 at 09:59:21AM +0530, Vignesh Raghavendra wrote: >> >> >> On 17/01/22 8:47 am, Tom Rini wrote: >>> On Fri, Dec 24, 2021 at 12:55:36PM +0530, Vignesh Raghavendra wrote: >>> >>>> En

[PATCH 4/4] configs: am64x_evm_r5/a53_defconfig: Enable configs required for Ethboot

2022-01-20 Thread Vignesh Raghavendra
Enable config options needed to support Ethernet boot on AM64x SK. Signed-off-by: Vignesh Raghavendra --- configs/am64x_evm_a53_defconfig | 4 configs/am64x_evm_r5_defconfig | 12 2 files changed, 16 insertions(+) diff --git a/configs/am64x_evm_a53_defconfig b/configs

[PATCH 3/4] configs: am64xx_evm: Increase BSS max size to 16K

2022-01-20 Thread Vignesh Raghavendra
With Ethboot support in SPL, network stack requires more BSS area, so increase BSS max size to 16K Signed-off-by: Vignesh Raghavendra --- include/configs/am64x_evm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/am64x_evm.h b/include/configs/am64x_evm.h

[PATCH 2/4] ARM: dts: k3-am642-sk: Disable cpsw_port1 in SPL

2022-01-20 Thread Vignesh Raghavendra
ROM supports cpsw_port2 for Ethernet boot and SPL stages continue to download images on the same port, therefore there is no need to enable cpsw_port1. Disable the same. Signed-off-by: Vignesh Raghavendra --- arch/arm/dts/k3-am642-r5-sk.dts | 11 --- arch/arm/dts/k3-am642-sk-u

[PATCH 1/4] net: ti: am65-cpsw-nuss: Fix err msg for port bind failures

2022-01-20 Thread Vignesh Raghavendra
Replace error case print with meaning full message. Signed-off-by: Vignesh Raghavendra --- drivers/net/ti/am65-cpsw-nuss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ti/am65-cpsw-nuss.c b/drivers/net/ti/am65-cpsw-nuss.c index 6ae69b51c7..454986ff15 100644

[PATCH 0/4] ARM: ti: AM64x: Clean up Ethernet boot support on AM64x SK

2022-01-20 Thread Vignesh Raghavendra
/20211224072536.270251-1-vigne...@ti.com/T/#t Vignesh Raghavendra (4): net: ti: am65-cpsw-nuss: Fix err msg for port bind failures ARM: dts: k3-am642-sk: Disable cpsw_port1 in SPL configs: am64xx_evm: Increase BSS max size to 16K configs: am64x_evm_r5/a53_defconfig: Enable configs required

Re: [PATCH 6/8] configs: am64x_evm: set eth1 as boot interface

2022-01-20 Thread Vignesh Raghavendra
On 17/01/22 8:16 pm, Tom Rini wrote: > On Fri, Dec 24, 2021 at 12:55:34PM +0530, Vignesh Raghavendra wrote: > >> ROM supports boot from CPSW second port, therefore set eth1 boot >> interface >> >> Signed-off-by: Vignesh Raghavendra >> --- >> includ

Re: [PATCH 2/8] net: ti: am65-cpsw: Add support for multi port independent MAC mode

2022-01-20 Thread Vignesh Raghavendra
On 21/01/22 4:49 am, Tom Rini wrote: > On Fri, Jan 21, 2022 at 01:13:54AM +0200, Ramon Fried wrote: >> On Mon, Jan 17, 2022 at 8:37 PM Tom Rini wrote: >>> >>> On Fri, Dec 24, 2021 at 12:55:30PM +0530, Vignesh Raghavendra wrote: >>> >>>> On ce

Re: [PATCH 8/8] configs: am64x_evm_r5/a53_defconfig: Enable configs required for Ethboot

2022-01-20 Thread Vignesh Raghavendra
On 17/01/22 8:47 am, Tom Rini wrote: > On Fri, Dec 24, 2021 at 12:55:36PM +0530, Vignesh Raghavendra wrote: > >> Enable config options needed to support Ethernet boot on AM64x SK. >> >> Signed-off-by: Vignesh Raghavendra > > This leads to size overflow on

Re: [PATCH 2/8] net: ti: am65-cpsw: Add support for multi port independent MAC mode

2022-01-20 Thread Vignesh Raghavendra
On 30/12/21 1:01 am, Ramon Fried wrote: > On Fri, Dec 24, 2021 at 9:25 AM Vignesh Raghavendra wrote: >> >> On certain TI SoC, like AM64x there is a CPSW3G which supports 2 >> external independent MAC ports for single CPSW instance. >> It is not possible for Ether

[PATCH 8/8] configs: am64x_evm_r5/a53_defconfig: Enable configs required for Ethboot

2021-12-23 Thread Vignesh Raghavendra
Enable config options needed to support Ethernet boot on AM64x SK. Signed-off-by: Vignesh Raghavendra --- configs/am64x_evm_a53_defconfig | 4 configs/am64x_evm_r5_defconfig | 12 2 files changed, 16 insertions(+) diff --git a/configs/am64x_evm_a53_defconfig b/configs

[PATCH 7/8] ARM: dts: K3-am642-r5-sk: Enable Second CPSW port in R5/A53 SPL

2021-12-23 Thread Vignesh Raghavendra
Enable Second Ethernet port on which ROM support Ethboot. Signed-off-by: Vignesh Raghavendra --- arch/arm/dts/k3-am642-r5-sk.dts | 74 arch/arm/dts/k3-am642-sk-u-boot.dtsi | 40 ++- 2 files changed, 113 insertions(+), 1 deletion(-) diff --git

[PATCH 6/8] configs: am64x_evm: set eth1 as boot interface

2021-12-23 Thread Vignesh Raghavendra
ROM supports boot from CPSW second port, therefore set eth1 boot interface Signed-off-by: Vignesh Raghavendra --- include/configs/am64x_evm.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/configs/am64x_evm.h b/include/configs/am64x_evm.h index 99624081c3

[PATCH 5/8] mach-k3: am64_spl: Alias Ethernet RGMII boot to CPGMAC

2021-12-23 Thread Vignesh Raghavendra
This is required to enables spl_net boot on AM64x Signed-off-by: Vignesh Raghavendra --- arch/arm/mach-k3/include/mach/am64_spl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-k3/include/mach/am64_spl.h b/arch/arm/mach-k3/include/mach/am64_spl.h index 607b09c2e5..b4f396b2c0

[PATCH 4/8] mach-k3: am642_init: Probe AM65 CPSW NUSS for R5/A53 SPL

2021-12-23 Thread Vignesh Raghavendra
In order to support Ethernet boot on AM64x, probe AM65 CPSW NUSS. Signed-off-by: Vignesh Raghavendra --- arch/arm/mach-k3/am642_init.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/mach-k3/am642_init.c b/arch/arm/mach-k3/am642_init.c index 533905daeb..184f1a2761 100644

[PATCH 3/8] board: ti: am64x: Init DRAM size in R5/A53 SPL

2021-12-23 Thread Vignesh Raghavendra
Call dram_init_banksize() from spl_board_init() otherwise TFTP download fails due to lmb_get_free_size() not able to find unreserved region due to lack of DRAM size info. Required to support Ethernet boot on AM64x. Signed-off-by: Vignesh Raghavendra --- board/ti/am64x/evm.c | 3 +++ 1 file

[PATCH 2/8] net: ti: am65-cpsw: Add support for multi port independent MAC mode

2021-12-23 Thread Vignesh Raghavendra
. Signed-off-by: Vignesh Raghavendra --- drivers/net/ti/Kconfig | 2 + drivers/net/ti/am65-cpsw-nuss.c | 77 + 2 files changed, 52 insertions(+), 27 deletions(-) diff --git a/drivers/net/ti/Kconfig b/drivers/net/ti/Kconfig index f2dbbd0128..59c96d862d 100644

[PATCH 1/8] mach-k3: common: Instantiate AM65 CPSW NUSS wrapper

2021-12-23 Thread Vignesh Raghavendra
Probe toplevel AM65 CPSW NUSS driver from misc_init_r() when driver is enabled. Since driver is modeled as UCLASS_MISC, we need to explicitly probe the driver. Use common misc_init_r() that entire K3 family of SoCs. Signed-off-by: Vignesh Raghavendra --- arch/arm/mach-k3/common.c | 16

[PATCH 0/8] ARM: ti: AM64x: Add Ethernet boot support on AM64x SK

2021-12-23 Thread Vignesh Raghavendra
on AM64x SK with RGMII 1G bootmode at 1G. https://controlc.com/90d555ee Sanity tested TFTP at U-Boot prompt on AM65x and J721e. Vignesh Raghavendra (8): mach-k3: common: Instantiate AM65 CPSW NUSS wrapper net: ti: am65-cpsw: Add support for multi port independent MAC mode board: ti: am64x: Init

[PATCH] dma: ti: k3-udma: Fix rflow reservation for PKTDMA

2021-12-23 Thread Vignesh Raghavendra
not able to get DMA channels at R5 SPL on AM64x Signed-off-by: Vignesh Raghavendra --- drivers/dma/ti/k3-udma.c | 21 - 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c index 411edef3a7..86603d43f1 100644

[PATCH] ARM: mach-k3: sysfw-loader: Copy sysfw.itb to OCRAM in OSPI/SPI bootmode

2021-12-23 Thread Vignesh Raghavendra
by ROM/TIFS in case of HS platform and thus cannot reside in OSPI/xSPI and needs to be copied over to internal OCRAM. This unblocks OSPI/xSPI boot on HS platforms Signed-off-by: Vignesh Raghavendra Reviewed-by: Dave Gerlach Tested-by: Keerthy --- arch/arm/mach-k3/sysfw-loader.c | 18

[PATCH -next] ARM: dts: k3-j7200-common-proc-board-u-boot.dtsi: Fix dtc warnings

2021-06-14 Thread Vignesh Raghavendra
== 2, #size-cells == 1) Signed-off-by: Vignesh Raghavendra --- arch/arm/dts/k3-j7200-common-proc-board-u-boot.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/dts/k3-j7200-common-proc-board-u-boot.dtsi b/arch/arm/dts/k3-j7200-common-proc-board-u-boot.dtsi index 41ce9fcb59

Re: [GIT PULL v2] TI changes for v2021.10 next

2021-06-14 Thread Vignesh Raghavendra
On 6/14/21 1:35 PM, Tero Kristo wrote: > On 13/06/2021 19:49, Tom Rini wrote: >> On Fri, Jun 11, 2021 at 09:40:14PM +0530, Lokesh Vutla wrote: >> >>> Hi Tom, >>> Please find the PR for master branch targeted for v2021.10-next >>> branch >>> with checkpatch warnings fixed. Details about the

Re: [PATCH v2 0/7] J72xx: R5 SPL DMA support post HSM Rearch

2021-06-08 Thread Vignesh Raghavendra
On 6/8/21 12:35 PM, Lokesh Vutla wrote: > > > On 07/06/21 7:47 pm, Vignesh Raghavendra wrote: >> This series add DMA support for R5 SPL on J721e/J7200 SoCs post HSM >> Rearch. >> >> Depends on Tero's base HSM rearch support series. >> >> v2

[PATCH v2 7/7] dma: ti: k3-udma: Add support for native configuration of chan/flow

2021-06-07 Thread Vignesh Raghavendra
but setting up of cfg registers is handled locally. U-Boot specific code is in a separate file included in main driver so as to maintain similarity with kernel driver in order to ease porting of code in future. Signed-off-by: Vignesh Raghavendra --- drivers/dma/ti/k3-udma-u-boot.c | 177

[PATCH v2 6/7] soc: ti: k3-navss-ringacc: Add support for native configuration of rings

2021-06-07 Thread Vignesh Raghavendra
is in a separate file included in main driver so as to maintain similarity with kernel driver in order to ease porting of code in future. Signed-off-by: Vignesh Raghavendra --- drivers/soc/ti/k3-navss-ringacc-u-boot.c | 61 drivers/soc/ti/k3-navss-ringacc.c| 36

[PATCH v2 5/7] ARM: dts: k3: Add cfg register space for ringacc and udmap

2021-06-07 Thread Vignesh Raghavendra
for now. Signed-off-by: Vignesh Raghavendra --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 14 ++ .../k3-j7200-common-proc-board-u-boot.dtsi| 26 +++ .../k3-j721e-common-proc-board-u-boot.dtsi| 14 ++ 3 files changed, 54 insertions(+) diff --git a/arch/arm

[PATCH v2 4/7] ARM: dts: j72xx-r5-common-proc-board: Add DM firmware node

2021-06-07 Thread Vignesh Raghavendra
Add DM firmware node which will provide DM services during R5 SPL stage. Signed-off-by: Vignesh Raghavendra --- arch/arm/dts/k3-j7200-r5-common-proc-board.dts | 17 + arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 18 ++ 2 files changed, 35 insertions(+) diff

[PATCH v2 3/7] firmware: ti_sci: Add support for Resoure Management at R5 SPL stage.

2021-06-07 Thread Vignesh Raghavendra
will have to directly interact with TIFS using DM to DMSC channels to request RM resources. Therefore add DT binding and driver for the same. This driver will handle Resource Management services at R5 SPL stage. Signed-off-by: Vignesh Raghavendra --- .../firmware/ti,j721e-dm-sci.txt

[PATCH v2 1/7] mailbox: k3-sec-proxy: Add DM to DMSC communication thread

2021-06-07 Thread Vignesh Raghavendra
R5 SPL would need to talk to DMSC using DM to DMSC sec-proxy threads. Mark these as valid threads in the driver. Signed-off-by: Vignesh Raghavendra --- drivers/mailbox/k3-sec-proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mailbox/k3-sec-proxy.c b/drivers

[PATCH v2 2/7] firmware: ti_sci: Implement GET_RANGE with static data

2021-06-07 Thread Vignesh Raghavendra
In case of R5 SPL, GET_RANGE API service is not available (as DM services are not yet up), therefore service such calls locally using per SoC static data. Signed-off-by: Vignesh Raghavendra --- drivers/firmware/ti_sci.c | 36 +++ drivers/firmware/ti_sci_static_data.h | 92

[PATCH v2 0/7] J72xx: R5 SPL DMA support post HSM Rearch

2021-06-07 Thread Vignesh Raghavendra
This series add DMA support for R5 SPL on J721e/J7200 SoCs post HSM Rearch. Depends on Tero's base HSM rearch support series. v2: Use IS_ENABLED() consistentially instead of #ifdef Reword commit msg for 5/7 as suggested by Lokesh Rebase on Tero's latest HSM base series. Vignesh Raghavendra (7

[PATCH] configs: am64x_evm_a53_defconfig: Enable DP83867 PHY driver

2021-05-12 Thread Vignesh Raghavendra
AM64x GP and SK EVM have DP83867 PHY connected to CPSW external port0. Enable the driver in order to use ethernet at U-Boot prompt. CONFIG_PHY_TI is selected by CONFIG_PHY_TI_DP83867 and thus can be dropped. Signed-off-by: Vignesh Raghavendra --- Based on top of https://source.denx.de/u-boot

Re: [PATCH 5/7] ARM: dts: k3: Add cfg register space for ringacc and udmap

2021-05-12 Thread Vignesh Raghavendra
On 5/12/21 11:40 AM, Lokesh Vutla wrote: > > > On 11/05/21 11:34 am, Vignesh Raghavendra wrote: >> >> >> On 5/11/21 10:21 AM, Lokesh Vutla wrote: >>> >>> >>> On 10/05/21 10:54 pm, Vignesh Raghavendra wrote: >>>> R5 SPL needs a

Re: [PATCH 3/7] firmware: ti_sci: Add support for Resoure Management at R5 SPL stage.

2021-05-11 Thread Vignesh Raghavendra
On 5/11/21 10:19 AM, Lokesh Vutla wrote: > > > On 10/05/21 10:54 pm, Vignesh Raghavendra wrote: >> On J721e and J7200, MCU R5 core (boot master) itself would run Device >> Manager (DM) Firmware and interact with TI Foundational Security (TIFS) >> firmware to enable

Re: [PATCH 5/7] ARM: dts: k3: Add cfg register space for ringacc and udmap

2021-05-11 Thread Vignesh Raghavendra
On 5/11/21 10:21 AM, Lokesh Vutla wrote: > > > On 10/05/21 10:54 pm, Vignesh Raghavendra wrote: >> R5 SPL needs access to cfg space of Rings and UDMAP, therefore add RING >> CFG, TCHAN CFG and RCHAN CFG address ranges. >> >> Signed-off-by: Vignesh Raghavendra

  1   2   3   4   5   6   >