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 D0DEE239E9B; Thu, 7 May 2026 21:22:27 +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=1778188947; cv=none; b=Y68BYWy5y3X2c4kH+XhX6CodWw3yheNBu/HiqT5ZxMn6+VUQxtagw6YY2fHRTc712siTYmMIHQFUzvQeneJEgKmJopCcZvQDBiy3FnoYfqQRGeoyoiQxP4WzsI1KlDO/U4Fa6JHWDkBm3MLqoI0sg5b+7rGcFFX0xAuw/Qwlaa4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778188947; c=relaxed/simple; bh=P4++UjBg4l7FEQ69FE68v2vf9fDUEYzzRnc4E/RaMhw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=uU4WlZFm1xTWNL4/kwReIcWrRgsnqfcB+DuUV2qSKH8rvVktAqN6sL/rYvuVmGYwA+U55cR8K9baGVnyV9LuazuYgM5dZLtoQ7CGnQlmkjNWNe0s/HK1hjCyCabWtWhDsW5S4IQBUDAb3NcwjwFbSDJHHIX0NdaG77DTfZoOM3c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=t37YOzFg; 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="t37YOzFg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16169C2BCB2; Thu, 7 May 2026 21:22:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778188947; bh=P4++UjBg4l7FEQ69FE68v2vf9fDUEYzzRnc4E/RaMhw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=t37YOzFgI597+Pd5NGo+NR1AFaItYRHaaKSUluxmYhBYOoiFwJ6PVvdWv+vq5Y29j LkVwpcM6uBB6EMtppmfT1OkWmY7nJ41dEfzra0uqkuWaY7VQHCmBiNfOZrvQ7MZN6p P3TfR70wL+bFtUYcUW91ahmAm3e79Qci8ALvD4pi8gWnBqXPzo8Wmn1rWesc0cNcqd B2rbp4oxD619w5ClA/dZFw8MjJBejaqNnQdZdsxmnTFKWpt0+MTO5LcjxPsZlW2ZHe /0DXQVRH8z5HTuG0XBBMUSqfc2AgnU7j6CAj4lJv6lW71ze6hc4f27eZmvt2ei4DIK QBKLFXDLHUJ1Q== From: Lorenzo Bianconi Date: Thu, 07 May 2026 23:21:44 +0200 Subject: [PATCH net-next v4 01/10] dt-bindings: net: airoha: Add EN7581 ethernet-ports properties Precedence: bulk X-Mailing-List: netdev@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: <20260507-airoha-eth-multi-serdes-v4-1-af613b61ae02@kernel.org> References: <20260507-airoha-eth-multi-serdes-v4-0-af613b61ae02@kernel.org> In-Reply-To: <20260507-airoha-eth-multi-serdes-v4-0-af613b61ae02@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-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 | 52 +++++++++++++++++++++- 1 file changed, 51 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..73ba37872247 100644 --- a/Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml +++ b/Documentation/devicetree/bindings/net/airoha,en7581-eth.yaml @@ -130,6 +130,38 @@ patternProperties: maximum: 4 description: GMAC port identifier + '#address-cells': + const: 1 + '#size-cells': + const: 0 + + allOf: + - if: + properties: + reg: + items: + - enum: + - 3 + - 4 + then: + patternProperties: + "^ethernet-port@[0-5]$": + type: object + unevaluatedProperties: false + 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 +223,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.54.0