Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3054992rwb; Mon, 16 Jan 2023 03:09:24 -0800 (PST) X-Google-Smtp-Source: AMrXdXupQz+RXNMeHrnfMz3XmQliXsNVaj8XQkdk0+7mkQyKphU9ZnjkGILz0zIA5eh9q0JYK/Fm X-Received: by 2002:a05:6a20:949e:b0:ad:4643:9fe2 with SMTP id hs30-20020a056a20949e00b000ad46439fe2mr86734934pzb.57.1673867364210; Mon, 16 Jan 2023 03:09:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673867364; cv=none; d=google.com; s=arc-20160816; b=IigsOHSDKa8A09bsCUr9FSIFwHC7zxnSApU5gEXKqAEDOJYAaDL7lqNkVpvRxCt66/ NLT+v1UmD2s3KqXx4d4J2MfPS/vydfGLB71KVDySAn1OS67UN0um9/fPr61T+bsuogLG 5iBKO6rFi8aNwLkFBsxEegEW1Eb8oh8jYH6bbIrT3m/aNnev44/9yWoMsW6kImo7aQad fCBQrAsb4Af15VyB5UJkyJKy23/wFvSV7Bd2LhFdXsSHSJ+k0IYAPn1oPqMlsvMR7baW YNQgd8ZpjDujvqjIUYmDR5PJS6le1XrkHm66qUbMe7B9mi46VstV+Zn6CWoZS0XvNRLP OQVw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u184-20020a6385c1000000b004c7b4bdd560si7242397pgd.821.2023.01.16.03.09.15; Mon, 16 Jan 2023 03:09:24 -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 + 51 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 ); 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?q?Cl=C3=A9ment=20L=C3=A9ger?= To: Sergey Shtylyov , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Geert Uytterhoeven , Magnus Damm , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Russell King , Wong Vee Khee , =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= , Kurt Kanzenbach , Revanth Kumar Uppala , Tan Tee Min Cc: Thomas Petazzoni , Herve Codina , =?UTF-8?q?Miqu=C3=A8l=20Raynal?= , Milan Stevanovic , Jimmy Lalande , Pascal Eberhard , Mohammad Athari Bin Ismail , Jon Hunter , 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.39.0