From mboxrd@z Thu Jan 1 00:00:00 1970 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 AA277403123 for ; Mon, 7 Sep 2026 20:23:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788812629; cv=none; b=A4CRhKTXv/UIitg78bmym8spNrwYH6Wp1ntlBr1PxaBj+I9xX/44e3kbupIBStb2XgqUUfH4NscIt150GstTEcXoqNCu8qabFlHDCDnn4XYUwokNnQqBAtJ9b/WRUhde+sfv3T+q5Y8cyzsFVy/ULapBsq6AUr17HDkcdaAsHLE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788812629; c=relaxed/simple; bh=sCoXPX0Yq3nwo2KsW4jRgJUZwqT/+Xni0RoFlfYySqI=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=IttfeJeNxKc/7Rl94/BQOVIafSSiNiMGOGXdEyfX5/GJ1k9c6pHdMg33teA0xQfJyuswNlDQwpmbL5xuxbzbg0Rh10zKB9iyu0s8GvUF+dxUCEXadntF1mTNyd/By+rU1uL6GQ51cylYJFBB2+G2wrj+37hzFnUCoh4GP5ar2xM= 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=UKNG4VVL; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=XcCVLBgW; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="UKNG4VVL"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="XcCVLBgW" Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 687H7r5s702428 for ; Mon, 7 Sep 2026 20:23:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=e5PAjbyonBBX8bCa9McFT9 c18q9TrMpdt4SO1ARd2xg=; b=UKNG4VVL9PcmSwbztCVmkPvy8YlAl72UQcaL9F 8rzc9blmq146RZrd2A/qvnRzMu81FBLzOdh8oTTr76IX58bQa6dG7hgwoman8E6M 8P5BG7pF/lMgV9FCA29bdfV9gU2i05WVIDrUSA7gjWwdVvmQrRSDnetlg4Nua73U v8K71Hk7TcZOkJ3l97bTJnLyjOuAXc8x/iRiPY66bdysQbpJ2M+YAPsq0/zu7PTn ld2wJIkP/XTzJ07b12Skvx2M3g7CaQbYlwhdDP5w3BesqnxdnCmUa6SjiLMFddiQ LATAZ2f7sptL6v/qRN0ad33O2gctUIEV13zcRDfEgea74hQw== Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ghs86tpun-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 07 Sep 2026 20:23:46 +0000 (GMT) Received: by mail-pl1-f198.google.com with SMTP id d9443c01a7336-2cc73f47bdcso45798765ad.3 for ; Mon, 07 Sep 2026 13:23:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1788812625; x=1789417425; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=e5PAjbyonBBX8bCa9McFT9c18q9TrMpdt4SO1ARd2xg=; b=XcCVLBgW/6RK+gDaws6Uva70+GfiMptNlzLZV6kRKvWFlWQJu9FqbKb8bWWIiiGJRN UQg7kpclNJaiwdIkuSHNq/d0GJzySpGd04oCMUcb421HyhXGX5RWEEZ7Xq5OL8VEH0Fw 6eyEpA2v8piJZ8vEEMf4dIQoNbYfWkhJI6ozAcFxg8rMUqy3R94xqLhaqrEoztxmOnAU vVgIPcOIGORvVIJEmowJREFHFCsH2vZPUIG3rql/bxMvCIE+6UJVOjUU4DhJZCzmSRDf YoBrx/I4BPNUdQFrpkdZUjsmu89axmk85GzxES09NjWfYB3LMe03evyRzd0Znw13Kt91 FTew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788812625; x=1789417425; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=e5PAjbyonBBX8bCa9McFT9c18q9TrMpdt4SO1ARd2xg=; b=M7Mnq9FoQQEP9l9E3vUCIEO+Bf0e7CUqvY0HHmr/+ITszd7Ugivo9jCxL4CYf6HjOV LUhTwfDev39BQs3N/sm0/0Y75vKt+wzxecevEhve4o6yhU/aAqSN5psV0oL0ECr9t8Vc JfZ767BKb4CFxk7sgL83/vRRS8eJVdwXLy2y/c9NnUHWs6NvaFkbJi5CSMjsjwQ2rtcG 7ueiQgjiQR/0lfkiu1gwZUBQC6EPEc6EJlcV4nJKeYvGtl2HKy4Eq1DqR7ERJffL8zwu 317yQB5EfLCEB/7/77aNPE82x+jb6epDwpSSFv6V1DMnzcxSCkMGUtx5x2gNTxUf+AKs G11Q== X-Forwarded-Encrypted: i=1; AKwUvBwX8bc6SOqr7RiPCtkbta7MdYTMbWp3jSkHkvKaIB9P4OeWhEliGqFDe3wTuV9R8Gr+VMCIGue/lKX+@vger.kernel.org X-Gm-Message-State: AFuF++ncmVzdqql21svaxwgvhc7jQOnnPME36yHxzBV/MDySgNHeaPg8 vy/NFX+xfgjC0xwBKADBh2B8AscoTQnDo/Z6ojPRxraPmmYevf7zIOOFKkw7N0iI9pS/7fHAalK KuJezh9aL6cXnpyx0AUke+hLIdT62GICanQ/LJVBje0e+UFca6be7K4bnc5ur6cAx X-Gm-Gg: AYBFou1pQgYNIjW9Qj6vx948xUjqRcW031getKQJZEJBcWlejzEQv9mJs9JNZqxaZjs oc0NAQ0yVPY22FtUXutxhP0D8odne19NG4YbZIVEzuNMYDz8yeiR0rEQ2F+Lo3LLP3EScO5mzb7 3crJWEYtGv8J7cI0uGXbHtPDDrGMTbs4qFgRLngmzNbLr21dvih7xPs4P94f5Mzd1j8NGpYH80s 3TYxPGrN0Mt7mAQNicHveo+0pZIi6UpXBOfIg9EFpZn0wTiEd4XFOHhYLW14UGmsKf8ecjau4pM +lZRO/e42yc+su0UsKdmjhtuyGwJpwPkf0cZZy7L11EMAXHp6+vlJQCHfS0yf+zLq7aiGy3sd8l Ign6N35jXIaTrxtHCKFoNfl0cLZBVnA== X-Received: by 2002:a17:903:2acc:b0:2db:5f8c:b81c with SMTP id d9443c01a7336-2db5f8cca7emr98859655ad.19.1788812625363; Mon, 07 Sep 2026 13:23:45 -0700 (PDT) X-Received: by 2002:a17:903:2acc:b0:2db:5f8c:b81c with SMTP id d9443c01a7336-2db5f8cca7emr98859205ad.19.1788812624902; Mon, 07 Sep 2026 13:23:44 -0700 (PDT) Received: from hu-mohdayaa-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3339b314cfcsm30482259eec.19.2026.09.07.13.23.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Sep 2026 13:23:44 -0700 (PDT) From: Mohd Ayaan Anwar Subject: [PATCH net-next v2 0/9] net: stmmac: qcom-ethqos: add Shikra EMAC support Date: Tue, 08 Sep 2026 01:53:12 +0530 Message-Id: <20260908-shikra_ethernet-v2-0-bbe3389d0652@oss.qualcomm.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIADAdn2oC/2WNzQrCMBCEX6Xs2ZTtT1rryfeQIrGuJmgTzcZSK Xl3Y/HmZWCYmW8WYPKGGHbZAp4mw8bZZMpNBoNW9krCnJOHEssGO6wEa3Pz6khBk7cUhKL2RCR pizVBWj08Xcy8Eg/wLViaA/Qp0YaD8+/1airW/Eet/6hTIVAoiW0ju67BSu4dc/58qfvgxjFPA n2M8QPUp3oPvwAAAA== X-Change-ID: 20260903-shikra_ethernet-ae7bee5e804e To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Davis , Andrew Lunn , Heiner Kallweit , Russell King , Richard Cochran , Bjorn Andersson , Konrad Dybcio , Alexandre Torgue , Giuseppe Cavallaro , Jose Abreu , Maxime Chevallier , Maxime Coquelin 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 X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1788812616; l=4796; i=mohd.anwar@oss.qualcomm.com; s=20250907; h=from:subject:message-id; bh=sCoXPX0Yq3nwo2KsW4jRgJUZwqT/+Xni0RoFlfYySqI=; b=QME481dA0bhoLDbSXBYvkMkG9PXW95sYcvKCvp0H/2aDSQm5oUiL0uE7DBoI9GRnvPX8bWmbQ AEBWe4ah61QBm6PRK35q5+XDrpbYYT+TVgR/wD3NFmzdc3094MQn8L8 X-Developer-Key: i=mohd.anwar@oss.qualcomm.com; a=ed25519; pk=7JNY72mz7r6hQstsamPYlUbLhQ5+W64pY4LgfSh9DJU= X-Proofpoint-GUID: MnZtfWGEybYXwweDo-y-pdCbZsO8mRrM X-Proofpoint-ORIG-GUID: MnZtfWGEybYXwweDo-y-pdCbZsO8mRrM X-Proofpoint-Spam-Info: AW1haW4tMjYwOTA3MDIyNCBTYWx0ZWRfX4k5awcnxMBbu 52elSrbywlA0EfbdsfXnfaW4fsbwrmQKL9edNc8BV8QEsHXreCndai+ysfqheKNyU0qd/o7XZ6X hdn/pkw5O9PEb/gRGD92pyfszX1F01o= X-Authority-Analysis: v=2.4 cv=LseiDHdc c=1 sm=1 tr=0 ts=6a9f1d52 cx=c_pps a=MTSHoo12Qbhz2p7MsH1ifg==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=VwQbUJbxAAAA:8 a=ee_2aqc6AAAA:8 a=EUspDBNiAAAA:8 a=ci5OYPSUn-HddWIvASoA:9 a=QEXdDO2ut3YA:10 a=GvdueXVYPmCkWapjIL-Q:22 a=VOpmJXOdbJOWo2YY3GeN:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTA3MDIyNCBTYWx0ZWRfX4QU7FrTRYPVf J0Yvlh2RThz1EUUQyGtihuU41ObAnQn92GS2mU7knRga0ov63xHKG10kbKRXMQxw7u0Uj+Nf1aN 5VAzG9Nn77BTGbZ0YnmrMbjK4wLf+XfTpnQbskqOQmRiovTGzhtCR4arYWI+TDy8G0q+IviYHgn DRJRp49BMnMIlHD99ceiP6RWD1Mp2YnlC1U4623RE42wBNe6puGUCOvn/No0AkU50TOwNYSQdHI Nir0oTVnbCwOzKaceSzx2MeNL8R0C1UoU20ff6z3DcJ3xyR8ntkuFOwXi4zdJgLPMuXfZkjwHXq rcwfLm+I4IbAVctQhiDDbQQI2gILxQXacg8QZRdHjWkUMQWHpY9QGFM2NrG3bRcEZF8/lpJdAjM 1u0Tq0cZ2GjdXgh5qeMqa9dhsT2PsGl8dCHfiUU2t4V3/sq8/Flo4jMY4MCmwqWUSPU5BBIrsm3 HhlFB4Ko8lztQVDzrvg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-07_05,2026-09-07_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 impostorscore=0 spamscore=0 lowpriorityscore=0 suspectscore=0 adultscore=0 bulkscore=0 malwarescore=0 priorityscore=1501 clxscore=1011 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2609070224 This series incorporates feedback from the RFC and adds the dt-bindings and driver changes required to enable Gigabit Ethernet support on the Qualcomm Shikra SoC. DTS changes will be sent out separately. The series has grown from the RFC and can be broadly divided into three areas: PHY power supply management, proper support for RGMII ID mode in the Qualcomm ETHQOS driver, and Shikra specific clock dependencies required for NOC access. 1. Shikra EVK boards use a GPIO-gated regulator for the DP83867 PHY power supply. Patches 1 and 2 add supply management to the DP83867 driver so the PHY driver holds the regulator vote at probe. These changes are largely inspired by similar work done for the QCA8081 PHY: https://lore.kernel.org/netdev/20260605010022.968612-3-elder@riscstar.com/ 2. The generic RGMII fixes from the RFC remain. As suggested, an additional patch now emits a warning (patch 6) when the legacy "rgmii" or "rgmii-txid" modes are detected. A new change (patch 7) now initialises the RGMII link clock at SPEED_10 on probe instead of SPEED_1000, dropping the unnecessary 250 MHz source before link up. 3. NOC clock voting (patch 8) now uses dev_pm_opp_set_rate() so the required VDD_CX performance state can be propagated through the clock controller. The Shikra binding (patch 3) is updated accordingly: an if/else block constrains Shikra to exactly six clocks and requires operating-points-v2. Testing: The following boards have been tested with this new (proper) handling for RGMII ID: - Shikra CQ/IQ variants (with the TI DP83867 PHY) - QCS615 Ride (with the Micrel KSZ9031 PHY) - Talos EVK (again with the Micrel KSZ9031 PHY) - Talos Lyra EVK (TI DP83867 PHY, this board also has a GPIO-gated regulator for the PHY power supply) Changes in v2: - Collected Maxime's Reviewed-by tags. - Updated Patch 9's commit message to explain the double enable vote on the "stmmaceth" clock. Open to discussion on how best to handle this. - Wrapped regulator vote for dp83867 inside an #ifdef CONFIG_OF check to avoid adding an unnecessary 200 ms delay on systems where devm_regulator_get_enable_optional() would return 0. The change now mirrors the QCA8081 patch -- Sashiko. - Fixed ethqos_set_clk_tx_rate() to double the rate for all PHY modes other than RGMII-ID -- Sashiko. - Moved warning about the use of non RGMII-ID mode to probe instead of fix_mac_speed to avoid spamming during each link up event -- Sashiko. - Fixed error unwind drops OPP before stopping link_clk -- Sashiko. - Fixed OPP vote set in probe not cleaned up on error -- Sashiko. - Link to v1: https://lore.kernel.org/netdev/20260904-shikra_ethernet-v1-0-a50765996035@oss.qualcomm.com/#t Changes since RFC: - Two new patches add supply management for the DP83867, replacing the gpio-hog approach for PHY power -- Konrad, Andrew. - Use dev_pm_opp_set_rate() for the NOC AXI clock and require operating-points-v2 for Shikra -- Konrad. - Warn on legacy "rgmii"/"rgmii-txid" to encourage DTB migration -- Andrew, Maxime. - Updated binding document for qcom,ethqos and snps,dwmac. - Drop the duplicate "axi" clock from Shikra's DT; use "axi-noc" and "pcie-tile-axi-noc" as the only additional clock-names. - Initialise RGMII link clock at SPEED_10 rather than SPEED_1000 on probe. - Link to RFC: https://lore.kernel.org/netdev/20260612-shikra_ethernet-v1-0-f0f4a1d19929@oss.qualcomm.com/ Signed-off-by: Mohd Ayaan Anwar --- Mohd Ayaan Anwar (9): dt-bindings: net: ti,dp83867: add supply properties net: phy: dp83867: add regulator supply management dt-bindings: net: qcom,ethqos: add qcom,shikra-ethqos compatible net: stmmac: qcom-ethqos: convert ethqos_rgmii_macro_init() to void net: stmmac: qcom-ethqos: fix RGMII_ID mode to use DLL bypass net: stmmac: qcom-ethqos: warn about legacy RGMII PHY modes net: stmmac: qcom-ethqos: set initial RGMII link clock to lowest speed net: stmmac: qcom-ethqos: add per-platform NOC clock voting net: stmmac: qcom-ethqos: add Shikra EMAC support .../devicetree/bindings/net/qcom,ethqos.yaml | 50 ++++- .../devicetree/bindings/net/snps,dwmac.yaml | 2 + .../devicetree/bindings/net/ti,dp83867.yaml | 14 ++ .../ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 218 +++++++++++++++++++-- drivers/net/phy/dp83867.c | 33 ++++ 5 files changed, 300 insertions(+), 17 deletions(-) --- base-commit: 7042c8c193e5d634198b7c766bb3a01c8e3ee0e2 change-id: 20260903-shikra_ethernet-ae7bee5e804e Best regards, -- Mohd Ayaan Anwar