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 C8A67C88E53 for ; Fri, 11 Sep 2026 22:54:40 +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:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:To:From:Reply-To: Cc:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=EBth4tRMg8GOGvhksLcEkRFTz5ARAzMlbCo5jt8vu2Q=; b=h8Z0w8LXRd6nn/I5hK8rMdldeo BQhtLNPMoD/qbeMsi4j17IRdBMqMYhA9/CVJ+IY29V8dNsZYovkfJc5T8SYd7jC/accTAsJb/he1/ QqiP2vq1r3++nWXYcocu8kHmMpz+uq3qc2HM7txJ+ZBDMw1lsR7CCxtLQYuNwZUtISvgfK6PcgAev OO/A9Tf1JnFFMnLFNvnWrqnkVPf5PLhzuaegQKMu+fDocGAjWCec2ED6PgV3c0pFxXJRtZnLYufd1 qxZ/gcNY1jMA9dOLfi0qyYbZ83e38gplg+dE2kSYKIRhzEYhMglPPjKft0IpWcqYSYN4LkRUFtVPx wKjlgpVQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x5A8l-00000000IuX-2JLY; Fri, 11 Sep 2026 22:54:39 +0000 Received: from mail-wm2-x10.google.com ([2a00:1450:4864:31::10]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x5A8f-00000000IoN-0l1x for linux-mediatek@lists.infradead.org; Fri, 11 Sep 2026 22:54:34 +0000 Received: by mail-wm2-x10.google.com with SMTP id 5b1f17b1804b1-49ccead2aecso279425e9.0 for ; Fri, 11 Sep 2026 15:54:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789167271; x=1789772071; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=EBth4tRMg8GOGvhksLcEkRFTz5ARAzMlbCo5jt8vu2Q=; b=kVcv7N6pZh9VLymt0+9R5QYmqSCVFj158whNStquL7cTpKGPfKFW5NYOWbY52NfFiH vASwEw8tOyEEGwsqxjk8PbBkFQLX/xS47gSip+0HWPgaL6dwgu+baGieo3Itsg3oSaS0 Td1Xf9bj4BvGlLSebS9+LLmi2qLsjQN35jakXQPRM3SICBLhwchcFgUxfRy8SsTOKB0h GslcaUsooQNiZEw2Gj7leaJLESOZhNSLGKonKywkpEs3H7V15i+b+KgTnZEoQvSwYRlL Qua3d7zAsgh1t6CB08CKRyWLlXJ0sI/wN0I9375X3h85JVC+y8m9Dxz1f25I5KfShP4l 4epA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789167271; x=1789772071; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=EBth4tRMg8GOGvhksLcEkRFTz5ARAzMlbCo5jt8vu2Q=; b=pXfSHHUA40CoZTH+17seUrsAmOhmJdwoyBOi/9EuSkMk2WWmmQImraDBmwzIvzIpXx q7PYmdo8b7HNnl7Xpn+cKxvqLfTbR/qZjrsPdgUYwu6qYhMcPjXzONhOpxje7RQsITjx EM8Gb8WlGtccip0qIywj5ZRyGxOH4ddwPpkbYGz3F+MUXvKjKHQMBVgoz5yGGnjvtUwo F266RmvzqfjCfNTQWXMKPWXGo/d2RB60Iwbyf72fkZQ2cr3B90tIRvCZBeJkzksfgx0v MMfbv8sLEzE2uhWUFIPcdghSJn/s+P+JRsXYWn8Er0ji+BP2V4ltiU7kqGFKlxIfBY5d aNYw== X-Forwarded-Encrypted: i=1; AKwUvByHLHjbl6HrQJuJLDrGIbR8HQJ+s2guO0wVLoGNqnv+pPxzYCKZJyMYqZhVOMfj+7F2KCDa++HuKd7UZXRBCA==@lists.infradead.org X-Gm-Message-State: AFuF++moF1hYUOHTBVezD2hX2APgHgx+OM8H91paixfTIjamUhDYo/Ku je63OPzonriDv34OpxtEsjs74FMjp5L32V3Sc1Ax9CWdhBevxSbgpPnU X-Gm-Gg: AYBFou2HD+NM+ngCW5fDnpEFLvZE8X7GT/ndKlYgceGI9W9dFlEZwYf7G5UNH0+94bC n2q0IviV+MI/5tFOgfFMRcaoWvw1mWDDXBB93SErZxuxcYAQ7NjJqLPHv7wGKl8LvVKoVx9K4bB 3cFyH6G3C3jecTcuvaAWm7VPDo+R0dQN+tpJyZ3vx2fmroDma3cI+CxHzJjVz7h28QZqMk2L9w/ lyyv4FA9ftVIHA60Jf9b3UEtlJDRnImW4/mp6Ry0gJ71On7h6ALJkWrKclDYlrGQsLx3xQcBum/ D/tHKfkf+xhjJZ8w8nBg5dNjODWxsM8qCigOR21LSExUiOztV2eNqTCNBDMK5X6p4KSlr4CQ9lU jGRRzV3WvVZjOMHBAylcfb1FjJ+wcuCIYSwlh7EutOvkrJDIORisGuboOmvaAhaaaHRhKrasOD8 3exESuhLf5y0/LNWsWWARULZvgXzSRoYfJgQsMAzuxCp6rEi3nDu4aQSIs4RdnurI2fovpzQt7s +dZHqOPZj0qVcdhFQ04cwPjutzClTVAxMb0nMDKlau0DmgPxPBJbP4oN7JwH7A= X-Received: by 2002:a05:600c:3e15:b0:49c:fc6c:be04 with SMTP id 5b1f17b1804b1-49e6cbf84abmr1600715e9.27.1789167271202; Fri, 11 Sep 2026 15:54:31 -0700 (PDT) Received: from Ansuel-XPS24.localdomain (host-79-26-252-140.retail.telecomitalia.it. [79.26.252.140]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-49e6221ffb0sm77593685e9.3.2026.09.11.15.54.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2026 15:54:30 -0700 (PDT) From: Christian Marangi To: Christian Marangi , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Vladimir Oltean , Matthias Brugger , AngeloGioacchino Del Regno , "Chester A. Unal" , Daniel Golle , Heiner Kallweit , Russell King , Simon Horman , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, netdev@vger.kernel.org, mfd@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next v21 1/9] dt-bindings: net: dsa: Document support for Airoha AN8855 DSA Switch Date: Sat, 12 Sep 2026 00:53:25 +0200 Message-ID: <20260911225414.225980-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260911225414.225980-1-ansuelsmth@gmail.com> References: <20260911225414.225980-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260911_155433_252953_1379EFE3 X-CRM114-Status: GOOD ( 13.43 ) 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: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Document support for Airoha AN8855 5-port Gigabit Switch. It does expose the 5 Internal PHYs on the MDIO bus and each port can access the Switch register space by configuring the PHY page. Signed-off-by: Christian Marangi Reviewed-by: Rob Herring (Arm) --- .../net/dsa/airoha,an8855-switch.yaml | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/dsa/airoha,an8855-switch.yaml diff --git a/Documentation/devicetree/bindings/net/dsa/airoha,an8855-switch.yaml b/Documentation/devicetree/bindings/net/dsa/airoha,an8855-switch.yaml new file mode 100644 index 000000000000..5ad9b9e13983 --- /dev/null +++ b/Documentation/devicetree/bindings/net/dsa/airoha,an8855-switch.yaml @@ -0,0 +1,86 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/dsa/airoha,an8855-switch.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Airoha AN8855 Gigabit Switch + +maintainers: + - Christian Marangi + +description: > + Airoha AN8855 is a 5-port Gigabit Switch. + + It does expose the 5 Internal PHYs on the MDIO bus and each port + can access the Switch register space by configuring the PHY page. + +$ref: dsa.yaml#/$defs/ethernet-ports + +properties: + compatible: + const: airoha,an8855-switch + +required: + - compatible + +unevaluatedProperties: false + +examples: + - | + ethernet-switch { + compatible = "airoha,an8855-switch"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + label = "lan1"; + phy-mode = "internal"; + phy-handle = <&internal_phy1>; + }; + + port@1 { + reg = <1>; + label = "lan2"; + phy-mode = "internal"; + phy-handle = <&internal_phy2>; + }; + + port@2 { + reg = <2>; + label = "lan3"; + phy-mode = "internal"; + phy-handle = <&internal_phy3>; + }; + + port@3 { + reg = <3>; + label = "lan4"; + phy-mode = "internal"; + phy-handle = <&internal_phy4>; + }; + + port@4 { + reg = <4>; + label = "wan"; + phy-mode = "internal"; + phy-handle = <&internal_phy5>; + }; + + port@5 { + reg = <5>; + label = "cpu"; + ethernet = <&gmac0>; + phy-mode = "2500base-x"; + + fixed-link { + speed = <2500>; + full-duplex; + pause; + }; + }; + }; + }; -- 2.53.0