From patchwork Mon Jan 13 21:16:22 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Melody Olvera X-Patchwork-Id: 13938088 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 E99991C5F06; Mon, 13 Jan 2025 21:16:39 +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=1736803001; cv=none; b=qFGGhe8ECRF6st+zQHlGGkJfjEpQmC5Qptf6i+U1Fq493BkcnEDC7Yd0oOjfM9yw2h052NCObHNN3885w8Z1z6WHTKT+4ojBxMI9/TM0e72ijf9yU03WhPq+IyrLszvhQl5yZoRJjlLn+jCDZVqQjbrnFOR7TNtWiVEbY0jncDc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736803001; c=relaxed/simple; bh=e5YknYzM/zjYcRrzDLyBgklZqTNnSJuPL13W7/uYIFA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=IZ+18ZbPlWb6Dsf3PUzVFU4vZPpG95297N0fp+zjlLj/3xXNGViD2zdyROdHnZ8j9/NftQiFxcfWzEW+0v1/PSEF7gjmj9jFALgK7HykbiJQtbqFVzQptVx2kyxatVsmFBnAnvWcAgQIcv10jJ6iiaCPN0MMMM0fZy9at9f1hjQ= 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=g7Im8lli; 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="g7Im8lli" Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50DKYdDH024115; Mon, 13 Jan 2025 21:16:32 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= ErSJZ+Wg1W1h72pNHEdIndBCuBcxzgsQCV4G3GRfC+s=; b=g7Im8lliSUF3wLx7 iOoFM1O1sWBIYTCR4aaJOF4vwnr7iDeXKRLICByJcLEzrQEC0/Fop4sPLarsjLkW gfBQo0nB8bb8lpxNt66r7M+k2swD46WgFhD0zknszhd7xCO8SM+uE//VeYc/4mhk ERWQdUUK63JBcn7uirUwPDZ6yJxYbLkVEEWw1NWojFhmxHZlhXOlvOxtXsOnrQZz X6EdZeM95avX7TlEJ+AONWEpJThhPR6NBKs2BqGXUTFS1sj9B7fNjRd9LFUCQw+3 YKrYC50+Agt5VDGwo7A0KQncRcCxbUudYhAr3Er3m8e0KmXOmYwTMJCqSCCDm9XJ mv79Kw== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 445a06g29b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Jan 2025 21:16:32 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA02.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 50DLGVls000931 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Jan 2025 21:16:31 GMT Received: from hu-molvera-lv.qualcomm.com (10.49.16.6) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Mon, 13 Jan 2025 13:16:31 -0800 From: Melody Olvera Date: Mon, 13 Jan 2025 13:16:22 -0800 Subject: [PATCH 2/6] arm64: dts: qcom: sm8750: Add QCrypto nodes Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20250113-sm8750_crypto_master-v1-2-d8e265729848@quicinc.com> References: <20250113-sm8750_crypto_master-v1-0-d8e265729848@quicinc.com> In-Reply-To: <20250113-sm8750_crypto_master-v1-0-d8e265729848@quicinc.com> To: Thara Gopinath , Herbert Xu , "David S. Miller" , "Rob Herring" , Krzysztof Kozlowski , "Conor Dooley" , Bjorn Andersson , "Konrad Dybcio" , Vinod Koul , "Satya Durga Srinivasu Prabhala" , Trilok Soni CC: , , , , Melody Olvera , Gaurav Kashyap X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1736802990; l=1573; i=quic_molvera@quicinc.com; s=20241204; h=from:subject:message-id; bh=ZhMoNKSTYOExVTX0fvCm2hdsWbxOpcQX0wt3l3eF7Z4=; b=illTWaBlCnWa7VLhvFFVh3btKdQ0Qj+BqRqYOBIMVMJf3TUVlewVT1vle/3KWfZCuRseUVJc8 HjGp8h1+a9BC+2cSHWdM2y+9Y+EIUeJ6uwZhSuVA6bJIsDFSaIsXEec X-Developer-Key: i=quic_molvera@quicinc.com; a=ed25519; pk=1DGLp3zVYsHAWipMaNZZTHR321e8xK52C9vuAoeca5c= X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 7itbSf8Pym0QG7uwo-vXEJVpLPNtyiS4 X-Proofpoint-ORIG-GUID: 7itbSf8Pym0QG7uwo-vXEJVpLPNtyiS4 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 mlxlogscore=743 priorityscore=1501 malwarescore=0 lowpriorityscore=0 phishscore=0 spamscore=0 mlxscore=0 bulkscore=0 impostorscore=0 clxscore=1011 suspectscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2501130169 From: Gaurav Kashyap Add the QCE and Crypto BAM DMA nodes. Signed-off-by: Gaurav Kashyap Signed-off-by: Melody Olvera --- arch/arm64/boot/dts/qcom/sm8750.dtsi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8750.dtsi b/arch/arm64/boot/dts/qcom/sm8750.dtsi index 3bbd7d18598ee0a3a0d5130c03a3166e1fc14d82..1ddb33ea83885e73bf15244c9cbd7067ae28cded 100644 --- a/arch/arm64/boot/dts/qcom/sm8750.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8750.dtsi @@ -1939,6 +1939,36 @@ mmss_noc: interconnect@1780000 { #interconnect-cells = <2>; }; + cryptobam: dma-controller@1dc4000 { + compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0"; + reg = <0x0 0x01dc4000 0x0 0x28000>; + + interrupts = ; + + #dma-cells = <1>; + + iommus = <&apps_smmu 0x480 0>, + <&apps_smmu 0x481 0>; + + qcom,ee = <0>; + qcom,controlled-remotely; + }; + + crypto: crypto@1dfa000 { + compatible = "qcom,sm8750-qce", "qcom,sm8150-qce", "qcom,qce"; + reg = <0x0 0x01dfa000 0x0 0x6000>; + + interconnects = <&aggre2_noc MASTER_CRYPTO QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; + interconnect-names = "memory"; + + dmas = <&cryptobam 4>, <&cryptobam 5>; + dma-names = "rx", "tx"; + + iommus = <&apps_smmu 0x480 0>, + <&apps_smmu 0x481 0>; + }; + tcsr_mutex: hwlock@1f40000 { compatible = "qcom,tcsr-mutex"; reg = <0x0 0x01f40000 0x0 0x20000>;