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

2023-12-19 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 00/16] Introduce ICSSG Ethernet driver

2023-12-19 Thread MD Danish Anwar
, gp-rings[304,100] sci-dev-id:187 k3-navss-ringacc ringacc@3c00: dma-ring-reset-quirk: disabled prueth icssg2-eth: K3 ICSSG: rflow_id_base: 8, chn_name = rx0 link up on port 0, speed 1000, full duplex BOOTP broadcast 1 BOOTP broadcast 2 BOOTP broadcast 3 DHCP client bound to address 192.168.

[RFC PATCH 01/16] net: ti: icssg: Add Firmware Interface for ICSSG Ethernet driver.

2023-12-19 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 02/16] net: ti: icssg: Add Firmware Interface for ICSSG Ethernet driver.

2023-12-19 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 02/16] net: ti: icssg: Add Firmware config and classification APIs.

2023-12-19 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 | 403 ++ drivers/net/ti/icssg_config.h | 177

[RFC PATCH 03/16] net: ti: icssg: Add Firmware config and classification APIs.

2023-12-19 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 | 403 ++ drivers/net/ti/icssg_config.h | 177

[RFC PATCH 03/16] net: ti: icssg: Add icssg queues APIs and macros

2023-12-19 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 04/16] net: ti: icssg: Add ICSSG ethernet driver

2023-12-19 Thread MD Danish Anwar
interface at a time. Signed-off-by: MD Danish Anwar --- drivers/net/ti/Kconfig| 8 + drivers/net/ti/Makefile | 1 + drivers/net/ti/icssg_prueth.c | 589 ++ 3 files changed, 598 insertions(+) create mode 100644 drivers/net/ti/icssg_prueth.c diff --git

[RFC PATCH 04/16] net: ti: icssg: Add icssg queues APIs and macros

2023-12-19 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 05/16] net: ti: icssg: Add support sending FDB command to update rx_flow_id

2023-12-19 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 05/16] net: ti: icssg: Add ICSSG ethernet driver

2023-12-19 Thread MD Danish Anwar
interface at a time. Signed-off-by: MD Danish Anwar --- drivers/net/ti/Kconfig| 8 + drivers/net/ti/Makefile | 1 + drivers/net/ti/icssg_prueth.c | 589 ++ 3 files changed, 598 insertions(+) create mode 100644 drivers/net/ti/icssg_prueth.c diff --git

[RFC PATCH 06/16] net: ti: icssg: Add support sending FDB command to update rx_flow_id

2023-12-19 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 06/16] net: ti: icssg: Enforce pinctrl state on the MDIO child node

2023-12-19 Thread MD Danish Anwar
uxing. 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/n

[RFC PATCH 07/16] arm: dts: k3-am65: Add additional regs for DMA components

2023-12-19 Thread MD Danish Anwar
Add additional reg properties for UDMA and RingAcc nodes which are mostly used by bootloader components before Device Manager firmware services are available, in order to setup DMA transfers. Signed-off-by: MD Danish Anwar --- arch/arm/dts/k3-am65-main.dtsi | 8 ++-- arch/arm/dts/k3-am65

[RFC PATCH 08/16] arm: dts: k3-am65: Add additional regs for DMA components

2023-12-19 Thread MD Danish Anwar
Add additional reg properties for UDMA and RingAcc nodes which are mostly used by bootloader components before Device Manager firmware services are available, in order to setup DMA transfers. Signed-off-by: MD Danish Anwar --- arch/arm/dts/k3-am65-main.dtsi | 8 ++-- arch/arm/dts/k3-am65

[RFC PATCH 09/16] arm: dts: k3-am65: Add cfg reg region to ringacc node

2023-12-19 Thread MD Danish Anwar
Add register range of ringacc cfg node to k3-am65* dtsi files. This is normally under Device Management firmware control but some entities like bootloader have to access directly and thus required to be present in DT. Signed-off-by: MD Danish Anwar --- arch/arm/dts/k3-am65-main.dtsi | 5

[RFC PATCH 07/16] net: ti: icssg: Enforce pinctrl state on the MDIO child node

2023-12-19 Thread MD Danish Anwar
uxing. 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/n

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

2023-12-19 Thread MD Danish Anwar
d the IEP nodes for all the ICSSG instances. Signed-off-by: MD Danish Anwar --- arch/arm/dts/k3-am65-main.dtsi | 36 ++ 1 file changed, 36 insertions(+) diff --git a/arch/arm/dts/k3-am65-main.dtsi b/arch/arm/dts/k3-am65-main.dtsi index 7f10520236..da48887559 100644

[RFC PATCH 10/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 08/16] arm: dts: k3-am65: Add cfg reg region to ringacc node

2023-12-19 Thread MD Danish Anwar
Add register range of ringacc cfg node to k3-am65* dtsi files. This is normally under Device Management firmware control but some entities like bootloader have to access directly and thus required to be present in DT. Signed-off-by: MD Danish Anwar --- arch/arm/dts/k3-am65-main.dtsi | 5

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

2023-12-19 Thread MD Danish Anwar
d the IEP nodes for all the ICSSG instances. Signed-off-by: MD Danish Anwar --- arch/arm/dts/k3-am65-main.dtsi | 36 ++ 1 file changed, 36 insertions(+) diff --git a/arch/arm/dts/k3-am65-main.dtsi b/arch/arm/dts/k3-am65-main.dtsi index 7f10520236..da48887559 100644

[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.dts 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 11/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

[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

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

2023-12-19 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 55289b967b..e79a961317 100644 --- a/configs

[RFC PATCH 13/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 13/16] configs: am65x_evm_a53: Enable ICSSG Driver

2023-12-19 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 55289b967b..e79a961317 100644 --- a/configs

[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 14/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 15/16] board: ti: am65x: Add check for k3-am654-icssg2 in board_fit_config_match()

2023-12-19 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 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 16/16] board: ti: am65x: Add check for k3-am654-icssg2 in board_fit_config_match()

2023-12-19 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 16/16] Revert "dm: core: Report bootph-pre-ram/sram node as pre-reloc after relocation"

2023-12-19 Thread MD Danish Anwar
This reverts commit 9e644284ab812f2db23f6185af77c0e771b0be73. --- drivers/core/ofnode.c | 2 +- include/dm/ofnode.h | 8 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c index 21a233f90f..cc2029e62d 100644 --- a/drivers/core/of

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

2023-12-19 Thread MD Danish Anwar
Hi All, Please ignore this thread. Some mails seems to have been duplicated. I will post another thread soon. Pls ignore this. Sorry for the inconvenience. On 19/12/23 3:41 pm, MD Danish Anwar wrote: > Introduce ICSSG PRUETH support in uboot. The ICSSG driver is used in TI > AM654

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

2023-12-19 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 00/16] Introduce ICSSG Ethernet driver

2023-12-19 Thread MD Danish Anwar
, gp-rings[304,100] sci-dev-id:187 k3-navss-ringacc ringacc@3c00: dma-ring-reset-quirk: disabled prueth icssg2-eth: K3 ICSSG: rflow_id_base: 8, chn_name = rx0 link up on port 0, speed 1000, full duplex BOOTP broadcast 1 BOOTP broadcast 2 BOOTP broadcast 3 DHCP client bound to address 192.168.4.

[RFC PATCH 05/16] net: ti: icssg: Add ICSSG ethernet driver

2023-12-19 Thread MD Danish Anwar
interface at a time. Signed-off-by: MD Danish Anwar --- drivers/net/ti/Kconfig| 8 + drivers/net/ti/Makefile | 1 + drivers/net/ti/icssg_prueth.c | 589 ++ 3 files changed, 598 insertions(+) create mode 100644 drivers/net/ti/icssg_prueth.c diff --git

[RFC PATCH 06/16] net: ti: icssg: Add support sending FDB command to update rx_flow_id

2023-12-19 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 02/16] net: ti: icssg: Add Firmware Interface for ICSSG Ethernet driver.

2023-12-19 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 04/16] net: ti: icssg: Add icssg queues APIs and macros

2023-12-19 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 10/16] arm: dts: k3-am65-main: Add ICSSG IEP nodes

2023-12-19 Thread MD Danish Anwar
d the IEP nodes for all the ICSSG instances. Signed-off-by: MD Danish Anwar --- arch/arm/dts/k3-am65-main.dtsi | 36 ++ 1 file changed, 36 insertions(+) diff --git a/arch/arm/dts/k3-am65-main.dtsi b/arch/arm/dts/k3-am65-main.dtsi index 7f10520236..da48887559 100644

[RFC PATCH 03/16] net: ti: icssg: Add Firmware config and classification APIs.

2023-12-19 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 | 403 ++ drivers/net/ti/icssg_config.h | 177

[RFC PATCH 13/16] configs: am65x_evm_a53: Enable ICSSG Driver

2023-12-19 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 55289b967b..e79a961317 100644 --- a/configs

[RFC PATCH 07/16] net: ti: icssg: Enforce pinctrl state on the MDIO child node

2023-12-19 Thread MD Danish Anwar
uxing. 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/n

[RFC PATCH 09/16] arm: dts: k3-am65: Add cfg reg region to ringacc node

2023-12-19 Thread MD Danish Anwar
Add register range of ringacc cfg node to k3-am65* dtsi files. This is normally under Device Management firmware control but some entities like bootloader have to access directly and thus required to be present in DT. Signed-off-by: MD Danish Anwar --- arch/arm/dts/k3-am65-main.dtsi | 5

[RFC PATCH 08/16] arm: dts: k3-am65: Add additional regs for DMA components

2023-12-19 Thread MD Danish Anwar
Add additional reg properties for UDMA and RingAcc nodes which are mostly used by bootloader components before Device Manager firmware services are available, in order to setup DMA transfers. Signed-off-by: MD Danish Anwar --- arch/arm/dts/k3-am65-main.dtsi | 8 ++-- arch/arm/dts/k3-am65

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

2023-12-19 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 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

[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 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 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

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. >>

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 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 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 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 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 +++

[PATCH v2 0/2] Enable ICSSG Driver for AM64x

2024-06-12 Thread MD Danish Anwar
-danishan...@ti.com/ [0] https://lore.kernel.org/all/cb53651f-a823-41b8-81e5-c3939bd33...@ti.com/ Thanks and Regards, MD Danish Anwar MD Danish Anwar (2): configs: am64x_evm_a53: Enable ICSSG Driver board: ti: am64x: Set storage_interface and fw_dev_part ENVs board/ti/am64x/am64x.env| 5

[PATCH v2 1/2] configs: am64x_evm_a53: Enable ICSSG Driver

2024-06-12 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 v2 2/2] board: ti: am64x: Set storage_interface and fw_dev_part ENVs

2024-06-12 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] remoteproc: uclass: Modify uc_pdata->name to use combination of device name and device's parent name

2024-07-19 Thread MD Danish Anwar
_init() will fail. Fix this by using combination of dev->name and dev->parent->name instead of using just the dev->name to populate uc_pdata->name. Signed-off-by: MD Danish Anwar --- Cc: Andrew Davis Failure Example: In k3-am64-main.dtsi, both pru0_0 [1] and pru1_0 [2] will have

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 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-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 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 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 19/

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

[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

[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 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 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 00/15] Introduce ICSSG Ethernet driver

2024-01-11 Thread MD Danish Anwar
anish 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 Eth

[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 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 09/15] net: ti: icssg: Enforce pinctrl state on the MDIO child node

2024-01-11 Thread MD Danish Anwar
uxing. 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/n

[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 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 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 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 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 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 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 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 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 v3 00/15] Introduce ICSSG Ethernet driver

2024-01-24 Thread MD Danish Anwar
g/all/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_inte

[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 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 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 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 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 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 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 09/15] net: ti: icssg: Enforce pinctrl state on the MDIO child node

2024-01-24 Thread MD Danish Anwar
uxing. 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/n

[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 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 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 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 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 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

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

  1   2   >