Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp250815rdb; Thu, 22 Feb 2024 02:31:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW6dWPD5RZqD7NHkufnypvdBizHWWYst+OZz1zdQVXLJ4Pt0CZpNnINgjALKqzP0w7brkO1PO9Tx1HfxIuxrN8KTBQ6wsv6x/QlJVjpxw== X-Google-Smtp-Source: AGHT+IG9XsSsi+AOkoImKc9Td2L2AWqUcw1Gsd/q0JJ/Pjhsm9/rkhegrqaFXd+vM3DSMharPiQQ X-Received: by 2002:a05:620a:2006:b0:787:2ba4:c546 with SMTP id c6-20020a05620a200600b007872ba4c546mr23040610qka.58.1708597898162; Thu, 22 Feb 2024 02:31:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708597898; cv=pass; d=google.com; s=arc-20160816; b=sVLnBfp4+IR8DBuwZK3Fg9o96yHSkg6gE12PTIenQ4lL2aonC+roJxcXxMWFFtqVjW tcRNn4U1q13TcWIRN35LNujngbKT8ZrvO0LcsEeOh2zjZIAQooiaRbkcHNL4pu85c6sp puLp4y3T/xFGN7FtkPqvR7BiLmx9x/xTf90QQ5GoaUYZrtS+K71Yej3gjRNXuFEWIr5T 8rpw3iQX9rrSZKcevdYiw7jN0WCQjt8xySiqxZtigqQm6Xv9YktA14C+80EWECU+cPys RQ8dvGEMbuPkgORdRyCmrOhVxLpiqSWhTXrfY0deC6IqsYs2vlx4BsEzNbkOOQ82DQ/3 kg0Q== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76336-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id x26-20020a05620a099a00b00785be8e5f85si12713299qkx.247.2024.02.22.02.31.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 02:31:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76336-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76336-linux.lists.archive=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D46471C23B7A for ; Thu, 22 Feb 2024 10:31:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A33ED3F9ED; Thu, 22 Feb 2024 10:31:29 +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?q?J=C3=A9r=C3=A9mie=20Dautheribes?= 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=20Raynal?= , Yen-Mei Goh , Maxime Chevallier , =?UTF-8?q?J=C3=A9r=C3=A9mie=20Dautheribes?= 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Sasl: jeremie.dautheribes@bootlin.com 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(+) -- 2.34.1