From nobody Thu Nov 21 16:47:37 2024 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 94A2914901B; Mon, 18 Nov 2024 06:18:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731910724; cv=none; b=rMXOg73jyDGBdCHsP92pk4KullEAtrjuGeIpuUzcrNo3/iklYjA6q7KwDX1yZMKIlr/0YjqNWNAmXL+YO+PcqEVTblsVK2U3QYtFL65j/caV7gOc0fDop98RdnhHT7qIFON1zfSjNh+JVf/PwU7KH2Pa3pL3T3OGw464mgaIGMA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731910724; c=relaxed/simple; bh=/VMItlwpHEXpGvrvqSDfxrRyzHap72Aup3wx/u9EWlo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=PHOIyz4YkbjJXxFWROUMq74i1wp+aeH1X8vazsh8+Vv0TVksfSt5fE/4zXu03QLURky1/UNNhLMLx0H3bCUPJrIdTGj80M9oAbHcQ3sEv//sKsk1spl14I71b2TBg9C+9F9SlVK+eQm3aUW/4nQGpjNgGixDZhlJP+CG/bwHyPU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=mCho3Vt/; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="mCho3Vt/" 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 4AI5S5q4001763; Mon, 18 Nov 2024 06:18:20 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=mCho3Vt/5yQc0fP1 ak0MiCSan+i8qRrw75W0J9TVqz2LWegXxTjhCphRGZvfxN5Lwhk52WRkUpa1N8vT lB9+TZu9/wK9gTGCnso0PZeLDHyLCV3WedNqjsA1eGNK2uqmL5SgJ389T1cXJS4X wFPWxR33F+64iBPOBFIDMyv9NStTyju71nHmXnsKRfDelDXHtIOqW37zNNKzvbn7 M8j5QyMTrTeXYRmsvxI0JeXzy2zUnfgqjAZBJqWkKSuqAszTn2ouamNgGIGE5jTs x+kDxWk515YO32KY5lnQxI91vxnhu8hpDxOlg++nSvzNwP7kIGj0JqhBfP860Iqe 58DOVg== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 42ycuf9jdw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 18 Nov 2024 06:18:20 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA03.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 4AI6IJHW015106 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 18 Nov 2024 06:18:19 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; Sun, 17 Nov 2024 22:18:12 -0800 From: Yijie Yang Date: Mon, 18 Nov 2024 14:16:50 +0800 Subject: [PATCH 1/3] dt-bindings: net: qcom,ethqos: revise description for qcs615 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-ID: <20241118-schema-v1-1-11b7c1583c0c@quicinc.com> References: <20241118-schema-v1-0-11b7c1583c0c@quicinc.com> In-Reply-To: <20241118-schema-v1-0-11b7c1583c0c@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=1731910683; l=1391; i=quic_yijiyang@quicinc.com; s=20240408; h=from:subject:message-id; bh=/VMItlwpHEXpGvrvqSDfxrRyzHap72Aup3wx/u9EWlo=; b=fYrVMSRn/6skEZ/FB1RnOmQEbOtVDkIqzjZGXfvVLjW6/d1Q4TtWXFBkijgf14TdePMhcnhoh 0o4FIU0DEg9BLmRrkEtmcGbco8TKXZ6EJ1GfoKNz8vwKdu8OvN8zdHw X-Developer-Key: i=quic_yijiyang@quicinc.com; a=ed25519; pk=XvMv0rxjrXLYFdBXoFjTdOdAwDT5SPbQ5uAKGESDihk= X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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: ZypiISRDyohw9aiUCyv4iWE9CHFV2h1N X-Proofpoint-GUID: ZypiISRDyohw9aiUCyv4iWE9CHFV2h1N 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 malwarescore=0 clxscore=1015 mlxlogscore=958 phishscore=0 spamscore=0 impostorscore=0 adultscore=0 bulkscore=0 lowpriorityscore=0 priorityscore=1501 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2411180051 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 qc= s615") 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/Docum= entation/devicetree/bindings/net/qcom,ethqos.yaml index 0bcd593a7bd093d4475908d82585c36dd6b3a284..576a52742ff45d4984388bbc0fc= c91fa91bab677 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 --=20 2.34.1 From nobody Thu Nov 21 16:47:37 2024 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 382E714F123; Mon, 18 Nov 2024 06:18:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731910728; cv=none; b=kKKB5fmcrYKK/tnYfryvmP0gsZFd7Lq1pKeUqTYjABTsW8TsSO4Q5vK4aAGvnvcj69ZDtZmj4GtgclKJdzv3cCLZ0Yl325OLlGlZKMlTnUFeOi2ipQ3kXFz0wLF53dncWW7XuvX+C9OMGdl40PSDVLKfq3JDbKAXxVEwUnYLEh0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731910728; c=relaxed/simple; bh=u7rxgoC9B/7rS3oQxWd41tk1pmohU3HeHSdKpUR5MUE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=hUhBWJ1Dl0cpf7mmMzk1IDvrnnvR9BNqSdws6bBG84qDtN+9WsP5ahK8Wnzz/xThF9hWe2kYaPB1zdumgNhblAb8v3HHqmlOfUn6pSzgd/UNVJHEXhbgXVS3iWG//nCxOCjZL5w3Zvq4LeWjZHD7wPtuiQbIIstk5IQ6ts6C4Vk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=J9pj7UDH; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="J9pj7UDH" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4AI5Rpqq028342; Mon, 18 Nov 2024 06:18:27 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=J9pj7UDHISLPvKZ5 DQuGhKo1rRdm9WPmNjrCQnAbZNtZkI54z/nE32TQnkp+BdHG/fiX9Lk8ROCNMh8W AKMeWy4wZ6IwmYno5Ik4kpukhyl9/mDDt31qZAhTIp7izaiY0yPj8wu+OHO0M1Ar jde45oQ8wZyDUtC2WGBFgQBPz4Y4rUhFyzbaFBjUSBKPH9Eu18jF+l/Yw2e1i20W XudF/0xc6UNCHdjy1ip4Z5ljkFjUrSoYGWSilx189NrDAnfta0UWKx+bHFJvzV12 J5n0zbkjZXnOdZCVr/QaDrXXZRijBokA0sKYzc6CHkH0tSbW6dtBH643+NGoqc8C AUkQyg== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 42xkt9un2c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 18 Nov 2024 06:18:27 +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 4AI6IQs7030985 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 18 Nov 2024 06:18:26 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; Sun, 17 Nov 2024 22:18:19 -0800 From: Yijie Yang Date: Mon, 18 Nov 2024 14:16:51 +0800 Subject: [PATCH 2/3] dt-bindings: net: snps,dwmac: add description for qcs615 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-ID: <20241118-schema-v1-2-11b7c1583c0c@quicinc.com> References: <20241118-schema-v1-0-11b7c1583c0c@quicinc.com> In-Reply-To: <20241118-schema-v1-0-11b7c1583c0c@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=1731910684; l=1149; i=quic_yijiyang@quicinc.com; s=20240408; h=from:subject:message-id; bh=u7rxgoC9B/7rS3oQxWd41tk1pmohU3HeHSdKpUR5MUE=; b=Z+XMngnNIwlUmy6XZYzFn88sw8RVMVoS1H21IwWHLoDxq73InjJ1pZ7UxmvhHGdNCq1jmYxLN 1rIpPBEBOHiCAXanHD8ZlVTkq36hXNoH8ioEnk407LMlQZcILHgiGVx X-Developer-Key: i=quic_yijiyang@quicinc.com; a=ed25519; pk=XvMv0rxjrXLYFdBXoFjTdOdAwDT5SPbQ5uAKGESDihk= X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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: vI8mdZU9bzj93zBCs62feoWAF8F7Dn4e X-Proofpoint-ORIG-GUID: vI8mdZU9bzj93zBCs62feoWAF8F7Dn4e 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 malwarescore=0 priorityscore=1501 clxscore=1015 adultscore=0 lowpriorityscore=0 mlxscore=0 impostorscore=0 suspectscore=0 spamscore=0 phishscore=0 bulkscore=0 mlxlogscore=683 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2411180050 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/Docume= ntation/devicetree/bindings/net/snps,dwmac.yaml index eb1f3ae41ab9ab4536a110f6fb3e2facb0225549..658d4479aa4864d0e193f03d65e= ea8b54e1490df 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 --=20 2.34.1 From nobody Thu Nov 21 16:47:37 2024 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 A3F851474BC; Mon, 18 Nov 2024 06:18:53 +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=1731910735; cv=none; b=WDJ+OiXAVmUOMnsfFaZqEkw9KDFgDpDpEPfrK0d95EzkBbNaTtxOU3RpVWoQkYziftTVs9xHruIV/qn8xkxEXC0AsXfcgqG2SQRS5C1LYN0W3zfmBR6+R0R40hQydog4ZA7KturKKQyvYmu1zfMiJyomLwGUkn//T+QEM7UgxY4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731910735; c=relaxed/simple; bh=V7lalbixoBGJlxP3pf4NJMaXZaZuAQMqMIc+vgd+3BI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=cwyKn5FDXKqFhOqHOTVdCfO5oj/cDzgzJuHem09jaY6CfCFbxhDxMImnMEowx3NYR9LYVWjQWc5jV2Zb03hafUMq6TnLtVgs0Fu/cvAVEfzs704p8q1Mgak19z7CHYp8d2OeZqpsV8cxOQ0jyp8Oiyviv87ancoNhpV9QGmlVcU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=mpu6YmfG; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="mpu6YmfG" Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4AI5Rd5B020056; Mon, 18 Nov 2024 06:18:36 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=mpu6YmfG3px0WoIT HfKVOCKp/Ee1RiUpW6kQEBr8qTykJl4xK/1jXzwNOuRkMVA51+TcKwu43c7hvK8x oEN7ra6fVbe7L27wipVCv7DDGfHgSqgbRyy6oFYHpFXgGwwAB9auWksCEAvZ2gOT 3d6RvmDRyFcb8UKOafltX7UM7p3HNXVoAFgKJj0+1l8PMvzvadps1kVCJpsO/SEt NXs+8iobdHDRj8LjFLoWzUQogd6MEbV6qdRrOJ6mYhpJliL+tghQhzF7ZE88LlMi MoEe1pb5xkBhKa7UY1qu6bVP1IfqVj0kvZIvDXXJwDKbnSw/oBovNQDW563XrVZI kL8XiA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 42xksqkkkf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 18 Nov 2024 06:18:35 +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 4AI6IYst000885 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 18 Nov 2024 06:18:34 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; Sun, 17 Nov 2024 22:18:27 -0800 From: Yijie Yang Date: Mon, 18 Nov 2024 14:16:52 +0800 Subject: [PATCH 3/3] net: stmmac: dwmac-qcom-ethqos: add support for EMAC on qcs615 platforms Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-ID: <20241118-schema-v1-3-11b7c1583c0c@quicinc.com> References: <20241118-schema-v1-0-11b7c1583c0c@quicinc.com> In-Reply-To: <20241118-schema-v1-0-11b7c1583c0c@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=1731910684; l=2068; i=quic_yijiyang@quicinc.com; s=20240408; h=from:subject:message-id; bh=V7lalbixoBGJlxP3pf4NJMaXZaZuAQMqMIc+vgd+3BI=; b=FU8k6QsxVA/681P/NbgYU6+syEkmnFdoOFzhIomrZ48QvJUCsK6mosz415tHOcmMNAj2DqsRa AEefZBFFK0vBhVMxIaQ6UJQsz8mffcQuT1iSNJka9gr6OckqE69K/wY X-Developer-Key: i=quic_yijiyang@quicinc.com; a=ed25519; pk=XvMv0rxjrXLYFdBXoFjTdOdAwDT5SPbQ5uAKGESDihk= X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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: BdP2FsdCWzm30kLl9btzK92UAshlb41s X-Proofpoint-ORIG-GUID: BdP2FsdCWzm30kLl9btzK92UAshlb41s 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 priorityscore=1501 mlxlogscore=999 impostorscore=0 adultscore=0 spamscore=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 clxscore=1015 phishscore=0 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2411180051 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/driv= ers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c index 901a3c1959fa57efb078da795ad4f92a8b6f71e1..8c76beaee48821eb2853f4e3f8b= fd37db8cadf78 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 =3D { .has_emac_ge_3 =3D false, }; =20 +static const struct ethqos_emac_por emac_v2_3_1_por[] =3D { + { .offset =3D RGMII_IO_MACRO_CONFIG, .value =3D 0x00C01343 }, + { .offset =3D SDCC_HC_REG_DLL_CONFIG, .value =3D 0x2004642C }, + { .offset =3D SDCC_HC_REG_DDR_CONFIG, .value =3D 0x00000000 }, + { .offset =3D SDCC_HC_REG_DLL_CONFIG2, .value =3D 0x00200000 }, + { .offset =3D SDCC_USR_CTL, .value =3D 0x00010800 }, + { .offset =3D RGMII_IO_MACRO_CONFIG2, .value =3D 0x00002060 }, +}; + +static const struct ethqos_emac_driver_data emac_v2_3_1_data =3D { + .por =3D emac_v2_3_1_por, + .num_por =3D ARRAY_SIZE(emac_v2_3_1_por), + .rgmii_config_loopback_en =3D true, + .has_emac_ge_3 =3D false, +}; + static const struct ethqos_emac_por emac_v3_0_0_por[] =3D { { .offset =3D RGMII_IO_MACRO_CONFIG, .value =3D 0x40c01343 }, { .offset =3D SDCC_HC_REG_DLL_CONFIG, .value =3D 0x2004642c }, @@ -898,6 +914,7 @@ static int qcom_ethqos_probe(struct platform_device *pd= ev) =20 static const struct of_device_id qcom_ethqos_match[] =3D { { .compatible =3D "qcom,qcs404-ethqos", .data =3D &emac_v2_3_0_data}, + { .compatible =3D "qcom,qcs615-ethqos", .data =3D &emac_v2_3_1_data}, { .compatible =3D "qcom,sa8775p-ethqos", .data =3D &emac_v4_0_0_data}, { .compatible =3D "qcom,sc8280xp-ethqos", .data =3D &emac_v3_0_0_data}, { .compatible =3D "qcom,sm8150-ethqos", .data =3D &emac_v2_1_0_data}, --=20 2.34.1