From patchwork Tue Jul 9 14:13:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tengfei Fan X-Patchwork-Id: 13728140 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 74581C3DA41 for ; Tue, 9 Jul 2024 14:14:57 +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:In-Reply-To:References :Message-ID:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=64pCyR4mrpw0sFbk3DSIa6dAzta6OQJ+6j6xfMdA3TA=; b=f6oa6LQeF5I4mf5jA3IGhYqh9J 6EuHCZJjVgzGqFPDbSh4W5S86+LbaDQRfslYvnHWPtEtDyl5yriYrDQVPKMevLzhqhhInQojo+v96 JGHMzBgnGGQAGzwP4520p2jyu1UIRO+OF0YRiJqabaZZZkukG3bomgf4sPifAkFS4sO0jTfsd7Jeo fjvP+qUZfa6FT0JAQvq442oo/CZ4/9kuFKpLYLoCpyaomxhF9gsRTWlvgm0uu5g1+XxrIaaFuIdrF I2bOkHm8frX34q4NvaiDB+eH1u+zsJix06/Y8xlflUAPUu9/E9Uyt+qXvNvT18D5slGkfw2bI8S2K 2l00Ntcg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRBcC-00000007Wi2-44iv; Tue, 09 Jul 2024 14:14:44 +0000 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRBbR-00000007WS0-1smS for linux-arm-kernel@lists.infradead.org; Tue, 09 Jul 2024 14:13:58 +0000 Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 469D1rDE019898; Tue, 9 Jul 2024 14:13:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 64pCyR4mrpw0sFbk3DSIa6dAzta6OQJ+6j6xfMdA3TA=; b=M1MOeqXgs+YwPMEr Ss50EY8IpEOTYnEo3M+OGOKXdpKJBMMaYm4E5XX8hGcQTh7WBcwXflh9oRrMY6QL 12icJR+4rm+yeg9KH8R7MhXqGAqCGFAJ4dBrhL/FRQUBJRQWwzQRvfgMJEaLMaej vPoUMf6oF28ivIGoiQjF8szKZue1sdgnvoX+HS7lGwmcMdRCXRnrpiPlF78pgsId oubRfcQcdTL0yn15OqODi8YHSv4NFj0XUtrIX0BvaVem6o/DNl+jgoSi4lJLOI31 DQyiC70rWkG5Qrx4R6nElblQ6HdI4GgaSpZqhblFPGnVyjCek3o9C68XrR3jw7Gv cPIC1Q== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 406xpdpcw4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 09 Jul 2024 14:13:48 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.19/8.17.1.19) with ESMTPS id 469EDl98028766 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 9 Jul 2024 14:13:47 GMT Received: from tengfan-gv.ap.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 9 Jul 2024 07:13:40 -0700 From: Tengfei Fan Date: Tue, 9 Jul 2024 22:13:18 +0800 Subject: [PATCH v2 2/2] net: stmmac: dwmac-qcom-ethqos: add support for emac4 on qcs9100 platforms MIME-Version: 1.0 Message-ID: <20240709-add_qcs9100_ethqos_compatible-v2-2-ba22d1a970ff@quicinc.com> References: <20240709-add_qcs9100_ethqos_compatible-v2-0-ba22d1a970ff@quicinc.com> In-Reply-To: <20240709-add_qcs9100_ethqos_compatible-v2-0-ba22d1a970ff@quicinc.com> To: Vinod Koul , "David S. Miller" , Eric Dumazet , Jakub Kicinski , "Paolo Abeni" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bhupesh Sharma , Alexandre Torgue , Giuseppe Cavallaro , Jose Abreu , Maxime Coquelin CC: , , , , , , , Tengfei Fan X-Mailer: b4 0.15-dev-a66ce X-Developer-Signature: v=1; a=ed25519-sha256; t=1720534411; l=1435; i=quic_tengfan@quicinc.com; s=20240709; h=from:subject:message-id; bh=2R8n9swqMPKqhzvq+Sc3kKnhz9/FS9CmryYs9B6BlS4=; b=oKx38eVw7GrDCi1bHx4QEsAwqI0HCvAwj1kpQExD9H0OEZo6g1J7cPRos/pMlQA+aJyb3SrGs Nm7sPdjKeJoDj6nPux11duLot4nSWoMf/h6edRB5LBtsE14Xj45lRVW X-Developer-Key: i=quic_tengfan@quicinc.com; a=ed25519; pk=4VjoTogHXJhZUM9XlxbCAcZ4zmrLeuep4dfOeKqQD0c= X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: zvKZXGsAmNMXrHYU1Ei9yFNnjAk-Gdt6 X-Proofpoint-ORIG-GUID: zvKZXGsAmNMXrHYU1Ei9yFNnjAk-Gdt6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-09_04,2024-07-09_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 impostorscore=0 adultscore=0 suspectscore=0 mlxscore=0 mlxlogscore=999 spamscore=0 clxscore=1015 lowpriorityscore=0 priorityscore=1501 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2406140001 definitions=main-2407090092 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240709_071357_534834_56084368 X-CRM114-Status: GOOD ( 14.32 ) 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 QCS9100 uses EMAC version 4, add the relevant defines, rename the has_emac3 switch to has_emac_ge_3 (has emac greater-or-equal than 3) and add the new compatible. QCS9100 is drived from SA8775p. Currently, both the QCS9100 and SA8775p platform use non-SCMI resource. In the future, the SA8775p platform will move to use SCMI resources and it will have new sa8775p-related device tree. Consequently, introduce "qcom,qcs9100-ethqos" to the ethqos device match table. Signed-off-by: Tengfei Fan --- drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c index e8a1701cdb7c..f3c5ae54bd5e 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c @@ -864,6 +864,7 @@ static int qcom_ethqos_probe(struct platform_device *pdev) static const struct of_device_id qcom_ethqos_match[] = { { .compatible = "qcom,qcs404-ethqos", .data = &emac_v2_3_0_data}, + { .compatible = "qcom,qcs9100-ethqos", .data = &emac_v4_0_0_data}, { .compatible = "qcom,sa8775p-ethqos", .data = &emac_v4_0_0_data}, { .compatible = "qcom,sc8280xp-ethqos", .data = &emac_v3_0_0_data}, { .compatible = "qcom,sm8150-ethqos", .data = &emac_v2_1_0_data},