From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5CDE93F4120; Tue, 19 May 2026 08:58:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779181102; cv=none; b=f4gOmQD8ghN9VLMycbggIaWP/nT+qch4hWOc9hzAhLVAXcrFnsmUDxK+/AMmgD2h/CLvhBjsc97/vxzQDUlYBvoLAqO/UgM3gkNYhd1eamg5if8BkdYbJEhECFYovdPMRd8dRBVWyeDVSSXSDrJiAsiopiadw3142mgWmry21Cs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779181102; c=relaxed/simple; bh=UtsK2QBTB6PMpF7a38ma3yHKUUxqwno/B5pp2VQGoK8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kYA3IUR9YOhCi3gF86RVyOplUQ0VhMPxcp0qVGl0WELxPEjYHLxM5I2iL5kZO1GgLcHEAWLm48EM0qDKxPJojXIXq0QeGlAnVDILM2SvaG7FIHkcsv443UQg6Y7nlzEeckqDEP2Yc7I9JBVv7vwYoEYAntyOrtU+Uds98YOwpR0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kca+IgSP; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kca+IgSP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E0E2C2BCC6; Tue, 19 May 2026 08:58:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779181102; bh=UtsK2QBTB6PMpF7a38ma3yHKUUxqwno/B5pp2VQGoK8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=kca+IgSPWAKP+Hk8/qBV2heaTHp6kxS8/KHSTbCa0IAr8BUrMmOwV26UJPcByTmlY OqrR2GEdkaeIS6aPUQ19SK6FPKv6G8KrL+gpxNxzEP3HkpBBOdcRIDZv1ELr3MMP6s OD57SS5UvARmB195EMBMfXuEfLg2y+tgKm9aIadqeGbNuWLcjEgZ5cbGvVdquQ0PiI I38XC1Wn3Fn92I8zfCU3JsydmbyrcycNL6Mgq5gEcEL9YLUpfxS68SV6lcO8ShrThl CQ4hUoixoqm/PM8MlygWc1QIOh8mlEYIIKhIKZPGtyQ+IrVGBh9t21DRngFGzriTcJ P09ELzaSWm5Nw== From: Lorenzo Bianconi Date: Tue, 19 May 2026 10:57:44 +0200 Subject: [PATCH net-next v8 01/10] dt-bindings: net: airoha: Add GDM port ethernet child node Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260519-airoha-eth-multi-serdes-v8-1-6bd70e329df6@kernel.org> References: <20260519-airoha-eth-multi-serdes-v8-0-6bd70e329df6@kernel.org> In-Reply-To: <20260519-airoha-eth-multi-serdes-v8-0-6bd70e329df6@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.3 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 node child of a specific GDM port in order to model a given net_device that is connected via the external arbiter to the GDM{3,4} port. This new ethernet node is defined by the "airoha,eth-port" compatible string. Please note GDM1 and GDM2 does not support the connection with the external arbiter and they are represented by an ethernet node defined by the "airoha,eth-mac" compatible string. Signed-off-by: Lorenzo Bianconi --- .../devicetree/bindings/net/airoha,en7581-eth.yaml | 56 +++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml b/Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml index fbe2ddcdd909..17fe2edf4886 100644 --- a/Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml +++ b/Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml @@ -130,6 +130,42 @@ patternProperties: maximum: 4 description: GMAC port identifier + allOf: + - if: + properties: + reg: + contains: + items: + - enum: + - 3 + - 4 + then: + properties: + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + patternProperties: + "^ethernet@[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: + maximum: 5 + description: External ethernet port identifier + + required: + - reg + - compatible + required: - reg - compatible @@ -191,9 +227,27 @@ examples: #address-cells = <1>; #size-cells = <0>; - mac: ethernet@1 { + ethernet@1 { compatible = "airoha,eth-mac"; reg = <1>; }; + + ethernet@4 { + compatible = "airoha,eth-mac"; + reg = <4>; + + #address-cells = <1>; + #size-cells = <0>; + + ethernet@0 { + compatible = "airoha,eth-port"; + reg = <0>; + }; + + ethernet@1 { + compatible = "airoha,eth-port"; + reg = <1>; + }; + }; }; }; -- 2.54.0