From patchwork Tue Dec 24 03:07:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yijie Yang X-Patchwork-Id: 13919670 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 DDF80E7718B for ; Tue, 24 Dec 2024 03:10:31 +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=rWVngf7vTOYVex5gEAY9FvR1sif9ZzVGKSEoRQHAYvo=; b=aza4E7vMdefdPX0u8en8QUWWxq 7VTc93a5lcy6ewsVxxTE/vMIpOJ0K222Lf8GALNzEvySZN0yjYgpBHOdAXxl7VPcpb2qKmALBCd9h TCNv/llZ+m7ueYIM1AnCwcQS1DiY9VZFxRLnC/+dFMCOGJkXy+2nR8UDpDi1W7rw2oBYCjzxcCH1b wrhXHdIRHt1ILTlXoYGQVsA0hc4Nv7v/fUThkUZ6B6TsM8zG8QV1ZQFDOuTLX6OsWW9ZTu5cJN/aZ NPnKW9iiVZFjRc3TBhwKfl0ls8/EBQgDNq26k3K5iQjM0ynmdal+r6lQsYsPt+CWzgYdy97hAM3ut P8vhFfow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tPvJM-0000000BAHx-2HGg; Tue, 24 Dec 2024 03:10:20 +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 1tPvH9-0000000B9oe-1uby for linux-arm-kernel@lists.infradead.org; Tue, 24 Dec 2024 03:08:04 +0000 Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BO00ZKm016000; Tue, 24 Dec 2024 03:07:47 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= rWVngf7vTOYVex5gEAY9FvR1sif9ZzVGKSEoRQHAYvo=; b=CeS3xqoZO7xisTJU 8BpoldSP9+G6gHMhiEVZQincPue+xzjDkm2YVvPGFoH8ZVLmBUzGhsAj8biAK8on MbzYnmInNgEpJgWO/Ffo+u2nrWaxXVcY0ksWxZRgFUYSvdD7VlGEaY8cNA4P3DTQ +X4yos6GBKLSRfL4w5IDmqDit4PjeZ1zLgg8wky6+HMuWvcif6SFeZAwJUX5Sg/o bVSxlHNAYKW3ngAn5Po/AEduC4x+iw0uwcmAzIEgC2EUNQ/MgtQSrKhH+IPFJcy5 jgWQBA2k8m9lnJh8741z5+NmrIliR3DEIpZlMBKuwCgaMVHKohYkfbEIGqZJL4DI 9N1h9w== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 43qj1qrcgb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 Dec 2024 03:07:47 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 4BO37klL018486 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 Dec 2024 03:07:46 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, 23 Dec 2024 19:07:40 -0800 From: Yijie Yang Date: Tue, 24 Dec 2024 11:07:01 +0800 Subject: [PATCH v2 1/3] dt-bindings: net: qcom,ethqos: Drop fallback compatible for qcom,qcs615-ethqos MIME-Version: 1.0 Message-ID: <20241224-schema-v2-1-000ea9044c49@quicinc.com> References: <20241224-schema-v2-0-000ea9044c49@quicinc.com> In-Reply-To: <20241224-schema-v2-0-000ea9044c49@quicinc.com> To: Vinod Koul , Andrew Lunn , "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: , Krzysztof Kozlowski , , , , , , X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1735009653; l=1391; i=quic_yijiyang@quicinc.com; s=20240408; h=from:subject:message-id; bh=/VMItlwpHEXpGvrvqSDfxrRyzHap72Aup3wx/u9EWlo=; b=WZnSvTNz/5y4TEFyzC8f8oCe3pOPFbm4Wku/vTlq8A94CoOpMT/bAg8UeKzdbU0S0clUvXf3C dUeanByLkjGD1rU8P9uuC8LtmbGZ+K7s1kqShYRxj8d/l1sQrl4vQuR 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: sf0fzc5iOCwdAsL_bnZNBkR7Xyp0bXgu X-Proofpoint-ORIG-GUID: sf0fzc5iOCwdAsL_bnZNBkR7Xyp0bXgu X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 spamscore=0 suspectscore=0 adultscore=0 phishscore=0 mlxlogscore=952 priorityscore=1501 malwarescore=0 clxscore=1015 impostorscore=0 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412240024 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241223_190803_515164_078292F9 X-CRM114-Status: GOOD ( 11.15 ) 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 The core version of EMAC on qcs615 has minor differences compared to that on sm8150. During the bring-up routine, the loopback bit needs to be set, and the Power-On Reset (POR) status of the registers isn't entirely consistent with sm8150 either. Therefore, it should be treated as a separate entity rather than a fallback option. Fixes: 32535b9410b8 ("dt-bindings: net: qcom,ethqos: add description for qcs615") Signed-off-by: Yijie Yang --- Documentation/devicetree/bindings/net/qcom,ethqos.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/net/qcom,ethqos.yaml b/Documentation/devicetree/bindings/net/qcom,ethqos.yaml index 0bcd593a7bd093d4475908d82585c36dd6b3a284..576a52742ff45d4984388bbc0fcc91fa91bab677 100644 --- a/Documentation/devicetree/bindings/net/qcom,ethqos.yaml +++ b/Documentation/devicetree/bindings/net/qcom,ethqos.yaml @@ -23,12 +23,9 @@ properties: - enum: - qcom,qcs8300-ethqos - const: qcom,sa8775p-ethqos - - items: - - enum: - - qcom,qcs615-ethqos - - const: qcom,sm8150-ethqos - enum: - qcom,qcs404-ethqos + - qcom,qcs615-ethqos - qcom,sa8775p-ethqos - qcom,sc8280xp-ethqos - qcom,sm8150-ethqos From patchwork Tue Dec 24 03:07:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yijie Yang X-Patchwork-Id: 13919671 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 8C133E7718B for ; Tue, 24 Dec 2024 03:11:43 +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=XnDTHkNtPDeGfy9Saf30rNzJ7NN5oQ4IQjxVX59tzy4=; b=u5lH3xk4bqX6qcI041ji4y3Qe7 vEVuXr4sFCs3lsRot441fz3YMT6KBWIIAUftlCOHeLOG8TAVZPYvsnzdC8k4r/8w+AuJMC5oRjNbp a4hPiE1Kk05Ug9Hqd0keyS0FARAk+dbSJ8ArdcaPZXCU+m1pJTz4cKL6C8rYxmjj9FTcHUqlB9sS9 8PrwkNMnVg2qbdOlcF7vdxI1J9CnSG/y2Wi2xZ1X6i24f5XzxGRpEJOTLDo9uzOVR6dz9GqnNbC1B YQupO38hsfhRrHuvrOqhwlGZuN1jpj4pUSRCEvWRIUSPcoGXi+TDflX8KiFp7lQcTJTE6U32OHCvk Q6pj8Gfw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tPvKW-0000000BAPA-12YO; Tue, 24 Dec 2024 03:11:32 +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 1tPvHE-0000000B9qP-3GPK for linux-arm-kernel@lists.infradead.org; Tue, 24 Dec 2024 03:08:09 +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 4BNHSrKN022407; Tue, 24 Dec 2024 03:07:54 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= XnDTHkNtPDeGfy9Saf30rNzJ7NN5oQ4IQjxVX59tzy4=; b=jsF8LdnWFUg2Tg/W 4k0Snw7dU+d0CoWwDuuTxJbgQp/DgE/Hs3/w8uFboN1fsHrPygodVgNQUkAiymut mjRD173AkQjWFZ/cOp9XsUg40s511aK7Uvb1dBpUripjOQLXRgzuJJBuKyvjoPbr vk5iKtgBne3rIAVxycpeoIokOXRp2bUQSkmOHO3ULwa/fcjvXcEojLMps7oTRQbG 4gAOwUxgzn8E3UJJq8awbedTfQPR8jmqYY7r/yQjUSwhipCVIrQzkQz00KchXZbY xtehAAD7YDTgNLZCOqbR5XTLM9JI5/aMIH4TGP0D9wtF8r44e9U3JElXfI5vm3PW QRykOw== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 43qca0170y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 Dec 2024 03:07:53 +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 4BO37rjB015050 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 Dec 2024 03:07:53 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, 23 Dec 2024 19:07:46 -0800 From: Yijie Yang Date: Tue, 24 Dec 2024 11:07:02 +0800 Subject: [PATCH v2 2/3] dt-bindings: net: snps,dwmac: add description for qcs615 MIME-Version: 1.0 Message-ID: <20241224-schema-v2-2-000ea9044c49@quicinc.com> References: <20241224-schema-v2-0-000ea9044c49@quicinc.com> In-Reply-To: <20241224-schema-v2-0-000ea9044c49@quicinc.com> To: Vinod Koul , Andrew Lunn , "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: , Krzysztof Kozlowski , , , , , , X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1735009653; l=1149; i=quic_yijiyang@quicinc.com; s=20240408; h=from:subject:message-id; bh=u7rxgoC9B/7rS3oQxWd41tk1pmohU3HeHSdKpUR5MUE=; b=OToDaCoTEVFkKynO5JQ/7BTei2xXs3R9Mqu9U0fPekh9LWMOXElqsb1q3MpBD/h9p//8LfpN7 3SwtTPN6mEXCs5U0vMbJ/2idWHZRfCeSu0jbKzlAniW6ayP7BCBI0hz 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: X2gMiTV-WEFb0Px3Mz0TPaDSZBRNTCvw X-Proofpoint-ORIG-GUID: X2gMiTV-WEFb0Px3Mz0TPaDSZBRNTCvw X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 priorityscore=1501 mlxscore=0 suspectscore=0 mlxlogscore=704 phishscore=0 spamscore=0 lowpriorityscore=0 bulkscore=0 impostorscore=0 clxscore=1015 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412240023 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241223_190808_847131_F0255EE7 X-CRM114-Status: UNSURE ( 9.29 ) X-CRM114-Notice: Please train this message. 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 necessary compatible entries for qcs615 to ensure its validation. Signed-off-by: Yijie Yang --- Documentation/devicetree/bindings/net/snps,dwmac.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml index eb1f3ae41ab9ab4536a110f6fb3e2facb0225549..658d4479aa4864d0e193f03d65eea8b54e1490df 100644 --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml @@ -68,6 +68,7 @@ properties: - loongson,ls2k-dwmac - loongson,ls7a-dwmac - qcom,qcs404-ethqos + - qcom,qcs615-ethqos - qcom,sa8775p-ethqos - qcom,sc8280xp-ethqos - qcom,sm8150-ethqos @@ -622,6 +623,7 @@ allOf: - ingenic,x1830-mac - ingenic,x2000-mac - qcom,qcs404-ethqos + - qcom,qcs615-ethqos - qcom,sa8775p-ethqos - qcom,sc8280xp-ethqos - qcom,sm8150-ethqos From patchwork Tue Dec 24 03:07:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yijie Yang X-Patchwork-Id: 13919672 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 B1395E7718D for ; Tue, 24 Dec 2024 03:12:52 +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=tIuhqDedNNE+RKLFjY7UPz+oQyiGEu+Qqb7U8Kyo+Bc=; b=znHxhWd/lb/J+2QLrbEWLruu16 q8QDGJvf6dEPDVmiOkrGSFJLp7XsEsUAN4MiGrSY7aZ2s0kn58Fqd/vClW0wq3Af0B9pqPdLjqnUh xrWT9lTbXHV8vF6j++IOee0NkVlrLcldiXK1K0Xz5XKu5WMvNGx4/h72Nta5WN2ZG/PiINJGopqRD YEX0xHPo/WWNBp0aeCIQAOYb5GJqSZMYu9971qGYpf3EaTKJEdtXaLdrtVO9wjSay2zOMISRVwMou 7XEXt1aPm+YMSuqw4QrSyiiFm5lT0F1FI0GadAO8c5vtlDoe5TdcqMLdfM+HxyHSk0dT+G6yund90 DXdC7ZOw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tPvLe-0000000BAVF-3vRU; Tue, 24 Dec 2024 03:12:42 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tPvHF-0000000B9rH-3J10 for linux-arm-kernel@lists.infradead.org; Tue, 24 Dec 2024 03:08:11 +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 4BNNU9fg013669; Tue, 24 Dec 2024 03:08:00 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= tIuhqDedNNE+RKLFjY7UPz+oQyiGEu+Qqb7U8Kyo+Bc=; b=ACktODu10Z4pDB75 Q9oRTf24VGYw0jakS5ZiBFaXGhAQJQLh1fam7tvqSbjMQRyoWG/P0oE5mLf1ra6N eZZVvU0B25tmDan7nh5axSC/7TYlrg1Q7G5QMUp9O/pNknla+IhVKWS/d9WJJBd5 kVqiPpFeYY/DR9lTlibaJ44Fd+LHVeu9Uihb41mu1e5xnQYJhyHJZEbqOz22qeJC hFV31VhvNXSnvL+UqyloXsCp+CmfYn5gcykjtBIi7b8o0Kb4pGXSap5MgSWNw2RV osHTjlh1QzBs+dSOWJpKfFwZy4PBkiKsjRGSIT2eiyQuIsCo7N+Qzy0gidNPrxUZ 14PCXg== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 43qhk60fkp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 Dec 2024 03:08:00 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA04.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 4BO37xiR010699 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 Dec 2024 03:07:59 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, 23 Dec 2024 19:07:53 -0800 From: Yijie Yang Date: Tue, 24 Dec 2024 11:07:03 +0800 Subject: [PATCH v2 3/3] net: stmmac: dwmac-qcom-ethqos: add support for EMAC on qcs615 platforms MIME-Version: 1.0 Message-ID: <20241224-schema-v2-3-000ea9044c49@quicinc.com> References: <20241224-schema-v2-0-000ea9044c49@quicinc.com> In-Reply-To: <20241224-schema-v2-0-000ea9044c49@quicinc.com> To: Vinod Koul , Andrew Lunn , "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: , Krzysztof Kozlowski , , , , , , X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1735009654; l=2068; i=quic_yijiyang@quicinc.com; s=20240408; h=from:subject:message-id; bh=V7lalbixoBGJlxP3pf4NJMaXZaZuAQMqMIc+vgd+3BI=; b=/PcuxJDv44ngfb0NCh2hUJrxMhlHV2nGZecD0Mo6JagRjHC7h5siDtAVSLzQTi1Ss+MM5r4f1 6Fp6PFa1WtZD+7qhygEim3XOkb6FyHsQ/oQz4KfgP846x8rU4HdpzlA 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-ORIG-GUID: b9eCqun4IQgnbx5uL1MRRdjY8sp8VVgm X-Proofpoint-GUID: b9eCqun4IQgnbx5uL1MRRdjY8sp8VVgm X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 mlxscore=0 impostorscore=0 suspectscore=0 lowpriorityscore=0 spamscore=0 clxscore=1015 adultscore=0 mlxlogscore=999 priorityscore=1501 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412240024 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241223_190809_987708_2C16A156 X-CRM114-Status: GOOD ( 13.10 ) 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 qcs615 uses EMAC version 2.3.1, add the relevant defines and add the new compatible. Signed-off-by: Yijie Yang --- 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 901a3c1959fa57efb078da795ad4f92a8b6f71e1..8c76beaee48821eb2853f4e3f8bfd37db8cadf78 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c @@ -249,6 +249,22 @@ static const struct ethqos_emac_driver_data emac_v2_1_0_data = { .has_emac_ge_3 = false, }; +static const struct ethqos_emac_por emac_v2_3_1_por[] = { + { .offset = RGMII_IO_MACRO_CONFIG, .value = 0x00C01343 }, + { .offset = SDCC_HC_REG_DLL_CONFIG, .value = 0x2004642C }, + { .offset = SDCC_HC_REG_DDR_CONFIG, .value = 0x00000000 }, + { .offset = SDCC_HC_REG_DLL_CONFIG2, .value = 0x00200000 }, + { .offset = SDCC_USR_CTL, .value = 0x00010800 }, + { .offset = RGMII_IO_MACRO_CONFIG2, .value = 0x00002060 }, +}; + +static const struct ethqos_emac_driver_data emac_v2_3_1_data = { + .por = emac_v2_3_1_por, + .num_por = ARRAY_SIZE(emac_v2_3_1_por), + .rgmii_config_loopback_en = true, + .has_emac_ge_3 = false, +}; + static const struct ethqos_emac_por emac_v3_0_0_por[] = { { .offset = RGMII_IO_MACRO_CONFIG, .value = 0x40c01343 }, { .offset = SDCC_HC_REG_DLL_CONFIG, .value = 0x2004642c }, @@ -898,6 +914,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,qcs615-ethqos", .data = &emac_v2_3_1_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},