From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm2-f12.google.com (mail-wm2-f12.google.com [74.125.225.140]) (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 CF8B2477E21 for ; Tue, 15 Sep 2026 12:38:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.140 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789475912; cv=none; b=B2Ykpl3Fuy7ZsuOoB00kkq3xFTWSljwsrPjY6tj2o1YyRGi1juoyRnzMxONx8LoW/NblreGlwfkDfRB0HmX+0VYEkhW4Q0nUgUP8Up+THSsPVKZdGVLfquw50j/6EYLNdRNRKEXbYVV/1/iTLNrvG90MjZ9SYZTmmzyn+/dJHEI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789475912; c=relaxed/simple; bh=5Bv9DWXKoe1rCy2VuILgNvXFcH8nqtMIfGBD86DCJpE=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IADChNC/+tmaiit0wck1S8mlUoIxX5aoEXm6hRMdyKKra18YHK9p2+R/Iy51WX899oOm9Pl+gohshfrgXywD/8EsZR5dsnAfhg5/N59IfCKr1BsG1vuVWXQqFkFYciqJJJsWV6SGeCl5tlX4aUWlZtzBgk+f1qKt2xKCd72s0oc= 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=N5eEceuL; arc=none smtp.client-ip=74.125.225.140 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="N5eEceuL" Received: by mail-wm2-f12.google.com with SMTP id 5b1f17b1804b1-49ccf3ca626so13476595e9.0 for ; Tue, 15 Sep 2026 05:38:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789475908; x=1790080708; 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=N5eEceuLdEIiqXJu0C65Wq8SUgMHAAF5uRMuagiwZG0nkjbKAS01GmgtSeWXjJZSyv dycHNifG6Wy5qv4o9tNaVVRm2g4q9kTgo/Msujeqwx6rQxrA9kOjQz0aFE3LhPvUeIit RzxuMknl4w1rPb9XgTY5xRVk/MU2fv3nwa/W05oZW7yiGJGESdj5uEvKZagbTrkJiKeY To3qypmPYRw7V4ZpKRbuaNWkB472Rx4OUuvThiJUlAPADgEC57dV0gB3SSyTJkN01lea 2kwP/s+eO3UxT/Y+kgOfmroEwlGvDNFjIFLRCA10MUZ4OO7YrlFI3+on+N/LUh4e3Se6 WvLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789475908; x=1790080708; 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=eTHr+N6PqvVvFNc65J46NcYiQznzH4DeUEYrIyHAQ56wfrjiMUpWeFU1teNTEe+gzR a36ZyC0l4TZBboQvFbNMS+d0XkBm2Io9k/PsxQAjE08Q8Gu36Qu42Fk5RE54JXkCdXh/ HWYAjdYih/5IdNwl0nOW+BaDGp/eeq8vHGFXg4EyMXGOe0IZT2MqwbTrb5zh/9am1Mty n/ffkAzVit5rGdeZqfeapn40k1JpOLoDZ+K0hfAedBufs0MuwA5V4Pd+JPVheqefzpXc Gi/u5imUk+gld+l66MCxQgwkCwW8WInjM0ygyOfsqHufnIddinycXmfyieCj91IB5Ppa otsA== X-Forwarded-Encrypted: i=1; AKwUvBwFgvbGZukCeExokjZuWG0+TAiWxK5nBMR/vrFCMtag0Qm20WAVvGzxe33gkxMWVH8NqEpQ4avYnidnKWM=@vger.kernel.org X-Gm-Message-State: AFuF++lb+eAciba1vPPl/QzcGAMcm0+16g5ysu/DWvnBaxqxW74c50Jc RQ8QFR0EacZB16wqeBfD/L8jia2Cxu4mYYJxSeV7s7rCxxYvGSa1xySo X-Gm-Gg: AYBFou1ohFQgfUSVGi3JK8IUylzLp68qwgwSxDrviGTDForRBkOA7qywgsMA2sqUAdW 5M6XkSlBqxePvj6WYLM+Li8+g86W7laBiRHl2K9QLdLXBFJwjPpd0bWt4jSXou1YJuAbnohaTko 0ZUi/y3N3k+VTKlSjjslcUlP2yFEPy1dpgFUL+Wm8pwBFTYrI2B8bWp7E91gHlvXisole4ZV6tu XuJYvS6YN1vtE0GuGWGii0R9sDeVAQ2V5SqVfKEIoNqZo/5bWgjxzWKuGFs/nF64WhIPmBBr+LS REzUAJXMT5/MiwqQn/fQUdcrq2PCWe7HizdBMjT7Ba2bUkg1YOwK1QxT71idiHHGPyK0ihPjb4h El3HLYQiUbjLkQUWi474XrPKHeMfrYID9Qb31wK8pabrlaG+jwLjqs0q40wQAQG+9Juqg0lFB23 /jOYt0IQ64LN0q/uqoinef3qTZf/2VbvuawpzLMmDSIU8RMRnM5IIAYUIwG0qNHH4AyQAQFHFLi OXiXbz0e9szJ7gIoYv0onuZKRIsV2prAV66dkzuqDuDgc9ZznTLtb/XwK4Aw2J0TRg/MzCWqNo= X-Received: by 2002:a05:600c:4e47:b0:49c:fa20:cc02 with SMTP id 5b1f17b1804b1-49e7a677cdbmr68143945e9.25.1789475907626; Tue, 15 Sep 2026 05:38:27 -0700 (PDT) Received: from Ansuel-XPS24.localdomain (host-79-26-252-140.retail.telecomitalia.it. [79.26.252.140]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-49e7d6a8d5asm62958635e9.9.2026.09.15.05.38.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2026 05:38:27 -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 v22 2/9] dt-bindings: net: Document support for AN8855 Switch Internal PHY Date: Tue, 15 Sep 2026 14:37:59 +0200 Message-ID: <20260915123812.14747-3-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260915123812.14747-1-ansuelsmth@gmail.com> References: <20260915123812.14747-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