Message ID | 20230116103926.276869-1-clement.leger@bootlin.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1124068wrn; Mon, 16 Jan 2023 02:46:08 -0800 (PST) X-Google-Smtp-Source: AMrXdXsS8kmGM1hXkBQKKkGAIZ23TR/q6n8SEyt+bvJ7w+VlaesbipabhFCxXL8agu5r2CJicS1t X-Received: by 2002:a17:902:f1cd:b0:194:7a89:a436 with SMTP id e13-20020a170902f1cd00b001947a89a436mr8580354plc.27.1673865968101; Mon, 16 Jan 2023 02:46:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673865968; cv=none; d=google.com; s=arc-20160816; b=ghsBCNfBmA94yztqVasrGxjX/a31MM+k8AXbcZakB3l0KpHDYN+Uo8Fdf0Zi+Ay5bL aW5Xhvt5V8V1rVJDe/eWFJovysGFu7FQTJVokIDDcpzvqF/mSaUW6ks7XAAPKxY2XXsD KG8OfU+6Dn8fWUopyyC+LHDnELidfE57g4/AYg8wEXnR9uPDGuLx0OGWvkIKt3VGT/o/ 3aQvAfipjlGfxBL7SqBtWk4veZJSoSa/YLnTZBvv7IUUFKGY6sFYgqbnBuVrmnfkzL9N bR6oQuzjTrN2m3fLh6u916Dcg0zU/LSNVxaJ5OjGiOnv2HyvYw2XDeBU1pxfBJD5yuuT /a0Q== 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=iuogAIwpArvmHJjJhEa0zf0j5PCkZDBGtycwVIelMX8=; b=k6ZgrUXpy7RVOgIs3us+ioaO4uTHrhmSFOMjzIJobTiwwZYZE+BGLYUJVQVXTfwj+5 W6XJJGe3cb3Mk+I5LNaWAzae5DbVUQF4dzBAxLqy7x43YkRmK2sdKqolyittGVGtu0/m /9bNnfO+d0Li6fOgnp7IOqTUJaRyi45JYm11szo9YqN1FaZ+9McNdgtl818uHNZbIvtV LcO0mHb/8QIhZywSjLStwsA+K7n6qXiNbf4q4kV1mU/O0JC8ew9NPk9iYNUP3B0Yn5jh uhMPZ5Q4NtJgNh013/XdICF64Xi0xJpw3Omh2dbQ0zTCHEiM8OWhKWLQ0ogJrcNnDXUy 2lMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=CEhOE2qh; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e188-20020a6369c5000000b004a03cdc3f29si28901730pgc.140.2023.01.16.02.45.56; Mon, 16 Jan 2023 02:46:08 -0800 (PST) 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=@bootlin.com header.s=gm1 header.b=CEhOE2qh; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230336AbjAPKhb (ORCPT <rfc822;stefanalexe802@gmail.com> + 99 others); Mon, 16 Jan 2023 05:37:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229694AbjAPKh1 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 16 Jan 2023 05:37:27 -0500 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D6E74EEB; Mon, 16 Jan 2023 02:37:24 -0800 (PST) Received: (Authenticated sender: clement.leger@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id D331A1BF20C; Mon, 16 Jan 2023 10:37:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1673865443; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iuogAIwpArvmHJjJhEa0zf0j5PCkZDBGtycwVIelMX8=; b=CEhOE2qh+5jjLZr3yM8AnWuKjQL21XfBx2BU/akJuNd5H5Qld2ukY9uV2vsZYedWeZF2Pk ZkBScwq/jK/2rnV+ioVHfb70cF9a0TBkD5d6UeTy5aiv7iZ7iL7aXsdomFhUXGcgFP4BPh uPRGALpCDZnm6f+8GD9nDQAVSRnMeULNN0K99nnVq4yPZ+qw6w6aoeHgC04jxqhi5DOQg/ KrABaPJmOblW7Vaif6Dx3Tbg23fpguN0heuzjx32dVhL3Z5H31c/QD0BHx2njYuvD6KxxW zeU6IGyGL9+WhfeWlplRXaZiiGpy9iKBnuUu0jyXlm9ymsssh86wYYQbbqJnUA== From: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= <clement.leger@bootlin.com> To: Sergey Shtylyov <s.shtylyov@omp.ru>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Geert Uytterhoeven <geert+renesas@glider.be>, Magnus Damm <magnus.damm@gmail.com>, Giuseppe Cavallaro <peppe.cavallaro@st.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Jose Abreu <joabreu@synopsys.com>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Russell King <linux@armlinux.org.uk>, Wong Vee Khee <veekhee@apple.com>, =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= <clement.leger@bootlin.com>, Kurt Kanzenbach <kurt@linutronix.de>, Revanth Kumar Uppala <ruppala@nvidia.com>, Tan Tee Min <tee.min.tan@linux.intel.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>, Herve Codina <herve.codina@bootlin.com>, =?utf-8?q?Miqu=C3=A8l_Raynal?= <miquel.raynal@bootlin.com>, Milan Stevanovic <milan.stevanovic@se.com>, Jimmy Lalande <jimmy.lalande@se.com>, Pascal Eberhard <pascal.eberhard@se.com>, Mohammad Athari Bin Ismail <mohammad.athari.ismail@intel.com>, Jon Hunter <jonathanh@nvidia.com>, netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH net-next 0/6] net: stmmac: add renesas,rzn1-gmac support Date: Mon, 16 Jan 2023 11:39:20 +0100 Message-Id: <20230116103926.276869-1-clement.leger@bootlin.com> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755175681073116070?= X-GMAIL-MSGID: =?utf-8?q?1755175681073116070?= |
Series |
net: stmmac: add renesas,rzn1-gmac support
|
|
Message
Clément Léger
Jan. 16, 2023, 10:39 a.m. UTC
The rzn1-gmac instance is connected to a PCS (MIIC). In order to use this pcs, add support in the sttmac driver to set a generic phylink pcs device instead of the xpcs only. Moreover, it adds support to provide a phylink pcs device from the stmmac platform data and use it with the driver. It also adds the bindings and the new rzn1-gmac driver that retrieve this pcs from the device-tree. Clément Léger (6): net: stmmac: add support to use a generic phylink_pcs as PCS net: stmmac: add support to provide pcs from platform data net: stmmac: start phylink before setting up hardware dt-bindings: net: renesas,rzn1-gmac: Document RZ/N1 GMAC support net: stmmac: add support for RZ/N1 GMAC ARM: dts: r9a06g032: describe GMAC1 .../bindings/net/renesas,rzn1-gmac.yaml | 71 +++++++++++ arch/arm/boot/dts/r9a06g032.dtsi | 18 +++ drivers/net/ethernet/stmicro/stmmac/Kconfig | 11 ++ drivers/net/ethernet/stmicro/stmmac/Makefile | 1 + drivers/net/ethernet/stmicro/stmmac/common.h | 2 + .../net/ethernet/stmicro/stmmac/dwmac-rzn1.c | 113 ++++++++++++++++++ .../net/ethernet/stmicro/stmmac/stmmac_main.c | 15 ++- .../net/ethernet/stmicro/stmmac/stmmac_mdio.c | 1 + include/linux/stmmac.h | 1 + 9 files changed, 228 insertions(+), 5 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/renesas,rzn1-gmac.yaml create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c