Skip to content

net: ti: icssg: Add prueth support

Roger Quadros u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest0 of 10 patches 0 repliesNew

Patches in v2 No applies recorded yet

None of the 10 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/10] net: ti: icssg: Add prueth support

Hi Christian,

Quoted 3 lines · Christian Gmeiner

Hi all

Is there any update regarding this patch series?

I am working on revising this driver. Once ready I will post the updated version upstream.

cheers,
-roger

Quoted 86 lines

Am Do., 20. Feb. 2020 um 10:19 Uhr schrieb Keerthy <[email protected]>:

Quoted 79 lines · Keerthy
Quoted 5 lines

The series adds support for icssg_prueth functionality on u-boot. This series is based on top of master branch. rproc init needs to be done from uboot command prompt. The pru/rtu firmware loading is done by prueth driver soon after config paramters are setup.

A quick update on this series. It seems newer version of this hardware needs more modifications to this series. Hence please ignore v2.

Best Regards,
Keerthy

Quoted 63 lines

Currently only slice0/1 of icssg2 instance on am6-evm is supported. i.e Both slices of icssg2 instance are supported.

Prebuilt firmware can be obtained from AM65 procSDK [1] rootfs at /lib/firmware/ti-pruss/am65x*.elf

[1] http://software-dl.ti.com/processor-sdk-linux/esd/AM65X/latest/index_FDS.html

This tests tftp on prueth.

Note: Uboot ethernet driver architecture supports once instance per probe. So only one of the ports are supported per instance. So DT of prueth node should have either ethernet-mii0 or ethernet-mii1.

Changes in v2:

It has been a while since v1 was posted. Here are the changes:

* Removed the usage of misc_init_by_ofnode instead used uclass_get_device_by_ofnode.
* Introduced started variable to keep track of the status of the prueth device.
* Build Tested on Travis: https://travis-ci.org/Keerthyj/u-boot/builds/651449684

Keerthy (10):
net: eth-uclass: eth_get_dev based on SEQ_ALIAS instead of probe order
soc: ti: pruss: add a misc driver for PRUSS in TI SoCs
remoteproc: pruss: add PRU remoteproc driver
net: ti: icssg-prueth: Add ICSSG ethernet driver
arm: dts: k3-am65-main: Add msmc_ram node
arm: dts: k3-am654-base-board-u-boot: Add icssg specific msmc_ram
carveout nodes
arm: dts: k3-am65-main: Add scm_conf node
arm: dts: k3-am65-main: Add pruss nodes for ICSSG2
arm64: dts: ti: am654-base-board: add ICSSG2 Ethernet support
configs: am65x_evm_a53_defconfig: Enable CONFIG_TI_AM64_ICSSG_PRUETH

   arch/arm/dts/k3-am65-main.dtsi               | 191 ++++++
   arch/arm/dts/k3-am65.dtsi                    |   4 +-
   arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 129 ++++
   configs/am65x_evm_a53_defconfig              |   3 +
   drivers/net/ti/Kconfig                       |   8 +
   drivers/net/ti/Makefile                      |   1 +
   drivers/net/ti/icssg-prueth.c                | 652 +++++++++++++++++++
   drivers/net/ti/icssg.h                       |  36 +
   drivers/net/ti/icssg_classifier.c            | 396 +++++++++++
   drivers/remoteproc/Kconfig                   |  11 +
   drivers/remoteproc/Makefile                  |   1 +
   drivers/remoteproc/pru_rproc.c               | 405 ++++++++++++
   drivers/soc/ti/Kconfig                       |  12 +
   drivers/soc/ti/Makefile                      |   1 +
   drivers/soc/ti/pruss.c                       | 152 +++++
   include/ti-pruss.h                           |  17 +
   net/eth-uclass.c                             |  12 +-
   17 files changed, 2027 insertions(+), 4 deletions(-)

create mode 100644 drivers/net/ti/icssg-prueth.c create mode 100644 drivers/net/ti/icssg.h create mode 100644 drivers/net/ti/icssg_classifier.c create mode 100644 drivers/remoteproc/pru_rproc.c create mode 100644 drivers/soc/ti/pruss.c create mode 100644 include/ti-pruss.h

Signature · 2 lines
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki