Skip to content

net: ti: icssg: Add prueth support

Andreas Dannenberg u-boot 1 version New

Get series with b4
b4 am 20190806153523.atc3bbfsmit3u6se@jiji

Versions newest first

  1. v1 Latest5 of 14 patches 0 repliesNew

5 of 14 patches are in this archive. The cover letter announces 14.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
3/14misc: uclass: Introduce misc_init_by_ofnode+0 -00 replies
4/14soc: ti: pruss: add a misc driver for PRUSS in TI SoCs+0 -00 replies
6/14net: ti: icssg-prueth: Add ICSSG ethernet driver+0 -00 replies
8/14arm: dts: k3-am65-main: Add msmc_ram node+0 -00 replies
12/14arm64: dts: ti: am654-base-board: add ICSSG2 Ethernet support+0 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [U-Boot] [PATCH 00/14] net: ti: icssg: Add prueth support

Keerthy,

Quoted 5 lines · Keerthy

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.

for everybody's benefit, where does this firmware come from so one can experiment with this patch series?

--
Andreas Dannenberg
Texas Instruments Inc

Quoted 66 lines

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

On u-boot prompt following commands to test icssg2_port 0 on am654-evm:

setenv ethact pruss2_eth; setenv serverip 172.24.191.45; fatload mmc 1 ${pru0loadaddr} am65x-pru0-prueth-fw.elf; fatload mmc 1 ${rtu0loadaddr} am65x-rtu0-prueth-fw.elf; rproc init; setenv autoload no; dhcp; tftp 0x82000000 Image; tftp 0x83000000 k3-am654-base-board.dtb; booti 0x82000000 - 0x83000000

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.

Keerthy (14):
net: eth-uclass: eth_get_dev based on SEQ_ALIAS instead of probe order
net: eth-uclass: call stop only for active devices
misc: uclass: Introduce misc_init_by_ofnode
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
net: ti: icssg-prueth: Workaround to shutdown the prueth firmware
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_REMOTEPROC_TI_PRU
configs: am65x_evm_a53_defconfig: Enable CONFIG_CMD_REMOTEPROC

 arch/arm/dts/k3-am65-main.dtsi               | 212 ++++++++
 arch/arm/dts/k3-am65.dtsi                    |   4 +-
 arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 130 +++++
 configs/am65x_evm_a53_defconfig              |   5 +
 drivers/misc/misc-uclass.c                   |  25 +
 drivers/net/ti/Kconfig                       |   8 +
 drivers/net/ti/Makefile                      |   1 +
 drivers/net/ti/icssg-prueth.c                | 525 +++++++++++++++++++
 drivers/net/ti/icssg.h                       |  31 ++
 drivers/net/ti/icssg_classifier.c            | 397 ++++++++++++++
 drivers/remoteproc/Kconfig                   |  11 +
 drivers/remoteproc/Makefile                  |   1 +
 drivers/remoteproc/pru_rproc.c               | 384 ++++++++++++++
 drivers/soc/ti/Kconfig                       |  13 +
 drivers/soc/ti/Makefile                      |   1 +
 drivers/soc/ti/pruss.c                       | 143 +++++
 include/misc.h                               |   9 +
 include/ti-pruss.h                           |  13 +
 net/eth-uclass.c                             |   7 +-
 19 files changed, 1916 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 · 6 lines
2.17.1

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot