Article View: linux.kernel.netdev
Article #4022[PATCH net-next v2 2/3] dt-bindings: net: qcom,ipq9574-ppe: Add IPQ5332 support
From: Til Kaiser
Date: Fri, 16 Oct 2026 15:24
Date: Fri, 16 Oct 2026 15:24
209 lines
13995 bytes
13995 bytes
IPQ5332 uses the same PPE architecture as IPQ9574, but has two front
panel ports instead of six and four interconnect paths instead of seven.
Add the qcom,ipq5332-ppe compatible and constrain the interconnects
and port nodes per SoC: IPQ5332 takes four interconnects and only
port IDs 1 and 2, while IPQ9574 keeps seven interconnects. Apply the
port-count limit to both container and port naming forms.
The PPE core, EDMA and MAC clock functions are shared, but IPQ5332 also
needs the GCC IM sleep clock. The PPE core uses one reset and each MAC
uses three resets on both SoCs. IPQ5332 EDMA needs separate system and
configuration resets; IPQ9574 uses one combined reset. Constrain the
clock and reset counts accordingly. Keep EDMA resets positional, with
the system reset first and the configuration reset second on IPQ5332,
consistent with the existing unnamed IPQ9574 reset.
IPQ5332 EDMA has 24 TX/completion rings, 16 RX descriptor rings and eight
RX fill rings, so the full EDMA interrupt set comprises 49 interrupts.
Constrain the interrupt counts and ring names per SoC as well.
The ring limits come from QSDK 14.0.1595.1665,
qca-nss-dp hal/soc_ops/ipq53xx/nss_ipq53xx.h.
Signed-off-by: Til Kaiser <mail@tk154.de>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
---
.../bindings/net/qcom,ipq9574-ppe.yaml | 92 +++++++++++++++++--
1 file changed, 84 insertions(+), 8 deletions(-)
diff --git a/Documentation/devicetree/bindings/net/qcom,ipq9574-ppe.yaml b/Documentation/devicetree/bindings/net/qcom,ipq9574-ppe.yaml
index 6d0b21a10732..1e95f3a1d0b1 100644
--- a/Documentation/devicetree/bindings/net/qcom,ipq9574-ppe.yaml
+++ b/Documentation/devicetree/bindings/net/qcom,ipq9574-ppe.yaml
@@ -28,11 +28,15 @@ description: |
supporting various modes such as SGMII/QSGMII/PSGMII/USXGMII/10G-BASER. There
are 3 UNIPHY (PCS) instances supported on the IPQ9574.
- Ethernet DMA is used to transmit and receive packets between the six Ethernet
+ IPQ5332 uses the same PPE architecture with two front panel ports and two
+ UNIPHY (PCS) instances. Its Ethernet datapath has a CPU port (port0) and
+ two GMAC/XGMAC ports (port1 and port2).
+
+ Ethernet DMA is used to transmit and receive packets between the Ethernet
ports and ARM host CPU.
- The follow diagram shows the PPE hardware block along with its connectivity
- to the external hardware blocks such clock hardware blocks (CMNPLL, GCC,
+ The following diagram shows the IPQ9574 PPE hardware block and its
+ connectivity to external clock hardware blocks (CMNPLL, GCC,
NSS clock controller) and Ethernet PCS/PHY blocks. For depicting the PHY
connectivity, one 4x1 Gbps PHY (QCA8075) and two 10 GBps PHYs are used as an
example.
@@ -77,24 +81,29 @@ description: |
properties:
compatible:
enum:
+ - qcom,ipq5332-ppe
- qcom,ipq9574-ppe
reg:
maxItems: 1
clocks:
+ minItems: 4
items:
- description: PPE core clock
- description: PPE APB (Advanced Peripheral Bus) clock
- description: PPE IPE (Ingress Process Engine) clock
- description: PPE BM, QM and scheduler clock
+ - description: PPE sleep clock from GCC
clock-names:
+ minItems: 4
items:
- const: ppe
- const: apb
- const: ipe
- const: btq
+ - const: sleep
resets:
maxItems: 1
@@ -105,6 +114,7 @@ properties:
description: PPE switch miscellaneous interrupt
interconnects:
+ minItems: 4
items:
- description: Bus interconnect path leading to PPE switch core function
- description: Bus interconnect path leading to PPE register access
@@ -115,6 +125,7 @@ properties:
- description: Bus interconnect path leading to enhanced memory NOC from NSS NOC
interconnect-names:
+ minItems: 4
items:
- const: ppe
- const: ppe_cfg
@@ -130,7 +141,9 @@ properties:
description:
EDMA (Ethernet DMA) is used to transmit packets between PPE and ARM
host CPU. There are 32 TX descriptor rings, 32 TX completion rings,
- 24 RX descriptor rings and 8 RX fill rings supported.
+ 24 RX descriptor rings and 8 RX fill rings supported on IPQ9574.
+ IPQ5332 supports 24 TX descriptor rings, 24 TX completion rings,
+ 16 RX descriptor rings and 8 RX fill rings.
properties:
clocks:
@@ -144,15 +157,18 @@ properties:
- const: apb
resets:
- maxItems: 1
- description: EDMA reset
+ minItems: 1
+ items:
+ - description:
+ EDMA system reset. On IPQ9574 this also resets the configuration.
+ - description: EDMA configuration reset
interrupts:
- minItems: 65
+ minItems: 49
maxItems: 65
interrupt-names:
- minItems: 65
+ minItems: 49
maxItems: 65
items:
oneOf:
@@ -165,6 +181,7 @@ properties:
Interrupts "rxfill_[0-7]" are the Ethernet DMA RX fill ring interrupts.
Interrupts "rxdesc_[0-23]" are the Ethernet DMA RX Descriptor ring interrupts.
Interrupt "misc" is the Ethernet DMA miscellaneous error interrupt.
+ On IPQ5332, only "txcmpl_[0-23]" and "rxdesc_[0-15]" are supported.
required:
- clocks
@@ -229,6 +246,65 @@ required:
allOf:
- $ref: ethernet-switch.yaml
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: qcom,ipq5332-ppe
+ then:
+ properties:
+ clocks:
+ minItems: 5
+ clock-names:
+ minItems: 5
+ interconnects:
+ maxItems: 4
+ interconnect-names:
+ maxItems: 4
+ ethernet-dma:
+ properties:
+ resets:
+ minItems: 2
+ interrupts:
+ maxItems: 49
+ interrupt-names:
+ maxItems: 49
+ items:
+ oneOf:
+ - pattern: '^txcmpl_(1?[0-9]|2[0-3])$'
+ - pattern: '^rxfill_[0-7]$'
+ - pattern: '^rxdesc_([0-9]|1[0-5])$'
+ - const: misc
+ patternProperties:
+ "^(ethernet-)?ports$":
+ patternProperties:
+ "^(ethernet-)?port@[0-9a-f]+$":
+ properties:
+ reg:
+ maximum: 2
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: qcom,ipq9574-ppe
+ then:
+ properties:
+ clocks:
+ maxItems: 4
+ clock-names:
+ maxItems: 4
+ interconnects:
+ minItems: 7
+ interconnect-names:
+ minItems: 7
+ ethernet-dma:
+ properties:
+ resets:
+ maxItems: 1
+ interrupts:
+ minItems: 65
+ interrupt-names:
+ minItems: 65
unevaluatedProperties: false
--
2.56.0
Technical Details
Message-ID:
<20261016152449.934312-3-mail@tk154.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347401-linux-kernel-netdev=dewy.ruReferences:
<20261016152449.934312-1-mail@tk154.de>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347401-linux-kernel-netdev=dewy.ru From: mail@tk154.de (Til Kaiser) Newsgroups: linux.kernel.netdev Subject: [PATCH net-next v2 2/3] dt-bindings: net: qcom,ipq9574-ppe: Add IPQ5332 support Date: Fri, 16 Oct 2026 17:24:48 +0200 Organization: Usenet Network Message-ID: <20261016152449.934312-3-mail@tk154.de> References: <20261016152449.934312-1-mail@tk154.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2800891"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:QnDbMpLHK57uOGIGutORXjIe0Z8= sha256:jprlHLt7o8ZOGxVwokjinyuTVyXGT+wQ9ktwmzpShF8= sha1:CWMkTfqbd0JBbKFv0phS0ZtivDQ= sha256:xsJNsPuFHfZltfW9qU+1WHDtfKdJ+VEu8Kfu1iqTXLw= 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 A8F28110558; Fri, 16 Oct 2026 18:28:23 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.15 X-Spam-Status: No, score=-3.15 tagged_above=-9999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, 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=tk154.de 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 pCaT33-wyzW3; Fri, 16 Oct 2026 18:28:21 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-347401-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=tk154.de X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 0B84C11053A; Fri, 16 Oct 2026 18:28:13 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sto.lore.kernel.org (Postfix) with ESMTP id 5F719606F32; Fri, 16 Oct 2026 15:25:38 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D27774E1C8B; Fri, 16 Oct 2026 15:25:17 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tk154.de header.i=@tk154.de header.b="DNZmafJF" X-Received: from smtp10.goneo.de (smtp10.goneo.de [85.220.189.106]) (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 6D3A841A4FD; Fri, 16 Oct 2026 15:25:11 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=85.220.189.106 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792164317; cv=none; b=VvPgddKSKkdqfhGNDL4DgzaFKEgUoS5yNo6ix4xkJMNFUrvgWQHzlBTecpYgY+UpNbpc/bBV3VVKgz0/IHnhKgC0DwyfZ5bc1uTKRWKXE6sOQq0ZTSKAUxAh06k4w5T8vJ3Gp1rDKtEgM+Y2yzS3+OtXccfUM+X7Z/uNScyjiuw= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792164317; c=relaxed/simple; bh=Bt9mPHUiUwmzQK5CbmTAoss5u2Msofz4z4CxvY6fnk8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WyM69g60ITcBGPL11aTaHMoKpZ4bxNht4h46rP/T1N7RV0BHIXPqI4nRaEA4s92tSo/mA+ih9Tz77FGhyTUj7skzQ6Kje7gtIyq2RDKB6wpDkiCYS+0I2yv8uqammNXD1lNAsa24nnABDCjj7rPJhkGOmiUid+xwVdedLAIzsDg= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tk154.de; spf=pass smtp.mailfrom=tk154.de; dkim=pass (2048-bit key) header.d=tk154.de header.i=@tk154.de header.b=DNZmafJF; arc=none smtp.client-ip=85.220.189.106 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tk154.de X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tk154.de X-Received: from hub1.goneo.de (hub1.goneo.de [IPv6:2001:1640:5::8:52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by smtp10.goneo.de (Postfix) with ESMTPS id ABB02240AF0; Fri, 16 Oct 2026 17:25:09 +0200 (CEST) X-Received: from hub1.goneo.de (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by hub1.goneo.de (Postfix) with ESMTPS id 4D343240453; Fri, 16 Oct 2026 17:25:07 +0200 (CEST) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tk154.de; s=DKIM001; t=1792164307; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=l1RHakJGNtpvsOFMUX5QlCivJmc88+FUrOa2yUEImkY=; b=DNZmafJF4tH9NfSzj2UHOT/KHZWiEgYa90Y7lBoqncs/kGUGzwb7vL4pGTya41qPOopY6E u47oJvM7EM8fKOELpyY2RVa5npis8aseYQ4w88hQ/yVuSy6uBK+RPET3AgIOa+G/pLF9Ce LRUIj7dXCp3/O+JBkCxQNfjORW+LhtGg8GO2Fz2x4WnsksSGv9Yy/xT8yvA1260K1DSiPZ 4eVYW68Fis7xxREAN2ONTrF/wrF6u6Y6NPeDW+aHi4U3XQ26M2nL/gR+hCl5tMUQ7DEZLX o9/wpzGNllOgBmp5Q740KVwr3t2zSt50Y487rXKXgF2wxBnMARyNEQDnx1DadQ== X-Received: from CASE (unknown [195.37.88.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hub1.goneo.de (Postfix) with ESMTPSA id C088B240420; Fri, 16 Oct 2026 17:25:04 +0200 (CEST) X-Cc: jie.luo@oss.qualcomm.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, linux-kernel@vger.kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, quic_leiwei@quicinc.com, quic_suruchia@quicinc.com, quic_pavir@quicinc.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, horms@kernel.org, corbet@lwn.net, skhan@linuxfoundation.org, rdunlap@infradead.org, linux-doc@vger.kernel.org, Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> X-Mailer: git-send-email 2.56.0 X-In-Reply-To: <20261016152449.934312-1-mail@tk154.de> X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-Rspamd-UID: b2d09a X-Rspamd-UID: 0209ab