Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2117926lqt; Mon, 22 Apr 2024 01:46:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVcUnBea6CwI2wNOPeI0l4k4mxJiKYyIMypLsYMYyA9lZuBN6QyXtgO57Lnif6CSHtQVE679YDOxQ5RVdw7oBbRr6dQCtRLBt+njcbiGA== X-Google-Smtp-Source: AGHT+IE5be4Y4H+x03EpwsbA9aAwfguoUV7+zTZtTbTCxoaVJVxMdXii3vJTgTldTWhaHsa/oZ6L X-Received: by 2002:a50:c34f:0:b0:56d:c295:dde3 with SMTP id q15-20020a50c34f000000b0056dc295dde3mr8125392edb.35.1713775611721; Mon, 22 Apr 2024 01:46:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713775611; cv=pass; d=google.com; s=arc-20160816; b=WctcfgEzTeaQplBqi5KsvQQSM1ZZnKqpU9HPU/ecjPXtQm3nlJD0Ali9ZSyAhARbEy uIeYButDcVSa6lOP88yFwAU3DsgmIaOpYQwux6kiOuY0GpYwe+Bgi29E+I13SWh2H+Ox Lt7XmQopvypjq2x8FUtW7/N9BcWh+vi8gs+lTh3JjmOURTu45vVvzNXfgg318Swesi27 AdY0PPQsxxBDwNwLm6msB/Plsu2dh/wpD34pPSkkkQNBtIqCHtLGSkljxaDb/WVG7/IA 1SLng/WMtrXh7zLRJnQUmdQVLAmfa3NXKoOnqscYesy26+tFLGXCDNocz+zcw4B3Ecfj n9NQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from; bh=e/D1xsVA/8Dk9Yo6M//vj8kLRhjTlEgj72I9vVywC1A=; fh=YVkujlvN5Y4Rrkj+By+pHgfHWTTXCIH/+pvMFJze4gU=; b=stk/wXqGsjJy7tuUHb5/O7TUze9m1pY7+toff34+1ntOBGJzEMQwNGJWQwwcK2kEQF Ct5YgKqojSl+rhts44FDiIS7r6Uk852QArz6lZhjuZBsOzwwNeFMUWYa3fh6LZ9i55NE OQicjoD4AGlZ0FaXHYNljgZDY45xPNB4dDcaJcPoxniyJFutPAcV1ZvB/7em4EeDya6k DQcUDK9T1WMhS7Snd/QobFYLpVcAHSLHIObDN2yy5FG/fn5RbkgHl49o7kXH2eZy/0JM GqCSN6szUKqLPlDVEHTdw20KdKrrsu+UZ1nEyKMLZ+q4m2E7Tg/LY0KMil7GVDkpP0Y5 Q7ew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-153000-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153000-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id d9-20020aa7d5c9000000b00571b93fb0b3si5566286eds.665.2024.04.22.01.46.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 01:46:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153000-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-153000-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153000-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 722EC1F20C93 for ; Mon, 22 Apr 2024 08:46:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 929EE5337D; Mon, 22 Apr 2024 08:46:34 +0000 (UTC) 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 CD6354CB55 for ; Mon, 22 Apr 2024 08:46:32 +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=1713775594; cv=none; b=mGTvCZ3wzZCGtE3udeMYLlizoEYyAZ5hPvin/x0/LJ0elBfWFY4daevNP9FMj0F4uSrmjfWKwWdX1zmGSEkATgM9vJtQpxlU20vydBKq4ynp7wOAsrIL5+DAM19Z4Try7vGa09bXHr8dEfRA+RoZnmlSFCAmto4sPnYorKBLlxk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713775594; c=relaxed/simple; bh=ogSLbt7Encj8rgVX9Gt1hy8GweRcMDYi4zjkFZ+QSFE=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=esGJI+q6T/oX0+CM1u38zPQ1zwKMwtth9SIA7euwOF4I4fo+L5XLXaK+0wu9UGUxJZNLBBdZx+HjNYZiZzMs4lNOAQwHpuzzaatAxBQRuIdqcU0coj6949hBNoEdaaSt3lA+Wuna35f/oaQOMypFkdvtUdFuI7fJXfPWriD6dHc= 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: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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-kernel@vger.kernel.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, -- Steffen Trumtrar