From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (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 185714DE716 for ; Fri, 9 Oct 2026 16:11:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791562277; cv=none; b=QAiID+Zn04TRDOWnZogRnxWxNx5qCAQMqzp9yMlHXsbHUM8i2mGNGCB+lduJ3WLM6DfPQdTGDlZmob0j2QZ/Skc3m3kIQrdixw0dSgyGoeEywnXp1eWLKMTjOt+nPGu0QEL/nCop2Vgqew785CHWRP4YODkyklyB5xwqT3kYkbY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791562277; c=relaxed/simple; bh=eGGtJucMub/H5IDPYhp85xFBOadbNNPXVb/tk0RokT4=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AmBcPbxFcnDpNyzwc0eEc1GrQGwvjQS+WXz3KmCgJjj+fJ5V9V9SZG5gjWEhlpvPmiT9ycYfiK6AdDsr1WfyUhFtxjHr4qUqhbUk9vQUE5doTnDDqdbAZsb0y7wSH4cSf9zgY2k3ZD+ixXBm3MZi6nWljZS7Q/hyfbD2AgZvTkU= 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=hf4uIxRe; arc=none smtp.client-ip=209.85.221.54 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="hf4uIxRe" Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-48c4be28b82so3901365f8f.2 for ; Fri, 09 Oct 2026 09:11:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791562273; x=1792167073; 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=hf4uIxRecs4IjO0NfSMyIrWk5qlQSqlHTdUiLQhYbbR8nG2EDg7YQnXeQzxGmXYl76 9qb1TLXcdgYm2zyMjVl9JB4yg7J6Uk5GpAY96donflSkQ2NEtxkFSf+DpaD2dEAC7sYe oQLQVWfi22udYUc0E4KlFl000kGiZi4riHLjxKZJeW4gcEtsw/IDmSQRQv4Exa2YzO8S XG+VWYi2J4/ACFFmK4j0jw+PcjiqmPWndzBlR0rmycQyVPEfC+mix0WxmgTv9UYJmh1d hI/xjHbfWao81LhDdR4aw+mkK5BvYXRI6DeFOMVuiD0t+lNjqfz5dSbzHwuGUqvdCrzW 0g2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791562273; x=1792167073; 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=iWz8J2q+QrgTIXbv3DElpqV4Jpv7Sy1rtpnX/aKYzDQV/5PgZJL3lQOzGhvyRvVDcJ sRqIMIBKB9RCfZfaJHiAxOncIeYkcy968kkE2HqCsZHUJAp5cEOypA7XQ+6/Xmf4SZuH X82SFmGpVrlewPHTmlUyObIDMss+zgj5J3UYjuAStkqqMJeFuHlqH1RK1jMLemAQjPln i52cTphuwnDn9eqmVwUYAoY41I6DN2Mjkm5/xRatp0Yj4xGq3wBOOXFWyGu3xNwpfyTu /MtSUiyWQPgQmU8G6lqDNp5ZUvUrG9SX3u4ApMrGHQhova3+lxCC6wenQclxhLT0gXu1 TrnA== X-Forwarded-Encrypted: i=1; AKwUvBxFrCLxdKnr85VcT1GiiXQSmq3PbArNmlBuYa32o8yJfvXOvyGulh8kEA/7CmN67x3xshEU1f5scF6k@vger.kernel.org X-Gm-Message-State: AFq9FYJ9jM0e2hVbDtDLU3bN3lC2c80sHMVYW/PGk/RnV69H9PjDDInX kbo7t6rFxw9FIrAheJMMs7MAONM/PXP37l/fbEmU1FFcI1ugCs3pmQOW X-Gm-Gg: AYBFou3GbDw27Ppaze1KIfzeXu3KxhRtgTewOUyXdUDwL075mxns/gCpZiVWJY/gt5P sXwsQAqiEF+gBTIjmqo5m87xjHFfrOLnpay9p4XeY0i/lbItNkzKIbWZiCfP8lSqXqBKU2Fln4M oK9in6OZVKAvVsFri2YXuNDCmwVlCYsp4ZJcY6RviDMflONW1MQSoSS0qXjxP+Kkex2MwSkI+we W6eQBanthEbHQGNoYq4y6pcCW1ml2+LxgqIctzuHVyauIj6X38jDY73JNzHziK4g8XD/zxHSc0/ RmiR7GdT+WK6I9SvshI9bF9q6V9u1E/Glfiv6TiLQpSfhv1+31Sr3U1rktxfwz5ozjIfBx40Sxf krdpXE6OxyD/9aAzRWfmtjqdu6xARAr5L9LssptelrJAz8WY7nS9+tE4N8iPQHeDqToNqRl+ceJ faWDN8VbbAgbG96nLRXhRdoUlJhS0HDQtprnx6tR/ZOrNxq3dYGfq7yQlV5v44lwQKsC/rumNP4 x5wtG8/XrNhfT134zwOVR2M8BYVnzqR3z7cO6KoEJZQALRFxw1V4Ncv7Lvymy5XONHFzbsksBOj 2WYFVux0CWgEiy0c4Q== X-Received: by 2002:adf:e007:0:20b0:48c:656a:f36c with SMTP id ffacd0b85a97d-48dba77cefbmr3915875f8f.3.1791562272816; Fri, 09 Oct 2026 09:11:12 -0700 (PDT) Received: from Ansuel-XPS24.localdomain (host-213-45-9-252.retail.telecomitalia.it. [213.45.9.252]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-48db94e2f08sm4744701f8f.15.2026.10.09.09.11.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Oct 2026 09:11:12 -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 , Joris Vaisvila , 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 v25 01/10] dt-bindings: net: dsa: Document support for Airoha AN8855 DSA Switch Date: Fri, 9 Oct 2026 18:10:46 +0200 Message-ID: <20261009161102.38961-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261009161102.38961-1-ansuelsmth@gmail.com> References: <20261009161102.38961-1-ansuelsmth@gmail.com> Precedence: bulk X-Mailing-List: devicetree@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