From patchwork Mon Feb 24 09:50:08 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhinaba Rakshit X-Patchwork-Id: 867976 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 14AEA23F406; Mon, 24 Feb 2025 09:50:52 +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=1740390654; cv=none; b=ri1cxIMdsLs+LjR9Zny58DepNE+7LnKVx6GD9ZOlwGtLqK699+v9mTEM4/nRWJSXw/Diix+GOc26CIfRNoLAL7BbiJm/lNLjuZoR28vZWuiTDoZ0MV9G/bA/uDb9dRpACLKA1uci5MCxuPkyyuMBQrBoVYWK3RjqfL5OhmIstDI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740390654; c=relaxed/simple; bh=tgRDQ2JKVnAJyXX23bN+d55dM+weA7AwYagNUyqPUYs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=e+wE3Zc1gbBsSP8VR23m6+Wkr16typ0d5KX5womA41ITMYxOnrprhmUADyJNZx44OdDnbnX2ib5vI4fPWNbDKa1kcSC4vn17OgNYJE6+YhgGunuQRsjGlwXhEbisH8WLGvUtgIq+CQyTnexAGHjbShcQ/TRiu1Qn3gWfzO5ySiQ= 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=ZwgxFpUC; 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="ZwgxFpUC" 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 51O9grDl011838; Mon, 24 Feb 2025 09:50:46 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= x8aYZz6VYviQdIbFB0TbUDpCRGxpHhi/t62FVrdIaG8=; b=ZwgxFpUC0QWZ+98O bBnSADU5zMLf/B1aupPyahi6PJzHsIdrk7Gojp1FhVqC4IR+JMrl0AyCT+SXN6iC HAePiMmfOPhFSW4pynmO3aOp0Z63JygGT/dfem9EpoRaSV9BEwWmwPSJbV+sXGAl /C1SadWWl5hRFYTvHps3exex7evsoBV5R2uk79gbNpp0dCCoTVvF2m8ODMPFUYdI mXKE+WTwFjJd5DclITNECB+grBBbT6o9iPWQFzbuzgNcqXhHwzffTCwbq+2jrLzB QKLems+fpZS0o/ZRZpyPnQaSq3R2Dj+wuFoU35bPZllU2KYEzwLIgKrnhNPeDeZh /99aeA== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 44y7rjvcam-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Feb 2025 09:50:45 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA05.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 51O9ojtF019980 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Feb 2025 09:50:45 GMT Received: from hu-arakshit-hyd.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, 24 Feb 2025 01:50:41 -0800 From: Abhinaba Rakshit Date: Mon, 24 Feb 2025 15:20:08 +0530 Subject: [PATCH 1/2] dt-bindings: crypto: qcom,prng: document QCS615 Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20250224-enable-trng-for-qcs615-v1-1-3243eb7d345a@quicinc.com> References: <20250224-enable-trng-for-qcs615-v1-0-3243eb7d345a@quicinc.com> In-Reply-To: <20250224-enable-trng-for-qcs615-v1-0-3243eb7d345a@quicinc.com> To: Herbert Xu , "David S. Miller" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Bjorn Andersson , Konrad Dybcio CC: , , , , "Abhinaba Rakshit" X-Mailer: b4 0.14.2 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: o_HlrHtXKxv-jpDzCo5RaP5RopGwdKim X-Proofpoint-ORIG-GUID: o_HlrHtXKxv-jpDzCo5RaP5RopGwdKim 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-02-24_04,2025-02-24_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 phishscore=0 impostorscore=0 malwarescore=0 adultscore=0 spamscore=0 priorityscore=1501 mlxlogscore=905 lowpriorityscore=0 suspectscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2502100000 definitions=main-2502240071 Document QCS615 compatible for True Random Number Generator. Signed-off-by: Abhinaba Rakshit --- Documentation/devicetree/bindings/crypto/qcom,prng.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/crypto/qcom,prng.yaml b/Documentation/devicetree/bindings/crypto/qcom,prng.yaml index 5e6f8b6425454d6440a8653567235380d934cc2c..fa22bd42b25009b557cb2b195ca45c0dec73b8b5 100644 --- a/Documentation/devicetree/bindings/crypto/qcom,prng.yaml +++ b/Documentation/devicetree/bindings/crypto/qcom,prng.yaml @@ -17,6 +17,7 @@ properties: - qcom,prng-ee # 8996 and later using EE - items: - enum: + - qcom,qcs615-trng - qcom,ipq5332-trng - qcom,ipq5424-trng - qcom,ipq9574-trng From patchwork Mon Feb 24 10:04:11 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhinaba Rakshit X-Patchwork-Id: 867974 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 D31462505C1; Mon, 24 Feb 2025 10:04:41 +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=1740391483; cv=none; b=oATgtwTLsAoUU4KfJ0pzo2Q+vaKY8sc3d+aDUqcbyv0JTo2oFH//dTiwSfYZ+rpVo3SjV4WKFqlSBY/UlYh7m0DHQp5pDdb71lfVQGMc39mxAPwP5IkpdnUmX0I7XeMBVXjJQUzT4rOGJd2+C3neFGBjDK5nHqFMmgB70q2GD8Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740391483; c=relaxed/simple; bh=mFunrZPgxc5g4pR+EJ2Jiatq4BCm1HE8m4IUBB7i918=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=QvVYCejqNmLoT2sy6swTR1u8fqaJdwWh8+Fiag5r5kmIqUGQG72/6d66B9hSNjzeudOkyK1ArMJygEANwpjVHF/59H9b36aM5VmQ8IYKIk3sgxe6S3nhbcMmCvhRpMVyK0c+HSw+znfMWFnPIn4aq+IEP3a21yBdMavHCgzblDY= 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=TBXBMCeq; 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="TBXBMCeq" 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 51OA2Ae9013284; Mon, 24 Feb 2025 10:04:35 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= y9nnaaFTCDpQI4m++vXKSQKo3MkoGZ3T04oZLQIxHj8=; b=TBXBMCeqtZWBme0q 32EqCbIRv8uipbKtMf8DOFjqNiH2ft+WdqJoFlrl2hr2RFqFMzc3CfaqeMuX1Qfo MwUmkx3xmvVn/OtyCsN6P706HVr0MNEwx4NkTzCpMW5JN7wugKWNA0yvd99qx4ft Ov+A3MH6DN2m/V2bUQfUXT0WgpJFJFLQySnztHeaz8Dv5RtD0bw5g86Mawoxvr9a YTg+EY0nanmvn9kgCJsrgsKNpXKXwLiEoPC2v8Sh9UZtJH87a80BQjWgk4DP97wl 61SFMwvi2trKcOA8Ev+nA5qJy2bKo7KioMrO2/+QTZv6wf/23RNHDLwHbgV2WOMj Iq+O9g== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 44y6y6mkme-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Feb 2025 10:04: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 51OA4XVM020693 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Feb 2025 10:04:33 GMT Received: from hu-arakshit-hyd.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, 24 Feb 2025 02:04:29 -0800 From: Abhinaba Rakshit Date: Mon, 24 Feb 2025 15:34:11 +0530 Subject: [PATCH 2/2] arm64: dts: qcom: qcs615: add QCrypto nodes Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20250224-enable-qce-for-qcs615-v1-2-e7c665347eef@quicinc.com> References: <20250224-enable-qce-for-qcs615-v1-0-e7c665347eef@quicinc.com> In-Reply-To: <20250224-enable-qce-for-qcs615-v1-0-e7c665347eef@quicinc.com> To: Thara Gopinath , Herbert Xu , "David S. Miller" , "Rob Herring" , Krzysztof Kozlowski , "Conor Dooley" , Bjorn Andersson , "Konrad Dybcio" CC: , , , , "Abhinaba Rakshit" X-Mailer: b4 0.14.2 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: S0yf1r-Ou6fAS3Eo0epXLAB6KUrRzOzR X-Proofpoint-GUID: S0yf1r-Ou6fAS3Eo0epXLAB6KUrRzOzR 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-02-24_04,2025-02-24_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 spamscore=0 malwarescore=0 phishscore=0 adultscore=0 lowpriorityscore=0 mlxlogscore=688 impostorscore=0 priorityscore=1501 bulkscore=0 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2502100000 definitions=main-2502240073 Add the QCE and Crypto BAM DMA nodes. Signed-off-by: Abhinaba Rakshit --- arch/arm64/boot/dts/qcom/qcs615.dtsi | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs615.dtsi b/arch/arm64/boot/dts/qcom/qcs615.dtsi index f4abfad474ea62dea13d05eb874530947e1e8d3e..25e98d20ec1d941f0b45cc3d94f298065c9a5566 100644 --- a/arch/arm64/boot/dts/qcom/qcs615.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs615.dtsi @@ -1114,6 +1114,31 @@ ufs_mem_phy: phy@1d87000 { status = "disabled"; }; + cryptobam: dma-controller@1dc4000 { + compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0"; + reg = <0x0 0x01dc4000 0x0 0x24000>; + interrupts = ; + #dma-cells = <1>; + qcom,ee = <0>; + qcom,controlled-remotely; + num-channels = <16>; + qcom,num-ees = <4>; + iommus = <&apps_smmu 0x0104 0x0011>, + <&apps_smmu 0x0114 0x0011>; + }; + + crypto: crypto@1dfa000 { + compatible = "qcom,qcs615-qce", "qcom,sm8150-qce", "qcom,qce"; + reg = <0x0 0x01dfa000 0x0 0x6000>; + dmas = <&cryptobam 4>, <&cryptobam 5>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x0104 0x0011>, + <&apps_smmu 0x0114 0x0011>; + interconnects = <&aggre1_noc MASTER_CRYPTO QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; + interconnect-names = "memory"; + }; + tcsr_mutex: hwlock@1f40000 { compatible = "qcom,tcsr-mutex"; reg = <0x0 0x01f40000 0x0 0x20000>;