From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 15D4725B094 for ; Fri, 26 Jun 2026 04:25:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782447956; cv=none; b=kUkYArq8weGte5SCl//XovC1CvFNOT1I6QQ//YIuare7tbHS7emnxHky8svcNZ1k6yh0NX/8b/bQYdE+U/GQ/v/92Zn8DSv9bzAm1u50sTupkU9LbrSAidd8SNoqr5XzeJE0vihRIEDiFsp3wVA4D8/emxihzhoupbc11a7HTdk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782447956; c=relaxed/simple; bh=NluZfjnUMNDT8hFt9T+4GOV04TI0lFJMOepDdtmmA/U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Hi71bX0G+Nys+bHXwpJNeZZhpNC0eUNRniffNkLHEixnmp8gU7HKl9KiPciKtkQ/TKyKUiQCMGn/5Jwuq1EbPbb7NNu+LPfkfraEaxouePYqqbJ1cY5394n8bK9ksAN5aRR0JZF3F5oVjRhdpkZ+Xs0JNqZRnP68Uidk5hSbGi4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hZAoCm0n; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hZAoCm0n" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4AEB31F000E9; Fri, 26 Jun 2026 04:25:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1782447954; bh=cXWJYMos9uyuh3E8/MUl/yZRa7p117JfU1Ek7s0iRKM=; h=From:To:Cc:Subject:Date; b=hZAoCm0nt01cgCMf77NsilBu9BSYUTut3IiICYe1lvOMa7FGMqLNVJSCtmZoydxwF dlJZPPj5OHnBMTBa2t5lZtdkBv/aZBWVWtmjrZ/tGnTVrGzfaRX/u+sChgOmdH7JB7 ZC/kt6WWbQqlYG+ztFsPNltCC4k1N8HUplAq9QgnsuG6DJSIDsU4bXtcABhKtWMAPf 2kbB9Pd+40YwDycwjUlmqdpLYNm+VpO22Ty5PoFse031iNym25dvkwiG0FjLHqd+fy SG9ee/V3tZnRpS+DBW/+Cz71xgsznzKXPKq43mRmPGNvahGnVF9SqhhRG6UWaVSM6T qkGCrl2pDoJCw== From: Dinh Nguyen To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: dinguyen@kernel.org, devicetree@vger.kernel.org, muhammad.nazim.amirul.nazle.asmade@altera.com Subject: [PATCH 1/2] dt-bindings: net: altr,socfpga-stmmac: add more interrupts for Agilex5 Date: Thu, 25 Jun 2026 23:25:40 -0500 Message-ID: <20260626042541.1091774-1-dinguyen@kernel.org> X-Mailer: git-send-email 2.42.0.411.g813d9a9188 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The stmmac hardware on Agilex5 supports 8 TX/RX queue pairs and is dma-coherent. Update the schema to handle the hardware differences between SoC variants. Signed-off-by: Dinh Nguyen --- .../bindings/net/altr,socfpga-stmmac.yaml | 51 +++++++++++++++++-- 1 file changed, 46 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/net/altr,socfpga-stmmac.yaml b/Documentation/devicetree/bindings/net/altr,socfpga-stmmac.yaml index fc445ad5a1f1..9bae17688992 100644 --- a/Documentation/devicetree/bindings/net/altr,socfpga-stmmac.yaml +++ b/Documentation/devicetree/bindings/net/altr,socfpga-stmmac.yaml @@ -62,12 +62,28 @@ properties: - const: stmmaceth - const: ptp_ref - interrupts: - maxItems: 1 - interrupt-names: - items: - - const: macirq + oneOf: + - items: + - const: macirq + - items: + - const: macirq + - const: tx-queue-0 + - const: tx-queue-1 + - const: tx-queue-2 + - const: tx-queue-3 + - const: tx-queue-4 + - const: tx-queue-5 + - const: tx-queue-6 + - const: tx-queue-7 + - const: rx-queue-0 + - const: rx-queue-1 + - const: rx-queue-2 + - const: rx-queue-3 + - const: rx-queue-4 + - const: rx-queue-5 + - const: rx-queue-6 + - const: rx-queue-7 iommus: minItems: 1 @@ -149,10 +165,35 @@ required: - clocks - clock-names - altr,sysmgr-syscon + - interrupts + - interrupt-names allOf: - $ref: snps,dwmac.yaml# + - if: + properties: + compatible: + contains: + const: altr,socfpga-stmmac-agilex5 + then: + properties: + interrupts: + minItems: 17 + maxItems: 17 + + interrupt-names: + minItems: 17 + maxItems: 17 + + dma-coherent: true + else: + properties: + interrupts: + minItems: 1 + + dma-coherent: false + unevaluatedProperties: false examples: -- 2.42.0.411.g813d9a9188