From nobody Thu Oct 2 21:40:06 2025 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 1F24B311958 for ; Thu, 11 Sep 2025 13:40:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757598013; cv=none; b=Hj72xt0PqjrQ7W6A3J0fXh/fhsixIs0b2+INw2I6EOkRuUXvP4wKZOme3CVLJSJFfK43FKijnLU1CpC9Izuf+Fnek5+N6bpcfcCXX89kg6l2FIuxBTzx/iFbrq/oa5ndbOW2KposbE5Y1o79RUNmRJpwVhFPKzdvPOKuQnly/RA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757598013; c=relaxed/simple; bh=e4mGlCMBVF9DhYf/LivGAjnSKmfeLjyoAXsOG/vFvKE=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LRmEdQfBQBkleKpSkqu0P1JeEI9+DQv2AEkBm9c/jAzap6aa/s38f+YltImsPok1xKqeTGSEsDI3DLi/zzq0BX1xf9vfAL6ad+ihxIcc7q7sNnbWfXPltTI0k9cBFdHzLq4R6FBlHJbGlQVnterhrHCT8kPdJJRZbdQG5UrCzCk= 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=QxmqL6cK; arc=none smtp.client-ip=209.85.128.43 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="QxmqL6cK" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-45df7cb7f6bso3618105e9.3 for ; Thu, 11 Sep 2025 06:40:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757598010; x=1758202810; 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=fkqcfK5g5kwyolRjxk9xPF6Gs0633C5dadI10Wc7gbM=; b=QxmqL6cK0Zux2XPfSFnb5VzkXhrZgP+y06oUv6G+CbGbqQw7Okqw9JMDsQjjKa8a+T YoaZpr6cL+rWfObMWxWaGLYUJGK5gSHZRovh8kH50kmxyGOf3/Tee0P9aEukUwxxgV8a cf1u521iGxBEcwa7JNgIPRRzQBREByzkp55I6C2+Cfw15kOYvq37bWmUVD7X7SGrBeBb JexRarCAdiPxu5gu43A/Qkz15wMbKPydcJCo3ldphWNVCESS4Bpn5yBbkLwCvT1qEbl3 8gcLZ9BPvoA30h/ksZiIjFTaJ00ha2g7UKOAFxHnMSnDicyVFs4netLdoVJRCvdalzf/ a6ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757598010; x=1758202810; 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=fkqcfK5g5kwyolRjxk9xPF6Gs0633C5dadI10Wc7gbM=; b=fu4P/yZ3QZ+o7VrCOD4uZMigiAAdnb3+xQ5vhCsV4kIG4o5zbFj8DTBEDXSlngQba2 83IxYT9B412rR/7OuRti/5kyUaj5pOzwhUgBsnqugV245kz8NgeWS22mSkamCTNB1vtp SaO0cegRwGpczce8P35koB2CAFnj7/tODbDiafvmuV9ezKfHxPU/cbKhR76nJ7NaiWMW jYxGQGGCiXd5AaWwHLnWRaI0IQ3oZFjdviKu7Qq74QOZebN3eqQZnUSR00/xlljzLLLF NGg1ljNNKd7L5aXPoNuZZcjDCifNhIZ9cHHoxeM0/tWlH87fwpf9zqhidHfWZJtNQ2DZ qmfw== X-Forwarded-Encrypted: i=1; AJvYcCVhF4QY3UyCVUvmbznCD0N6WEt5Woz3C432x+Y2HBgyHdFdJxZ8c9SXsAPoqIgDW3fOc+FywatocMT4AEc=@vger.kernel.org X-Gm-Message-State: AOJu0YxtIPhFyUBkfuw8nnyGSQXMey64NedTzBJfQPxdG7Rp2aFZTB2D IioqYDI73UDzZw8X9vdHd0cUiqGHsPP201MytZN0CAPhH6BXfmByGDmR X-Gm-Gg: ASbGncsojhmyOwJoydO4YF8tuD+E+Ufxa648dDkI8buSyxI6ZDvse1F/Y2XSqGWN/8F pPILXSa/X3Ok/l4nBkNuSDOi0AtZKqwXUSMZLe1ecQMfrcZqWX187vbbpA72Jx+XtL92no6pLwD PZ3T8jvyCyxzKhFumXe6+7YaGeShgswj/5wsgouj8wqV6H0w0QWdcEvRRLerM7ndpIIQNekDUfN qN8/1FjUGw9rgsRIiNshwaQ9aRp+rshigPFOtL41ijMck5caDbhhcjIEf9rZNrYigylqwvambTA MxCmerzsubN5shgGjlwpMVCvzfO8sPKOlDlWGFr7EcWc7nY2kHvWSkZCjq0qM9uOY3ebmKpV8x2 86qgbl3ym3ES9lM2NQ3Pn6nplatxablRcz1wOwxP58HLMRv8Oj2kTZDBBafd+HE9AGbk2avA= X-Google-Smtp-Source: AGHT+IEurhbsxyz+hG1AOEJ6v7+ZpKbOZsA3ll2VFQ+7hS7XM1WK7VBJbXT7MuYmuykPNpdXEUZ/yw== X-Received: by 2002:a05:600c:5249:b0:45d:e285:c4c6 with SMTP id 5b1f17b1804b1-45de3c551f3mr150961565e9.37.1757598009703; Thu, 11 Sep 2025 06:40:09 -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-45e037d741asm23413475e9.23.2025.09.11.06.40.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Sep 2025 06:40:09 -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 v17 3/8] dt-bindings: mfd: Document support for Airoha AN8855 Switch SoC Date: Thu, 11 Sep 2025 15:39:18 +0200 Message-ID: <20250911133929.30874-4-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250911133929.30874-1-ansuelsmth@gmail.com> References: <20250911133929.30874-1-ansuelsmth@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 --- .../bindings/mfd/airoha,an8855.yaml | 173 ++++++++++++++++++ 1 file changed, 173 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/airoha,an8855.yaml diff --git a/Documentation/devicetree/bindings/mfd/airoha,an8855.yaml b/Doc= umentation/devicetree/bindings/mfd/airoha,an8855.yaml new file mode 100644 index 000000000000..647d6d4c4c6f --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/airoha,an8855.yaml @@ -0,0 +1,173 @@ +# 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: true + + 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: + $ref: /schemas/net/mdio.yaml# + description: MDIO exposed by the Airoha AN8855 SoC + +required: + - compatible + - reg + - mdio + - ethernet-switch + +additionalProperties: false + +examples: + - | + #include + + mdio { + #address-cells =3D <1>; + #size-cells =3D <0>; + + soc@1 { + compatible =3D "airoha,an8855"; + reg =3D <1>; + + reset-gpios =3D <&pio 39 0>; + + efuse { + compatible =3D "airoha,an8855-efuse"; + + #nvmem-cell-cells =3D <0>; + + nvmem-layout { + compatible =3D "fixed-layout"; + #address-cells =3D <1>; + #size-cells =3D <1>; + + shift_sel_port0_tx_a: shift-sel-port0-tx-a@c { + reg =3D <0xc 0x4>; + }; + + shift_sel_port0_tx_b: shift-sel-port0-tx-b@10 { + reg =3D <0x10 0x4>; + }; + + shift_sel_port0_tx_c: shift-sel-port0-tx-c@14 { + reg =3D <0x14 0x4>; + }; + + shift_sel_port0_tx_d: shift-sel-port0-tx-d@18 { + reg =3D <0x18 0x4>; + }; + + shift_sel_port1_tx_a: shift-sel-port1-tx-a@1c { + reg =3D <0x1c 0x4>; + }; + + shift_sel_port1_tx_b: shift-sel-port1-tx-b@20 { + reg =3D <0x20 0x4>; + }; + + shift_sel_port1_tx_c: shift-sel-port1-tx-c@24 { + reg =3D <0x24 0x4>; + }; + + shift_sel_port1_tx_d: shift-sel-port1-tx-d@28 { + reg =3D <0x28 0x4>; + }; + }; + }; + + ethernet-switch { + compatible =3D "airoha,an8855-switch"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + label =3D "lan1"; + phy-mode =3D "internal"; + phy-handle =3D <&internal_phy1>; + }; + + port@1 { + reg =3D <1>; + label =3D "lan2"; + phy-mode =3D "internal"; + phy-handle =3D <&internal_phy2>; + }; + + port@5 { + reg =3D <5>; + label =3D "cpu"; + ethernet =3D <&gmac0>; + phy-mode =3D "2500base-x"; + + fixed-link { + speed =3D <2500>; + full-duplex; + pause; + }; + }; + }; + }; + + mdio { + #address-cells =3D <1>; + #size-cells =3D <0>; + + internal_phy1: ethernet-phy@1 { + compatible =3D "ethernet-phy-idc0ff.0410", + "ethernet-phy-ieee802.3-c22"; + reg =3D <1>; + + nvmem-cells =3D <&shift_sel_port0_tx_a>, + <&shift_sel_port0_tx_b>, + <&shift_sel_port0_tx_c>, + <&shift_sel_port0_tx_d>; + nvmem-cell-names =3D "tx_a", "tx_b", "tx_c", "tx_d"; + }; + + internal_phy2: ethernet-phy@2 { + compatible =3D "ethernet-phy-idc0ff.0410", + "ethernet-phy-ieee802.3-c22"; + reg =3D <2>; + + nvmem-cells =3D <&shift_sel_port1_tx_a>, + <&shift_sel_port1_tx_b>, + <&shift_sel_port1_tx_c>, + <&shift_sel_port1_tx_d>; + nvmem-cell-names =3D "tx_a", "tx_b", "tx_c", "tx_d"; + }; + }; + }; + }; --=20 2.51.0 base-commit: 04b74f665961599e807b24af28099a29d691b18c