From nobody Sun Dec 14 08:04:11 2025 Received: from mxout2.routing.net (mxout2.routing.net [134.0.28.12]) (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 8815528DB48; Wed, 9 Jul 2025 11:12:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.12 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752059527; cv=none; b=i4rU1l72smuhIqf1m6XlohJHAMyn0djqbre+sxCBx44OlacFajXD3oNoYFb/s8bpKdo887hf9qRV0OtQAwlEo/uPC3f87l4Em9A6zvuAXFCB6bLLVFKbOOukM6aH0UIcuWYiMMbjsY7iWAiShsKox6Js8y+MVBK5hpByFKI657E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752059527; c=relaxed/simple; bh=a0wG9B1wdMoAKQ8jKykL5CDdJ2yJntzJ5rgOaL6Jkxk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=d2S/olMbF7NzzHV7A6nprg4nxSvpUelH1pF7hDVL7Oqyl+fGAwWDdKWwayAfdchKLHHD6UsTVz5EDJsO+jVnLfVaDEwd4AkKnaanNf61M0cMSWb6j+PdRvx1nWDD7Ceb7prPoEhC0Q3ccDEYVIFU29ZHbNeyRqSoqhsBU+62CV8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=RFZxMvmJ; arc=none smtp.client-ip=134.0.28.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="RFZxMvmJ" Received: from mxbulk.masterlogin.de (unknown [192.168.10.85]) by mxout2.routing.net (Postfix) with ESMTP id DDE0B603F9; Wed, 9 Jul 2025 11:11:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1752059518; 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=N5yOskSQPOfeXqxzAKp+ra3y71xfGoumsHkxo/gxJUM=; b=RFZxMvmJ/Twz30DHlBhpB9sfybpktL4WYCl7NgYMWsNRwcZuVmxR5ajqPh1IUrsRuw0ygK qr5+9Y96dApHHtjMLEqvbZ0oWSUOarZzTdZ+UP/ja1ac1M4sPMB0tC4gy0UeP1Yq+MVE03 p6jIOaP2TlwfiuMU6e1OlHjYl6FDUi4= Received: from frank-u24.. (fttx-pool-217.61.157.99.bambit.de [217.61.157.99]) by mxbulk.masterlogin.de (Postfix) with ESMTPSA id 867901226D4; Wed, 9 Jul 2025 11:11:57 +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 , Johnson Wang , =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Landen Chao , DENG Qingfang , Sean Wang , Daniel Golle , Lorenzo Bianconi , Felix Fietkau Cc: Frank Wunderlich , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v9 04/13] dt-bindings: net: mediatek,net: add sram property Date: Wed, 9 Jul 2025 13:09:40 +0200 Message-ID: <20250709111147.11843-5-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250709111147.11843-1-linux@fw-web.de> References: <20250709111147.11843-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Meditak Filogic SoCs (MT798x) have dedicated MMIO-SRAM for dma operations. MT7981 and MT7986 currently use static offset to ethernet MAC register which will be changed in separate patch once this way is accepted. Add "sram" property to map ethernet controller to dedicated mmio-sram node. Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Krzysztof Kozlowski --- v9: - add "sram: false" for non-filogic v8: - splitted out mac subnode pattern - dropped reg naming change - rephrased description - drop change of reg-name v6: - split out the interrupt-names into separate patch - update irq(name) min count to 4 - add sram-property - drop second reg entry and minitems as there is only 1 item left again 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 =3D> 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.11799= 3-2-linux@fw-web.de/ v2: - change reg to list of items --- .../devicetree/bindings/net/mediatek,net.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/net/mediatek,net.yaml b/Docu= mentation/devicetree/bindings/net/mediatek,net.yaml index d2b5461e73bc..b45f67f92e80 100644 --- a/Documentation/devicetree/bindings/net/mediatek,net.yaml +++ b/Documentation/devicetree/bindings/net/mediatek,net.yaml @@ -66,6 +66,10 @@ properties: - const: gmac - const: ppe =20 + sram: + $ref: /schemas/types.yaml#/definitions/phandle + description: phandle to mmio SRAM + mediatek,ethsys: $ref: /schemas/types.yaml#/definitions/phandle description: @@ -162,6 +166,8 @@ allOf: - const: gp1 - const: gp2 =20 + sram: false + mediatek,infracfg: false =20 mediatek,wed: false @@ -194,6 +200,8 @@ allOf: - const: ethif - const: fe =20 + sram: false + mediatek,infracfg: false =20 mediatek,wed: false @@ -233,6 +241,8 @@ allOf: - const: sgmii_ck - const: eth2pll =20 + sram: false + mediatek,infracfg: false =20 mediatek,sgmiisys: @@ -283,6 +293,8 @@ allOf: - const: sgmii_ck - const: eth2pll =20 + sram: false + mediatek,sgmiisys: minItems: 2 maxItems: 2 --=20 2.43.0