From patchwork Thu Dec 26 11:44:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Md Sadre Alam X-Patchwork-Id: 13921273 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 E926E1D47CB; Thu, 26 Dec 2024 11:45:30 +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=1735213532; cv=none; b=rN634JekdCuXo5cCPxF8Yg011x3z18nvEylEGc+0fJ6Z7K0uH020s/jt3YPx66RfkpOTy6kilsAaZoa9vmVZfFBK+xc6QCfXMyg0/OW3SHVwC6b5yNhLpVR9NJ2471WDPT9YNcLG0OdexUz4/uKjdb1tdXhCz/IfLlNmqyPCqEo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735213532; c=relaxed/simple; bh=hmz3HHE2bxYGCV9TVhcNuaWyAq44E9O5w405OVem8yQ=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=KKaJ4D1WrSdcQdbc7BBRCQP51DVQd26Ay67D4XRGuOEO8BKjZISXRB93e7KOmYGrmbdG/dEWhMXOw7VqY1vq/pYOvc20wDneS+x2mvKoqmglMDurRQY/pMSWJ22cF5aL/EBpZ9ggkZKMHd7FQVsOCHb6OS0VBSw3OcKelf5z6fk= 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=YchiPrZh; 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="YchiPrZh" 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 4BQAE4CU030987; Thu, 26 Dec 2024 11:45:26 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= AU+NpUSkUajrOzn58bGNXb/EhCwWRAMBTsBQJiv0Te0=; b=YchiPrZhALFPhh1D eX3myrLL/ZexrSBK3ZjSCzbMG+qUwOnfT+RHkFvudWJ6Zyd3xwXvKZG5QYap5gNf xs5VY2YMirK7MWZP/BfQwCIqR0/ha1iFJFoZbDvc+VxtAxrDTXbQPsvjEk/elUXN pIXosHxHzESbgGqlPrzBESnN/Ag3/tHWFVd+v/nfdxJf7Gmiyymijjg+be17Ukys 88eBctdqt7CqBa/PIBzo7IYKu3mvA4pbiDeGM/a7aSiQ9u5ahuW1XZDNgqy8IAyW WmjhBlYj2ptyK2vECwx38EYK5L4QjbC5AdsEemzRT/GVjJcwKTZ7BZM6CbZAky6o wXlI+Q== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 43s5730m85-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 26 Dec 2024 11:45:25 +0000 (GMT) Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA05.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 4BQBjPr2003825 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 26 Dec 2024 11:45:25 GMT Received: from hu-mdalam-blr.qualcomm.com (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Thu, 26 Dec 2024 03:45:20 -0800 From: Md Sadre Alam To: , , , , , , , , , , , CC: , , , Subject: [PATCH v3 1/4] dt-bindings: crypto: qcom,prng: document ipq9574, ipq5424 and ipq5322 Date: Thu, 26 Dec 2024 17:14:57 +0530 Message-ID: <20241226114500.2623804-2-quic_mdalam@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241226114500.2623804-1-quic_mdalam@quicinc.com> References: <20241226114500.2623804-1-quic_mdalam@quicinc.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: OEV3F7tZHtKngnsDcTpinWmwcZwKL54F X-Proofpoint-ORIG-GUID: OEV3F7tZHtKngnsDcTpinWmwcZwKL54F 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 suspectscore=0 priorityscore=1501 lowpriorityscore=0 malwarescore=0 adultscore=0 phishscore=0 clxscore=1015 bulkscore=0 impostorscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412260104 Document ipq9574, ipq5424 and ipq5322 compatible for the True Random Number Generator. Signed-off-by: Md Sadre Alam Reviewed-by: Krzysztof Kozlowski --- Change in [v3] * Organized the device tree binding changes in sorted order Change in [v2] * Added device tree binding change Change in [v1] * This patch was not included in [v1] Documentation/devicetree/bindings/crypto/qcom,prng.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/crypto/qcom,prng.yaml b/Documentation/devicetree/bindings/crypto/qcom,prng.yaml index 2c959162e428..d38e8d3b2f3a 100644 --- a/Documentation/devicetree/bindings/crypto/qcom,prng.yaml +++ b/Documentation/devicetree/bindings/crypto/qcom,prng.yaml @@ -17,6 +17,9 @@ properties: - qcom,prng-ee # 8996 and later using EE - items: - enum: + - qcom,ipq5332-trng + - qcom,ipq5424-trng + - qcom,ipq9574-trng - qcom,qcs8300-trng - qcom,sa8255p-trng - qcom,sa8775p-trng From patchwork Thu Dec 26 11:44:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Md Sadre Alam X-Patchwork-Id: 13921274 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 16B971D5CE3; Thu, 26 Dec 2024 11:45:34 +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=1735213536; cv=none; b=GChpYxtxUY/vgY/EOe0TLTdvX6c5noWPXU/mPIdKQ3dVyairxFOWK9PKnhM1oS3H6KCsA2BwIXvZvp6GcDhC9uFQ8upD4KkrM2FtmGTPLb+nDfWYazZcqHFlP9tFdPKPNdouAH4hQdl+mwO1kvCCrD9LreM6gflEeHVOt0bzQ6o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735213536; c=relaxed/simple; bh=b+JvjQMKDxOQwUVq7UPLNmCVusb1BFDCK9m0z7YvFX0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=soMM0X9iHYMeiNPzcQM1bloH6S7lLRSLnOUfXMFQps2KIhkpNPmFxgqjn3TKokw/gPTj6j7wrxT4YNUGmWeV5Pc45N/tVxAPv7lEgmusIF7mRg+TUUJY84JE+pWQD/Bv2z31dON46vWx+3PhNrCxPkqO5z9FN9lXdi+v/fCq3MM= 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=USZjFb2y; 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="USZjFb2y" 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 4BQ1w1CL002774; Thu, 26 Dec 2024 11:45:31 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= dxXXnkadswWuiTihvB0/VTA6a990U2t4i93tPiWwOJ4=; b=USZjFb2yf+pDVp2Y zy07OVUASwa8HvaF/55jkEgsvZ1v9+bLgOuS3AREC1hkLIquEA5Pzgk38DEcgZ9+ tzBEo1BdhmH0dCh49v5AC98AJFhNBNvXBMDNYsFXIxVZ2k2ovgCwaI9IwGpLx4Uq tuDjn8xoPNISU9IkXo/LmuUsM/J5N6to18/kLV9lPsVIO098pvSzltApmpefWMyR JU0eX6vr7bhiYthjsruoxPkQt11mDKgzjlxhQrWvelSUhyanoR+FifgAITYECsYj scDQ+q09i18wKsEjLY5dzl6ynKu2MMiTMOnGu7ncBiww4PyXawfIPDJQP5tm2Mp0 8PdOYQ== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 43rwxjb0kx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 26 Dec 2024 11:45:30 +0000 (GMT) Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 4BQBjUBY028649 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 26 Dec 2024 11:45:30 GMT Received: from hu-mdalam-blr.qualcomm.com (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Thu, 26 Dec 2024 03:45:25 -0800 From: Md Sadre Alam To: , , , , , , , , , , , CC: , , , Subject: [PATCH v3 2/4] arm64: dts: qcom: ipq5424: add TRNG node Date: Thu, 26 Dec 2024 17:14:58 +0530 Message-ID: <20241226114500.2623804-3-quic_mdalam@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241226114500.2623804-1-quic_mdalam@quicinc.com> References: <20241226114500.2623804-1-quic_mdalam@quicinc.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 7WNT54j7nGDBqH0Z2Yc0THH50-MprnPS X-Proofpoint-GUID: 7WNT54j7nGDBqH0Z2Yc0THH50-MprnPS 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 clxscore=1015 malwarescore=0 suspectscore=0 mlxscore=0 lowpriorityscore=0 bulkscore=0 phishscore=0 priorityscore=1501 impostorscore=0 mlxlogscore=999 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412260104 Add TRNG (Truly Random Number Generator) node for ipq5424 Reviewed-by: Konrad Dybcio Signed-off-by: Md Sadre Alam --- Change in [v3] * No change Change in [v2] * Included Reviewed-by tag * Updated commit heading from "Add TRNG node" to "add TRNG node". * Changed "add TRNG" to "Add TRNG" in the commit message * updated compatible string Change in [v1] * Submitted initial patche to activate TRNG for IPQ5424 arch/arm64/boot/dts/qcom/ipq5424.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq5424.dtsi b/arch/arm64/boot/dts/qcom/ipq5424.dtsi index 5e219f900412..aab1cf787863 100644 --- a/arch/arm64/boot/dts/qcom/ipq5424.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq5424.dtsi @@ -145,6 +145,13 @@ soc@0 { #size-cells = <2>; ranges = <0 0 0 0 0x10 0>; + rng: rng@4c3000 { + compatible = "qcom,ipq5424-trng", "qcom,trng"; + reg = <0 0x004c3000 0 0x1000>; + clocks = <&gcc GCC_PRNG_AHB_CLK>; + clock-names = "core"; + }; + tlmm: pinctrl@1000000 { compatible = "qcom,ipq5424-tlmm"; reg = <0 0x01000000 0 0x300000>; From patchwork Thu Dec 26 11:44:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Md Sadre Alam X-Patchwork-Id: 13921275 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 CDCEB1D278A; Thu, 26 Dec 2024 11:45:41 +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=1735213543; cv=none; b=P2TfCQUTR0Kr2Ffo4hIWuiZBaOGNM5y8p5gBRtT83acZ3o4DOgf6BUOOxbHtyPRj84zL8VdNceOm5LBPHf3elmeGq/C09Jc0bC75LprO9EhJOXqHVUATtccpSG6QzVjgipFjh7l6tlZKgNRO6uh++AEdua57SW9F4PMzm8UYiYA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735213543; c=relaxed/simple; bh=RvUeDnsDqD+PwSkHWnqS7qmmY5BBAAwOpVU5aW4atK8=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=boiDV0IqRXbP/3rqW2MxiNbh5Uz7+/BSWCN8tapXk/qkRNPjCMB91byjNsM4Nule+y8Iy3gwoX5mfEoi12fX+Qjyu35Js6RGPuJDX6GighFjkleB7aYZQeWs8C2A+RvvGi/+6WRdNUCllAtSFeaqigAnw8i9BkAc0J2qC5kiqhs= 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=daTBWSMV; 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="daTBWSMV" 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 4BQ5LRIh018287; Thu, 26 Dec 2024 11:45: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= IofIk8N2F/8JywPDdKbRRMQKvdHt0wg5L2xtrEwUG0U=; b=daTBWSMVdzdLM4Hw swJpcXut4cEP7MTRbA3ruLwnnmUdvkqQjRDnW9k/98Pbk0sT4EJ4M2sfieQG9sQH ECyEGesidyqBBAuQXdKXG0Gmc7m0XVcDclOMv1TMrzKvGCPts9h4DqSyFlz5oRNR 9JFtirMdEiWUgHkU+lFag1jBRjfi2U9rJb3k+AlKPSEW3UJJav0xnk5M4uaK0S1m wpB3aCJKVfceEvcP5HXrn6DYWYxJfeSfA904KRQpTRxPvN6m5qDxWFYWwKWV1rBl 63+mjEGxkQE6DLIh3fQ5WfpU6zAr3Wpd1uDIG2Xcg8Ii+E+GIFMzdOH/7mfWLcrd Mi0VMA== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 43s0wqt1u7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 26 Dec 2024 11:45:35 +0000 (GMT) Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA02.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 4BQBjZ6m030398 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 26 Dec 2024 11:45:35 GMT Received: from hu-mdalam-blr.qualcomm.com (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Thu, 26 Dec 2024 03:45:30 -0800 From: Md Sadre Alam To: , , , , , , , , , , , CC: , , , Subject: [PATCH v3 3/4] arm64: dts: qcom: ipq9574: update TRNG compatible Date: Thu, 26 Dec 2024 17:14:59 +0530 Message-ID: <20241226114500.2623804-4-quic_mdalam@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241226114500.2623804-1-quic_mdalam@quicinc.com> References: <20241226114500.2623804-1-quic_mdalam@quicinc.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: J4mnKpJMJDjdt0bdMJ_-4v8X3ityqUAh X-Proofpoint-ORIG-GUID: J4mnKpJMJDjdt0bdMJ_-4v8X3ityqUAh 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 clxscore=1015 mlxlogscore=999 malwarescore=0 priorityscore=1501 phishscore=0 bulkscore=0 mlxscore=0 lowpriorityscore=0 adultscore=0 spamscore=0 impostorscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412260104 RNG hardware versions greater than 3.0 are Truly Random Number Generators (TRNG). In IPQ9574, the RNGblock is a TRNG. This patch corrects the compatible property which correctly describes the hardware without making any functional changes Reviewed-by: Konrad Dybcio Signed-off-by: Md Sadre Alam --- Change in [v3] * Included Reviewed-by tag Change in [v2] * Revised the commit message * Changed IPQ95xx to IPQ9574 in the commit message * updated compatible string Change in [v1] * Submitted initial patche to activate TRNG arch/arm64/boot/dts/qcom/ipq9574.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi index d1fd35ebc4a2..453574c370f1 100644 --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi @@ -227,7 +227,7 @@ rpm_msg_ram: sram@60000 { }; rng: rng@e3000 { - compatible = "qcom,prng-ee"; + compatible = "qcom,ipq9574-trng", "qcom,trng"; reg = <0x000e3000 0x1000>; clocks = <&gcc GCC_PRNG_AHB_CLK>; clock-names = "core"; From patchwork Thu Dec 26 11:45:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Md Sadre Alam X-Patchwork-Id: 13921276 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 035931D278A; Thu, 26 Dec 2024 11:45:47 +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=1735213549; cv=none; b=NKgQBk7kY8C3hZPowudlK1GI7jH/l/n0CGllYl56akFa1rP1caRfm3mKXw4m1jyETGBOouwwNyYWQMog5dhjyRnOcI4peGZ8anQY8chdYkSJnavQDRAFcl8+Dlf4iKc87hG69T6HNeGnlm/yBnfOzyBsF9ITgjg+axPARidxZlY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735213549; c=relaxed/simple; bh=xxbDau5dh7L1YdX3pSUREw3PMLaszhChP6TlltWlKsU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rTY8n5fvbVnsjQ0+Ac03kjkg54k7mrCyZAUMJiYMSkrKTgNzYa7ypXoBoD+GGNbG60IdsIlyR4YMI3O1gzm8hboO0i5+7gq3hQ7ZUaWFuY5WW5H9oSCGBf79DFDmu7hSFMHIVaHlTonabpW8+H3bT+TKCw3sQICiNa4MZvUEvV4= 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=K5InQDV7; 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="K5InQDV7" 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 4BQ6tqAu005080; Thu, 26 Dec 2024 11:45:41 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= 1nDGN0EW69mGcSOPiGASnqdqVBmzEsc3rT4UMF5UWoU=; b=K5InQDV7ap0VPT5Z PROQ4i79Yd2tdls+m60YQWQy9H1lE9ZJn1cEs3pjy4p4OvTqYVvjjLk0EECZMyoY jk1YP5mWEwgICmoQccrZhhVURjGfyK5tHZsnxxfwinCdlf0zn8ztHcBAl02/Rah0 4K4UXNAU+pJmuADPCCCZUoUjsjK6IEweowhqVpEDQF1Ndoq9ebXYtR05Z8qd6oAd td5hACidLCDS0ACowNEUbsZkB0QwoqJYXkSbRnT4DnsKrteE38qccgcJQiA49jBf 2RCmmA2W3dLUeY2QUPpyBXahQWju0nfB+kUIh8+Gt/2QBtgHivkIWyTLhJegICF6 WiXFwQ== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 43s2a8t58f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 26 Dec 2024 11:45:41 +0000 (GMT) Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA04.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 4BQBjeUB005369 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 26 Dec 2024 11:45:40 GMT Received: from hu-mdalam-blr.qualcomm.com (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Thu, 26 Dec 2024 03:45:35 -0800 From: Md Sadre Alam To: , , , , , , , , , , , CC: , , , Subject: [PATCH v3 4/4] arm64: dts: qcom: ipq5332: update TRNG compatible Date: Thu, 26 Dec 2024 17:15:00 +0530 Message-ID: <20241226114500.2623804-5-quic_mdalam@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241226114500.2623804-1-quic_mdalam@quicinc.com> References: <20241226114500.2623804-1-quic_mdalam@quicinc.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: yVvSjOryRbHzeiplnbSAq9LE2nsbdA3W X-Proofpoint-ORIG-GUID: yVvSjOryRbHzeiplnbSAq9LE2nsbdA3W 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 adultscore=0 priorityscore=1501 malwarescore=0 phishscore=0 lowpriorityscore=0 bulkscore=0 mlxlogscore=964 clxscore=1015 spamscore=0 impostorscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412260104 RNG hardware versions greater than 3.0 are Truly Random Number Generators (TRNG). In IPQ5332, the RNGblock is a TRNG. This patch corrects the compatible property which correctly describes the hardware without making any functional changes Reviewed-by: Konrad Dybcio Signed-off-by: Md Sadre Alam --- Change in [v3] * Included Reviewed-by tag Change in [v2] * Revised the commit message * updated compatible string Change in [v1] * Submitted initial patche to activate TRNG arch/arm64/boot/dts/qcom/ipq5332.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/ipq5332.dtsi b/arch/arm64/boot/dts/qcom/ipq5332.dtsi index d3c3e215a15c..ca3da95730bd 100644 --- a/arch/arm64/boot/dts/qcom/ipq5332.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq5332.dtsi @@ -180,7 +180,7 @@ cpu_speed_bin: cpu-speed-bin@1d { }; rng: rng@e3000 { - compatible = "qcom,prng-ee"; + compatible = "qcom,ipq5332-trng", "qcom,trng"; reg = <0x000e3000 0x1000>; clocks = <&gcc GCC_PRNG_AHB_CLK>; clock-names = "core";