mbox series

[v2,0/7] rockchip: Add GMAC support for RK3568 and RK3588

Message ID 20231001191730.4167035-1-jonas@kwiboo.se
Headers show
Series rockchip: Add GMAC support for RK3568 and RK3588 | expand

Message

Jonas Karlman Oct. 1, 2023, 7:17 p.m. UTC
This series adds a glue driver, dwc_eth_qos_rockchip, to support GMAC
on RK356x and RK3588.

rk_gmac_ops used in this series has been ported from mainline linux.

Patch 1-3 does some minor cleanup in dwc_eth_qos driver.
Patch 4 add glue driver with RK3568 support.
Patch 5 add support for RK3588 to glue driver.
Patch 6-7 update defconfigs to enable use of the new driver.

Changes in v2:
- Add comment about ported code intentionally left close to 1:1 with linux
- Add lubancat-2-rk3568_defconfig changes
- Add rock5b-rk3588_defconfig changes
- Collect r-b tags

Dependencies:
- "rockchip: Port IO-domain driver for RK3568 from linux" [1]

dhcp and ping commands has been tested on the followin devices:
- RK3566: Quartz64 Model A and SOQuartz on Blade
- RK3568: ROCK 3 Model A
- RK3588: ROCK 5 Model A

This series can also be found at [2].

[1] https://patchwork.ozlabs.org/cover/1823769/
[2] https://github.com/Kwiboo/u-boot-rockchip/commits/rk35xx-gmac-v2

Jonas Karlman (7):
  net: dwc_eth_qos: Drop unused rx_pkt from eqos_priv
  net: dwc_eth_qos: Return error code when start fails
  net: dwc_eth_qos: Stop spam of RX packet not available message
  net: dwc_eth_qos: Add glue driver for GMAC on Rockchip RK3568
  net: dwc_eth_qos_rockchip: Add support for RK3588
  configs: rockchip: Enable ethernet driver on RK356x boards
  configs: rockchip: Enable ethernet driver on RK3588 boards

 configs/evb-rk3568_defconfig              |   6 +-
 configs/evb-rk3588_defconfig              |   5 +-
 configs/lubancat-2-rk3568_defconfig       |   3 +
 configs/nanopi-r5s-rk3568_defconfig       |   3 +
 configs/neu6a-io-rk3588_defconfig         |   2 -
 configs/neu6b-io-rk3588_defconfig         |   2 -
 configs/odroid-m1-rk3568_defconfig        |   3 +
 configs/quartz64-a-rk3566_defconfig       |   3 +
 configs/quartz64-b-rk3566_defconfig       |   3 +
 configs/radxa-cm3-io-rk3566_defconfig     |   6 +-
 configs/rock-3a-rk3568_defconfig          |   5 +-
 configs/rock5a-rk3588s_defconfig          |   5 +-
 configs/rock5b-rk3588_defconfig           |   3 +-
 configs/soquartz-blade-rk3566_defconfig   |   3 +
 configs/soquartz-cm4-rk3566_defconfig     |   3 +
 configs/soquartz-model-a-rk3566_defconfig |   3 +
 drivers/net/Kconfig                       |   8 +
 drivers/net/Makefile                      |   1 +
 drivers/net/dwc_eth_qos.c                 |  33 +-
 drivers/net/dwc_eth_qos.h                 |   3 +-
 drivers/net/dwc_eth_qos_rockchip.c        | 522 ++++++++++++++++++++++
 21 files changed, 590 insertions(+), 35 deletions(-)
 create mode 100644 drivers/net/dwc_eth_qos_rockchip.c