Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2661512lqo; Tue, 14 May 2024 05:55:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXqrgnXCs8vFLUsGToxSyTE71UCwA/hT8btWFZ3i9XkQe/KPdtf4Y5IPi1v0Hn68mi/NIXQNsmm8KqrmZ1v5XPEsnAoceD5r0WqgiqD0A== X-Google-Smtp-Source: AGHT+IE4w+z843G/o7nCqRKZ+7wjQP+jEeo4ku9ENaSTdQeaLvy20i2zUQxp/+DGAdbMDLAcosmo X-Received: by 2002:a05:6e02:1487:b0:36c:4f4f:ad62 with SMTP id e9e14a558f8ab-36cc14900fdmr162900105ab.13.1715691344951; Tue, 14 May 2024 05:55:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715691344; cv=pass; d=google.com; s=arc-20160816; b=Kn5cThzeKOo2q3PbwkjQZvHwtyggp6JNLdjzp3/0BqGiDQSQCuIY9DkPGoAkoYcdJ/ Mq5o1D+AsxAnHRQ2mkIpLz2yxQs1gnTIcO57FxoRT9lNW3AuM2bPkd6yZeOzhUUitZqE Z1hajE28VqSmHYkOsQDYoNNJk5qJIoqERg3rIB56elTby5dWinthIQlweWbUqgXgsBEg UqHwQYUmraqRXDlt3lIGYlFUBeRQS0Nt4sh/8uD6Dz3r8v+3KE9pXCijUVVxcFHrNB9+ aC18PVSFsPSsTR/omA2NVG2kTXRUmg1MsM2mJQl4gVplqiJZ8z7/qKM+11SU92s3HG/r rwSg== 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; bh=sLVyjnbGWEv8/HjkqqBUB115wSHgW8m2SovCt97HjEw=; fh=KL78wYTsTkhKfBY7Cu8lQMXa9R0ymSIhbMthHNTkLps=; b=CEkI+q90Sk/2UkSX3OmFL4Of3MqPsHpXNT359HkDIu+EEk7QnQ/7Uz5b+KK+PrCBef bycz0LLU9FheUr0Ow0FjLf/drlprN+aaJ9wrlccpagLDAREEiSrElpY0HIwNss2jLVgX C9eaMnJZqlyvSB0gzRHcrbw3a4eRUO5w7fjqnWR/G+Os6n2Onp/jRRArdZNxnB7uyBT/ WFjIYD7SA2cNPPPH/2WmPM4sXYc5S/hluJxrZ0rSG40PJq8b32ZQ0HqIHp301o2HZryl jSoTagDj1jl21JnIkpkKaVKZkKG7ZT+TJgOQu+GRmbNklzfiao3c8QO4x2DXFOQ5gif/ zxEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=brueckmann-gmbh.de dmarc=pass fromdomain=brueckmann-gmbh.de); spf=pass (google.com: domain of linux-kernel+bounces-178667-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178667-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=brueckmann-gmbh.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-634106d54f0si11063558a12.396.2024.05.14.05.55.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 05:55:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178667-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=brueckmann-gmbh.de dmarc=pass fromdomain=brueckmann-gmbh.de); spf=pass (google.com: domain of linux-kernel+bounces-178667-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178667-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=brueckmann-gmbh.de 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2D570284C4B for ; Tue, 14 May 2024 12:45:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 38BF76DCE8; Tue, 14 May 2024 12:44:40 +0000 (UTC) Received: from mxout37.expurgate.net (mxout37.expurgate.net [194.37.255.37]) (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 F0AD86BFA8; Tue, 14 May 2024 12:44:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.37.255.37 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715690679; cv=none; b=sMhBvOewhx5IW92vwHv/KLFXg1wbyIJ7jvhuX1pZqXf5ZQ9npm6rXSLAfd5uqlMO4PHUDOtF7cuop5RST1cm72GuvvBJ6UIJk/Fz9WN6c3RFvbGaZoPCemrtDusfv+2+rJC5T+h2rHIZeBBe70U90hiavjGkGrrSkNA6Cx19BDM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715690679; c=relaxed/simple; bh=yTLW0IJRaUkMcye7x1q7XLp3U8fuID9lCwQ20A94yiY=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=IdRDiqll9EDeCuGDgOCUMSNnbibiKrphPSNMb1Zes9Q7iG4fkNZ323dkzEJ/QVbm3iXO94iBuRQAuHEVqXttIt2oZOqiEaJjhQqd2iLwZ5z7R4P38MJoiNYtXQjTHwSrBc2WHbCeh0HXbBMWfdN+/aXSiQ1tLXwT7D0/xGV6Zx0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=brueckmann-gmbh.de; spf=pass smtp.mailfrom=brueckmann-gmbh.de; arc=none smtp.client-ip=194.37.255.37 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=brueckmann-gmbh.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=brueckmann-gmbh.de Received: from [127.0.0.1] (helo=localhost) by relay.expurgate.net with smtp (Exim 4.92) (envelope-from ) id 1s6rGx-00HQk6-BC; Tue, 14 May 2024 14:28:47 +0200 Received: from [217.239.223.202] (helo=zimbra.brueckmann-gmbh.de) by relay.expurgate.net with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s6rGv-001xKj-Tw; Tue, 14 May 2024 14:28:45 +0200 Received: from zimbra.brueckmann-gmbh.de (localhost [127.0.0.1]) by zimbra.brueckmann-gmbh.de (Postfix) with ESMTPS id 3A336CA5AA8; Tue, 14 May 2024 14:28:45 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zimbra.brueckmann-gmbh.de (Postfix) with ESMTP id 353E7CA5AF6; Tue, 14 May 2024 14:28:45 +0200 (CEST) Received: from zimbra.brueckmann-gmbh.de ([127.0.0.1]) by localhost (zimbra.brueckmann-gmbh.de [127.0.0.1]) (amavis, port 10026) with ESMTP id nar3tVrW8P2h; Tue, 14 May 2024 14:28:45 +0200 (CEST) Received: from ew-linux.ew (unknown [10.0.11.14]) by zimbra.brueckmann-gmbh.de (Postfix) with ESMTPSA id 1A1B8CA5AA8; Tue, 14 May 2024 14:28:45 +0200 (CEST) From: Thomas Gessler To: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Gessler , MD Danish Anwar , Ravi Gunasekaran Subject: [PATCH 1/2] net: phy: dp83869: Add PHY ID for chip revision 3 Date: Tue, 14 May 2024 14:27:27 +0200 Message-Id: <20240514122728.1490156-1-thomas.gessler@brueckmann-gmbh.de> 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-Transfer-Encoding: quoted-printable X-purgate: clean X-purgate-type: clean X-purgate-ID: 151534::1715689726-CD4998D1-EB8F54D6/0/0 The recent silicon revision 3 of the DP83869 has a different PHY ID which has to be added to the driver in order for the PHY to be detected. There appear to be no documented differences between the revisions, although there are some discussions in the TI forum about different behavior for some registers. Signed-off-by: Thomas Gessler --- drivers/net/phy/dp83869.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/net/phy/dp83869.c b/drivers/net/phy/dp83869.c index d7aaefb5226b..d248a13c1749 100644 --- a/drivers/net/phy/dp83869.c +++ b/drivers/net/phy/dp83869.c @@ -15,7 +15,8 @@ =20 #include =20 -#define DP83869_PHY_ID 0x2000a0f1 +#define DP83869REV1_PHY_ID 0x2000a0f1 +#define DP83869REV3_PHY_ID 0x2000a0f3 #define DP83561_PHY_ID 0x2000a1a4 #define DP83869_DEVADDR 0x1f =20 @@ -909,14 +910,16 @@ static int dp83869_phy_reset(struct phy_device *phy= dev) } =20 static struct phy_driver dp83869_driver[] =3D { - DP83869_PHY_DRIVER(DP83869_PHY_ID, "TI DP83869"), + DP83869_PHY_DRIVER(DP83869REV1_PHY_ID, "TI DP83869 Rev. 1"), + DP83869_PHY_DRIVER(DP83869REV3_PHY_ID, "TI DP83869 Rev. 3"), DP83869_PHY_DRIVER(DP83561_PHY_ID, "TI DP83561-SP"), =20 }; module_phy_driver(dp83869_driver); =20 static struct mdio_device_id __maybe_unused dp83869_tbl[] =3D { - { PHY_ID_MATCH_MODEL(DP83869_PHY_ID) }, + { PHY_ID_MATCH_MODEL(DP83869REV1_PHY_ID) }, + { PHY_ID_MATCH_MODEL(DP83869REV3_PHY_ID) }, { PHY_ID_MATCH_MODEL(DP83561_PHY_ID) }, { } }; --=20 2.34.1