From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7882DC7115D for ; Fri, 20 Jun 2025 09:23:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:To:From:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fEipcKAdukHIximsR/pW1XDMAY4xIuxLf5mfX3Vm1mQ=; b=H7gMsQuETlhVBl T8UpMV88ukA/SEBggp7EA2yEnk1z42xdODf58Q/kF/4HOZNwgtbweAx/DIVB8zuNbqP95ZvcVW5gt NAjYqZpCydq26C/6PQ+KqF/tIhNJBS9EzK4x4QCc5oBjvYgeqbQVuXF/dtdkPl9t1HLZ+zUGosvF+ /3pfo3/DrqmTm6nc+/vCpA+VElxPb5KxHuFDd5TxgGcnQdt4twzJDtSwofBQcSX9EsRqbGJ8d2EJ4 NU7fCWsDwHeE1Tr0zWmG0GTa8R/S4yRycAO1zvoMjZ6nUbecvjB83TZa72XXNSHi7dVdfRRpQAzy+ s7mfek+23z+vof1ouo0g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uSXxa-0000000FB6y-2Bk4; Fri, 20 Jun 2025 09:22:58 +0000 Received: from mxout4.routing.net ([2a03:2900:1:a::9]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uSXEM-0000000F4x6-32Lz; Fri, 20 Jun 2025 08:36:16 +0000 Received: from mxbulk.masterlogin.de (unknown [192.168.10.85]) by mxout4.routing.net (Postfix) with ESMTP id ECE71100870; Fri, 20 Jun 2025 08:36:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1750408571; 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=fEipcKAdukHIximsR/pW1XDMAY4xIuxLf5mfX3Vm1mQ=; b=GupZjz9UnsS2GlDvj8TRtLdgxoX4+KHTXmbCVdO6hD6eyKHVlnqFQSY6hcQXY53bECn7kZ C/C9hlI9OQR5EDcuRr89vT+6cQll16EexXh8rMlwCJcPHUTqvPo89KN4w/V5GFBaW90VY3 vuUmSmQ811u5DjKwi5hjYxvYpHNAG2Q= Received: from frank-u24.. (fttx-pool-157.180.225.81.bambit.de [157.180.225.81]) by mxbulk.masterlogin.de (Postfix) with ESMTPSA id 91770122700; Fri, 20 Jun 2025 08:36:10 +0000 (UTC) From: Frank Wunderlich To: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno Subject: [PATCH v5 01/13] dt-bindings: net: mediatek,net: update for mt7988 Date: Fri, 20 Jun 2025 10:35:32 +0200 Message-ID: <20250620083555.6886-2-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250620083555.6886-1-linux@fw-web.de> References: <20250620083555.6886-1-linux@fw-web.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250620_013614_921881_892A7944 X-CRM114-Status: GOOD ( 11.64 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Landen Chao , Sean Wang , =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , netdev@vger.kernel.org, linux-pm@vger.kernel.org, Daniel Golle , linux-kernel@vger.kernel.org, DENG Qingfang , Johnson Wang , linux-mediatek@lists.infradead.org, Jia-Wei Chang , Lorenzo Bianconi , linux-arm-kernel@lists.infradead.org, Felix Fietkau Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org From: Frank Wunderlich Update binding for mt7988 which has 3 gmac and 2 reg items. MT7988 has 4 FE IRQs (currently only 2 are used) and the 4 IRQs for use with RSS/LRO later. Add interrupt-names to make them accessible by name. Signed-off-by: Frank Wunderlich --- v5: - fix v4 logmessage and change description a bit describing how i get the irq count. - update binding for 8 irqs with different names (rx,tx => fe0..fe3) including the 2 reserved irqs which can be used later - change rx-ringX to pdmaX to be closer to hardware documentation v4: - increase max interrupts to 6 because of adding RSS/LRO interrupts (4) and dropping 2 reserved irqs (0+3) around rx+tx - dropped Robs RB due to this change - allow interrupt names - add interrupt-names without reserved IRQs on mt7988 this requires mtk driver patch: https://patchwork.kernel.org/project/netdevbpf/patch/20250616080738.117993-2-linux@fw-web.de/ v2: - change reg to list of items --- .../devicetree/bindings/net/mediatek,net.yaml | 30 ++++++++++++++++--- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/net/mediatek,net.yaml b/Documentation/devicetree/bindings/net/mediatek,net.yaml index 9e02fd80af83..9465b40683ad 100644 --- a/Documentation/devicetree/bindings/net/mediatek,net.yaml +++ b/Documentation/devicetree/bindings/net/mediatek,net.yaml @@ -28,7 +28,10 @@ properties: - ralink,rt5350-eth reg: - maxItems: 1 + items: + - description: Register for accessing the MACs. + - description: SoC internal SRAM used for DMA operations. + minItems: 1 clocks: minItems: 2 @@ -40,7 +43,11 @@ properties: interrupts: minItems: 1 - maxItems: 4 + maxItems: 8 + + interrupt-names: + minItems: 1 + maxItems: 8 power-domains: maxItems: 1 @@ -348,7 +355,19 @@ allOf: then: properties: interrupts: - minItems: 4 + minItems: 2 + + interrupt-names: + minItems: 2 + items: + - const: fe0 + - const: fe1 + - const: fe2 + - const: fe3 + - const: pdma0 + - const: pdma1 + - const: pdma2 + - const: pdma3 clocks: minItems: 24 @@ -381,8 +400,11 @@ allOf: - const: xgp2 - const: xgp3 + reg: + minItems: 2 + patternProperties: - "^mac@[0-1]$": + "^mac@[0-2]$": type: object unevaluatedProperties: false allOf: -- 2.43.0