From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.246.84.56 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796303057; b=KUFaKc4QbagF/BNqlsPUIulOzOeYiL7eDbVgH+nu50ZVSiYk9Z6hSJtxwPMqA61pphqK +N8KueRusUmfJibORsNOWWOmm1de4WoENUvWrlbdWk6Wnmc75kxU08yjxtNPoRqwQaSSw yIE4Ft531TIQ4e5sX3bmiKOMa0UFkHhzHWQjtJ4CPNY8xPSE/VtRdlekrPjICMkPkw7TN U/WjsCBHt7/ru7rjC2AJK76MG5XeiVWq/4X9slSRPnMsj7RHaSX/nYIPaRRXmCPUcqBMJ r53fJf0fYwl7mctrhZwF7yHqodwYF5gnA+p1ZNW2Ks6arbyK6SU3qZ2a0p3cz5e90fA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796303057; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:From:To:Cc: Subject:Date:Message-ID:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:Content-Type:X-Last-TLS-Session-Version; bh=CCzku+LKlIm1DVRVwoZbK04YfkQtoBtKt0A+bBwhnNI=; b=CDBI6b9CWa7uKJmTAXlp5Jbpeq2686mbDO35BzOt4q6Q5iTB5aeFh8UcSEfJjhyllCz9 r1vj4NjXzKdOZDq8qmhw62xypbzHv/OTboWvIQg7lZWprEYEgu/ey/BXuW67ovauFtain JfPtpXhTZBaJyC618l05O6+z26X5wmyLZ6u4TxgkMMqOqe31i4gG8zwsULbu34L5u1OpH rLGJ2WETELiTyvVbpWQgTImPHwxxDWOZPdZ4VIVBA63kLjAlPJWvbBKXkG2UjaAP++xGR TZ4gBFeM/ZUBn7+fWcL0b1HjL+erzoILVMRA1iZ0x6YRDD6viy9jSvYtLHe61Wad4OA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=isq5yDwL; arc=none smtp.remote-ip=185.246.84.56 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B4446606A32C for ; Thu, 3 Dec 2026 13:04:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B4446606A32C 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=isq5yDwL Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id B4C931A190E; Thu, 3 Dec 2026 13:04:14 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 79F79604ED; Thu, 3 Dec 2026 13:04:14 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 85B6411EA1850; Thu, 03 Dec 2026 14:04:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796303052; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=CCzku+LKlIm1DVRVwoZbK04YfkQtoBtKt0A+bBwhnNI=; b=isq5yDwLcwg6AZQys2RzRRo5E3MLnjrEsl5gTVIKX/vw3Z6iiNt65TE3EI8sp0haz9DSHS ZCZ7Q9pTYbQBqwBGmgcQTswnYpRde3ORyTqdlf8UN4ZadnSn7iAG2as6B+DdYBQjp+jjSx iIUKN2tVbrZ0Y3s1+Nipja1sN7DW4oDE+eAix4Y/V4YKrtFp7CcaJrpKrEcNiGzAebCT+D MZXe01n3mFQSwb8UXS2kQPLsAzcPdb6q6JaWdMzKEBIGL8dXaNkKs890VLnMkW1Ge1dqFG 5ybNhP8EA9lAOIsfuQf1rGgf6gPYPlZprKvduurR4D7fTSvgMxv5I4HD59pZWw== From: Benjamin Robin To: Krzysztof Kozlowski Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yuti Amonkar , Philipp Zabel , Andrzej Hajda , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Luca Ceresoli , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Andrew Davis , Vinod Koul , Chintan Vankar , Abhash Kumar Jha , Neil Armstrong , Manivannan Sadhasivam , Thomas Richard , Swapnil Jakhade , Siddharth Vadapalli , Gregory CLEMENT , =?UTF-8?B?VGjDqW8=?= Lebrun , Tawfik Bayouk , Vladimir Kondratiev , Thomas Petazzoni , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org Subject: Re: [PATCH 3/4] dt-bindings: phy: cadence-torrent: add phy-mode constants Date: Thu, 03 Dec 2026 14:04:01 +0100 Message-ID: In-Reply-To: <20261203-chirpy-amigurumi-anteater-c5fc45@quoll> References: <20261120-phy-cadence-torrent-ng-v1-0-da2db7125cd7@bootlin.com> <8vihTUc0Sjqm4gFwtZkB5w@bootlin.com> <20261203-chirpy-amigurumi-anteater-c5fc45@quoll> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Last-TLS-Session-Version: TLSv1.3 On Thursday, December 3, 2026 at 12:14=E2=80=AFPM, Krzysztof Kozlowski wrot= e: > On Tue, Nov 24, 2026 at 05:41:19PM +0100, Benjamin Robin wrote: > > > >=20 > > > > These constants are used by the new Cadence Torrent PHY driver and > > > > are referenced by the `cdns,phy-mode` property of the Cadence Torre= nt > > > > PHY binding to select the PHY mode. > > >=20 > > > That's obvious, explain why you are duplicating phy type instead. > >=20 > > You are right, the commit message needs improvement. > >=20 > > Any guidance on how you would like these options represented in the > > binding would be much appreciated as I am not entirely sure about the > > best approach myself. >=20 > This looks like duplicating phy-tpe. It is does not, needs reasoning why > it does not. If it does, it needs to stop duplicating or explain why > upstream would like to have this duplication. This is not duplicating the phy-type (at least I am not trying to do that). The goal is to be able to configure the speed of the PHY (or some other HW settings). In v2 (which has quite a lot of issues that I introduced accidentally during the refactoring, sorry about that), the commit message that I improved looks like this [1]. The QSGMII mode was removed, since that "speed" can be represented by an existing phy-type. As explain in the previous email above: The Torrent PHY supports multiple standards: PCIe, USB, SATA, XAUI and SGMII, ... For some of them, additional configuration options exist: =2D USB: We need to know the I/O supply voltage (1.1 V or 1.2 V), since it affects the TX full-swing magnitude multiplier configuration for the USB TX/RX pad supply. The link can also be limited to Gen 1 speed (5 Gb/s SuperSpeed) instead of Gen 2 (10 Gb/s SuperSpeed+) to reduce power, which is why the option is named "LP" (low power). =2D SATA: The PHY supports SATA Gen 1 (1.5 Gb/s), Gen 2 (3.0 Gb/s) and Gen 3 (6.0 Gb/s). The link can also be limited to Gen 2 to reduces power. =2D XAUI: The link can be configured to 1X only (3.125 Gb/s lane rate), dropping the 2X rate (6.25 Gb/s), again to reduce power. =2D SGMII: The link can be "overclocked" to 2500BASE-X (called SGMII+ in the user guide) instead of 1Gbps. =20 [1] https://lore.kernel.org/all/20261202-phy-cadence-torrent-ng-v2-4-0b4933= 87347b@bootlin.com/ =2D-=20 Benjamin Robin, Bootlin Embedded Linux and Kernel engineering https://bootlin.com