From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A2454CA5FA3 for ; Mon, 28 Sep 2026 19:46:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:To:From:Reply-To: Cc:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=e+ciZeljp4XbV+7Ul/HTP2zfMzICzcEEGNyLNPo0cRI=; b=3psYf28QBFRCg3uZj1WWbFB6aA nztwWWXxtBXrWkCHDONVlOcbKm0/4DNt1eGmbJuVvr0jUE/yHLVXeMWTf1GhMpxNueuy8dNg2vj4V Z6GpTIBqipLDjcyUmAKr0wfVhqSncCxhxVh2k1ATQnh8iRi6wA7q9Mdi/cF0OUl39RmotZZLN4an9 2Y2xwSS8Pzf5bJL9is1dY1ymGjw/7gc7vfX895NhW76lh1rUDNh7yZT9NPgUpT5zPl8foCo4JN1cu C1gjHLEcNthzt9or0JtzM30shhBIXxtPi+4pflytxaL1dDKU+XsBc0anndd+weyX5np2L5V//5ny4 FK1ehzqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xBHId-00000001UVJ-0aUy; Mon, 28 Sep 2026 19:46:07 +0000 Received: from mail-wm2-x10.google.com ([2a00:1450:4864:31::10]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xBHIY-00000001UQN-0DUu for linux-mediatek@lists.infradead.org; Mon, 28 Sep 2026 19:46:03 +0000 Received: by mail-wm2-x10.google.com with SMTP id 5b1f17b1804b1-49fff72474fso11436025e9.3 for ; Mon, 28 Sep 2026 12:46:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790624760; x=1791229560; darn=lists.infradead.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=S5mJF7pBP5+/86lT47SUb2WwBPWVzLT0Lbc9OaBgELPydi4nnxnG2TvibJFKiW+nJN zGSbz38mnN2E6LWUh9tMeDbZpiX/sLlT78Q3AO0TE4nnW2ANrJrD+hvupwttmpZHmBBq Dj5wMOqMa1OZqJ/+e/SBU/Gllztp9TYhKMpJn4BsTuW2NiDnHfU7sSLJWTFguIDcipCX MdC2OBINgRflYxX8fOlCasBAFbTNdompyWkUfzxpAIAjCKrcLk3Ib5Wf7m3dFHQfa0aD lAGJss0PxBrJ+s0G6f9jJdVfVSJ/trqxR3QzeMBU6nEZA+WyyBv/oSFclHUznoqa3s8l gacg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790624760; x=1791229560; 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=UPGv1RlpaHKGPVtZta3gZSe1l+sabGTQxjaezUnTvYjGvbVJ3k+JD/NLNMlMzPISg7 +OfcUSyHZt6NhWstPusnIMQawX50uA3pc5Z/M0PYrYZ7laYOkgAw/VgbCykjnWKWbEii 0aoTn40sRkgmvL2ioEsL2zsDWTXO4TvL6QDUFiMBinUAmZw9OCkQGJih/PQiEPnvPTLF xQo5djPp5O9+AqCMPnJCiF0KkBXFVAUw8iHFQHx0pC/+DiA3e830XQGTdIjhB3ytLKyB 7rwSwUwDEQ94t01u0Oez8P/5sBUEbIAp2MeRouwS3NuZYQkejod+E1FLckCl+lEvvq4m dxMQ== X-Forwarded-Encrypted: i=1; AKwUvBwQQ4xqhMiyOGjQP9/EP7wiLBNysY5nYhguWSlKrQhQjVV23W11Iugai2TJAg/Xa+dLY3naZ35STqfWRaDxpQ==@lists.infradead.org X-Gm-Message-State: AFuF++knX+7j6EkNv6SoRH0t1YHLOgRGhd3FWmG9F0qR8f6GQgBufARb LuGAG9UD81l/9mlgvTQZItKvzTZPJ18RvJnQm2xTuBh4xYv3FvVSBb5s X-Gm-Gg: AYBFou22HnUIXBbvFIf9GZRW8lp4R3SMX4Fk9fqUB8fSgaQ78OmJ46wi3+tXbR5TSny 9I2P40O4LOzGxhSW6qn4hHmMb/pZ91Fz2iw9ZBJLpaKVdEdmyhOlarmVvHNTQWyEukgqF5d6a+b JFHAYrqIloE9dIbnZ8WzbSxH69lvpknLDF02mJCDnv8FBQIfrpn16wUe1NnsldFfW9/gvcIBess h90kpi7imhU9IMff3eQWMBEoe2bIiPvqcUDllm+iduHQJcGwhpErinKTG7miQVUXiEE9RKClqSS O37LENmIO5TzeF+3u6hwLMSgx0br6htCvWZVn7xRLSiPge8VmksCieVsxEgOaaQjyXJkEbhic9G jTpSP9jpv5rKJmA1VzAyzBsp0jV3gIz/VS8xRGUY6ZvyKqzo4ile6EjUxeIDmTejHv1rGEf/UED KoK+0KyPGLD22Z3xSRvDdwoEQ2jDGGbHZYgjQrIhKYCyYofUKkKZJ8UDmF5g8kcBpbWqb/LB1Xy EgwDNgR5BtYYlj491ZGN4I2GT/0hpGlmmkjagIFKNIzMCTVoVAROy92LhlN5DT0Sw== X-Received: by 2002:a05:600c:870c:b0:49e:6050:9fbe with SMTP id 5b1f17b1804b1-49fe66d76camr237998245e9.15.1790624760097; Mon, 28 Sep 2026 12:46:00 -0700 (PDT) Received: from Ansuel-XPS24.localdomain (host-82-57-191-234.retail.telecomitalia.it. [82.57.191.234]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-48af071532dsm1527706f8f.20.2026.09.28.12.45.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Sep 2026 12:45:59 -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 v24 03/10] dt-bindings: mfd: Document support for Airoha AN8855 Switch SoC Date: Mon, 28 Sep 2026 21:45:02 +0200 Message-ID: <20260928194511.41878-4-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260928194511.41878-1-ansuelsmth@gmail.com> References: <20260928194511.41878-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260928_124602_138333_5E04FE0C X-CRM114-Status: GOOD ( 13.71 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org 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 Reviewed-by: Rob Herring (Arm) --- .../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 + +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 + + 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