From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr2-f12.google.com (mail-wr2-f12.google.com [74.125.225.76]) (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 EEED03B4EBD for ; Fri, 11 Sep 2026 22:54:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789167275; cv=none; b=sD3akfPlSScvDDAx1n8XT64rEP9iM6fdeGBfZyTML4VlsEYvhl9SkK2TzyiWdBcIPiVvInFdANyblzJRycM+d+qSjj39WMmHjr1CyHsecfw840dZ0UinilCJsQxzfnmzyd5wxP0PU4WHl6QALSn98aWptH8Ehk513p7E9a1Ialo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789167275; c=relaxed/simple; bh=7y5S0ThKweBnJIFIdstxVs81WWiUsDlt//Wvk+p7bhc=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hB8j1jCKJNNUi8oogFJxBcVSNHHV7o2iK4IQ+bzfrsNjo+UvHiA43kwr9obC35HHm3S7oOuqyXMQHc/4O+ThCmTYf2ulIYDVRULppJLwJiY1iKgnTG70WyMUL+HdDqPaMTtXaUJJuflg8LrFY+HKs/2ZNyIiv1LWkB8vwgbNzqw= 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=ReaK1POy; arc=none smtp.client-ip=74.125.225.76 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="ReaK1POy" Received: by mail-wr2-f12.google.com with SMTP id ffacd0b85a97d-482f6350faaso35040f8f.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=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=ReaK1POyx3ucOSC8TKojumExq8vJsyp2mk01tghSqxDtCDbsCqqr4EPQVM5MKHKajA ip3Wk0MOk9q6EW9gaRUbXdKN1QfhdtsFfozcD5ePrcyCl02vGba33DXtVHSJTy8/Pgpi pc7XBe/cGspWcVTOEH3u061S0tctKxFxnHNCGe4V4JoMpb3HNhe6exOuWaSLwzET6kxB 9tkJ9V5W9six4gmyebFzugsajVFQRMDACLI5tKVtMYyaDN5jTtV2sGgKygYHTqpKtj/3 KT3MeYEh9X30iN7jXKmdtyhqErghmViqNdHMSCb6mGJE6rlfCrmdDaTV2BNpWk0tEjNw 5Zyw== 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=YRaufy2TkuKc4ROJG8nbyRKgOovu23nU25/rWYwzE85f1+a5kGlzE5FDSByjgGO6gG +XJ4tFTShJpRIsjDUTRd4ld4ETjHVYIj8o58WMQByhyNgqdWh6y3LzE3ujn9cUt/X/Bm SzuVx9wq8ceahLSJLZLHIfZu8D91Zqdc9oM6bdl/yN8PqMnU3DDfQUnEU0AeUSgKBXSc CX8GdTrzHOFt2Z386/FffMDrv/JnpNfDh4Ay7RBY3aiBI64rKWalnT/qDyZbSFdJ6k9J y1ABrvGjBO0yvC5U2CnX70plgB/DE8t96Md6xMqpohZtErMqrPIXTTQv+MMNOnSm6Dch I6jg== X-Forwarded-Encrypted: i=1; AKwUvBzuvPzslX9vjwEEYDNempEy/LjYt7anuZVIstk17k10WOC2tJ83aXDhZz6dixtE56TPWM0Ir7E=@vger.kernel.org X-Gm-Message-State: AFuF++mlQ7uMVIXHNDzsxFoF0riICEaccvDdOPYyd6l29flCXrJM8/gw QLKJZ6xIl68BjkCAXUjxzk3AUIIsazRXvejzuvnDT3I6YKktGrri8PR/ X-Gm-Gg: AYBFou0NxMV/G0gqkzluBBUXEXUeOBVvm4n18dQbwaTdkgtK2YhQ5Wg+hLZ/57Hkwcp iZnjGYT99IfSJJI7p/OhfRxAqpRkKALm3pNB6/SM44Fc2IdWkuLiXzNSJpLCF05RyFGa9tW1e9t nRNueEve4Lr+K4XjO0X1cmNsM9SYooC/Y0H1tR6r/O5+1l4hE/HztT8wtmVZ8MEgA9Uep4K69T+ Ya6Md+lYzvsTZF9ik565wVIBR5y+XGpkFGpQHs/NtjBw4PPonzGDH4cBdFyDmFJprq8jZtSHKyR jbo7ln/aXnQZYGNny/NQUeurWuvzRKVLKuryctp5fuacyPs6oms06Z7u7AwMZNohRlgB8V6cPxU Gr4NtbQzxzFX2BMYHQRyAN4M/UhWa+9O25CkYI75z+0MpRBcZ8UJwO2/SNnjNSSi6PPip3EIEua GXxwK35kTJeo4Zagi0Ks6rQuDag6QdQK7YIAdgEXaYdWvloJbZUneoxv1nrb7RjCyjUW4sRwam2 KIDPx/ssmJIoL0hU2RNDW6hGhZwCv+9g7A42euMoQB1lc5nmAknjLo2uAd81h8= 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> Precedence: bulk X-Mailing-List: netdev@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