From patchwork Mon Apr 22 08:46:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steffen Trumtrar X-Patchwork-Id: 13638015 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 1491DC07E8F for ; Mon, 22 Apr 2024 08:46:48 +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:Cc:To:MIME-Version:Message-Id:Date: Subject: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=qdmdcK9BLHwua75AzxHYxeNvd3bgxiuFdQuSwHZA0bs=; b=PbiU7d1ZQ2/RCQ xf5aRhCOjmSz/H5bcpU1UDuFjLZDcaQq/32lxbOit/YDG0B2y2MuDkdbULLGrA+d6m2BaIuXCvGrD 9fJAyj9Wj87EADGRXcAq7Kq37xig+wmVDkLY/tl7ff6ynvtn6fEQdCaWYRSZehht+kUe2rMOOD5hF IrvAB7kgdPsJtDLJqaVkX+99jF6Xgyil2oFu30m8wZtt+mE1/R5X/3IEksvFkpncG0I276yuNK6OJ YnLDRGcjaLXDOWTK/qLL5NWCyf7eG9PucMlafkp+8/AXs4e+OA/j4Kvcw8P2/81Uu7i1UXClMzRkJ r7UH2s5ZnQpuYIqKdr3w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rypJp-0000000ChvX-3RLJ; Mon, 22 Apr 2024 08:46:33 +0000 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rypJk-0000000Chrf-2fdc for linux-arm-kernel@lists.infradead.org; Mon, 22 Apr 2024 08:46:30 +0000 Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=ratatoskr.trumtrar.info) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1rypJd-0000ML-BZ; Mon, 22 Apr 2024 10:46:21 +0200 From: Steffen Trumtrar Subject: [PATCH 0/3] arm64: mx93: etherrnet: set TX_CLK in RMII mode Date: Mon, 22 Apr 2024 10:46:16 +0200 Message-Id: <20240422-v6-9-topic-imx93-eqos-rmii-v1-0-30151fca43d2@pengutronix.de> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIANgjJmYC/x3MMQqEMBAF0KvI1A6YMSzqVcRC4+zuLzSaSBDEu xssX/MuihqgkbrioqAJEX7NMGVB7j+uP2XM2SSV2MqKcPpwy4ff4BjL2dasu48cFoDrUdxkxbj GzJSDLegX55v3w30/Y2IXDWwAAAA= To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Clark Wang , Linux Team , Alexandre Torgue , Jose Abreu , Maxime Coquelin Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com X-Mailer: b4 0.13.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:900:1d::77 X-SA-Exim-Mail-From: s.trumtrar@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240422_014628_708751_322FD676 X-CRM114-Status: GOOD ( 10.28 ) 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 This series adds support for setting the TX_CLK direction in the eQOS ethernet core on the i.MX93 when RMII mode is used. According to AN14149, when the i.MX93 ethernet controller is used in RMII mode, the TX_CLK *must* be set to output mode. Add a devicetree property with the register to set this bit and parse it in the dwmac-imx driver. Signed-off-by: Steffen Trumtrar --- Steffen Trumtrar (3): dt-bindings: net: mx93: add enet_clk_sel binding arm64: dts: imx93: add enet_clk_sel net: stmicro: imx: set TX_CLK direction in RMII mode .../devicetree/bindings/net/nxp,dwmac-imx.yaml | 10 ++++++++ arch/arm64/boot/dts/freescale/imx93.dtsi | 1 + drivers/net/ethernet/stmicro/stmmac/dwmac-imx.c | 27 ++++++++++++++++++++++ 3 files changed, 38 insertions(+) --- base-commit: 4cece764965020c22cff7665b18a012006359095 change-id: 20240422-v6-9-topic-imx93-eqos-rmii-3a2cb421c81d Best regards,