Article View: linux.kernel.netdev
Article #4295[PATCH net-next v3 9/9] net: stmmac: qcom-ethqos: add Shikra EMAC support
From: Mohd Ayaan Anwar
Date: Sat, 17 Oct 2026 09:45
Date: Sat, 17 Oct 2026 09:45
57 lines
14206 bytes
14206 bytes
Shikra integrates two Qualcomm ETHQOS controllers based on the Synopsys
GMAC IP, similar to previous platforms. Register qcom,shikra-ethqos
backed by a new shikra_data descriptor that enables the three NOC clocks
required for DMA memory access (axi-noc, pcie-tile-axi-noc, stmmaceth),
and the 36-bit DMA address width.
The NOC clock rates are set using an OPP table. As part of the NOC
clock voting logic, the qcom-ethqos glue driver takes a second enable
reference on the "stmmaceth" clock, which is already enabled by the
stmmac core. Since, all three clocks must run at 120 MHzs, managing
"stmmaceth" through the same clk_bulk path keeps the rate-setting and
enable/disable together.
Signed-off-by: Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
index 9c602755532e141f4b822721686b1481b29b7d4c..a4e083a8517d095e5571b1340f9dd4b5e0c6e81f 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
@@ -307,6 +307,22 @@ static const struct ethqos_emac_driver_data emac_v4_0_0_data = {
.dwmac4_addrs = ðqos_dwmac4_addrs,
};
+static const char * const shikra_noc_clk_names[] = {
+ "stmmaceth",
+ "axi-noc",
+ "pcie-tile-axi-noc",
+ NULL,
+};
+
+static const struct ethqos_emac_driver_data shikra_data = {
+ .dma_addr_width = 36,
+ .has_emac_ge_3 = true,
+ .noc_clk_names = shikra_noc_clk_names,
+ .num_noc_clks = ARRAY_SIZE(shikra_noc_clk_names) - 1,
+ .rgmii_config_loopback_en = false,
+ .dwmac4_addrs = ðqos_dwmac4_addrs,
+};
+
static int ethqos_dll_configure(struct qcom_ethqos *ethqos)
{
struct device *dev = ðqos->pdev->dev;
@@ -947,6 +963,7 @@ static const struct of_device_id qcom_ethqos_match[] = {
{ .compatible = "qcom,qcs404-ethqos", .data = &emac_v2_3_0_data},
{ .compatible = "qcom,sa8775p-ethqos", .data = &emac_v4_0_0_data},
{ .compatible = "qcom,sc8280xp-ethqos", .data = &emac_v3_0_0_data},
+ { .compatible = "qcom,shikra-ethqos", .data = &shikra_data},
{ .compatible = "qcom,sm8150-ethqos", .data = &emac_v2_1_0_data},
{ }
};
--
2.34.1
Technical Details
Message-ID:
<20261017-shikra_ethernet-v3-9-26a8beb44b8f@oss.qualcomm.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347718-linux-kernel-netdev=dewy.ruReferences:
<20261017-shikra_ethernet-v3-0-26a8beb44b8f@oss.qualcomm.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347718-linux-kernel-netdev=dewy.ru
From: mohd.anwar@oss.qualcomm.com (Mohd Ayaan Anwar)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v3 9/9] net: stmmac: qcom-ethqos: add Shikra EMAC
support
Date: Sat, 17 Oct 2026 15:15:20 +0530
Organization: Usenet Network
Message-ID: <20261017-shikra_ethernet-v3-9-26a8beb44b8f@oss.qualcomm.com>
References: <20261017-shikra_ethernet-v3-0-26a8beb44b8f@oss.qualcomm.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
logging-data="3013202"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:IEAcZO1D0B2BITfM0d7KFSPRIuM= sha256:/DkQ+jImNlbTsNLAfLrAsaRVBpOVvbFC3SyJr8aUyqc=
sha1:4ucyQjEgfSipYxcYSoV+I+cVTc0= sha256:RK3F1aT6v86hdrWRmAr84Yvurz9SnIGKFTJhrFeG/3Q=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id B9C641106BE; Sat, 17 Oct 2026 12:47:48 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.15
X-Spam-Status: No, score=-3.15 tagged_above=-9999 required=6.31
tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1,
RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=qualcomm.com header.b=jd9hXNKA; dkim=pass (2048-bit key)
header.d=oss.qualcomm.com header.b=FtZyhMdo
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id rkxbnNWw85bp;
Sat, 17 Oct 2026 12:47:46 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-347718-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=oss.qualcomm.com
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
by mail.dewy.ru (Postfix) with ESMTPS id 7A4721106B5; Sat, 17 Oct 2026 12:47:32 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
by sto.lore.kernel.org (Postfix) with ESMTP id CC57F60F597; Sat, 17 Oct 2026 09:47:11 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 53750480DEB;
Sat, 17 Oct 2026 09:47:02 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="jd9hXNKA";
dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="FtZyhMdo"
X-Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id C5C9F47FAF4
for <netdev@vger.kernel.org>; Sat, 17 Oct 2026 09:47:00 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1792230422; cv=none; b=cba4xjQrDBI/NdDQzobyOs3A/akzIBIR650q4Uj2ZQKEYo+HUStibtmV+KG6TdeVXT0EKgMG1FvDvUI+ca4NoUDl5uvkvXP70KrBJsjiFBsYGwpV4t7N0SWrs1X+ATtEU5h9WTQL3sc1DflfzWnK1IAPUKX7o4+Lp2O5+jAFHz4=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1792230422; c=relaxed/simple;
bh=LRWhJyRn3PkcxIWYRNNivl3BW306tPYAnRD6RQt/jf8=;
h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:
In-Reply-To:To:Cc; b=E+YRM2FOwLk8YhkLkjailkXKistvM/0LT5jZkc95lVFQc4k5w2ba3Ds+uLTMP8SDY2hSgGQEKKzqMPlnkIlZ/gRkdPEZ9tdkleFFO1D02CZs+Yuj7g9tcLvUqqLy9XBypGgJlkIo67H2Ruby1tWgqJRC612AZmGioGiRsKLhKyo=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=jd9hXNKA; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=FtZyhMdo; arc=none smtp.client-ip=205.220.180.131
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com
X-Received: from pps.filterd (m0279869.ppops.net [127.0.0.1])
by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69H6o4hS813249
for <netdev@vger.kernel.org>; Sat, 17 Oct 2026 09:46:59 GMT
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=
cc:content-transfer-encoding:content-type:date:from:in-reply-to
:message-id:mime-version:references:subject:to; s=qcppdkim1; bh=
jcjbR8An16SR3tP/GJFloko/bvbeikqy8AxazhWq948=; b=jd9hXNKAnoAHYnvp
UHBT2ccQ94NXStz29JbncN58ob5j/+V/7QFALT3RyO0krTVQOywkCKQL/IIjZd3U
Pq/iXiZe2QseoYB2HWiq2ykUlUmkFIaxGUUNYMDRLIt7/jg9NZjZzP5SzVW+gCJd
KSBZBqfrKbjjgXjyhCpXGx6DIxE7g88JPpLGPfhLCgSgjXg8NaH7IGWmG+kuIzNj
S8M2221cD9TpCqtJli3RpyFWwTeJzsFgRYEfLHJ5OsDEkFcumxpFgvCqaCPjLtaf
rNQN4Y5xoBjbpvnLk7T5OBdDBeWuMzMBnqCSALkZf2hwl7SOaMrR65x7qWf/k8aW
rz9tRg==
X-Received: from mail-dl1-f72.google.com (mail-dl1-f72.google.com [74.125.82.72])
by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hc016grfe-1
(version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)
for <netdev@vger.kernel.org>; Sat, 17 Oct 2026 09:46:59 +0000 (GMT)
X-Received: by mail-dl1-f72.google.com with SMTP id a92af1059eb24-147be78cd56so2891783c88.1
for <netdev@vger.kernel.org>; Sat, 17 Oct 2026 02:46:59 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=oss.qualcomm.com; s=google; t=1792230419; x=1792835219; darn=vger.kernel.org;
h=cc:to:in-reply-to:references:message-id:content-transfer-encoding
:content-type:mime-version:subject:date:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=jcjbR8An16SR3tP/GJFloko/bvbeikqy8AxazhWq948=;
b=FtZyhMdoeMYSjkzB+EgfEqHL3ejGDSNqY+MZmaqkXWJW5STGMN2usQsLb0x2o12GnT
w+YXYYcg8/uZbU7T28Tajkgc6BKwusI9ltRSvd7gBZ1Ls7+WT8ciNTWgjHluaVKEfG4X
EfGfj/DqngMnMyyPJRYFT4fGqCs3rv46tv8CMgfy1i0MDHnQfYbeJ6c4s/MAJKhkyk9O
hPqk2mJPeZrDcmX/f2MTmVa2vzrSzY/FAxQbxcZtjyETebPtnkaqpxAvqTezEwlvGQBY
/Wsk52WCqWWjx2+5EYcVE+P3/Oqyjzu8L9Dlp4mFt7I6H576NDrKMpDGcSri8mzhOl8s
t8VQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1792230419; x=1792835219;
h=cc:to:in-reply-to:references:message-id:content-transfer-encoding
:content-type:mime-version:subject:date:from:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=jcjbR8An16SR3tP/GJFloko/bvbeikqy8AxazhWq948=;
b=ckcsho7LmrF2xY/g0RovnSMu98a8m/QzURjtAo+L0wgLkzW7pGvz37lNNtrf8pMCAa
+xwdJcrte+55Mq1Izc9NpwnzC6qmet8+JM6gyS1T27aRHw1R349gc/Kb+1KdevkoQElw
DXoZWU3JMV2oh0vKpDLL6w/Qe+LbXTfRUpEG3BPhBzTzsuMvZ4pOG1753xy5KBMD1qfx
jXiHki5tXaxp2UBVaM7yYK01/zI5sZHMATjscAwCJu7B3v8yHM9o+2qItAaklpPGR3lF
+NtCVwGw8s4/KcXHz1lrbsuhyHmSSfywDBMXKCNcy9RG6qHzjcDv65Zdw2oKBU2ITAYM
ej9w==
X-Gm-Message-State: AFq9FYKdyKw28XxdazucULXkpqskH1qnIowxzoxT4+o203qgLLObE8fm
Zi0NTvr53dhau6VXOT627O2nFs80a1y5FJxa/LdyJLp1hyb0Vi1OWcIkOfiUwdCI9Ts5JGRVL7z
yURTQ5JDkLV9iLmJq+q4dLvjyLqnhdORtq9LOxF4YvuXd1UFHEGd6zetOyEE=
X-Gm-Gg: AYBFou1sjej1fylnPD+oZCi5w/S4LJWg28xJKj7gc3bAlv2Orn81aCcT2oYVRhhJEa1
iFjSn/bn8NxZbkUNY7EzX0QHUx/3HAGlbVs8wSwLPN0zXZrc55KHqaGg9QwX3Vrn4XPkTzvPxEc
e2WHmwGOoeVuBJL1+xanbk7K8ocSNdSwjZHYuivutaDNv669gS/XeFIghCMbxvhtpS32EIvR7Zn
dcrMgyfQpFMgc47tB85URnDBiGll81+DiZhAUXJm0/a4RicTC/4MeXICsX5ZTEyLwMBzNf8ryYo
GeH9v/4BYsY7NbGcau1hNx5AHWp7kZNJd4TT1A7NDTKCdeyj8in8jsBj23ZYdYHFqdI4fEAGIgg
FDa1VEPTdzimz788U7Dtk422S2NxIFA==
X-Received: by 2002:a05:7022:e808:b0:14a:51c8:e9fd with SMTP id a92af1059eb24-185139aa548mr3772613c88.26.1792230418545;
Sat, 17 Oct 2026 02:46:58 -0700 (PDT)
X-Received: by 2002:a05:7022:e808:b0:14a:51c8:e9fd with SMTP id a92af1059eb24-185139aa548mr3772587c88.26.1792230417954;
Sat, 17 Oct 2026 02:46:57 -0700 (PDT)
X-Received: from hu-mohdayaa-hyd.qualcomm.com ([202.46.23.25])
by smtp.gmail.com with ESMTPSA id a92af1059eb24-1831a6f58c2sm19450327c88.11.2026.10.17.02.46.49
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sat, 17 Oct 2026 02:46:57 -0700 (PDT)
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-In-Reply-To: <20261017-shikra_ethernet-v3-0-26a8beb44b8f@oss.qualcomm.com>
X-Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-stm32@st-md-mailman.stormreply.com,
linux-arm-kernel@lists.infradead.org,
Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
X-Mailer: b4 0.14.2
X-Developer-Signature: v=1; a=ed25519-sha256; t=1792230324; l=2359;
i=mohd.anwar@oss.qualcomm.com; s=20250907; h=from:subject:message-id;
bh=LRWhJyRn3PkcxIWYRNNivl3BW306tPYAnRD6RQt/jf8=;
b=8irhRRycJY4lMPeMj+cjkHGT1y1OlkmuNDgvS66f2oU8rsvggEAa5HJEeCWPbUqMEr3ZUG3Vi
bxh4S3ShekxCm6dM/rJVicTZxfQe9mMakJ0qVXvyZC4RUafE1IliZuw
X-Developer-Key: i=mohd.anwar@oss.qualcomm.com; a=ed25519;
pk=7JNY72mz7r6hQstsamPYlUbLhQ5+W64pY4LgfSh9DJU=
X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE3MDAzOCBTYWx0ZWRfX2kBs0zUJ8hO4
IfBjU/vPhF/KwgqW+3CHgNqK/eVRDFVQXqg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vendor=baseguard
engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49
definitions=2026-10-17_02,2026-10-14_01,2025-10-01_01
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0
suspectscore=0 adultscore=0 phishscore=0 bulkscore=0 spamscore=0
malwarescore=0 clxscore=1015 impostorscore=0 lowpriorityscore=0
priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc=
route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000
definitions=main-2610170038