From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 616823C1097 for ; Mon, 17 Aug 2026 08:20:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786954848; cv=none; b=Ltwdr5c4G4xRuNWPvMZGfl3xX/ZNR059rr3csc6xUJm2o/+OAgiHLnpHeram9oHRb4nsMXVKCEmuyi9m9SqzXBgReuekl8m2oJp7NQLHJEYCODWupIoawzZ4lD3IQalLqPcf5S89v3JlI60uSNw3QZ+jAWkTWyH+jT5h4Hd8lHE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786954848; c=relaxed/simple; bh=7y5S0ThKweBnJIFIdstxVs81WWiUsDlt//Wvk+p7bhc=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uvzgEUyDCOoexNNwJIBZG35vFLn2qnw4JlioebLUwuSBkVyYFmhCIw1BxwtseChNtPzS6J/7QsOt3gNa/C1qVJs6cNPZf/TRj/iwrxx9Tz0xU1Ag4p7klX+3vz9riMxCQW3hqFdZ9ci4dQga/le8RUHMiDehRcA05ID4bMrby6Q= 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=Wwd9D9rD; arc=none smtp.client-ip=209.85.128.50 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="Wwd9D9rD" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-49558ce01afso23534025e9.1 for ; Mon, 17 Aug 2026 01:20:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786954845; x=1787559645; 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=EBth4tRMg8GOGvhksLcEkRFTz5ARAzMlbCo5jt8vu2Q=; b=Wwd9D9rDX03NzlGHnF0wv5wkzIlPZzAhhdJRU6C7g1KaST6ijoxlVhtnAU0yC7Gm/2 /j7Dk7mlms3pVtXeMcsOatz8NSzFl2xuGPZHhgocCRlSrgI5Rr5K9mWfIlSHz+Uq/H1/ ZD8b/epOQjqi7iVlt1Xy6z9Ho2Dk3xbV4yPH4IFyw26JzBZf1iKw7GztSmOTDiSkD19g utt79HS4+naL3T+d4ytT1eXvZ7oztkLw0j9SQRdHeSFDe/LHp+fPB7LjufiqQRa0191Z e7Q+9Nu0CC6vpRPvNS8AXkNAJvhVG0w2fEyB0CgtDPEnREO7neaA9lRjtvdXfreTG9q9 UdQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786954845; x=1787559645; 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=lYBPKCa65ZZBbutZc6mV8UMSoGFsCq6bYWIFYlNuzgRtG4RYmIX+EURugbX6LK8Lbu cRqPYPG/r+o5YAcLV2QhtC5Zn9Raorv51Cp7T2p3cptomNXbtKkkMvalDGSF0X42aUDI twaj6n7nxieFrC/mkG/pGhvR/VcsuGfplBQjqT43UwD+KH5asNZXTJRjI5lBNEnpbLcB Xdil8ztIVemngbWSA4R1F7KFkDcTZwFH52GBihKOjfIy/pItsCqmeCLjIBvEPaunF95K RR7as3omAODjU1O2WQuArF5Buyh3IueeD6d6uuwxExPEj6XkbPPqQSKiFDoxD7baXD16 0FLA== X-Forwarded-Encrypted: i=1; AHgh+RqZqbyuDLqtmTG9dWWnIutdhHGG/l5Cc4rR/jKU2fIMA26RYzBK2Du1uWaZaOZw/U4rLq3ZN+ZGPyW05FQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yyfek5r02mGT2i6anLda1FzYgN0NdlWV5+wYS1KSetqZ28ghrBD 6BKed7r1UnyNVmfIt0jn6lBf04G/jZPEifkBVCooXxeELI7LWF+EF6Tx X-Gm-Gg: AR+sD12tDC9/UfUk3mK6XFgh08YPsiwAvzif+ZZn8KIAMfN0b8JhmB34DuKM8Ro+3MX T1mJFnBo1SPJPNwb/qfGasY4E1xOElcMpiKbytuoJEjLMQkPCdR6/pqth0hh/3y+5uQweaHCmxP A326XRGLqghQVDQWiBHnh66lTGlC91356QF4hIP5RGXLMBSQKx3q7G0YQW2q6A3qxWbXieAuZ8y /p9e7+XlttEYsOiQFjaFWp+WWNE7fJxKY94xeIzP79Us5bbVh1vuhI2ugVa4pEVe5gnn6EOjD61 KkGxiwKKNr/dzHTrV8HK7s/2eFA9vkhFff1n2Nx5DCY2YU7Q+rUMSRV3Z+u+wj1JfcwBfDcdEob pyDmJyZHd290IoWw7QBCQO0h+1QO0W8Lxp0Y59G0OFAQpOAWAlKwSiDEZKpM43+oLXX4EaO2YQN b59UDHrngxnQArujvWHkBgacTA3U8lcE6GUlG6aQIo1Zq/8b9XK0kT9g/Yv/9iPo9VqO5IPH0Mw saBG3KPzFk/olRLngxSugFkxVF9dIwDjg8yOjy2HfZL6GuhFWG0J0Snw90qoMZeexaW X-Received: by 2002:a05:600c:8218:b0:499:593b:a15b with SMTP id 5b1f17b1804b1-499879357cemr398067875e9.1.1786954844530; Mon, 17 Aug 2026 01:20:44 -0700 (PDT) Received: from Ansuel-XPS24.localdomain (host-79-40-190-175.business.telecomitalia.it. [79.40.190.175]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-4999d078517sm19684195e9.5.2026.08.17.01.20.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2026 01:20:43 -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 v20 01/10] dt-bindings: net: dsa: Document support for Airoha AN8855 DSA Switch Date: Mon, 17 Aug 2026 10:20:22 +0200 Message-ID: <20260817082034.20326-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260817082034.20326-1-ansuelsmth@gmail.com> References: <20260817082034.20326-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.53.0