From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 89D3A2F9C2A for ; Mon, 15 Sep 2025 10:45:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757933162; cv=none; b=CicyMnd0ZsU6SvgqJkaKDeYe2ZLP1rqw6FRnmGsMqlig13q2aKE0ESBGeHo5nL80pl+vuwupcow2Mur+Ug3+75R9xPib/lOUmpNRV6Md7t0OTT1Mdn2d01H2dGK0E0Td8pRExO60Dg5b3oNATnyj1WNk1DpGk8fIz6XDvmvV+0E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757933162; c=relaxed/simple; bh=bYsrD9pb6lWoudFnnX5zcBVuGLbzlrIhsoX7llOaTLI=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KIFpSgTkq/ZDxRtnczumxLtRVRddOvtXm/FRbfa/HK8r7HiDleAEaVrt9/CjK9GpBPirsL6KGgDPP1gvDahXvYG9XGslzY6tfEAECWhm+r3ZFr1tAszPAmeTUJH5TqMYkl8ADZpB4U0lFkXL9wcRONJh0tOCQ65YakxxVQV1ivw= 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=ddGa+s/J; arc=none smtp.client-ip=209.85.128.41 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="ddGa+s/J" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-45f2313dd86so25703115e9.2 for ; Mon, 15 Sep 2025 03:45:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757933158; x=1758537958; 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; bh=mrJZHKOiBKCtVxeIPXfxHsVOtkQ0i/mxMKjggmAExVM=; b=ddGa+s/JObO3Hmhzt9H7tPr7GPh4BbHaHC7vWpJDBwvvVgDSmsPWHI8u1kx58x14Jw TMdMesrFgrGnzoX6lhywIPknZpiOpC7Kuqin3q4G52UgS5KhJint3qjYe87Bv2NgSzni rQetEjt8I6J/ZqqkXtUSX3rjHMA7rGaaTlzyas3diBjg86BB9j3OFenwlHDOFBaECTkl pJFfkKYAywixvSPSo5xxcZpEdTI7AhOylGIaQQVjbLfgTCMmDo9BbI474TSh7WCK8Hp2 5Z9K+0bVBAz+Sq+UOxfGZb+b5mlfXFIuNCqjreWmGNrwlGJPbrs/DC+4DK5YJ7e90Blp pSkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757933158; x=1758537958; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mrJZHKOiBKCtVxeIPXfxHsVOtkQ0i/mxMKjggmAExVM=; b=uqQmEJ04cpPNWuVERaVLPNKx5Sv7fJqRhucDAp2GddRno8+RDYa3AowAhO0uxi/gzE bKicU8HEfrUoNC9QmS1cmSactzg2ar9ByiubuZ2h+dgDQVvFB5nUuS3DeD3lxrM6DPCH e9r+xAbiFrK5TJmUSblqtu7cMiq7qlyh+H94uTfb48nSRSwX4WXWkVF+wJ6IHN1TOm7o GRFeAIPaHzM/YVZHIq9KzqN12XXE6Zhc61u2C7zkn2u6/o4FuUCO+4Wbha3i6HEoUFIr ja6hb1wddPg8CBIS3Mr5/jCMPfXBA8Tigjy1MDAjZJA45W5uDecVx568d+f1zjswD8eZ ItEg== X-Forwarded-Encrypted: i=1; AJvYcCXMMMRtlaoQ+i9B0ZnQpzssJhCJtLJbJ+HbSZOOOpF39OjwmI+55R8DCL87TyhbL6xbiccKg78=@vger.kernel.org X-Gm-Message-State: AOJu0YzdDL9ZUX7k85326oKtZ+6kM1rYLwOOnZ0KwvpjLkmdFvVWyEn7 D06dkYlVbQHa60XgSiou5A0YklD3iyxw8FPuqi93I0KUk5Tzazw+xJBP X-Gm-Gg: ASbGncvoYbzZeydlwExfozkwCMOMccJyh2Hcft2fNoPMLLLUA8pyGo1qTR4Wg9EP66z Wu6A/YZoS+4Spnq4a6F3CsjRnjrqNAUn/uz6/9z7hjGaSIWfAldBkLOJY5RpQGywjao/e5j97JT jrlGjtV/6Z3gT/4kt4UrIGFaGCj+CHVj+/3FBBM0CmyaWNLCtZnHElOu7r6zzi9JQaZfHFfPIVa HwBXxYp3P2VpjyhpHn6mlSOaQAr7JCNHHv53jg9OjNpTVqMlcg9cIvHWNTSU2iuDnCp8iutYgvl jKIEn+7z/Z9RtWKleenuokGqEsIgNslQC1NKf0/I8Vvlzl4JhZ78mzUgKS60PdE2PA0YGv+wggF eYuqxuuQL2oumUugkj2F+uKFDhbxBi1r8FVJ74O5Kf+OCmp4NtsQjqRgtyY32UX9Xp5xujieJ27 oSnN9wXdsfVK9RV8DV X-Google-Smtp-Source: AGHT+IHWjPeBWLp7d2NNOzbpMg//aShs3TyKmf//Nm3D/I6epc4y/QQmZeCf4N50wXni+LlhRWk1Qw== X-Received: by 2002:a05:600c:470e:b0:45f:27de:cd22 with SMTP id 5b1f17b1804b1-45f27decdb1mr84324875e9.17.1757933157764; Mon, 15 Sep 2025 03:45:57 -0700 (PDT) Received: from Ansuel-XPS24 (host-95-249-236-54.retail.telecomitalia.it. [95.249.236.54]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-45f2acbeee0sm67163365e9.0.2025.09.15.03.45.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Sep 2025 03:45:57 -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 , Heiner Kallweit , Russell King , Simon Horman , "Chester A. Unal" , Daniel Golle , DENG Qingfang , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [net-next PATCH v18 1/8] dt-bindings: net: dsa: Document support for Airoha AN8855 DSA Switch Date: Mon, 15 Sep 2025 12:45:37 +0200 Message-ID: <20250915104545.1742-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250915104545.1742-1-ansuelsmth@gmail.com> References: <20250915104545.1742-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) 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.51.0