🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #22423

[PATCH RFC v4 02/15] dt-bindings: net: nxp,s32-dwmac: Document pcs-handle

#22423
From: Jan Petrous via B4 Relay
Date: Wed, 25 Nov 2026 09:33
79 lines
13016 bytes
From: "Jan Petrous (OSS)" <jan.petrous@oss.nxp.com>

With SGMII, the PCS is one of the SerDes XPCS instances. The MAC
references its SerDes lane through phys, with the lane, the PHY type,
the XPCS instance and the highest speed in the argument cells, and the
SerDes node that provides the PCS through pcs-handle.

The pcs-handle type comes from ethernet-controller.yaml. Only
maxItems: 1 is added, as the MAC has a single PCS.

phy-mode "sgmii" requires both properties, and each of them requires
the other.

Signed-off-by: Jan Petrous (OSS) <jan.petrous@oss.nxp.com>
---
 .../devicetree/bindings/net/nxp,s32-dwmac.yaml     | 30 +++++++++++++++++++++-
 1 file changed, 29 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/net/nxp,s32-dwmac.yaml b/Documentation/devicetree/bindings/net/nxp,s32-dwmac.yaml
index fcad2274302d..219a033b889d 100644
--- a/Documentation/devicetree/bindings/net/nxp,s32-dwmac.yaml
+++ b/Documentation/devicetree/bindings/net/nxp,s32-dwmac.yaml
@@ -15,7 +15,8 @@ description:
   The SoC series S32G2xx and S32G3xx feature one DWMAC instance,
   the SoC S32R45 has two instances. The devices can use RGMII/RMII/MII
   interface over Pinctrl device or the output can be routed
-  to the embedded SerDes for SGMII connectivity.
+  to the embedded SerDes for SGMII connectivity, in which case the
+  SerDes lane is referenced via phys and the PCS via pcs-handle.
   The DWMAC instances have connected all RX/TX queues interrupts,
   enabling load balancing of data traffic across all CPU cores.
 
@@ -81,6 +82,19 @@ properties:
       - const: rx
       - const: ptp_ref
 
+  pcs-handle:
+    maxItems: 1
+    description:
+      phandle pointing to the SerDes node that provides the SGMII PCS for
+      this MAC. See
+      Documentation/devicetree/bindings/phy/nxp,s32g-serdes.yaml.
+
+  phys:
+    maxItems: 1
+    description:
+      The SerDes lane that carries the SGMII link, with the lane, the PHY
+      type, the XPCS instance and the highest speed in the argument cells.
+
   power-domains:
     maxItems: 1
 
@@ -88,8 +102,22 @@ required:
   - clocks
   - clock-names
 
+dependentRequired:
+  pcs-handle: [ phys ]
+  phys: [ pcs-handle ]
+
 allOf:
   - $ref: snps,dwmac.yaml#
+  - if:
+      properties:
+        phy-mode:
+          const: sgmii
+      required:
+        - phy-mode
+    then:
+      required:
+        - pcs-handle
+        - phys
 
 unevaluatedProperties: false
 

-- 
2.55.0
Technical Details
Message-ID: <20261125-s32g_serdes-v4-2-3bfe0589be8d@oss.nxp.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371193-linux-kernel-netdev=dewy.ru
References: <20261125-s32g_serdes-v4-0-3bfe0589be8d@oss.nxp.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371193-linux-kernel-netdev=dewy.ru
From: devnull+jan.petrous.oss.nxp.com@kernel.org (Jan Petrous via B4 Relay)
Newsgroups: linux.kernel.netdev
Subject: [PATCH RFC v4 02/15] dt-bindings: net: nxp,s32-dwmac: Document
 pcs-handle
Date: Wed, 25 Nov 2026 10:33:44 +0100
Organization: Usenet Network
Message-ID: <20261125-s32g_serdes-v4-2-3bfe0589be8d@oss.nxp.com>
References: <20261125-s32g_serdes-v4-0-3bfe0589be8d@oss.nxp.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="169157"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Z9JQPQHWHPTpZ3JoJu1AVUaH1F0= sha256:WxfrbJHYR8L/P8HIqM/dX9RzachI34G5418RsoIfEao=
	sha1:VnqbilAcEDVYAh5DOpY7+A9Fcwk= sha256:4hmrxrN+dpQLIJvPxd/9UWqhMqtd8PWKbHsBObMi8d4=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 1699B125E51; Wed, 25 Nov 2026 12:35:12 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id drRt0DPBgg3d;
	Wed, 25 Nov 2026 12:35:09 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-371193-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id A017F125E4E; Wed, 25 Nov 2026 12:35:00 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id 6DC912C0AF; Wed, 25 Nov 2026 09:34:58 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795599290;
	b=KVnh8ItueSuhRlZzMY5Wdhl8vKqH3m8J6vfzzcIrZ1O0y0N9FNARC/+3y7xI82IkGOWU
	 o9Z6WszniTsQZr9zJ74QFzJ6U//xq4WcQHsAcWrhHOia/p1xhoeU5Ui+Wask2Fk3fRXpA
	 FvSwEzNsCHprln/ZXSWX3GKJVuYB22hMh8A4VHMspB6M4/O5k9OBioaJkL1cFPL9iKTiI
	 n7i8WrWhMWQ+dWH71XEPAewcl0MW/LAtSFWvhs2WoGCOqR6xtJZtpbt4zD12Y/YC1tVh7
	 clBXt4NPv0rEOHUiPcQ1Oz/zEitaxU4yJlYHxMtlHih7sf/Kv8oSqcjoWZ39zuURyAw==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795599290;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Date:
	 Subject:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type:
	 Message-Id:References:In-Reply-To:To:Cc:X-Mailer:
	 X-Developer-Signature:X-Developer-Key:X-Endpoint-Received:
	 X-Original-From:Reply-To:Content-Transfer-Encoding;
	bh=HHerysfzLkwh4t+JN7V5vSAXizEIQWGJB/Ol2KOsRx8=;
	b=HobyW6QSpHL1nDRNZxBOyfPQvdcWkf+phFwQ0rAPm67oYzhQNPUaXtYDO2FOtMNjTm/g
	 /7menyTycePlWQg4QbMD/fXPjCqr2j/jZOq6AH5yF37PFYN2b9H+PZ6f6/oJhc5xX+2sW
	 9PwICnOtiNiqDBhAZtUwUifxHt8wbjlcYwpJQA+Lw+L9VfLxfbdmYFYoZSaoibmP3y1TD
	 CCpQXcqLmJmaN1auTkktXyElnE3Xz3orsB/JfAA1O/dbM3LELO5hYR7E8MdEvUV1+sEVp
	 u3wut7NiFT9e4cKxj9fRO3WOqQe8Algj8iGjXkfMb8m8zy5qA7AVTTm4dme6axSxLDA==
X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="BnKo/a6t";
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id CB2BA606A6A3;
	Wed, 25 Nov 2026 09:34:50 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BnKo/a6t
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795599290;
	b=2mszFSPk5+UTPKRwdZPlp5NlmIHJGyxINkv2e+/4KTxmPoZB+puQstZOpT5aG3k12dL5
	 TTE4/nB1W4jzYhemFo/raAgQkFvoFi5H8GtfOHjvelDAqzfdXHKttbHUfMzX9KjFaRuK9
	 UGBpgcJqYCtWsMkQQvIc1Q3kEboscYpx2+8nn/0UpdbnuKlh+mVkf06VkKQKx/BbL6mzR
	 zDBU8UhJRB80DDVZSrwouesWUPvA+tc8fRYO4cHX3m4LK8Nhj7bPo+04EKo/sOl6sIgsI
	 iRegxAPWXWW/Q0H42EkVndt+pF43rbGegL+rjOJsmXlRQWh/F6TSLymW6RZx4dbCB1A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795599290;
	h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version:
	 Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer:
	 X-Developer-Signature:X-Developer-Key:X-Endpoint-Received:
	 X-Original-From:Reply-To:Content-Transfer-Encoding;
	bh=HHerysfzLkwh4t+JN7V5vSAXizEIQWGJB/Ol2KOsRx8=;
	b=TXXTiG2vzIxEQ65EUeziII2vDWWXMis1LFUFws1tGLlradW9YCbD6oAEio109ubQ42sk
	 o3W82UY/VtEHgjMfUsek3671O6Uk4CEfIu/JFvrcr8Htnk/ZZNO32wljWZ7snjrfZi2Xb
	 jMZ7GWQSAEFTGoVTNHZiosnHergxF2jhbwcQVS1WBk6asS3mTyeLJ4NupRnO1hKdR5a0J
	 w7x1P27kmXU5trfpcDT0pSkrL7fV4wUciLkr8vDd4zAychvvHCUHFGhs3w0nM0xjvbq2A
	 9INxWqkjwRyve6VI9tt+k9JrNwORpDsPGENRBM7446yMwa/Eh73rXNzjydhyBXxFa7A==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="BnKo/a6t";
	arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id EA3C0606A697;
	Wed, 25 Nov 2026 09:34:49 +0000 (UTC)
X-Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77
X-ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none;
	t=1795599289;
	b=ut71GH6QEtGbhI7NgZGIzLnDhLiUw7Qt5lSk13TYi1nU9jf3I24EiGGe9y2o4mSLCLT8
	 2Xe/4WVh+u+N84h/UctglJS1Qsx00hgp5QkCS64rj+/Jj42GR08Uy/wZZ1PIMk7OFvVsa
	 IRHF4hlsfvkzBAb/gD90rEGnBwsGsj6GZ6jzz8OWJ19ioLj6Xf9jOhh7fYl7CHr3aYeFm
	 YlYAN1jwoyfv2QP2e3jf4NIHp3dRJI9TkXNw7fjYtE04iqPBJEqi8MiiaPk7I6MHo2JAv
	 9HIJggvDuu4qY24lmy13MiEjmzDBLh2PT8BIDbyueybLH3V63gP9lR+P5JHJR6hZE/Q==
X-ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256;
	c=relaxed/relaxed; t=1795599289;
	h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type:
	 Message-Id:References:In-Reply-To:To:Cc:X-Mailer:
	 X-Developer-Signature:X-Developer-Key:X-Endpoint-Received:
	 X-Original-From:Reply-To:Content-Transfer-Encoding;
	bh=HHerysfzLkwh4t+JN7V5vSAXizEIQWGJB/Ol2KOsRx8=;
	b=eOZ/ZQpd0viRtStdk74/53mFJ++VDhPwn9uW1k12uBFCgnCzcRqAWA/ypoJ3UHuk7a1a
	 c7Fj3zKQYiYG/BOWezwt6Syd/Ijz1glxM8GmDfI00PO96fIOl6h0y9nKaL65FC7F3m2eU
	 EaMlq6j0WOYq3+IBr5ZqjyIzDvXVz9IlJGSVH1eizgT0htB92/XO2nCoWUg/EXF4TAeIN
	 WIQMnPi4W56+L/e4/LwXJOmVGUPWMUvZnNhNcIU5sEPHkqmCOyKw3YSRVFO1JvX7WkZPa
	 MJZk4SRokZ0M8v1Y7KF/22iXaQu3E+fgMLazKVeZAXk6dpdE6hwiIgQzweiXkYkchqg==
X-ARC-Authentication-Results: i=1; smtp.kernel.org; 
	arc=none smtp.remote-ip=100.80.115.77
X-Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77])
	(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.kernel.org (Postfix) with ESMTPS id E8EF41F000CF;
	Wed, 25 Nov 2026 09:34:36 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795599289;
	bh=HHerysfzLkwh4t+JN7V5vSAXizEIQWGJB/Ol2KOsRx8=;
	h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To;
	b=BnKo/a6tkGrRnvDK0gStcVAzO/TJtwCGtgrzdqQaWT98U2zIYxRR6agmNDp0Y2U29
	 PuPDseRhSUCtxgw7yf1RWOepArrZXnfnbw7Wf/xJAKFhhi/ocPq/052+ziXP4+FSAy
	 7RJh4sQ//eDeovhtCkHRxYroUroXSKYuKGTDi+iCd0jFaXM1W8DFl+QMHyMm2lOfEE
	 7ZyGEOgkODlyKmDNayI6TIgfVCjnzdrVGVjPK3Y62EZ+xe+0s2bW5DwP6qpA1Q2Xtw
	 1M/XvyzyN5cAY+XBc9zjm/uCnoP6E7mQSnmTRHA2hYgBzXe6AXOJw/WUBw6yBOOx/t
	 TqMMurgeO0vUw==
X-Received: from nexus.subspace.kernel.org (localhost [IPv6:::1])
	by lkml.kernel.org (Postfix) with ESMTP id 75A9E4CDF6;
	Wed, 25 Nov 2026 09:34:36 +0000 (UTC)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261125-s32g_serdes-v4-0-3bfe0589be8d@oss.nxp.com>
X-Cc: linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org, 
 netdev@vger.kernel.org, devicetree@vger.kernel.org, 
 linux-kernel@vger.kernel.org, imx@lists.linux.dev, 
 linux-pci@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, 
 "Jan Petrous (OSS)" <jan.petrous@oss.nxp.com>
X-Mailer: b4 0.14.1
X-Developer-Signature: v=1; a=ed25519-sha256; t=1795599274; l=2480;
 i=jan.petrous@oss.nxp.com; s=20240922; h=from:subject:message-id;
 bh=XvSbxkQlAkTxdnIVmZ2WLc0f8gwakCGU+LGgQcKuPyU=;
 b=WRCaqxowpj4b59FfSwGMljIDNOKr0FtOfHQsD8XUEWyRyPDGaq00tpV/gVejjd7NuOoZWsm0T
 iZvcnn4B57hDVUU7GaEoD50g4JIwpPIsrH2dooqiKY7mepjIXU9ypx2
X-Developer-Key: i=jan.petrous@oss.nxp.com; a=ed25519;
 pk=Ke3wwK7rb2Me9UQRf6vR8AsfJZfhTyoDaxkUCqmSWYY=
X-Endpoint-Received: by B4 Relay for jan.petrous@oss.nxp.com/20240922 with
 auth_id=217
X-Original-From: "Jan Petrous (OSS)" <jan.petrous@oss.nxp.com>
X-Reply-To: jan.petrous@oss.nxp.com