[PATCH 3/3] board: ti: am64x: Set storage_interface and fw_dev_part ENVs

2024-05-22 Thread MD Danish Anwar
modify this based on their needs. Signed-off-by: MD Danish Anwar --- board/ti/am64x/am64x.env | 5 + 1 file changed, 5 insertions(+) diff --git a/board/ti/am64x/am64x.env b/board/ti/am64x/am64x.env index 9a8812d4ee..8ad805a613 100644 --- a/board/ti/am64x/am64x.env +++ b/board/ti/am64x/am64x.env

[PATCH 1/3] arm: dts: k3-am642-evm-u-boot: Add remoteproc-name for PRU cores

2024-05-22 Thread MD Danish Anwar
Add remoteproc-name property for PRU cores. Signed-off-by: MD Danish Anwar --- arch/arm/dts/k3-am642-evm-u-boot.dtsi | 44 +++ 1 file changed, 44 insertions(+) diff --git a/arch/arm/dts/k3-am642-evm-u-boot.dtsi b/arch/arm/dts/k3-am642-evm-u-boot.dtsi index 705b3baa81

[PATCH 2/3] configs: am64x_evm_a53: Enable ICSSG Driver

2024-05-22 Thread MD Danish Anwar
Enable ICSSG driver, DP83869 phy driver, REMOTEPROC and PRU_REMOTEPROC in am64x_evm_a53_defconfig. All these configs are needed for ICSSG driver. Signed-off-by: MD Danish Anwar --- configs/am64x_evm_a53_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs

[PATCH 0/3] Enable ICSSG Driver for AM64x

2024-05-22 Thread MD Danish Anwar
c-name as "pru@34000" without this patch, resulting in probe failure because of non-unique name (_rproc_name_is_unique() API) of PRU core. Patch 2/3 Enables necessary configs for AM64x to enable ICSSG driver Patch 3/3 Sets env variables needed for ICSSG driver Thanks and Regards, MD Dan

Re: [PATCH 0/2] Add AM64x Support to PRUSS and PRU_RPROC driver

2024-05-21 Thread MD Danish Anwar
Hi Tom, On 21/05/24 10:09 pm, Tom Rini wrote: > On Tue, May 21, 2024 at 02:31:44PM +0530, MD Danish Anwar wrote: >> Hi Tom, >> >> On 11/05/24 1:02 am, Tom Rini wrote: >>> On Tue, 30 Apr 2024 16:16:31 +0530, MD Danish Anwar wrote: >>> >>>>

Re: [PATCH 0/2] Add AM64x Support to PRUSS and PRU_RPROC driver

2024-05-21 Thread MD Danish Anwar
Hi Tom, On 11/05/24 1:02 am, Tom Rini wrote: > On Tue, 30 Apr 2024 16:16:31 +0530, MD Danish Anwar wrote: > >> This series adds AM64x related compatibles to PRUSS and PRU_RPROC drivers. >> This series is a prerequisite for ICSSG Ethernet driver. >> >> Once Suppo

[PATCH 2/2] soc: ti: pruss: Add support for AM64x

2024-04-30 Thread MD Danish Anwar
Add support for AM64x by adding it's compatible in pruss driver. Signed-off-by: MD Danish Anwar --- drivers/soc/ti/pruss.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/ti/pruss.c b/drivers/soc/ti/pruss.c index 461390925d..5317b8335b 100644 --- a/drivers/soc/ti/pruss.c +++ b

[PATCH 0/2] Add AM64x Support to PRUSS and PRU_RPROC driver

2024-04-30 Thread MD Danish Anwar
This series adds AM64x related compatibles to PRUSS and PRU_RPROC drivers. This series is a prerequisite for ICSSG Ethernet driver. Once Support for AM64x is added to PRUSS and PRU_RPROC driver, I'll send another series to enable ICSSG Ethernet driver for AM64x as well. MD Danish Anwar (2

[PATCH 1/2] remoteproc: pru: Add support for AM64x PRU / RTU cores

2024-04-30 Thread MD Danish Anwar
Add support for AM64x PRU cores by adding compatibles for AM64x. Signed-off-by: MD Danish Anwar --- drivers/remoteproc/pru_rproc.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/remoteproc/pru_rproc.c b/drivers/remoteproc/pru_rproc.c index 6ec55e27d9

[PATCH v4 5/6] board: ti: am65x: Add check for k3-am654-icssg2 in board_fit_config_match()

2024-04-16 Thread MD Danish Anwar
When CONFIG_TI_ICSSG_PRUETH is enabled, add config name check for the icssg2 overlay in board_fit_config_match() API. Signed-off-by: MD Danish Anwar --- board/ti/am65x/evm.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/board/ti/am65x/evm.c b/board/ti/am65x/evm.c

[PATCH v4 3/6] configs: am65x_evm_a53: Enable ICSSG Driver

2024-04-16 Thread MD Danish Anwar
Enable ICSSG driver in am65x_evm_a53_defconfig Signed-off-by: MD Danish Anwar --- configs/am65x_evm_a53_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index 3afa80f45a..f06186ed8d 100644 --- a/configs

[PATCH v4 6/6] board: ti: am65x: Set fw_storage_interface and fw_dev_part ENVs

2024-04-16 Thread MD Danish Anwar
modify this based on their needs. Signed-off-by: MD Danish Anwar --- board/ti/am65x/am65x.env | 4 1 file changed, 4 insertions(+) diff --git a/board/ti/am65x/am65x.env b/board/ti/am65x/am65x.env index 814374d68c..631997e4c9 100644 --- a/board/ti/am65x/am65x.env +++ b/board/ti/am65x/am65x.env

[PATCH v4 1/6] arm: dts: k3-am654-base-board: Add ICSSG2 Ethernet support

2024-04-16 Thread MD Danish Anwar
ICSSG2 provides dual Gigabit Ethernet support. Add ICSSG2 ethernet node to an overlay k3-am654-icssg2.dtso Signed-off-by: MD Danish Anwar --- arch/arm/dts/Makefile | 4 +- arch/arm/dts/k3-am654-icssg2.dtso | 145 ++ 2 files changed, 148 insertions(+), 1

[PATCH v4 4/6] configs: am65x_evm_a53: add SPL_LOAD_FIT_APPLY_OVERLAY

2024-04-16 Thread MD Danish Anwar
We want SPL to apply DTB overlays (e.g. ICSSG2 overlay) so enable SPL_LOAD_FIT_APPLY_OVERLAY. Signed-off-by: MD Danish Anwar --- configs/am65x_evm_a53_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index f06186ed8d

[PATCH v4 0/6] Enable ICSSG Ethernet Driver for AM65x

2024-04-16 Thread MD Danish Anwar
and board specific changes into this series from the main series [1]. *) Added check for TARGET_AM654_A53_EVM config in board file as suggested by Dan Carpenter *) Rebased on latest u-boot/master. [1] https://lore.kernel.org/all/20240124064930.1787929-1-danishan...@ti.com/ MD Danish Anwar (6

[PATCH v4 2/6] arm: dts: k3-am65x-binman: Add ICSSG2 overlay and configuration

2024-04-16 Thread MD Danish Anwar
Add ICSSG2 overlay and configuration to tispl and u-boot images. Signed-off-by: MD Danish Anwar --- arch/arm/dts/k3-am65x-binman.dtsi | 65 +-- 1 file changed, 61 insertions(+), 4 deletions(-) diff --git a/arch/arm/dts/k3-am65x-binman.dtsi b/arch/arm/dts/k3-am65x

[PATCH v5 4/5] net: ti: icssg: Add ICSSG ethernet driver

2024-04-04 Thread MD Danish Anwar
explicitly. Signed-off-by: MD Danish Anwar --- arch/arm/mach-k3/common.c | 11 + drivers/net/ti/Kconfig| 13 + drivers/net/ti/Makefile | 1 + drivers/net/ti/icssg_prueth.c | 685 ++ drivers/net/ti/icssg_prueth.h | 3 + 5 files changed, 713

[PATCH v5 5/5] net: ti: icssg: Add support sending FDB command to update rx_flow_id

2024-04-04 Thread MD Danish Anwar
ICSSG firmware supports FDB commands. Add support to send FDB commands from driver. Once rx_flow_id is obtained from dma, let firmware know that we are using this rx_flow_id by sending a FDB command. Reviewed-by: Ravi Gunasekaran Signed-off-by: MD Danish Anwar --- drivers/net/ti/icssg_config.c

[PATCH v5 2/5] net: ti: icssg: Add Firmware config and classification APIs.

2024-04-04 Thread MD Danish Anwar
structures. Signed-off-by: MD Danish Anwar --- drivers/net/ti/icss_mii_rt.h | 192 ++ drivers/net/ti/icssg_classifier.c | 376 +++ drivers/net/ti/icssg_config.c | 406 ++ drivers/net/ti/icssg_config.h | 177 + drivers

[PATCH v5 3/5] net: ti: icssg: Add icssg queues APIs and macros

2024-04-04 Thread MD Danish Anwar
Add icssg_queue.c file. This file introduces macros and APIs related to ICSSG queues. These will be used by ICSSG Ethernet driver. Reviewed-by: Ravi Gunasekaran Signed-off-by: MD Danish Anwar --- drivers/net/ti/icssg_prueth.h | 5 drivers/net/ti/icssg_queues.c | 51

[PATCH v5 0/5] Introduce ICSSG Ethernet driver

2024-04-04 Thread MD Danish Anwar
/20240327052841.1692469-1-danishan...@ti.com/ [5] https://lore.kernel.org/all/20231219103418.3445886-16-danishan...@ti.com/ Thanks and Regards, MD Danish Anwar MD Danish Anwar (5): net: ti: icssg: Add Firmware Interface for ICSSG Ethernet driver. net: ti: icssg: Add Firmware config and classification APIs

[PATCH v5 1/5] net: ti: icssg: Add Firmware Interface for ICSSG Ethernet driver.

2024-04-04 Thread MD Danish Anwar
Add firmware interface related headers and macros for ICSSG Ethernet driver. These macros will be later used by the ICSSG ethernet driver. Reviewed-by: Ravi Gunasekaran Signed-off-by: MD Danish Anwar --- drivers/net/ti/icssg_switch_map.h | 209 ++ 1 file changed

[PATCH v4 4/5] net: ti: icssg: Add ICSSG ethernet driver

2024-03-26 Thread MD Danish Anwar
explicitly. Signed-off-by: MD Danish Anwar --- arch/arm/mach-k3/common.c | 11 + drivers/net/ti/Kconfig| 13 + drivers/net/ti/Makefile | 1 + drivers/net/ti/icssg_prueth.c | 685 ++ drivers/net/ti/icssg_prueth.h | 3 + 5 files changed, 713

[PATCH v4 5/5] net: ti: icssg: Add support sending FDB command to update rx_flow_id

2024-03-26 Thread MD Danish Anwar
ICSSG firmware supports FDB commands. Add support to send FDB commands from driver. Once rx_flow_id is obtained from dma, let firmware know that we are using this rx_flow_id by sending a FDB command. Signed-off-by: MD Danish Anwar --- drivers/net/ti/icssg_config.c | 68

[PATCH v4 3/5] net: ti: icssg: Add icssg queues APIs and macros

2024-03-26 Thread MD Danish Anwar
Add icssg_queue.c file. This file introduces macros and APIs related to ICSSG queues. These will be used by ICSSG Ethernet driver. Signed-off-by: MD Danish Anwar --- drivers/net/ti/icssg_prueth.h | 5 drivers/net/ti/icssg_queues.c | 51 +++ 2 files changed

[PATCH v4 2/5] net: ti: icssg: Add Firmware config and classification APIs.

2024-03-26 Thread MD Danish Anwar
structures. Signed-off-by: MD Danish Anwar --- drivers/net/ti/icss_mii_rt.h | 192 ++ drivers/net/ti/icssg_classifier.c | 376 +++ drivers/net/ti/icssg_config.c | 406 ++ drivers/net/ti/icssg_config.h | 177 + drivers

[PATCH v4 1/5] net: ti: icssg: Add Firmware Interface for ICSSG Ethernet driver.

2024-03-26 Thread MD Danish Anwar
Add firmware interface related headers and macros for ICSSG Ethernet driver. These macros will be later used by the ICSSG ethernet driver. Signed-off-by: MD Danish Anwar --- drivers/net/ti/icssg_switch_map.h | 209 ++ 1 file changed, 209 insertions(+) create mode

[PATCH v4 0/5] Introduce ICSSG Ethernet driver

2024-03-26 Thread MD Danish Anwar
://lore.kernel.org/all/20231219103418.3445886-16-danishan...@ti.com/ Thanks and Regards, MD Danish Anwar MD Danish Anwar (5): net: ti: icssg: Add Firmware Interface for ICSSG Ethernet driver. net: ti: icssg: Add Firmware config and classification APIs. net: ti: icssg: Add icssg queues APIs and macros net

Re: [PATCH v6] remoteproc: uclass: Add methods to load firmware to rproc and boot rproc

2024-03-21 Thread MD Danish Anwar
On 20/03/24 6:08 pm, Tom Rini wrote: > On Wed, Mar 20, 2024 at 11:19:01AM +0530, MD Danish Anwar wrote: >> Hi Tom, >> >> On 20/03/24 4:10 am, Tom Rini wrote: >>> On Wed, Feb 28, 2024 at 05:36:45PM +0530, MD Danish Anwar wrote: >>> >>>>

[PATCH v7] remoteproc: uclass: Add methods to load firmware to rproc and boot rproc

2024-03-21 Thread MD Danish Anwar
() will then load the firmware file to the remote processor and start the remote processor. Signed-off-by: MD Danish Anwar Acked-by: Ravi Gunasekaran Reviewed-by: Roger Quadros --- Changes from v6 to v7: *) Removed selecting FS_LOADER by default in remoteproc Kconfig. *) Wrapped the rproc APIs

Re: [PATCH v6] remoteproc: uclass: Add methods to load firmware to rproc and boot rproc

2024-03-19 Thread MD Danish Anwar
Hi Tom, On 20/03/24 4:10 am, Tom Rini wrote: > On Wed, Feb 28, 2024 at 05:36:45PM +0530, MD Danish Anwar wrote: > >> Add APIs to set a firmware_name to a rproc and boot the rproc with the >> same firmware. >> >> Clients can call rproc_set_firmware() API to

[PATCH] arm: mach-k3: Fix config check for FS_LOADER

2024-03-14 Thread MD Danish Anwar
config option (CONFIG_SPL_FS_LOADER / CONFIG_FS_LOADER) based on the build stage. Signed-off-by: MD Danish Anwar --- arch/arm/mach-k3/r5/common.c | 2 +- arch/arm/mach-omap2/boot-common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-k3/r5/common.c b/arch

[PATCH] arm: mach-k3: Fix config check for FS_LOADER

2024-03-14 Thread MD Danish Anwar
config option (CONFIG_SPL_FS_LOADER / CONFIG_FS_LOADER) based on the build stage. Signed-off-by: MD Danish Anwar --- arch/arm/mach-k3/r5/common.c | 2 +- arch/arm/mach-omap2/boot-common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-k3/r5/common.c b/arch

Re: [PATCH v6] remoteproc: uclass: Add methods to load firmware to rproc and boot rproc

2024-03-12 Thread MD Danish Anwar
On 11/03/24 10:34 am, Anwar, Md Danish wrote: > > > On 3/7/2024 6:16 PM, Tom Rini wrote: >> On Wed, Feb 28, 2024 at 05:36:45PM +0530, MD Danish Anwar wrote: >>> Add APIs to set a firmware_name to a rproc and boot the rproc with the >> >>>

Re: [PATCH v6] remoteproc: uclass: Add methods to load firmware to rproc and boot rproc

2024-03-05 Thread MD Danish Anwar
On 29/02/24 3:43 pm, Roger Quadros wrote: > > > On 28/02/2024 14:06, MD Danish Anwar wrote: >> Add APIs to set a firmware_name to a rproc and boot the rproc with the >> same firmware. >> >> Clients can call rproc_set_firmware() API to set firmware_name

[PATCH v6] remoteproc: uclass: Add methods to load firmware to rproc and boot rproc

2024-02-28 Thread MD Danish Anwar
() will then load the firmware file to the remote processor and start the remote processor. Also include "fs-loader.h" and make remoteproc driver select FS_LOADER in Kconfig so that we can call request_firmware_into_buf() from remoteproc driver. Signed-off-by: MD Danish Anwar Acke

Re: [PATCH v5] remoteproc: uclass: Add methods to load firmware to rproc and boot rproc

2024-02-28 Thread MD Danish Anwar
On 28/02/24 4:12 pm, Roger Quadros wrote: > > > On 28/02/2024 12:35, MD Danish Anwar wrote: >> >> >> On 28/02/24 3:30 pm, Roger Quadros wrote: >>> >>> >>> On 17/02/2024 14:26, MD Danish Anwar wrote: >>>> Add APIs to set a firmw

Re: [PATCH v5] remoteproc: uclass: Add methods to load firmware to rproc and boot rproc

2024-02-28 Thread MD Danish Anwar
On 28/02/24 3:30 pm, Roger Quadros wrote: > > > On 17/02/2024 14:26, MD Danish Anwar wrote: >> Add APIs to set a firmware_name to a rproc and boot the rproc with the >> same firmware. >> >> Clients can call rproc_set_firmware() API to set firmware_name

Re: [PATCH v5] misc: fs-loader: Use fw_storage_interface instead of storage_interface

2024-02-28 Thread MD Danish Anwar
On 27/02/24 7:33 pm, Sean Anderson wrote: > Hi Danish, > > On 2/27/24 05:26, MD Danish Anwar wrote: >> On 09/02/24 3:38 pm, MD Danish Anwar wrote: >>> The fs-loader driver reads env storage_interface and uses it to load >>> firmware file into memory us

Re: [PATCH v5] misc: fs-loader: Use fw_storage_interface instead of storage_interface

2024-02-27 Thread MD Danish Anwar
On 09/02/24 3:38 pm, MD Danish Anwar wrote: > The fs-loader driver reads env storage_interface and uses it to load > firmware file into memory using the medium set by env. Update the driver > to use env fw_storage_interface as this variable is only used to load > firmwares. This is

[PATCH v5] remoteproc: uclass: Add methods to load firmware to rproc and boot rproc

2024-02-17 Thread MD Danish Anwar
() will then load the firmware file to the remote processor and start the remote processor. Also include "fs-loader.h" and make remoteproc driver select FS_LOADER in Kconfig so that we can call request_firmware_into_buf() from remoteproc driver. Signed-off-by: MD Danish Anwar --- Chang

[PATCH v5] misc: fs-loader: Use fw_storage_interface instead of storage_interface

2024-02-09 Thread MD Danish Anwar
. All other variables have 'fw_' prefix except for storage_interface. The env storage_interface will act as fallback so that the existing implementations do not break. Also update the FS Loader documentation accordingly. Signed-off-by: MD Danish Anwar --- Cc: Sean Anderson Changes from v4 to v5

Re: [PATCH v4] misc: fs-loader: Use fw_storage_interface instead of storage_interface

2024-02-09 Thread MD Danish Anwar
On 08/02/24 5:28 pm, Roger Quadros wrote: > > > On 08/02/2024 07:19, MD Danish Anwar wrote: >> Hi Sean, >> >> On 07/02/24 11:14 pm, Sean Anderson wrote: >>> On 1/30/24 01:26, MD Danish Anwar wrote: >>>> The fs-loader driver reads env storage_

Re: [PATCH v4] remoteproc: uclass: Add methods to load firmware to rproc and boot rproc

2024-02-09 Thread MD Danish Anwar
On 07/02/24 6:27 pm, Anwar, Md Danish wrote: > On 2/7/2024 6:05 PM, Roger Quadros wrote: >> >> >> On 07/02/2024 09:15, MD Danish Anwar wrote: >>> Hi Roger >>> >>> On 06/02/24 7:11 pm, Roger Quadros wrote: >>>> >>>> >>>

Re: [PATCH v4] misc: fs-loader: Use fw_storage_interface instead of storage_interface

2024-02-07 Thread MD Danish Anwar
Hi Sean, On 07/02/24 11:14 pm, Sean Anderson wrote: > On 1/30/24 01:26, MD Danish Anwar wrote: >> The fs-loader driver reads env storage_interface and uses it to load >> firmware file into memory using the medium set by env. Update the driver >> to use env fw_storage_inter

Re: [PATCH v4] remoteproc: uclass: Add methods to load firmware to rproc and boot rproc

2024-02-06 Thread MD Danish Anwar
Hi Roger On 06/02/24 7:11 pm, Roger Quadros wrote: > > > On 06/02/2024 07:31, MD Danish Anwar wrote: >> >> >> On 05/02/24 6:07 pm, Roger Quadros wrote: >>> >>> >>> On 05/02/2024 12:20, MD Danish Anwar wrote: >>>> >>>

Re: [PATCH v4] remoteproc: uclass: Add methods to load firmware to rproc and boot rproc

2024-02-05 Thread MD Danish Anwar
On 05/02/24 6:07 pm, Roger Quadros wrote: > > > On 05/02/2024 12:20, MD Danish Anwar wrote: >> >> >> On 05/02/24 3:36 pm, Roger Quadros wrote: >>> >>> >>> On 02/02/2024 18:40, Anwar, Md Danish wrote: >>>> Hi Roger, >>>

Re: [PATCH v4] remoteproc: uclass: Add methods to load firmware to rproc and boot rproc

2024-02-05 Thread MD Danish Anwar
On 05/02/24 3:36 pm, Roger Quadros wrote: > > > On 02/02/2024 18:40, Anwar, Md Danish wrote: >> Hi Roger, >> >> On 2/2/2024 4:49 PM, Roger Quadros wrote: >>> >>> >>> On 30/01/2024 08:33, MD Danish Anwar wrote: >>>

[PATCH v4] remoteproc: uclass: Add methods to load firmware to rproc and boot rproc

2024-01-29 Thread MD Danish Anwar
() will then load the firmware file to the remote processor and start the remote processor. Also include "fs-loader.h" and make remoteproc driver select FS_LOADER in Kconfig so that we can call request_firmware_into_buf() from remoteproc driver. Signed-off-by: MD Danish Anwar --- Chang

[PATCH v4] misc: fs-loader: Use fw_storage_interface instead of storage_interface

2024-01-29 Thread MD Danish Anwar
implementations do not break. Also update the FS Loader documentation accordingly. Signed-off-by: MD Danish Anwar --- Changes from v3 to v4: *) No functional change. Splitted the patch out of the series as suggested by Nishant. *) Droppped the RFC tag. v3: https://lore.kernel.org/all

[PATCH v4] dma: ti: k3-udma: Use ring_idx to pair k3 nav rings

2024-01-29 Thread MD Danish Anwar
Use ring_idx to pair rings. ring_idx will be same as tx flow_id for all non-negative flow_ids. For negative flow_ids, ring_idx will be tchan->id added with bchan_cnt. Signed-off-by: MD Danish Anwar --- Changes from v3 to v4: *) No functional change. Splitted the patch out of the ser

Re: [RFC PATCH v3 14/15] board: ti: am65x: Add check for k3-am654-icssg2 in board_fit_config_match()

2024-01-24 Thread MD Danish Anwar
On 24/01/24 1:57 pm, Dan Carpenter wrote: > On Wed, Jan 24, 2024 at 12:19:29PM +0530, MD Danish Anwar wrote: >> When CONFIG_TI_ICSSG_PRUETH is enabled, add config name check for the >> icssg2 overlay in board_fit_config_match() API. >> >> Signed-off-by: MD Danish

[RFC PATCH v3 11/15] arm: dts: k3-am65x-binman: Add ICSSG2 overlay and configuration

2024-01-24 Thread MD Danish Anwar
Add ICSSG2 overlay and configuration to tispl and u-boot images. Signed-off-by: MD Danish Anwar --- arch/arm/dts/k3-am65x-binman.dtsi | 65 +-- 1 file changed, 61 insertions(+), 4 deletions(-) diff --git a/arch/arm/dts/k3-am65x-binman.dtsi b/arch/arm/dts/k3-am65x

[RFC PATCH v3 15/15] board: ti: am65x: Set fw_storage_interface and fw_dev_part ENVs

2024-01-24 Thread MD Danish Anwar
modify this based on their needs. Signed-off-by: MD Danish Anwar --- board/ti/am65x/am65x.env | 4 1 file changed, 4 insertions(+) diff --git a/board/ti/am65x/am65x.env b/board/ti/am65x/am65x.env index 286b9c300c..5d6b98b87c 100644 --- a/board/ti/am65x/am65x.env +++ b/board/ti/am65x

[RFC PATCH v3 14/15] board: ti: am65x: Add check for k3-am654-icssg2 in board_fit_config_match()

2024-01-24 Thread MD Danish Anwar
When CONFIG_TI_ICSSG_PRUETH is enabled, add config name check for the icssg2 overlay in board_fit_config_match() API. Signed-off-by: MD Danish Anwar --- board/ti/am65x/evm.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/board/ti/am65x/evm.c b/board/ti/am65x

[RFC PATCH v3 13/15] configs: am65x_evm_a53: add SPL_LOAD_FIT_APPLY_OVERLAY

2024-01-24 Thread MD Danish Anwar
We want SPL to apply DTB overlays (e.g. ICSSG2 overlay) so enable SPL_LOAD_FIT_APPLY_OVERLAY. Signed-off-by: MD Danish Anwar --- configs/am65x_evm_a53_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index aeea24d773

[RFC PATCH v3 12/15] configs: am65x_evm_a53: Enable ICSSG Driver

2024-01-24 Thread MD Danish Anwar
Enable ICSSG driver in am65x_evm_a53_defconfig Signed-off-by: MD Danish Anwar --- configs/am65x_evm_a53_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index 529bda283d..aeea24d773 100644 --- a/configs

[RFC PATCH v3 10/15] arm: dts: k3-am654-base-board: Add ICSSG2 Ethernet support

2024-01-24 Thread MD Danish Anwar
ICSSG2 provides dual Gigabit Ethernet support. Add ICSSG2 ethernet node to an overlay k3-am654-icssg2.dtso Signed-off-by: MD Danish Anwar --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/k3-am654-icssg2.dtso | 145 ++ 2 files changed, 147 insertions(+), 1

[RFC PATCH v3 09/15] net: ti: icssg: Enforce pinctrl state on the MDIO child node

2024-01-24 Thread MD Danish Anwar
. Signed-off-by: MD Danish Anwar --- drivers/net/ti/Kconfig| 1 + drivers/net/ti/icssg_prueth.c | 59 +++ 2 files changed, 60 insertions(+) diff --git a/drivers/net/ti/Kconfig b/drivers/net/ti/Kconfig index 9fead2c7ce..6935b70e12 100644 --- a/drivers/net/ti

[RFC PATCH v3 08/15] net: ti: icssg: Add support sending FDB command to update rx_flow_id

2024-01-24 Thread MD Danish Anwar
ICSSG firmware supports FDB commands. Add support to send FDB commands from driver. Once rx_flow_id is obtained from dma, let firmware know that we are using this rx_flow_id by sending a FDB command. Signed-off-by: MD Danish Anwar --- drivers/net/ti/icssg_config.c | 66

[RFC PATCH v3 07/15] net: ti: icssg: Add ICSSG ethernet driver

2024-01-24 Thread MD Danish Anwar
. Signed-off-by: MD Danish Anwar --- drivers/net/ti/Kconfig| 8 + drivers/net/ti/Makefile | 1 + drivers/net/ti/icssg_prueth.c | 697 ++ drivers/net/ti/icssg_prueth.h | 3 + 4 files changed, 709 insertions(+) create mode 100644 drivers/net/ti

[RFC PATCH v3 05/15] net: ti: icssg: Add Firmware config and classification APIs.

2024-01-24 Thread MD Danish Anwar
structures. Signed-off-by: MD Danish Anwar --- drivers/net/ti/icss_mii_rt.h | 192 +++ drivers/net/ti/icssg_classifier.c | 376 drivers/net/ti/icssg_config.c | 397 ++ drivers/net/ti/icssg_config.h | 177

[RFC PATCH v3 06/15] net: ti: icssg: Add icssg queues APIs and macros

2024-01-24 Thread MD Danish Anwar
Add icssg_queue.c file. This file introduces macros and APIs related to ICSSG queues. These will be used by ICSSG Ethernet driver. Signed-off-by: MD Danish Anwar --- drivers/net/ti/icssg_prueth.h | 5 drivers/net/ti/icssg_queues.c | 51 +++ 2 files changed

[RFC PATCH v3 04/15] net: ti: icssg: Add Firmware Interface for ICSSG Ethernet driver.

2024-01-24 Thread MD Danish Anwar
Add firmware interface related headers and macros for ICSSG Ethernet driver. These macros will be later used by the ICSSG ethernet driver. Signed-off-by: MD Danish Anwar --- drivers/net/ti/icssg_switch_map.h | 209 ++ 1 file changed, 209 insertions(+) create mode

[RFC PATCH v3 03/15] remoteproc: uclass: Add methods to load firmware to rproc and boot rproc

2024-01-24 Thread MD Danish Anwar
() will then load the firmware file to the remote processor and start the remote processor. Also include "fs-loader.h" and make remoteproc driver select FS_LOADER in Kconfig so that we can call request_firmware_into_buf() from remoteproc driver. Signed-off-by: MD Danish Anwar --

[RFC PATCH v3 01/15] dma: ti: k3-udma: Use ring_idx to pair k3 nav rings

2024-01-24 Thread MD Danish Anwar
Use ring_idx to pair rings. ring_idx will be same as tx flow_id for all non-negative flow_ids. For negative flow_ids, ring_idx will be tchan->id added with bchan_cnt. Signed-off-by: MD Danish Anwar --- drivers/dma/ti/k3-udma.c | 11 +-- 1 file changed, 9 insertions(+), 2 deleti

[RFC PATCH v3 00/15] Introduce ICSSG Ethernet driver

2024-01-24 Thread MD Danish Anwar
/20231219103418.3445886-16-danishan...@ti.com/ NOTE: All the device tree changes introduced in this patch are already part of upstream linux kernel. Thanks and Regards, MD Danish Anwar MD Danish Anwar (15): dma: ti: k3-udma: Use ring_idx to pair k3 nav rings misc: fs-loader: Use fw_storage_interface

[RFC PATCH v3 02/15] misc: fs-loader: Use fw_storage_interface instead of storage_interface

2024-01-24 Thread MD Danish Anwar
implementations do not break. Also update the FS Loader documentation accordingly. Signed-off-by: MD Danish Anwar --- doc/develop/driver-model/fs_firmware_loader.rst | 5 - drivers/misc/fs_loader.c| 5 - 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/doc

[RFC PATCH v2 15/15] board: ti: am65x: Set fw_storage_interface and fw_dev_part ENVs

2024-01-11 Thread MD Danish Anwar
modify this based on their needs. Signed-off-by: MD Danish Anwar --- board/ti/am65x/am65x.env | 4 1 file changed, 4 insertions(+) diff --git a/board/ti/am65x/am65x.env b/board/ti/am65x/am65x.env index 286b9c300c..5d6b98b87c 100644 --- a/board/ti/am65x/am65x.env +++ b/board/ti/am65x

[RFC PATCH v2 14/15] board: ti: am65x: Add check for k3-am654-icssg2 in board_fit_config_match()

2024-01-11 Thread MD Danish Anwar
When CONFIG_TI_ICSSG_PRUETH is enabled, add config name check for the icssg2 overlay in board_fit_config_match() API. Signed-off-by: MD Danish Anwar --- board/ti/am65x/evm.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/board/ti/am65x/evm.c b/board/ti/am65x

[RFC PATCH v2 11/15] arm: dts: k3-am65x-binman: Add ICSSG2 overlay and configuration

2024-01-11 Thread MD Danish Anwar
Add ICSSG2 overlay and configuration to tispl and u-boot images. Signed-off-by: MD Danish Anwar --- arch/arm/dts/k3-am65x-binman.dtsi | 65 +-- 1 file changed, 61 insertions(+), 4 deletions(-) diff --git a/arch/arm/dts/k3-am65x-binman.dtsi b/arch/arm/dts/k3-am65x

[RFC PATCH v2 10/15] arm: dts: k3-am654-base-board: Add ICSSG2 Ethernet support

2024-01-11 Thread MD Danish Anwar
ICSSG2 provides dual Gigabit Ethernet support. Add ICSSG2 ethernet node to an overlay k3-am654-icssg2.dtso Signed-off-by: MD Danish Anwar --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/k3-am654-icssg2.dtso | 145 ++ 2 files changed, 147 insertions(+), 1

[RFC PATCH v2 13/15] configs: am65x_evm_a53: add SPL_LOAD_FIT_APPLY_OVERLAY

2024-01-11 Thread MD Danish Anwar
We want SPL to apply DTB overlays (e.g. ICSSG2 overlay) so enable SPL_LOAD_FIT_APPLY_OVERLAY. Signed-off-by: MD Danish Anwar --- configs/am65x_evm_a53_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index aeea24d773

[RFC PATCH v2 12/15] configs: am65x_evm_a53: Enable ICSSG Driver

2024-01-11 Thread MD Danish Anwar
Enable ICSSG driver in am65x_evm_a53_defconfig Signed-off-by: MD Danish Anwar --- configs/am65x_evm_a53_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index 529bda283d..aeea24d773 100644 --- a/configs

[RFC PATCH v2 08/15] net: ti: icssg: Add support sending FDB command to update rx_flow_id

2024-01-11 Thread MD Danish Anwar
ICSSG firmware supports FDB commands. Add support to send FDB commands from driver. Once rx_flow_id is obtained from dma, let firmware know that we are using this rx_flow_id by sending a FDB command. Signed-off-by: MD Danish Anwar --- drivers/net/ti/icssg_config.c | 66

[RFC PATCH v2 05/15] net: ti: icssg: Add Firmware config and classification APIs.

2024-01-11 Thread MD Danish Anwar
structures. Signed-off-by: MD Danish Anwar --- drivers/net/ti/icss_mii_rt.h | 192 +++ drivers/net/ti/icssg_classifier.c | 376 drivers/net/ti/icssg_config.c | 397 ++ drivers/net/ti/icssg_config.h | 177

[RFC PATCH v2 09/15] net: ti: icssg: Enforce pinctrl state on the MDIO child node

2024-01-11 Thread MD Danish Anwar
. Signed-off-by: MD Danish Anwar --- drivers/net/ti/Kconfig| 1 + drivers/net/ti/icssg_prueth.c | 59 +++ 2 files changed, 60 insertions(+) diff --git a/drivers/net/ti/Kconfig b/drivers/net/ti/Kconfig index 9fead2c7ce..6935b70e12 100644 --- a/drivers/net/ti

[RFC PATCH v2 06/15] net: ti: icssg: Add icssg queues APIs and macros

2024-01-11 Thread MD Danish Anwar
Add icssg_queue.c file. This file introduces macros and APIs related to ICSSG queues. These will be used by ICSSG Ethernet driver. Signed-off-by: MD Danish Anwar --- drivers/net/ti/icssg_prueth.h | 5 drivers/net/ti/icssg_queues.c | 51 +++ 2 files changed

[RFC PATCH v2 07/15] net: ti: icssg: Add ICSSG ethernet driver

2024-01-11 Thread MD Danish Anwar
. Signed-off-by: MD Danish Anwar --- drivers/net/ti/Kconfig| 8 + drivers/net/ti/Makefile | 1 + drivers/net/ti/icssg_prueth.c | 697 ++ drivers/net/ti/icssg_prueth.h | 3 + 4 files changed, 709 insertions(+) create mode 100644 drivers/net/ti

[RFC PATCH v2 00/15] Introduce ICSSG Ethernet driver

2024-01-11 Thread MD Danish Anwar
Anwar MD Danish Anwar (15): dma: ti: k3-udma: Use ring_idx to pair k3 nav rings misc: fs-loader: Use fw_storage_interface instead of storage_interface remoteproc: uclass: Add methods to load firmware to rproc and boot rproc net: ti: icssg: Add Firmware Interface for ICSSG Ethernet

[RFC PATCH v2 01/15] dma: ti: k3-udma: Use ring_idx to pair k3 nav rings

2024-01-11 Thread MD Danish Anwar
Use ring_idx to pair rings. ring_idx will be same as tx flow_id for all non-negative flow_ids. For negative flow_ids, ring_idx will be tchan->id added with bchan_cnt. Signed-off-by: MD Danish Anwar --- drivers/dma/ti/k3-udma.c | 11 +-- 1 file changed, 9 insertions(+), 2 deleti

[RFC PATCH v2 03/15] remoteproc: uclass: Add methods to load firmware to rproc and boot rproc

2024-01-11 Thread MD Danish Anwar
() will then load the firmware file to the remote processor and start the remote processor. Also include "fs-loader.h" and make remoteproc driver select FS_LOADER in Kconfig so that we can call request_firmware_into_buf() from remoteproc driver. Signed-off-by: MD Danish Anwar --

[RFC PATCH v2 04/15] net: ti: icssg: Add Firmware Interface for ICSSG Ethernet driver.

2024-01-11 Thread MD Danish Anwar
Add firmware interface related headers and macros for ICSSG Ethernet driver. These macros will be later used by the ICSSG ethernet driver. Signed-off-by: MD Danish Anwar --- drivers/net/ti/icssg_switch_map.h | 209 ++ 1 file changed, 209 insertions(+) create mode

[RFC PATCH v2 02/15] misc: fs-loader: Use fw_storage_interface instead of storage_interface

2024-01-11 Thread MD Danish Anwar
implementations do not break. Also update the FS Loader documentation accordingly. Signed-off-by: MD Danish Anwar --- doc/develop/driver-model/fs_firmware_loader.rst | 5 - drivers/misc/fs_loader.c| 5 - 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/doc

Re: [RFC PATCH 15/16] tools/fdtgrep: Include __symbols__ table

2024-01-10 Thread MD Danish Anwar
Hi Simon, On 26/12/23 3:17 pm, Simon Glass wrote: > Hi, > > On Tue, Dec 19, 2023 at 10:34 AM MD Danish Anwar wrote: >> >> This is required for overlays to work at SPL. >> >> Loading of symbol table depends on DT Overlay support in SPL >> so make it compile

Re: [RFC PATCH 12/16] arm: dts: k3-am65x-binman: Add ICSSG2 overlay and configuration

2024-01-10 Thread MD Danish Anwar
On 10/01/24 2:24 pm, Roger Quadros wrote: > On 10/01/2024 08:50, MD Danish Anwar wrote: >> Hi Roger, >> >> On 27/12/23 3:49 pm, MD Danish Anwar wrote: >>> On 20/12/23 4:10 pm, Roger Quadros wrote: >>>> >>>> >>>> On

Re: [RFC PATCH 12/16] arm: dts: k3-am65x-binman: Add ICSSG2 overlay and configuration

2024-01-09 Thread MD Danish Anwar
Hi Roger, On 27/12/23 3:49 pm, MD Danish Anwar wrote: > On 20/12/23 4:10 pm, Roger Quadros wrote: >> >> >> On 19/12/2023 12:34, MD Danish Anwar wrote: >>> Add ICSSG2 overlay and configuration to tispl and u-boot images. >>> >>> Signed-off-by: MD

Re: [RFC PATCH 00/16] Introduce ICSSG Ethernet driver

2024-01-09 Thread MD Danish Anwar
On 09/01/24 2:56 pm, Roger Quadros wrote: > > > On 08/01/2024 12:25, MD Danish Anwar wrote: >> On 08/01/24 3:00 pm, Roger Quadros wrote: >>> >>> >>> On 05/01/2024 12:15, Anwar, Md Danish wrote: >>>> >>>> >>>> On 1/

Re: [RFC PATCH 00/16] Introduce ICSSG Ethernet driver

2024-01-08 Thread MD Danish Anwar
On 08/01/24 3:00 pm, Roger Quadros wrote: > > > On 05/01/2024 12:15, Anwar, Md Danish wrote: >> >> >> On 1/5/2024 1:49 PM, Roger Quadros wrote: >>> >>> >>> On 03/01/2024 12:27, MD Danish Anwar wrote: >>>> >>>> >&

Re: [RFC PATCH 00/16] Introduce ICSSG Ethernet driver

2024-01-03 Thread MD Danish Anwar
On 02/01/24 7:26 pm, Andrew Davis wrote: > On 12/27/23 12:56 AM, MD Danish Anwar wrote: >> >> >> On 22/12/23 6:13 pm, Roger Quadros wrote: >>> >>> On 22/12/2023 12:26, MD Danish Anwar wrote: >>>> Hi Roger, >>>> >>>> On

Re: [RFC PATCH 12/16] arm: dts: k3-am65x-binman: Add ICSSG2 overlay and configuration

2023-12-27 Thread MD Danish Anwar
On 20/12/23 4:10 pm, Roger Quadros wrote: > > > On 19/12/2023 12:34, MD Danish Anwar wrote: >> Add ICSSG2 overlay and configuration to tispl and u-boot images. >> >> Signed-off-by: MD Danish Anwar >> --- >> arch/arm/dts/k3-am65x-binman.dtsi | 85 +++

Re: [RFC PATCH 00/16] Introduce ICSSG Ethernet driver

2023-12-26 Thread MD Danish Anwar
On 22/12/23 6:13 pm, Roger Quadros wrote: > > On 22/12/2023 12:26, MD Danish Anwar wrote: >> Hi Roger, >> >> On 20/12/23 3:29 pm, Roger Quadros wrote: >>> Hi, >>> >>> On 19/12/2023 12:11, MD Danish Anwar wrote: >>>> Introduc

Re: [RFC PATCH 00/16] Introduce ICSSG Ethernet driver

2023-12-22 Thread MD Danish Anwar
Hi Roger, On 20/12/23 3:29 pm, Roger Quadros wrote: > Hi, > > On 19/12/2023 12:11, MD Danish Anwar wrote: >> Introduce ICSSG PRUETH support in uboot. The ICSSG driver is used in TI >> AM654 SR2.0. >> >> The ICSSG PRU Sub-system runs on EMAC firmware. This serie

Re: [RFC PATCH 14/16] configs: am65x_evm_a53_defconfig: add SPL_LOAD_FIT_APPLY_OVERLAY

2023-12-21 Thread MD Danish Anwar
Roger, On 20/12/23 3:32 pm, Roger Quadros wrote: > > > On 19/12/2023 12:34, MD Danish Anwar wrote: >> We want SPL to apply DTB overlays (e.g. NAND card overlay) so >> enable SPL_LOAD_FIT_APPLY_OVERLAY. >> Increase SPL_LOAD_FIT_APPLY_OVERLAY_BUF_SZ and >> SPL_S

Re: [RFC PATCH 16/16] Revert "dm: core: Report bootph-pre-ram/sram node as pre-reloc after relocation"

2023-12-20 Thread MD Danish Anwar
Hi Simon, Please ignore this thread. This patch is actually not part of the series and I mistakenly posted it. I have reposted this series. Please review that. Sorry for the inconvinience. On 20/12/23 10:16 am, Simon Glass wrote: > Hi, > > On Tue, 19 Dec 2023 at 03:13, MD Danish Anw

Re: [RFC PATCH 10/16] arm: dts: k3-am65-main: Add ICSSG IEP nodes

2023-12-20 Thread MD Danish Anwar
Hi Tom, On 19/12/23 11:16 pm, Tom Rini wrote: > On Tue, Dec 19, 2023 at 04:04:12PM +0530, MD Danish Anwar wrote: > >> The ICSSG IP on AM65x SoCs have two Industrial Ethernet Peripherals (IEPs) >> to manage/generate Industrial Ethernet functions such as time stamping. >

[RFC PATCH 15/16] tools/fdtgrep: Include __symbols__ table

2023-12-19 Thread MD Danish Anwar
CONFIG_SPL_LOAD_FIT_APPLY_OVERLAY will not be visible and we will never include the symbol table. So include Due to some reason it needs to be included after [#include "fdt_host.h"] otherwise it causes a build error. Signed-off-by: MD Danish Anwar --- tools/fdtgrep.c | 8 1 file changed, 8

[RFC PATCH 11/16] arm: dts: k3-am654-base-board: Add ICSSG2 Ethernet support

2023-12-19 Thread MD Danish Anwar
ICSSG2 provides dual Gigabit Ethernet support. Add ICSSG2 ethernet node to an overlay k3-am654-icssg2.dtso Signed-off-by: MD Danish Anwar --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/k3-am654-icssg2.dtso | 145 ++ 2 files changed, 147 insertions(+), 1

[RFC PATCH 14/16] configs: am65x_evm_a53_defconfig: add SPL_LOAD_FIT_APPLY_OVERLAY

2023-12-19 Thread MD Danish Anwar
We want SPL to apply DTB overlays (e.g. NAND card overlay) so enable SPL_LOAD_FIT_APPLY_OVERLAY. Increase SPL_LOAD_FIT_APPLY_OVERLAY_BUF_SZ and SPL_STACK_R_MALLOC_SIMPLE_LEN. Without this SPL hangs. Signed-off-by: MD Danish Anwar --- configs/am65x_evm_a53_defconfig | 3 +++ 1 file changed, 3

[RFC PATCH 12/16] arm: dts: k3-am65x-binman: Add ICSSG2 overlay and configuration

2023-12-19 Thread MD Danish Anwar
Add ICSSG2 overlay and configuration to tispl and u-boot images. Signed-off-by: MD Danish Anwar --- arch/arm/dts/k3-am65x-binman.dtsi | 85 +++ 1 file changed, 85 insertions(+) diff --git a/arch/arm/dts/k3-am65x-binman.dtsi b/arch/arm/dts/k3-am65x-binman.dtsi index

  1   2   >