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 BE7AF3382DA for ; Tue, 28 Jul 2026 15:49:09 +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=1785253751; cv=none; b=NOR20R5dbgcMoq6OoIqG/3fOO1cZI+PqA3pueb/jxFRG5leZKHi9z4BIhqIiY7IG0+lRi4AtQGGna5eTKUPHUyZWA83Nh2StWXQA6MpL1B62DxDiTkhCQZuY8xCNVrFRfl5+dQXMd8OMuZZvn31Byklh5jzrug8aTbo0f73iBGY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785253751; c=relaxed/simple; bh=5Bv9DWXKoe1rCy2VuILgNvXFcH8nqtMIfGBD86DCJpE=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=W8wdqwJk9DMGnNVCyYrEnA2rwCnseTeeGXNk9mpyaVc2iB/HA2ez+h0DTIhR0LYBNMxwPppcj/YhtNUMeeIkrSXQ98X8vsVE0OUQMINQcD24uNvirozYZdHpjiJd9kaDwOa1JqArVJvfddlXUYjIjRQqDOlKPYAMyXb3yWMpEP4= 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=HYQ9yTL8; 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="HYQ9yTL8" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-49557167508so37917175e9.1 for ; Tue, 28 Jul 2026 08:49:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785253748; x=1785858548; 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=HYQ9yTL8SIHRB13ankJKULr1U0ouZkza6Hih/6eJ66lZhr9lNGn9AiJxfeUkW6tYDr 0pBuPsij4VISZH2sbDxr6KZbcckZ9OW1Zh8WE8A1ZWPXeW9U1y07P2M3oJnZ0aYjyPR8 CVgmqW0fIok0Zam2fQIFOZ8IiS6lS1KbGn4U913hlUsZTZOu8GcRnSK7+HXOujZqnaKE bWRjMtLW56T1Lx16jXd8Ay19NHWujL75tdRkdkH+tPOn6fC/ySnICKA++58UdBsANhfJ Ftif6SEgXgM+bi3QyAq5ckwDbPRuTgW1GG8lSQH3ibhd+OQOD+b/y8R+tB9bOv6usC1e LprA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785253748; x=1785858548; 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=W7uQMZgtS5sN4Sziw+UwymrXG/OpUxkYoTNmbAF2ADP9/RRBONe0qLziy/Lzw6v/CN Ut0iEdLonSjuFJCpbHc2L8miVtNCqdA8ODjnl8VhMvhKvhMhtApnWDjhlRVFm3CKEpD+ /b/1bzrJRHY+2F76Gqnb0vosMnWxr9DRtqgVLOUB8GyKrl73pDvxHTzhfyFy9VA/UNHk wrVNAMlE7U2doSoaPdGoykl8XKcNNfMS7a7BRexmEbJ9Yhg37LL+WVudE1l9XfdZ3IhU 4r92rRFuG6S4oMvpSGLwuxmE6xQ/9mUuuBo7c1dZpnTwjZJ6ozJa4NJcrxW6PlV0oTCs KCrA== X-Forwarded-Encrypted: i=1; AHgh+RrZmabxc4O0rjbh4UzE2dOuUQuc65kI3VMcDFQlIb4mZqY1AmIP7H5a6j8kWAASusAb/EmKRqZGXuWxPn0=@vger.kernel.org X-Gm-Message-State: AOJu0Yxmx7Zw7GPmZgGrs1OsR/cdtCbPjm3i0HMPbaf0WaVBluoMC5Yc YH25L1XHePGkXV0EYgnYD65SOHxe0UyaySGON/JxKjC1dbm+VqxPdlHA X-Gm-Gg: AR+sD13FgVeOvnh4E7nKV+2b96TDGLkwS1udgftQsCdmVf/wqNPYaG3xJAYeQabmCHO XDrMjIljsqEEPGmkUo3g9DHTxVjhBUI3RrJdZG6suEFc8yPQlVtQncNrEegvWpDBUfRb6OJqCLY +h7f0tJkClXzHuKQO1MuF5vDZv98d2e3tG1qZUE30iTBoNSyQtrHQJ52VjZ5Q8rA0H2IqhBjTEB 5zN+rZDMZ8iYS7CMaAKG3nyaXVqj9yvDqlUGCn33pzfbHrinCNIYj6zha5FcpGNZsxAMAkp5rVl tfRs66YSRrEtowsHz0DsZI4hIkxx2d52tcPZsFyrfIZLqY0PYWeYYcHSFixymoCkNnyoaBcTYyc nYpSPyjwRJfxqGFJZeaPDUYahnge3MqATuEs2xpyDFidXb95h85qyhm0EjVcqpcXO3lXbdOv3il PXihEKbN370KtF/TyI6Q== X-Received: by 2002:a05:600c:3e18:b0:495:71fc:3a64 with SMTP id 5b1f17b1804b1-496c6569058mr33783105e9.25.1785253747906; Tue, 28 Jul 2026 08:49:07 -0700 (PDT) Received: from Ansuel-XPS24.localdomain ([37.161.95.51]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-496c4632263sm94912035e9.15.2026.07.28.08.49.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2026 08:49:07 -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 v19 02/10] dt-bindings: net: Document support for AN8855 Switch Internal PHY Date: Tue, 28 Jul 2026 17:48:29 +0200 Message-ID: <20260728154846.1828945-3-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260728154846.1828945-1-ansuelsmth@gmail.com> References: <20260728154846.1828945-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