From patchwork Thu Feb 22 10:31:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsOpbWllIERhdXRoZXJpYmVz?= X-Patchwork-Id: 20783 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:aa16:b0:108:e6aa:91d0 with SMTP id by22csp161436dyb; Thu, 22 Feb 2024 02:32:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXkIRV0hyKsAbfvlhInN7/fyYrazqykRHmkc5OKtfuXbVWLZDdjfmErNFcHehCy6QfWqqg50zRg4uREgWzGRUS7rA5ScQ== X-Google-Smtp-Source: AGHT+IF+lVPPMLh9gyjevquyVAeMKMsMbkbUdNsY6xsnypoJASOSnbik1FqgC7/4pe+hz/HJfZP4 X-Received: by 2002:a05:6402:31e1:b0:564:bcb1:45f6 with SMTP id dy1-20020a05640231e100b00564bcb145f6mr5386389edb.15.1708597966647; Thu, 22 Feb 2024 02:32:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708597966; cv=pass; d=google.com; s=arc-20160816; b=Pram759HuVfslInJZVjCrxiI5Kz/feEiZb2dh/8WllnToProVzCnPXAgqJWeDv7fVP d/L5gZ/ZLO1cO3V+yyeOmjDR/7eJwq2CGqYfxj7hCSrq4jBh3AGRsrdlC+dDd0P0qW/Z JcgmiGx2FTmCTbkm5sDPVFuVqS/jVjrS4Egnq+LGv0VXpw+60oqQH3xGlvRWIIZXP4qK pT8fruY++Ee5sgaxy3bS0y6CLuKUOr/XIetPDzJTVjbcNV6LK1WhKuP7xHCJf5aXR/jk wWJrKmElwKf1RNrMAlRgH8OPnmjL5uqFcdl6nBEZnyYtgNJmZLk9tCDF+ncpMyp4Nk2S dTNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=EUBZIS6T/qLjtF5ns0fFYJqEALyXOpqOh5I1fTOvjy8=; fh=NV4JY3TRCs9o+gW717PVoUKK/H/wDO8M32W8z62HLwY=; b=kA5pc4iNAcJwZjM06iNfrCeDHkAUmsedNK6c1arQWAIsesWIbQcVbfB/6N45dCWeMq uz2p6INEAM0IAMm/tnF0IXhvTeVZACt6mND4kGkbyWfcfbNfxd3xnujiFwnpO8jShdOT X8YZ4I+G6f0oKMa25lQ7EOJ1mkjbrQlGTWm3dtWT+15HTcxNATV3b7uEYyJGWCJp1xAq iX9ATX1apguFsDrTuk4nKvRqGrcT2OZlBVUScaKO08MJ53PnY8ebvlUQ6Gc3ShYUlEc5 r+3LtdTTm/ygugV6SVR5B1DvpAggZFiQNug6dlM+sE1LDiryGvQOH3VZjBtqlj4y9XMO 0E8Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=QZGZQspl; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-76336-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76336-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id d4-20020a056402400400b00564f03ee86fsi1570058eda.663.2024.02.22.02.32.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 02:32:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76336-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=QZGZQspl; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-76336-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76336-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 293D61F26A81 for ; Thu, 22 Feb 2024 10:32:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 675D940BF0; Thu, 22 Feb 2024 10:31:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="QZGZQspl" Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (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 9657F22F0C; Thu, 22 Feb 2024 10:31:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.199 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708597888; cv=none; b=dsPVmQaQBulOhCLmnQq6iFrtivggz+d4k2IEjhX5XyKT/rAt8zQt94Nw5WQiHayiEtIuuG9CDHCnI2ioHwn+bCDil2ZTFsyn3rOdcHRWoGppeSosSsAR1UP+KKb5wiucNPm57sxVcgstRxx4UPnPlUSPLT0n8uAvGitKNlzOZBE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708597888; c=relaxed/simple; bh=cvAVudDIoWoUoaJqLInNNrpIO3J8u/OOuWGjXc5U+RA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=atCBASzP+u5ajionit585hSVWAMyIvcFPc5Ommk/gi9mCrH3gUtzjajbPWs4Vb1ZnD2kN/x6OFcL87AAHhxNHSlPOowTwvKbIHZE0S8DBmIlihu/PmIV3Z+CklZScada37uOUWLMC5pp69AzYGlVLNp+gv7zeCiipPVSQe7ofJU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=QZGZQspl; arc=none smtp.client-ip=217.70.183.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id DB2E1FF808; Thu, 22 Feb 2024 10:31:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708597885; 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=EUBZIS6T/qLjtF5ns0fFYJqEALyXOpqOh5I1fTOvjy8=; b=QZGZQsplpYiao1CnngozWgY+pdVXe6ZKvyqqFiCKX5/zyWkXvOYe6jwuMbetqDgDMqnTCz 8I1mGYS0cdjUd2IBUscIkeBssxpTTiqrU5WRKra0LLiVCFN4yddnqnkhCrL+fcp9VNld3Z eSXh5zCK+6i4q1Y1wNjECgFUGVI5u540UdJQpSjyZL2yfT7H4zkDwzc3EJ6qDPqwRfnSa+ SH9uO1hDoTzEY9FN4etIa2lm6Mq+Z7gyDs0Qo8Ou3pgSC+sbW80GRkywMH9lZsaFdZcWaT 4u2lmljncLNY/+Sk/sDK3B9DyOFjHgxLeP2Cf8mEPCqQoI3pTZd5yYAndZc3Ag== From: =?utf-8?b?SsOpcsOpbWllIERhdXRoZXJpYmVz?= To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Heiner Kallweit , Russell King , Andrew Davis Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , =?utf-8?q?Miqu=C3=A8l_Rayn?= =?utf-8?q?al?= , Yen-Mei Goh , Maxime Chevallier , =?utf-8?b?SsOpcsOpbWll?= =?utf-8?b?IERhdXRoZXJpYmVz?= Subject: [PATCH net-next 0/3] Add support for TI DP83826 configuration Date: Thu, 22 Feb 2024 11:31:14 +0100 Message-Id: <20240222103117.526955-1-jeremie.dautheribes@bootlin.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-GND-Sasl: jeremie.dautheribes@bootlin.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791594821336503762 X-GMAIL-MSGID: 1791594821336503762 Hi everyone, This short patch series introduces the possibility of overriding some parameters which are latched by default by hardware straps on the TI DP83826 PHY. The settings that can be overridden include: - Configuring the PHY in either MII mode or RMII mode. - When in RMII mode, configuring the PHY in RMII slave mode or RMII master mode. The RMII master/slave mode is TI-specific and determines whether the PHY operates from a 25MHz reference clock (master mode) or from a 50MHz reference clock (slave mode). While these features should be supported by all the TI DP8382x family, I have only been able to test them on TI DP83826 hardware. Therefore, support has been added specifically for this PHY in this patch series. Jérémie Dautheribes (3): dt-bindings: net: dp83822: support configuring RMII master/slave mode net: phy: dp83826: Add support for phy-mode configuration net: phy: dp83826: support configuring RMII master/slave operation mode .../devicetree/bindings/net/ti,dp83822.yaml | 16 +++++++ drivers/net/phy/dp83822.c | 44 +++++++++++++++++++ 2 files changed, 60 insertions(+)