From patchwork Tue Jul 9 14:13:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tengfei Fan X-Patchwork-Id: 13728139 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 13ACAC2BD09 for ; Tue, 9 Jul 2024 14:14:42 +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=QxviBOcHtKTweIrVl6PYDJKq5IMvSYa9RqiIv7EZ7Wo=; b=ryZsnkql5AgOPHddSy7tO87gWf cmUDX2cWmMJ0pZ6WHKf0/o4vUWlQq8h2PtzJgJ/SLL8XboT4omL8N+e6R/tiIVE+j4PXZU4xd2YoI jO1TEGdHGSt/dJAWtP2EOQa7NgbjMJPg9HWzt50SFK4dmglhiwFfT8Nc2nUFi2oo5YSFvftXJkR7c a52qThJ0CB0lyN7kS8eLw4tyrzOG2MgeABlhCVLEGl7May+oJCRYYfbl59Qm+oF1FfufzYnnrZIXG gRwbGUdhueabMQDgsy+boChGLQG2QOJwF07KYtnP1kCbnR8/Tj2tVyZanIjFFB4/xlf1d7c+iq5GT OmkfJlkA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRBbz-00000007Wdg-3OdO; Tue, 09 Jul 2024 14:14:31 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRBbN-00000007WRH-2GNL for linux-arm-kernel@lists.infradead.org; Tue, 09 Jul 2024 14:13:54 +0000 Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 469BL5MB001714; Tue, 9 Jul 2024 14:13:45 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= QxviBOcHtKTweIrVl6PYDJKq5IMvSYa9RqiIv7EZ7Wo=; b=miid7pF8HhBYq818 yDBq4Tckg+pkdeA+bt2twJQrjiedtU9BU47T8TOrOoTUAnf3cgQ2q1UCNPfv0+Ks 40rwD98nasAWR6k+GwG/19lcu5MQd348hQa3HjMj/nJlecS0z3aEojZlS4JWdCW8 bbf24Uwa/fkQ0IfXYZb/Ta3chcsPd6UJ6sxsBiZIMHzllpCD32ZTiECX3iZqIlbw XgN4yYU9jh1fVInYxtDmalO8c2tuBIZUGi4o0BBJcaN07UIk0yTlTugU0anqVV7F uAxn5L72s2bfyKXJNo3ZCMa5WslBglSfTk0iwdzyXioqHPBzuvBg6VEY0ri7bBE0 x6HihQ== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 406xa66kbj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 09 Jul 2024 14:13:44 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.19/8.17.1.19) with ESMTPS id 469EDhoH027300 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 9 Jul 2024 14:13:43 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:36 -0700 From: Tengfei Fan Date: Tue, 9 Jul 2024 22:13:17 +0800 Subject: [PATCH v2 1/2] dt-bindings: net: qcom,ethqos: add description for qcs9100 MIME-Version: 1.0 Message-ID: <20240709-add_qcs9100_ethqos_compatible-v2-1-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=1943; i=quic_tengfan@quicinc.com; s=20240709; h=from:subject:message-id; bh=hWxXNw2LvBfwVp/xj7dlzgC69xtaJekipNgDxnXIwg4=; b=hU7weGJVJ5p8TecCq9alk7G6SadHqS0cd9UPHQVqfezeMEV1dm/hsN6TTo8qCA9A/vjFos2tc RSRUCaxEfD7Cgs1xNkI8tlOg5kTjKGxprv48wwDcMLfN4KSBwqzO8Df 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: mNer7o5Hyd3WknLGS4qMPyTINNLuU4HX X-Proofpoint-ORIG-GUID: mNer7o5Hyd3WknLGS4qMPyTINNLuU4HX 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 mlxlogscore=716 suspectscore=0 lowpriorityscore=0 impostorscore=0 phishscore=0 spamscore=0 clxscore=1015 adultscore=0 malwarescore=0 mlxscore=0 bulkscore=0 priorityscore=1501 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_071353_734377_1076DBAA X-CRM114-Status: GOOD ( 11.90 ) 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 Add the compatible for the MAC controller on qcs9100 platforms. 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 describe non-SCMI based ethqos. Signed-off-by: Tengfei Fan --- Documentation/devicetree/bindings/net/qcom,ethqos.yaml | 1 + Documentation/devicetree/bindings/net/snps,dwmac.yaml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/net/qcom,ethqos.yaml b/Documentation/devicetree/bindings/net/qcom,ethqos.yaml index 6672327358bc..8ab11e00668c 100644 --- a/Documentation/devicetree/bindings/net/qcom,ethqos.yaml +++ b/Documentation/devicetree/bindings/net/qcom,ethqos.yaml @@ -20,6 +20,7 @@ properties: compatible: enum: - qcom,qcs404-ethqos + - qcom,qcs9100-ethqos - qcom,sa8775p-ethqos - qcom,sc8280xp-ethqos - qcom,sm8150-ethqos diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml index 0ab124324eec..291252f2f30d 100644 --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml @@ -67,6 +67,7 @@ properties: - loongson,ls2k-dwmac - loongson,ls7a-dwmac - qcom,qcs404-ethqos + - qcom,qcs9100-ethqos - qcom,sa8775p-ethqos - qcom,sc8280xp-ethqos - qcom,sm8150-ethqos @@ -611,6 +612,7 @@ allOf: - ingenic,x1830-mac - ingenic,x2000-mac - qcom,qcs404-ethqos + - qcom,qcs9100-ethqos - qcom,sa8775p-ethqos - qcom,sc8280xp-ethqos - qcom,sm8150-ethqos 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},