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: 13638010 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E437952F99 for ; Mon, 22 Apr 2024 08:46:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713775593; cv=none; b=qoB6VbB2+ezihESatmmjqE2+2MN4e+lDGXMRuEc8Cj3zNGqWjZvQ5CR5Xp8AiRD2wQZ2kzbcxjo4Qg9uRcGYqgC1I0v0lQCk5iCThvAEb6VOX/si57zY8wg5aVwkyUWf0/z97bIFNvJpJjtoTHf1QLQ3D+5/dawQrhUiZzLvkI0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713775593; c=relaxed/simple; bh=ogSLbt7Encj8rgVX9Gt1hy8GweRcMDYi4zjkFZ+QSFE=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=I1qWGDcUa981P4wAfPqWuaorySMvVAAvgTHQzyBpCFM9a+C4j0ttFtCwC6AgAJTuRO6pkzSqaEknHkBKW20HAM5iwQYcFKbabMpwnBLrd06oZkOjQpBk8m6X2uwpz538laqY5k+kPc85zR4YI95jM52/q5lY5PuSKo037t1QuoU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de 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> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: 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: imx@lists.linux.dev 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,