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

Keerthy j-keerthy at ti.com
Tue Aug 6 10:38:30 UTC 2019


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.

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

-- 
2.17.1



More information about the U-Boot mailing list