Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F1F83EB64DD for ; Sat, 12 Aug 2023 03:05:00 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3DD09868D9; Sat, 12 Aug 2023 05:04:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 8450D8693D; Sat, 12 Aug 2023 05:04:58 +0200 (CEST) Received: from mail-m17229.xmail.ntesmail.com (mail-m17229.xmail.ntesmail.com [45.195.17.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 92ED2868B0 for ; Sat, 12 Aug 2023 05:04:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=kever.yang@rock-chips.com Received: from [192.168.1.30] (unknown [120.36.75.98]) by mail-m127102.qiye.163.com (Hmail) with ESMTPA id BEE336C0110; Sat, 12 Aug 2023 11:04:47 +0800 (CST) Message-ID: Date: Sat, 12 Aug 2023 11:04:47 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 0/7] rockchip: Add GMAC support for RK3568 and RK3588 Content-Language: en-US To: Jonas Karlman , Simon Glass , Philipp Tomsich , =?UTF-8?B?5ZC06L6+6LaF?= Cc: Eugen Hristev , Frank Wunderlich , Nicolas Frattaroli , u-boot@lists.denx.de References: <20230807000817.1701012-1-jonas@kwiboo.se> From: Kever Yang In-Reply-To: <20230807000817.1701012-1-jonas@kwiboo.se> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkZSENOVhkZTh1PGUkdHxpNTFUTARMWGhIXJBQOD1 lXWRgSC1lBWUpJS1VITVVMTlVCQ1lXWRYaDxIVHRRZQVlPS0hVSk1PSU5IVUpLS1VKQktLWQY+ X-HM-Tid: 0a89e7b41c62b280kuuubee336c0110 X-HM-MType: 1 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6MDI6Kio4Cj1LHhY6FUIvLiFP FUtPFB5VSlVKTUJKQ0tCT0NDT0pNVTMWGhIXVRAeDR4JVQIaFRw7CRQYEFYYExILCFUYFBZFWVdZ EgtZQVlKSUtVSE1VTE5VQkNZV1kIAVlBT01PQzcG X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Add David, Hi David,     Please help to review this patch set for dwc_eth_qos for rk3568/rk3588. Thanks, - Kever On 2023/8/7 08:08, Jonas Karlman wrote: > 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. > > Dependencies: > - "pinctrl: rockchip: Fix drive and input schmitt on RK3568" [1] > - "clk: rockchip: rk3568: Add dummy support for GMAC speed clocks" [2] > - "net: phy: motorcomm: Add support for YT8511 PHY" [3] > - "rockchip: Port IO-domain driver for RK3568 from linux" [4] > > 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 [5]. > > [1] https://patchwork.ozlabs.org/patch/1816600/ > [2] https://patchwork.ozlabs.org/patch/1816856/ > [3] https://patchwork.ozlabs.org/patch/1817295/ > [4] https://patchwork.ozlabs.org/cover/1817469/ > [5] https://github.com/Kwiboo/u-boot-rockchip/commits/rk35xx-gmac-v1 > > 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 | 5 +- > configs/evb-rk3588_defconfig | 5 +- > 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 | 6 +- > 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 ++++++++++++++++++++++ > 19 files changed, 585 insertions(+), 34 deletions(-) > create mode 100644 drivers/net/dwc_eth_qos_rockchip.c >