From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm2-f13.google.com (mail-wm2-f13.google.com [74.125.225.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 46EB13FFAA4 for ; Fri, 25 Sep 2026 18:24:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790360696; cv=none; b=cbccIJ17lFYUFrO1YiPt0goYgTjE/FY81bcYsAEVBBzBTSlMiZVM3NEOP6w5cjfYGKIktdy45lY5PLsMklrGiLUUcdOtgDUCJFNxEsZqyxA6BHy9GW4sMyfTmix7SwUBVH62SC5BTBW/NAdllcbvcKryNzBvy7L664FFCYyeT3M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790360696; c=relaxed/simple; bh=eGGtJucMub/H5IDPYhp85xFBOadbNNPXVb/tk0RokT4=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=a2J2zeRXHsHlvBhJa56IKJ3ugk5LZeY7sdKx73URazUeEax1SwSgHChsQinIqJDuVFzwAbiwj7wlBVaC9qQd9B4Io0Pi1Hj1ShsrVQVr4fBSMiL0CsEY+Yk6Mh1dUdfheNyP9vFYwCy4I2iOkIpnQbBYKn4XtWWS2GbSa61lunQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=SHx6nf/j; arc=none smtp.client-ip=74.125.225.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SHx6nf/j" Received: by mail-wm2-f13.google.com with SMTP id 5b1f17b1804b1-49e7d2bb404so4393925e9.1 for ; Fri, 25 Sep 2026 11:24:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790360692; x=1790965492; darn=vger.kernel.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=sGFrWQujhzJh9uPF6notnBiKMTrdwWirz/MP50Av2KE=; b=SHx6nf/jKVF/rh3Bhkgmi9Yy9tZsndxQ1iVeVwOqVulKh8ryPGsjBw3IGpEIk29FnS m+3FtUzyNanqBrRm0CfOkKBfSsHnTHGtqH1wAVj06JttA0yhLhCdinMKElTRNXnnG9vo VdMH6CzjiNbHWT1rxYcPNN0VYFdk+mNGgEI0OAUn6XHvjVBrWIeqkNMykjdOgng0WFr3 X+pJLfu1iKW0a53PZV8WYbrChofrU5TB9W2YuTt8USgsVgaaeE3bGDCUW874oTBP2mdn 4TX8u0kIv4QnOQOFM4xRQ/m3J0dLbVjfhI7xYTJLVsibuzjfSr+QiEA2PFj0zqni3w4F 26Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790360692; x=1790965492; 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=sGFrWQujhzJh9uPF6notnBiKMTrdwWirz/MP50Av2KE=; b=hkW6YnBo8IMcxGST0DeCpvkt+bVBbvkcnaQgfORJ062wBY+tT85dcUioHJ8BtJRZOt SonwFIEHAvHcVpuyUaXwEU8w6h5uB8bln8iTEqB3UuJha/XAzl3PdSmuPI51Fyb3chVV T4/cFR2VdbAhU1JOoRxeaMutGpeO88uJHiHGG6TwTHdFAw2QtgoKD4j86p803VODs6f/ Czr0mEgNMQ4tMjcezBKfN7hl1hEEg+q1k7y1m/KvAdG0XnCKvU+yhR2qX7O3lq7sG6Hy 7yhz7Q3JBugfXqo+2/DjN7OiEAQSR5+3WwnlbL3PtrEYo4or1ftMj0flN4ymIEONSkMX KO3g== X-Forwarded-Encrypted: i=1; AKwUvBwlQ/JJqwDD/sf8hVZWws+NIiMFIOwZQiMwdvlEJVE0s/pNET8oJf+f3PUSbp0JyjcEXd30bqLXBrCqSxk=@vger.kernel.org X-Gm-Message-State: AFuF++nzhOGkyKu2jdkE0+tvdWJbjcnv1sRGOcY54DeD4khrOR3lYkQo 1SLMdaEtN6jqYPpill0Dz1g+YOeeNR53AO2sAhQmtl9yVDbJMNxDNmRv X-Gm-Gg: AYBFou3z9zO5Td3Hc1L+KOZ0llrn4BLdsbuRjhtp8KVqZvQ3Inpy5w2D7Qgfpzd5r/6 FSVpPNGe6lDaHmoHyLTB5Sqxn9LxOGBC79HQBrZciW0gNUMRXnd3lWZW5D3iavVrG+eekl6YXV7 jCM0+N4WXfdADRhsuCK0tdvJCRvNWrVDcMuXF+G4UBkP/6Npk3BNperoAqtA0LrLI0ELNWJcEsq SbGTRqYY/O9TPWZEADfxEW7XexRzt0tJSfM1qfjxChUP+PgStnxO59zKs/22+QUuIMKpteDxbv0 8dxJmvSby0ZSVDXcfkplS/wfYnbChSHw0Y2lSBM/uso453SW1ndJOmp2weRdq4QmJrW/OeWUj4q B4HKw6m8BQYIoKUy8ZGwHceIju0nt0iuFpmCP7dDQg+7lj2zJqLxMz2nv2MZptEENBu08mNBMjM dteroud8g/c9hNY+nH8rGt4sdQ/xMR1Lkhk+ItiPS0/hKrmq9CPdbd/kD4OTq7d8zXoAzSAveSU SfRjW5il9GqTgKdTePe4ymrksOU09dvlOECXydpcmhERVH+KjZPULTnqweD1gk5Hw== X-Received: by 2002:a05:600c:630f:b0:49f:d69a:1a04 with SMTP id 5b1f17b1804b1-49fe6704682mr112960035e9.16.1790360691982; Fri, 25 Sep 2026 11:24:51 -0700 (PDT) Received: from Ansuel-XPS24.localdomain (host-79-29-83-136.business.telecomitalia.it. [79.29.83.136]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-49fe5dfa6a7sm266231245e9.12.2026.09.25.11.24.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Sep 2026 11:24:51 -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 v23 1/9] dt-bindings: net: dsa: Document support for Airoha AN8855 DSA Switch Date: Fri, 25 Sep 2026 20:24:23 +0200 Message-ID: <20260925182435.21207-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260925182435.21207-1-ansuelsmth@gmail.com> References: <20260925182435.21207-1-ansuelsmth@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.55.0