From patchwork Mon Nov 25 06:43:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuvaraj Ranganathan X-Patchwork-Id: 845632 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 806DA183CC2; Mon, 25 Nov 2024 06:43:55 +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=1732517037; cv=none; b=qf0T3wLBxqtRaX441HkY4D9RsRo5exD6Ja82l9gdSqaZioI1ppuQ+yKSEdkWPGRsiXwR5XcaQT1frezO0449Ye8BkJ7f9Ih/hFAOtgvWFg99i2sgyEN8Ffm9kVcr/t0yY5ZQSo90iBYdnROP7KFVvkrzhOP9yFZMUmlyJNcLt8Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732517037; c=relaxed/simple; bh=5YALVs6ahiEWhHLASYP3/syi7J/pHnRFo9M5CmdWI/Q=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=BuChdd89FBe5NHU89FPMfyg+nPxmS5k72Tdc+kXwdhqXaOYPeRpnnuBADxCFdw9IkLdZXSpDAoDoUc1wuIkcTdo/VkoDfcDdN4nme8MK0KDpDn9xXSXP1y9nLRSUsJ786LtN4t7Xbt+sKY7tQcpcBeL7Y3bY+JXViZzE5pg25sc= 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=hnq8TkFz; 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="hnq8TkFz" 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 4AONxcip016714; Mon, 25 Nov 2024 06:43: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= hDJGNEp5U479sXUs/TsO1fcx6fyzIcOBUJ4dEUH53WE=; b=hnq8TkFz0RuN3e3n ANbkWqxr04/Nn6aSGFvd/v0O4SyuiSLTpYtpjeJ4pb/vQK67l3L5rPEXS00OwuHs tJ1PoxTfOs/miBFDy6XHSyGIv+UhAdGUsHLLyxxYsSHyrFEoHbelFPm1+Lp69iLg gnkIjK+kGoJpBdaNrnoIYqD7/z17jlOxJ14MstcnTdNaf4BuJ2mcokqnt+VnFOfh BxuxfdbQmQufl+gA88a6ArGWvc60c3sMB0YpRjwXEiPZC6h7qH+4WeEalPmNUwxL JhW2MOi1uX0DbahONGg663xtrlgeGl4wSreW+rNJiI0/ni1Pe8tJrMPR+SMrbpvY 7PHW9g== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4337e6um0t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Nov 2024 06:43:47 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA02.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 4AP6hkmo010204 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Nov 2024 06:43:46 GMT Received: from hu-yrangana-hyd.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Sun, 24 Nov 2024 22:43:42 -0800 From: Yuvaraj Ranganathan To: Herbert Xu , "David S. Miller" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Vinod Koul CC: , , , , , Conor Dooley Subject: [PATCH V5 1/2] dt-bindings: crypto: qcom,prng: document QCS8300 Date: Mon, 25 Nov 2024 12:13:16 +0530 Message-ID: <20241125064317.1748451-2-quic_yrangana@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241125064317.1748451-1-quic_yrangana@quicinc.com> References: <20241125064317.1748451-1-quic_yrangana@quicinc.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: pDKQfEFt6mKE85SgViG-nYUOiUqtUpj4 X-Proofpoint-ORIG-GUID: pDKQfEFt6mKE85SgViG-nYUOiUqtUpj4 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 bulkscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 clxscore=1015 lowpriorityscore=0 spamscore=0 mlxscore=0 mlxlogscore=983 adultscore=0 suspectscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2411250055 Document QCS8300 compatible for the True Random Number Generator. Acked-by: Conor Dooley Signed-off-by: Yuvaraj Ranganathan --- 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 048b769a73c0..2c959162e428 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,qcs8300-trng - qcom,sa8255p-trng - qcom,sa8775p-trng - qcom,sc7280-trng From patchwork Mon Nov 25 06:43:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuvaraj Ranganathan X-Patchwork-Id: 845431 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 AE4291E517; Mon, 25 Nov 2024 06:48:57 +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=1732517339; cv=none; b=ZXxNSef8mrG9f4g9y0w4ht7nb5G7wvFoWXpS8FjmMnngNTEhmemewz8qn04tM1q/NYLQFWJmuhBTpStS8OtpILuRfjpjtvym/gPk8Ym5K13lCItQ/GRN5AJnZ65T23BKnjnkaOVIp5GpHg5IMvk6m5rMqmCoH6WhgI+DkPuQCC4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732517339; c=relaxed/simple; bh=BrsW610ZSTw7jovwFRrsZk33PhJk6qC8hmIWzSL2wuU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=QOT66+JibfVQ+y47hU0qcPPgMl4dF25SfThADUPVPEQRch8n8eKHFRemef3YAW3+Ll+/5Vlzy7kZC6J4pRoP5Lvxy8ceOOpGhVQXn9TKrsawXJeQV+8ru/ZrIc6G2GQa/KMckyUgI6PNB4LAa2SP2PJfPfVJcC7Xfa9jBOg7FE8= 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=HBsK5qwj; 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="HBsK5qwj" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4AOLGpnn007530; Mon, 25 Nov 2024 06:43:51 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= SSHCmIhXylkg9lJ6f3hi/oyz1tOig2WV77FB2wf1jeM=; b=HBsK5qwjnkqnwVIe 9zqmCSAIw9qEC4p9hUVLVLi5gIp9ds0VB0i9QyZ729BqXJQ29KjnmWioMusjy+oH jMKQOpkKoAw+rsloxq6f79Yu/HgS1ieOb+JVb1vmTIfW6YuMVd2DkgapxeRirI30 FufnV9gpmbgje16LCm6iC9kC618eqJTZ5oiGLzu/BT8fHCwAbOw4lWUCchhBEwsa t5eb9ca1fexaoQG4q5MUNCWsizKmZEu22qC16c4Q/zYXfXBeD3NrsbTTx6Hk/SI3 xPl0HCiro2W2il+5NSKnWNHDsLbQIWZXUhtxF1xUhzKeADLYvhasW028o5msfssV rMUKLA== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 433dny313g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Nov 2024 06:43:51 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 4AP6hosq021717 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Nov 2024 06:43:50 GMT Received: from hu-yrangana-hyd.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Sun, 24 Nov 2024 22:43:47 -0800 From: Yuvaraj Ranganathan To: Herbert Xu , "David S. Miller" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Vinod Koul CC: , , , , Subject: [PATCH V5 2/2] arm64: dts: qcom: qcs8300: add TRNG node Date: Mon, 25 Nov 2024 12:13:17 +0530 Message-ID: <20241125064317.1748451-3-quic_yrangana@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241125064317.1748451-1-quic_yrangana@quicinc.com> References: <20241125064317.1748451-1-quic_yrangana@quicinc.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 8GaN-0JyY5sHKv5sosvCHIIsyUJi7xiR X-Proofpoint-ORIG-GUID: 8GaN-0JyY5sHKv5sosvCHIIsyUJi7xiR 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 mlxscore=0 bulkscore=0 suspectscore=0 spamscore=0 malwarescore=0 phishscore=0 clxscore=1015 impostorscore=0 mlxlogscore=888 adultscore=0 lowpriorityscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2411250055 The qcs8300 SoC has a True Random Number Generator, add the node with the correct compatible set. Signed-off-by: Yuvaraj Ranganathan Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qcs8300.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs8300.dtsi b/arch/arm64/boot/dts/qcom/qcs8300.dtsi index 2c35f96c3f28..39c0c6b8516d 100644 --- a/arch/arm64/boot/dts/qcom/qcs8300.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs8300.dtsi @@ -588,6 +588,11 @@ &clk_virt SLAVE_QUP_CORE_0 0>, }; }; + rng: rng@10d2000 { + compatible = "qcom,qcs8300-trng", "qcom,trng"; + reg = <0x0 0x010d2000 0x0 0x1000>; + }; + config_noc: interconnect@14c0000 { compatible = "qcom,qcs8300-config-noc"; reg = <0x0 0x014c0000 0x0 0x13080>;