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 F03ABD3514E for ; Wed, 1 Apr 2026 07:00:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=LbJ9t0xMmlPi9j7JmGEb04rTBnP5kfqBoC1sruaoonE=; b=aoJVLzvfccvqxEOPbntMi5+qAI VpI9ggipwm4C5Yn+wk4k7+QpOzvSZ4b65ki0PHFydszUZ7Bk057SjI/QhOhRk4KSFCIQgeTco2dZk vr/cVGX/moaa7gYLmEA1GQteCFQ5KE5oWgeTWB15eiPnML5mtmLv1m8OrLJQJxp36YVfl6wTX+Fv6 IO93Y0GIHBrhzWrw/J6/IrKlgBC6qDaONX+O7agPFojTYh47SrUZG4DAOTqec4hzAVnF0y5tRwlmg gN9JuG2ODl1RnV66mzqzNdAOBY7CW8s4uJkTgQ1CwFKNWB7Ism4dU6rbxUlJHJaQ42w1ZqDPb2Yks r38M2ZbA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1w7pYg-0000000E92T-2oCH; Wed, 01 Apr 2026 07:00:10 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1w7pYb-0000000E8zp-1GaI; Wed, 01 Apr 2026 07:00:05 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 71DEE600C4; Wed, 1 Apr 2026 07:00:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9EEC8C4CEF7; Wed, 1 Apr 2026 07:00:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775026804; bh=6pMjNZLYTRCNPh+LH/UowsTNfqvG8Ua5lTl8fcBHYIU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=BxeYdYnAlXhQpY/8acs08vQtk0+bpqd6R+lO3NfNZLpevU9bx/kY0qG8GnbXuJDZL lX8znRKoKkFyTL7bUnGLLswSqE6f87VHwl3jjvnIm1jDkOAmumEo+Ilim7iuYYoSPQ KGTwfzp2kfOvL0AlbWR3esVissCxKeiYCMXFkFmdEkJjv6miYBEfOWHlNeCyF5Yfqe 7xhAZTyWX4FhF8SThVzwgzws0ZcxWhPWvYk4SRI3v1gania1MIiUbTNzDIUHZHvhjB lI2491ff5p7vHQ7BnLP19Wa5vUXzn7kRxQwMN0rWs9OkbuykyD/6lTB19ZfWNrctGo 7/MPCiNk9Lj3g== From: Lorenzo Bianconi Date: Wed, 01 Apr 2026 08:59:19 +0200 Subject: [PATCH net-next v2 01/11] dt-bindings: net: airoha: Add EN7581 ethernet-ports properties MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260401-airoha-eth-multi-serdes-v2-1-ac427ae4beeb@kernel.org> References: <20260401-airoha-eth-multi-serdes-v2-0-ac427ae4beeb@kernel.org> In-Reply-To: <20260401-airoha-eth-multi-serdes-v2-0-ac427ae4beeb@kernel.org> To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lorenzo Bianconi Cc: Christian Marangi , Benjamin Larsson , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, netdev@vger.kernel.org, devicetree@vger.kernel.org X-Mailer: b4 0.14.2 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org EN7581 and AN7583 SoCs support connecting multiple external SerDes to GDM3 or GDM4 ports via a hw arbiter that manages the traffic in a TDM manner. As a result multiple net_devices can connect to the same GDM{3,4} port and there is a theoretical "1:n" relation between GDM ports and net_devices. Introduce the ethernet-port property in order to model a given net_device that is connected via the external arbiter to the GDM{3,4} port (that is represented by the ethernet property. Please note GDM1 or GDM2 does not support the connection with the external arbiter and are represented by ethernet property. Signed-off-by: Lorenzo Bianconi --- .../devicetree/bindings/net/airoha,en7581-eth.yaml | 44 +++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml b/Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml index fbe2ddcdd909cb3d853a4ab9e9fec4af1d096c52..ebbd433e9c9fbfaefd8d07c3678cabc91574d125 100644 --- a/Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml +++ b/Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml @@ -130,6 +130,30 @@ patternProperties: maximum: 4 description: GMAC port identifier + '#address-cells': + const: 1 + '#size-cells': + const: 0 + + patternProperties: + "^ethernet-port@[0-5]$": + type: object + unevaluatedProperties: false + $ref: ethernet-controller.yaml# + description: External ethernet port ID available on the GDM port + + properties: + compatible: + const: airoha,eth-port + + reg: + maxItems: 1 + description: External ethernet port identifier + + required: + - compatible + - reg + required: - reg - compatible @@ -191,9 +215,27 @@ examples: #address-cells = <1>; #size-cells = <0>; - mac: ethernet@1 { + mac1: ethernet@1 { compatible = "airoha,eth-mac"; reg = <1>; }; + + mac4: ethernet@4 { + compatible = "airoha,eth-mac"; + reg = <4>; + + #address-cells = <1>; + #size-cells = <0>; + + ethernet-port@0 { + compatible = "airoha,eth-port"; + reg = <0>; + }; + + ethernet-port@1 { + compatible = "airoha,eth-port"; + reg = <1>; + }; + }; }; }; -- 2.53.0