From patchwork Sun Aug 20 12:02:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 13358774 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B782FEE49A4 for ; Sun, 20 Aug 2023 12:14:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=tgt7UbSySDGElEeBPYIGL9ftlPStHJTQZRg2D9POsyU=; b=rM1t2o7oW7WL2i Kk75LtUparWbFiBSJMDNd5oaJjhAREPkUUizjIp0EXnRzIa4cXUh3hCft67TsWaJz90DivXAFO0Kx BHXziLMk2e9VjTYwzrRv2Z4+1sqFL+WDFrZCHCONMkylkqJUpzyJtf5d3ZsLUEi8wRrj95grmuUkj 9eViinoLwcNzANwTFP+vWnbkgk1ilJewYmYrCLg2STqp/nO8ZkItU7TqibPfDVM8JEtcCWTXqtIge efGgytP5EwK8KN5WFL07Enbv0zAirli3+Iot1cazhGrVnh1taP6MOWUWEogZBIncZoPmv+iN08eT0 q4u4HgHXaV9+vFTX0dIw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qXhJs-00BsYD-2t; Sun, 20 Aug 2023 12:14:12 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qXhJm-00BsXA-0F; Sun, 20 Aug 2023 12:14:07 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 826AA60DBC; Sun, 20 Aug 2023 12:14:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F7B3C433C7; Sun, 20 Aug 2023 12:13:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692533643; bh=IC8w578EAIZuY+94RdibA09oC+PtDBo0QtdFqUh+Eoc=; h=From:To:Cc:Subject:Date:From; b=e9ZZcIuUApBk3/DB9NX5MF3p32ExThYZkvRMnbluFlAdY1aeeaEuz1pLo9GSKmVDh UUqiuVscsmqZqCwmK3KTZ9GEaZJ3/Pz7iepdYs0MoEjyq/ffILkkYcke7fdf2/tMDO FZ/Xfw5h8SOsIoLRXITYJQ1kjR4fwy8GQLT8ce1BfZwuvMOOPG6kjn1T+Scz9gVSPJ xjDzHwGnEqmYnPqAoe8D0O+5g04ZF977wMRCp+zLL7J6hthruWXb1wOlh5AmeeI46D oeaHTaHfYc9qmcMAF8VPkQ16Ahm1qyNNgGvS4KBnIj30ev7qILkdeshYhyOm+TqmqL hbWS/d9APZiyw== From: Jisheng Zhang To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH net-next 0/3] add the dwmac driver for T-HEAD TH1520 SoC Date: Sun, 20 Aug 2023 20:02:10 +0800 Message-Id: <20230820120213.2054-1-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230820_051406_186697_B7C3171E X-CRM114-Status: GOOD ( 10.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add the dwmac driver support for T-HEAD TH1520 SoC. Since the clk part isn't mainlined, so SoC dts(i) changes are not included in this series. However, it can be tested by using fixed-clock. Jisheng Zhang (3): dt-bindings: net: snps,dwmac: allow dwmac-3.70a to set pbl properties dt-bindings: net: add T-HEAD dwmac support net: stmmac: add glue layer for T-HEAD TH1520 SoC .../devicetree/bindings/net/snps,dwmac.yaml | 2 + .../devicetree/bindings/net/thead,dwmac.yaml | 87 +++++ drivers/net/ethernet/stmicro/stmmac/Kconfig | 11 + drivers/net/ethernet/stmicro/stmmac/Makefile | 1 + .../net/ethernet/stmicro/stmmac/dwmac-thead.c | 304 ++++++++++++++++++ 5 files changed, 405 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/thead,dwmac.yaml create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-thead.c