From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 589B83C1D44 for ; Mon, 17 Aug 2026 08:20:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786954850; cv=none; b=pJPqRDXFCvAhBkhigoJRiT9BGxL0uyNP1QWziE2eSRioKJsONoX/lf2JcZv6GXTIECh3vh7y5SetfbciG0rRcopbXIEfw+Dy7NB4HRUmQ/Tnnu0GqYeGd/ckUfwJLVW1f5MjIZMnthnJ7xG505+Ms3jK6tEqKxtCwkU9ndLI/+U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786954850; c=relaxed/simple; bh=5Bv9DWXKoe1rCy2VuILgNvXFcH8nqtMIfGBD86DCJpE=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kF0zauedbfIuitrcI3TaJ50yfQUG+QI1DRI/TJlavrRxlw4SH0N5jMBE9WZdJP8Kc1iBdm5e1ixGyyEnCoSjDX1b2iXLteiaVxSydKuVPcAAXzEKUdmDH4HKsYUEesi6DG6xGOYB1aLn/DZhvFJOslLudpNg5remU0D66/8qPJM= 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=Q8421Jxf; arc=none smtp.client-ip=209.85.128.45 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="Q8421Jxf" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-49802c418b5so32436465e9.1 for ; Mon, 17 Aug 2026 01:20:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786954846; x=1787559646; 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=mBJHZiui6LC0ZFroetycbP9gbMZ7hcwLvF2peu3oVkk=; b=Q8421Jxfi5nx3n9T4ZUKK2R8z7laLiExjoERH6JFekJsGttJPd5jFWAWW9hwDRQil5 xgOIZpc5KlqwQ5JiVNrk2/c+IbxY/p0B/E6TscFxXAR3IqwBqWYMyocvAK7PIPQB4DnK u+2gkrEnkSeULure6sU7FyrO7Wfg19BBLzG1FhENSP4evtuHqlKnwMie49y9UpanWtCu mRRZeGP1tNVA4DQGGNamKCKydj8/+5PAhilWd86+vN5euwmHN2uRmHa9BwOtxaDi99wn PUmVTI6IOZrLXhYvEGRJ+29eROKUAsHiMtJ7Qybee4DUoVO/aJuyZ5dX3TjHDrSMWech fdOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786954846; x=1787559646; 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=mBJHZiui6LC0ZFroetycbP9gbMZ7hcwLvF2peu3oVkk=; b=KOLLGEA+/130wMMY1vne/EZ2yzRtP084UiJYp1S5xsLgNtDtIpfVrcS7NBko9h70CN DoqUfgJYLOj9DkfCxvP02aLAJS7HOPpaxKgSLLkFYp58OkvqQDGZLJ9Q9K33U2JvY58i b8SSYl/pCTjuhy2KM1o8pHxFJeOQlq2f8b45K/65kC5yGUboRTG+9wALBEi0FCVsIsyF c0zlqx4XeXkE9WETLm2LHTVsO0K9UX7NEX6WGHDWErHxwZLPRKQFKvxzuk/EVA8EFzNA onWLuQKs5gXEv3NsQy/PlviRQ8Ke7SzjCKZF9yt0DnIUZNrfvyAuZhxt0v3BBzEqYWEL WGNg== X-Forwarded-Encrypted: i=1; AHgh+Ro7r0a74mJ1QY34gkYTvwn3pcknBasTRfon8rqqGQS85LB9dxfPkkUy1WlHrQx/aVqvk15TBd0uF3lOMhE=@vger.kernel.org X-Gm-Message-State: AOJu0YygljdbGwGs0uiQx2jRWPWoPl0qGBldDZ2XGHBPrgfpsDngs00Z tD+Odqyl46GAuxJPGfCbzsQ4kXTSnf1Hj8flSqjJMrfLN2BxDwZuZ7Je X-Gm-Gg: AR+sD12MhFaZw3h6WpRYLJ57UZGWaSg+D+8+Mgo5b/fy69QR8gBb9pgPTjXsNg0GwKe +irK2eW4mbPZMdmrNxxhqizlDdBNadfs8c+4nftgDV26r2ftGgnK7fciOlVg+jqNQJQE6hfhHyO 9Ud/JzWDAMavZee9AarsJALESRUhcG1qq7C5H4FO7qFFuYzJuDdyj8H2WyL1gHZXLLH2H8lDpH/ sVpYFBslttFs4PGXBMguTIjtft1CJhO06irlo2+y2OpVlw50WXRU1BNc793b7FQbQ0zLuTMKDko VWFbrwsl4HQXvryXn0f1ouzgNVXm8h1a0qYj3ZUjkhOMmeDmyijOIW3TadoG7GfW2xeIsmI9FEc as5+iE88nIkwjlUsoE24o/gYm9xVYUTjJ7K70ko5wx/u/XLD1c16i4d1mTrLFUAXDzRyf4/F/i4 +roo5wrw69w15h9oHT1Fl/DhvkywIR4t+hNLDwoXZrQhzb1/jTtNFqdUGON7uq6yOtSULmG6Y3m J66mkTAPyRu59PPy3Pl21Uj7YFZfDAMR+x0h4DzMv7QhmAgrdU3KP3e X-Received: by 2002:a7b:c5ce:0:b0:499:726c:d658 with SMTP id 5b1f17b1804b1-499879bb9e5mr253882715e9.19.1786954846434; Mon, 17 Aug 2026 01:20:46 -0700 (PDT) Received: from Ansuel-XPS24.localdomain (host-79-40-190-175.business.telecomitalia.it. [79.40.190.175]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-4999d078517sm19684195e9.5.2026.08.17.01.20.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2026 01:20:46 -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 v20 02/10] dt-bindings: net: Document support for AN8855 Switch Internal PHY Date: Mon, 17 Aug 2026 10:20:23 +0200 Message-ID: <20260817082034.20326-3-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260817082034.20326-1-ansuelsmth@gmail.com> References: <20260817082034.20326-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: 8bit Document support for AN8855 Switch Internal PHY. Airoha AN8855 is a 5-port Gigabit Switch that expose the Internal PHYs on the MDIO bus. Each PHY might need to be calibrated to correctly work with the use of the eFUSE provided by the Switch SoC. This can be enabled by defining in the PHY node the NVMEM cell properties. Signed-off-by: Christian Marangi Reviewed-by: Rob Herring (Arm) --- .../bindings/net/airoha,an8855-phy.yaml | 83 +++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/airoha,an8855-phy.yaml diff --git a/Documentation/devicetree/bindings/net/airoha,an8855-phy.yaml b/Documentation/devicetree/bindings/net/airoha,an8855-phy.yaml new file mode 100644 index 000000000000..d2f86116badf --- /dev/null +++ b/Documentation/devicetree/bindings/net/airoha,an8855-phy.yaml @@ -0,0 +1,83 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/airoha,an8855-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Airoha AN8855 Switch Internal PHY + +maintainers: + - Christian Marangi + +description: > + Airoha AN8855 is a 5-port Gigabit Switch that expose the Internal + PHYs on the MDIO bus. + + Each PHY might need to be calibrated to correctly work with the + use of the eFUSE provided by the Switch SoC. + +allOf: + - $ref: ethernet-phy.yaml# + +select: + properties: + compatible: + contains: + enum: + - ethernet-phy-idc0ff.0410 + required: + - compatible + +properties: + reg: + maxItems: 1 + + nvmem-cells: + items: + - description: phandle to SoC eFUSE tx_a + - description: phandle to SoC eFUSE tx_b + - description: phandle to SoC eFUSE tx_c + - description: phandle to SoC eFUSE tx_d + + nvmem-cell-names: + items: + - const: tx_a + - const: tx_b + - const: tx_c + - const: tx_d + +required: + - compatible + - reg + +dependentRequired: + nvmem-cells: [ nvmem-cell-names ] + +unevaluatedProperties: false + +examples: + - | + mdio { + #address-cells = <1>; + #size-cells = <0>; + + ethernet-phy@1 { + compatible = "ethernet-phy-idc0ff.0410", + "ethernet-phy-ieee802.3-c45"; + + reg = <1>; + }; + + ethernet-phy@2 { + compatible = "ethernet-phy-idc0ff.0410", + "ethernet-phy-ieee802.3-c45"; + + reg = <2>; + + 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"; + }; + }; -- 2.53.0