Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp1159227rdb; Sun, 20 Aug 2023 21:12:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEmv5z9Z3oefMRF5rnUyXviMmi0PAylj3o+lMoQmu1A+asej3wqJjCRlnXFVA5o1h0LyyEm X-Received: by 2002:a17:903:41c4:b0:1b8:6a09:9cf9 with SMTP id u4-20020a17090341c400b001b86a099cf9mr7820189ple.26.1692591179046; Sun, 20 Aug 2023 21:12:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692591179; cv=none; d=google.com; s=arc-20160816; b=S9SEzaUx7cH5nfbiQ6hB6E2Z9jx3FWZE53pD9AUh77ddtlo3syNr9gGoOrC2nc6l3M lZzFM3ruca510C7J1qFm89QF4gQxmtMDqaJ3fjzstcc50HciZn9uP8/aLbUizswD+wxt n5GD+TobTV9zoMmBK1BSF0RMYeByfBy+ij0YBuAqrK+nuGl8/nQZmGmqQRgoMHvWkwZt Ceq2H8TPNDAzOoyj/2dHv1fVRK9uD37FeciJay1l4heGBfUAqt4P/RxPgH+qWV5kA6SO rw+CKez10l8fsrlO7AjXQKsMI45L0+82UdEcpkoTQAucna5iNxfUCUOJWuTeJbx+MWMU rV+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=5jaSY+cInHGx82Qw0rMgm5kiqnDEf1LZnzQkDi3Hp18=; fh=MjWO+TP1oGk2BYJLI/JuO2koKsKwAbcrISUQHBxvn9o=; b=jR/tMCFXbv4F/oQE3h2KPOQWg6wsX9omv6ckHg1p9lapAcYeP1eu7gLqxO4t6FrLa1 3irVoKvfYQ/ifPqTMmiNyT6Eh3bCgaY9ugS2Z1Wm0Xq7WZp7nkKGMoNKFg8LlpIXCerz GGFK8gGxG0g7R7UL18ZSf1QbOlzXI90SwdBCGNOmQBnUOlJhevQqVWCzAys/RxHDXSQR efWxljkXjXXh9qdihLVH898DNkBePbDvhYZS4WM7kvn+vozv2jRg8OJObRJtTSM3Yj82 bh/cIIfu6+rKoAELjm5QlgZiBL1WCqjMjEjmq8LqQwchIQ4DBcyl99hQf6iEezqBiQP6 ZuRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e9ZZcIuU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l2-20020a170902e2c200b001bdebddc2f7si6228513plc.257.2023.08.20.21.12.47; Sun, 20 Aug 2023 21:12:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e9ZZcIuU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230475AbjHTMSU (ORCPT + 99 others); Sun, 20 Aug 2023 08:18:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230403AbjHTMSO (ORCPT ); Sun, 20 Aug 2023 08:18:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D56CA1; Sun, 20 Aug 2023 05:14:05 -0700 (PDT) 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) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 97B6661337; 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 -- 2.40.1