🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #1358

[PATCH net-next v25 03/10] dt-bindings: mfd: Document support for Airoha AN8855 Switch SoC

#1358
From: Christian Marangi
Date: Fri, 09 Oct 2026 16:10
198 lines
14106 bytes
Document support for Airoha AN8855 Switch SoC. This SoC expose various
peripherals like an Ethernet Switch, a NVMEM provider and Ethernet PHYs.

It does also support i2c and timers but those are not currently
supported/used.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
---
 .../bindings/mfd/airoha,an8855.yaml           | 176 ++++++++++++++++++
 1 file changed, 176 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mfd/airoha,an8855.yaml

diff --git a/Documentation/devicetree/bindings/mfd/airoha,an8855.yaml b/Documentation/devicetree/bindings/mfd/airoha,an8855.yaml
new file mode 100644
index 000000000000..48127e956c96
--- /dev/null
+++ b/Documentation/devicetree/bindings/mfd/airoha,an8855.yaml
@@ -0,0 +1,176 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mfd/airoha,an8855.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Airoha AN8855 Switch SoC
+
+maintainers:
+  - Christian Marangi <ansuelsmth@gmail.com>
+
+description: >
+  Airoha AN8855 Switch is a SoC that expose various peripherals like an
+  Ethernet Switch, a NVMEM provider and Ethernet PHYs.
+
+  It does also support i2c and timers but those are not currently
+  supported/used.
+
+properties:
+  compatible:
+    const: airoha,an8855
+
+  reg:
+    maxItems: 1
+
+  reset-gpios:
+    maxItems: 1
+
+  efuse:
+    type: object
+    $ref: /schemas/nvmem/airoha,an8855-efuse.yaml
+    description: EFUSE exposed by the Airoha AN8855 SoC
+
+  ethernet-switch:
+    type: object
+    $ref: /schemas/net/dsa/airoha,an8855-switch.yaml
+    description: Switch exposed by the Airoha AN8855 SoC
+
+  mdio:
+    type: object
+    $ref: /schemas/net/mdio.yaml#
+    description: MDIO exposed by the Airoha AN8855 SoC
+    unevaluatedProperties: false
+
+required:
+  - compatible
+  - reg
+  - mdio
+  - ethernet-switch
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    mdio {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        soc@1 {
+            compatible = "airoha,an8855";
+            reg = <1>;
+
+            reset-gpios = <&pio 39 GPIO_ACTIVE_HIGH>;
+
+            efuse {
+                compatible = "airoha,an8855-efuse";
+
+                #nvmem-cell-cells = <0>;
+
+                nvmem-layout {
+                    compatible = "fixed-layout";
+                    #address-cells = <1>;
+                    #size-cells = <1>;
+
+                    shift_sel_port0_tx_a: shift-sel-port0-tx-a@c {
+                       reg = <0xc 0x4>;
+                    };
+
+                    shift_sel_port0_tx_b: shift-sel-port0-tx-b@10 {
+                        reg = <0x10 0x4>;
+                    };
+
+                    shift_sel_port0_tx_c: shift-sel-port0-tx-c@14 {
+                        reg = <0x14 0x4>;
+                    };
+
+                    shift_sel_port0_tx_d: shift-sel-port0-tx-d@18 {
+                       reg = <0x18 0x4>;
+                    };
+
+                    shift_sel_port1_tx_a: shift-sel-port1-tx-a@1c {
+                        reg = <0x1c 0x4>;
+                    };
+
+                    shift_sel_port1_tx_b: shift-sel-port1-tx-b@20 {
+                        reg = <0x20 0x4>;
+                    };
+
+                    shift_sel_port1_tx_c: shift-sel-port1-tx-c@24 {
+                       reg = <0x24 0x4>;
+                    };
+
+                    shift_sel_port1_tx_d: shift-sel-port1-tx-d@28 {
+                        reg = <0x28 0x4>;
+                    };
+                };
+            };
+
+            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@5 {
+                        reg = <5>;
+                        label = "cpu";
+                        ethernet = <&gmac0>;
+                        phy-mode = "2500base-x";
+
+                        fixed-link {
+                            speed = <2500>;
+                            full-duplex;
+                            pause;
+                        };
+                    };
+                };
+            };
+
+            mdio {
+                #address-cells = <1>;
+                #size-cells = <0>;
+
+                internal_phy1: ethernet-phy@1 {
+                  compatible = "ethernet-phy-idc0ff.0410",
+                               "ethernet-phy-ieee802.3-c22";
+                  reg = <1>;
+
+                  nvmem-cells = <&shift_sel_port0_tx_a>,
+                      <&shift_sel_port0_tx_b>,
+                      <&shift_sel_port0_tx_c>,
+                      <&shift_sel_port0_tx_d>;
+                  nvmem-cell-names = "tx_a", "tx_b", "tx_c", "tx_d";
+                };
+
+                internal_phy2: ethernet-phy@2 {
+                  compatible = "ethernet-phy-idc0ff.0410",
+                               "ethernet-phy-ieee802.3-c22";
+                  reg = <2>;
+
+                  nvmem-cells = <&shift_sel_port1_tx_a>,
+                      <&shift_sel_port1_tx_b>,
+                      <&shift_sel_port1_tx_c>,
+                      <&shift_sel_port1_tx_d>;
+                  nvmem-cell-names = "tx_a", "tx_b", "tx_c", "tx_d";
+                };
+            };
+        };
+    };
-- 
2.55.0
Technical Details
Message-ID: <20261009161102.38961-4-ansuelsmth@gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-343794-linux-kernel-netdev=dewy.ru
References: <20261009161102.38961-1-ansuelsmth@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-343794-linux-kernel-netdev=dewy.ru
From: ansuelsmth@gmail.com (Christian Marangi)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v25 03/10] dt-bindings: mfd: Document support for Airoha AN8855 Switch SoC
Date: Fri,  9 Oct 2026 18:10:48 +0200
Organization: Usenet Network
Message-ID: <20261009161102.38961-4-ansuelsmth@gmail.com>
References: <20261009161102.38961-1-ansuelsmth@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1143862"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:7lqzOrM6BKUES/BEIEmBjwpuyyU= sha256:NfLTiGrKbsPEY1SQ2zNRVVvFM2++2y0te9pcIc4OCJk=
	sha1:zBZ4A09dSrHK21m04YEnR7jKA/E= sha256:GqZ9nVEBgAW8A7g82Nux/G+T4FwbKQenR66a0wXmKkE=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id C785110F734; Fri,  9 Oct 2026 19:16:57 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.949
X-Spam-Status: No, score=-1.949 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
	FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id QYaZQyTM9h0a;
	Fri,  9 Oct 2026 19:16:54 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-343794-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id CC37610F678; Fri,  9 Oct 2026 19:16:50 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sea.lore.kernel.org (Postfix) with ESMTP id 793A8337B2; Fri,  9 Oct 2026 16:11:37 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B3864EA38E;
	Fri,  9 Oct 2026 16:11:21 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DLY++N8L"
X-Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.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 C21694E77EF
	for <netdev@vger.kernel.org>; Fri,  9 Oct 2026 16:11:18 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791562281; cv=none; b=aRNXEDUSVJ40pKN6d6my2Xq0OPhsuCwMaM99qIZKhqpWHOLHAcBeF3OjzLzsI4+wAjMoAtWYZQ5rXOlJ3iE9n/Ot4FQZBvedUOZbTmywnxFRD0gG/gXznDx1wtKeugXAuWwUOrdv1380LLjZ3IV9yxkbATXFf7MmgF7tpDk2b64=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791562281; c=relaxed/simple;
	bh=pOEzLfSLCr+9oxyGNTSsgNcprEznMU5MGTfyskpEb9w=;
	h=From:To:Subject:Date:Message-ID:In-Reply-To:References:
	 MIME-Version; b=aFZM998cTLiiGbmdQetltxT9LdA5SPH633dQ8LuTKuC1A72EK7QN5qPED51lUZCy28y3dbRrOgyQHv2yj2Dy82yk6hMSGJ5PIDHYntB2TlhXMIp2sc2IvzBRIcIKXCbleg7S+IWl8sGSKeGqyEp1dePlYK6DGO40oDUJNWhZRbE=
X-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=DLY++N8L; arc=none smtp.client-ip=209.85.221.50
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-48afe75f055so5935293f8f.2
        for <netdev@vger.kernel.org>; Fri, 09 Oct 2026 09:11:18 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20251104; t=1791562277; x=1792167077; 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=e+ciZeljp4XbV+7Ul/HTP2zfMzICzcEEGNyLNPo0cRI=;
        b=DLY++N8LLIr2O3E4RAdgXESErJKTzcXUF364Hebf8YnyKzCEjdKWYQCKExNxKCB0xT
         xFAXSjAbgrYlEO2f6M3zbfZd6HC6vK8lZTfWNZ4GuKM83ZiK4YUXG6TVcX+eBCyiGQ/n
         mxnQFG9Yf/Fut+DdDPkYas8BYUPhZqMB2YAYsWISFuumj1TxRM/lU2X2iryCHJf3NvgT
         sSRr1BjCtEeSEyHnjNPCmhccN3xSKkDZUq6im1ai0bewHS5X4fOVLChR1n/3A4GV3vkr
         TDRL8GUF8FcZOqyQRC51GTdNlJENEyILhcbg3SVpvFM+h36PhZK0TJ1FOuGWeW4n7j3f
         kpjA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1791562277; x=1792167077;
        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=e+ciZeljp4XbV+7Ul/HTP2zfMzICzcEEGNyLNPo0cRI=;
        b=hCVScNgZDE1Rb9V6ryIlOjFFeAgUfTIUIoRKmVKIWb0vCZU5IBWPCSlxRGcEko7PUe
         jJv0dhLSr7x2EX3B76Tiq7Xd0+u46k34UVSHtTH4SDzz2H0m08YOjww+uwaodh9SCNxN
         itB1lxcY8FCrbCkJvuOiP9vkMA9O3SwRKSUMXGJecF2c22LW2W48AdZysyyKC95KNgy1
         AQ6HoVDXi9mZ0CoWo7X6H6GQPpGjrHMTQGMpMovFcxB9isi2R3T121pRd/hasOHRJw5G
         NwZ8DVOfHJ6ZcPYVERQGF4vHxd797s+VXjvBKYe2ZLZRWTLdvi4zju/er9n/O5w2sAQO
         t6Rw==
X-Forwarded-Encrypted: i=1; AKwUvByVvsQ2weqNQb3cSeiPL06UxzYoQQ8cRuFl2T+tDYpbcWMyxHWK2oAYoRUPjKfGI712WkWdstw=@vger.kernel.org
X-Gm-Message-State: AFq9FYJrgwxPt3J3Jy4Hn8+FD58n4C7hCISHvoz+RaM2QlAbtiY1VTRb
	fF+rXr+zfNpNaQvSww/oXdwE/AUlmUuyacL10ba95GGNnytehpcsUZCe
X-Gm-Gg: AYBFou2KFBLOWo34oLzi+s2yQNLYNbdBN0mXh8U5Fqey2Mes9t11cF08Looe6J8mX8h
	+FMIBS1BQtUsrpYPfPaF1lY+J10sOZXLxoSwnBs5+fwgeO39VWvNAZeXapZg33gZ5Le8DSb9v3X
	iQ+CgzvgxCURuHGvouQtLy4HXI5ShnBtecbLxn6f7OiJnbwIHtpWIRzboUPBQ3f3R63wXPd6iFg
	aHmqAtO58YBIqAJt8F8vVOVV1JQOU4nkPFb61ENWzqvP5rNgd3CPacziM+5TLoMkVAYy1+Roc1B
	arcyCrwyZEszd3g1qkRnkDcOQC/6CuGqCG2HFGZiXmDOQra7aEpTtih6h7TyL/F/TdD9sVTZ20q
	j6CT6TS9ZC0f+DhmQMhtDznMKafvKd4r6All4Ni8iIImEC7zVuAABLF7UR9ldiB5SO3okfblSjH
	abSCK/8sa7p7TPfxKp2HlR0TpE2MM6BwzomoplceLmQtyswhIVYhRex8Wr5ETbrg8BceVX98TPk
	iTItE3nVgnn28bpZdicO9cRlioZHBxyDBVeYh3N/6PtjENfGa/a8axAORNK0fbsqLs46BjH953x
	kHd81LfKUzAVvGT+RQ==
X-Received: by 2002:a05:6000:4313:b0:48c:5358:f999 with SMTP id ffacd0b85a97d-48dbaaf07d4mr4638604f8f.37.1791562276952;
        Fri, 09 Oct 2026 09:11:16 -0700 (PDT)
X-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.14
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Fri, 09 Oct 2026 09:11:16 -0700 (PDT)
X-Mailer: git-send-email 2.55.0
X-In-Reply-To: <20261009161102.38961-1-ansuelsmth@gmail.com>
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>