From patchwork Tue Jan 21 07:54:52 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yijie Yang X-Patchwork-Id: 13945926 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CEBAFC02182 for ; Tue, 21 Jan 2025 08:00:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:CC:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=lKKjys+gGGnp0WGSBxeQlM1KYNgvFJQAf6tDb78EtIU=; b=yHgFUi+/QQ3m76 ml8s58rjxOWpZAlnas/2wZmE7ntLSubqBMD+KO+ajqYnXkpNGW5wGGBUAEQJQIbS3gPG6MhRmLpbT Ic77ZO9qGWO13lBvHG9o8SH31pNQ3Dyqk2pz5Y/WnmC0P9mLe2XT+KwASUoZMlFI+gN7Pycjuud1V cpySrFOHf4/bnCNZMZbItbLmzq8jGivohdnJiH44NOxd7KeNJ9tvp8ZxuRc2udYBe6giSfaBz4+lt OmJ6ayNzmzRoU2mc+FeBVUhKVByObItBl5bh8yF4AB01SXCSQgB8CTQ6OzsW+G/k4wijGVIQNfiSu SIzkYdjaNom3Hjb66ELQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1ta9B2-00000007C9J-2ToV; Tue, 21 Jan 2025 08:00:00 +0000 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1ta978-00000007BS6-2Ixv for linux-arm-kernel@lists.infradead.org; Tue, 21 Jan 2025 07:56:00 +0000 Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50L75eME023981; Tue, 21 Jan 2025 07:55:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=lKKjys+gGGnp0WGSBxeQlM 1KYNgvFJQAf6tDb78EtIU=; b=M6g118mdxOZ/KCNsj5DVM6g35NauvH9VEb13P8 YYE9ocjr83TuiNJhFfIFMHSdRDjzeABFTxuHXGz4E5B8nc1mYPKLm/5blB4823qI 9sAkXvzoqngfptv6878bs3FKertg1vKrKHzZ7HTNCvamtaLPeg50YK9bIs7c+4AO /EEdlCZMZDtRVnCQRyTWczUFaSsPx97++9PQB2ZQ8i8eiaokZbbpKIb/0pjHQaW4 FlzfpyWBkgaQl0wQQFxQjz3ZluZsptHP/rvgpkfnx4IpBpK1E5f8LDycIspe1xEH zJhkOL8Oo26Lpmb+7QnaAjI7qsPrT1wCs6W2VBFy9l18Oh9Q== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 44a6vxr3t9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Jan 2025 07:55:49 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 50L7tmw4009762 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Jan 2025 07:55:48 GMT Received: from yijiyang-gv.ap.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Mon, 20 Jan 2025 23:55:43 -0800 From: Yijie Yang Subject: [PATCH v3 0/4] Enable ethernet on qcs615 Date: Tue, 21 Jan 2025 15:54:52 +0800 Message-ID: <20250121-dts_qcs615-v3-0-fa4496950d8a@quicinc.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAM1Sj2cC/52PzWrDMBCEX8Xo3C3SRjGxKaXvEUrQz7rSwXIjK SIl+N0rKw3k3OOwM9/M3lii6CmxsbuxSMUnv4Qqdi8dM06FLwJvq2bIUQpECTan09mkXuxh6AX SRIqj0awGviNN/tpgx8+qtUoEOqpg3Iag7E41/eeMdL7Utny3371mmWefxy7QNUNt3HOBfPPPl JJqW8bu7XGAZBzN6rGmSBBgB1tXToeBevlRC4wP5rVi39k2yPmUl/jTni2i9ba/hDg8/1UQOFC PekCpdkbbZ1IDFfxveF3XX0PMeN50AQAA X-Change-ID: 20241224-dts_qcs615-9612efea02cb To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Maxime Coquelin , Alexandre Torgue , Bjorn Andersson , Konrad Dybcio , Richard Cochran CC: , , , , , , Yijie Yang X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1737446142; l=1935; i=quic_yijiyang@quicinc.com; s=20240408; h=from:subject:message-id; bh=yeDtVAfZf8pjluEx+AHPEsNHNG8C2eDvzSuz34ecoUM=; b=rLfghjpQK08dAeSEBVLY/pqJOqRDd/k1MH2W3j0PUR3wntCRMMjdiFdYk9UfvQ9zZDgiI+nsB jmXkMsPQxLGCXjsdZL0P8qUrE7HMUNzx1C94ew9dIdFXCf7aBRWP8Ba X-Developer-Key: i=quic_yijiyang@quicinc.com; a=ed25519; pk=XvMv0rxjrXLYFdBXoFjTdOdAwDT5SPbQ5uAKGESDihk= X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 86J6iJ-skcCMiSzZx0ItXHpghhFdjuXp X-Proofpoint-ORIG-GUID: 86J6iJ-skcCMiSzZx0ItXHpghhFdjuXp X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-21_04,2025-01-21_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 lowpriorityscore=0 mlxlogscore=658 phishscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 impostorscore=0 mlxscore=0 spamscore=0 suspectscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2501210064 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250120_235558_615634_C5E289FE X-CRM114-Status: GOOD ( 15.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Correct the definition and usage of phy-mode in both the DT binding and driver code. Add dts nodes and EMAC driver data to enable ethernet interface on qcs615-ride platform. The EMAC version currently in use on this platform is the same as that in qcs404. The EPHY model is Micrel KSZ9031. Signed-off-by: Yijie Yang --- Changes in v3: - Correct the definition of 'rgmii' in ethernet-controller.yaml. - Remove the redundant max-speed limit in the dts file. - Update the definition of 'rgmii' to prevent any further misunderstandings. - Update the phy-mode in the dts file from rgmii to rgmii-id. - Mask the PHY mode passed to the driver to allow the MAC to add the delay. - Update the low power mode exit interrupt from 662 to 661. - Update the compatible string to fallback to qcs404 since they share the same hardware. - Update base commit to next-20250120. - Link to v2: https://lore.kernel.org/r/20241118-dts_qcs615-v2-0-e62b924a3cbd@quicinc.com --- Yijie Yang (4): dt-bindings: net: ethernet-controller: Correct the definition of phy-mode net: stmmac: dwmac-qcom-ethqos: Mask PHY mode if configured with rgmii-id arm64: dts: qcom: qcs615: add ethernet node arm64: dts: qcom: qcs615-ride: Enable ethernet node .../bindings/net/ethernet-controller.yaml | 2 +- arch/arm64/boot/dts/qcom/qcs615-ride.dts | 104 +++++++++++++++++++++ arch/arm64/boot/dts/qcom/qcs615.dtsi | 34 +++++++ .../ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 18 +++- 4 files changed, 152 insertions(+), 6 deletions(-) --- base-commit: 9424d9acada6461344c71ac02f2f3fbcdd775498 change-id: 20241224-dts_qcs615-9612efea02cb prerequisite-message-id: <20250120-schema_qcs615-v4-1-d9d122f89e64@quicinc.com> prerequisite-patch-id: b97f36116c87036abe66e061db82588eb1bbaa9a Best regards,