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 A6C19C53219 for ; Tue, 28 Jul 2026 15:49:15 +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=PFKmpoYj/DOWR15QwgbvHgBV41qd6U9IB+q4KUeTZyY=; b=GTNV2Y0mjSLjFHpixD6R+lUIcV AFCz7q58G33j2u/TCTan8stkSGowkwt03d/dUmMEUD+8uEczLkdO4gs/JktiIsBoAzGfWuKyFk/nx sWcGqJFRRdFk2+hKVXmfXaFWnD8TsqtDrZWYYuWWY8dKQSGBc0cDiJFkYv+sA1jIkk1qOt4ExIVbz nL5xKCIo4V8JzG3DNGnTn8SLIJ69Nu+Jevwnrh0c3i2BzGZXSSrySPpdP3q0pwpzAfGThEWFqpCuA Hy0NltMN3p5uT0r1EdmNf1XdCA6cyqDkO7aKtneupGTJGTzxTlL0sd2FYzs97lchXeyndQ7CXTAnr 9WgmkDrg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wok3O-00000005hdj-0zC1; Tue, 28 Jul 2026 15:49:14 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wok3H-00000005hXq-0CG5 for linux-mediatek@lists.infradead.org; Tue, 28 Jul 2026 15:49:11 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-49557167508so37916855e9.1 for ; Tue, 28 Jul 2026 08:49:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785253745; x=1785858545; 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=PFKmpoYj/DOWR15QwgbvHgBV41qd6U9IB+q4KUeTZyY=; b=DnD5zI9NGtMfBiLzPaqUof5kFtNkoXNseKa57nL8iw0+P2mwnvWFWP2cx38Fx+FziG SUnfi8UtQ2r1ypaBE8zaChcL/0lcHcQlAjO/67FcTbS2TJdRVjOFoy4thhWBVFr2DZmP TPPMmBFiOdmVEJLiqYYVkCP5SUp2GXxcIqS3hx8/4WmBbmvp5aLR9oCP1IQx2oP1/fk9 XWkKGRXJKxFHdRrX0FD+FruOt3dF2B1yNMhve24KvVOR986QbHR7xp6g+qWw58qCGsLI I6NnJlY+c3VOu4zq/Es3FteDP1cuu47JE+eXdKoOrTHx0E2OQJIC4o+Sht+dOqKa2IaK We4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785253745; x=1785858545; 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=PFKmpoYj/DOWR15QwgbvHgBV41qd6U9IB+q4KUeTZyY=; b=nL3U9ZZ18PohU+xcCGJwjkBZnCbsmrUfEO1QLBXXACSl7KvplhxIC4RJoecAArNdcc n7LyySnA+QTvIOwq9uHh9dZl1z6htW/YyHHgo5vUb6iWVaoMqZourWCaO4SOsJFAgdJn lFUduAru6+bWfCPrs4erowUC0F1yZW/brhbZ7d1qIjG3gth6i9YQunMU2xMxZmJyYDkt YsVaAVn0SFDBXZIOrcx4VYB33K3Ew/vv5tu3tIyNm+4Qv5BJavL0cmmPdQ4mkQWzWC6P hk4NhszXGJ7iTSJ3AuIJnhPSAQRdYyZVRjdmsJrbo6iGT3Og6waaocBNa9nymbfLDjDB aFnA== X-Forwarded-Encrypted: i=1; AHgh+RoUHze44E/5Q1inaB1dOSjUWQ/kiUTcoYLNp3dEKklNTUNa4KNV8MqD23C8NP+SUPwAR9LuF8ExVjs2tCL7JA==@lists.infradead.org X-Gm-Message-State: AOJu0YwoY24w+VUq1ewvgItVB6xzjkOremNdrAWT2JqeQG1YZXbyGiQL pSXWmEbmW2ic/nvpxGSrIjvAI4Hs6D+5yHRocsf0enoOPii9s92/iiHs X-Gm-Gg: AR+sD10t4Q01W+/BNsEDHDxcrslszuhJDIJ7G83o14cC7mLccxNUyQqfmS/NQwTBqIn 6xh4iTrzypbMor5G66segURgv4pZyhSQIwIiQHLqD1Rw8osct5Dhn63LV9cFvXoEC2Hm97CURNs iPUhIsMLuy56y0OoajJWVq80RqGFXjUT+lmgrNJhPqS33s8hLyOhocCBAI1DYolurEIkYsju+jE FldGrRD07vwrrrdjsOQNcSAVmjvKkBPkB7LyN8Z4KQut3QH/9HhZ21ofNF1wZFa0JRPLKxBuMaI XOCaC51cA+imP6Tkgc3ztevJAPCtMy7neLQ8m8QxC8YoWJ59/V9tI787fEUIU5bLtMZDcUhOTG/ EJIONjluSJmxyZzm6bPaju3Msw4DYbelsBqfaZhcJEKI9hnbsLti7CbonAL5w/rqIPDfd9Hvih/ zFwa8ipKYUS8XIkQo0Ww== X-Received: by 2002:a05:600c:3b85:b0:495:6936:120e with SMTP id 5b1f17b1804b1-496c65a5f06mr34662995e9.39.1785253744771; Tue, 28 Jul 2026 08:49:04 -0700 (PDT) Received: from Ansuel-XPS24.localdomain ([37.161.95.51]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-496c4632263sm94912035e9.15.2026.07.28.08.49.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2026 08:49:04 -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 v19 01/10] dt-bindings: net: dsa: Document support for Airoha AN8855 DSA Switch Date: Tue, 28 Jul 2026 17:48:28 +0200 Message-ID: <20260728154846.1828945-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260728154846.1828945-1-ansuelsmth@gmail.com> References: <20260728154846.1828945-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-20260728_084907_149945_F5A49F7A X-CRM114-Status: GOOD ( 13.81 ) 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) Signed-off-by: Christian Marangi --- .../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