From patchwork Mon Aug 28 08:04:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 717933 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D23DC83F17 for ; Mon, 28 Aug 2023 08:06:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229759AbjH1IGC (ORCPT ); Mon, 28 Aug 2023 04:06:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229613AbjH1IFZ (ORCPT ); Mon, 28 Aug 2023 04:05:25 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B73C195 for ; Mon, 28 Aug 2023 01:05:17 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-401b393ddd2so27471475e9.0 for ; Mon, 28 Aug 2023 01:05:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693209915; x=1693814715; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=BcfV/UeCF03lYaBfVGaWErOz9xb6mzpP56XAVU5L9WU=; b=wQ35rCZ+mnMDVuF1Ud+9LfZHO9to7g1o19C6+f1n9m4UqrGLyo1WGRDoqYcTCw1hJA wRheMMBevqGNrZvybEE/idzl2Dxd4FBOfGJ3piLePPwTCIOT6KXI8L7dX2HG30ZHuzMR KlaJx58HqDRfPSKwPufnYybqKjS7kKHHdhLbXVhlC5/Mc+vEAWVIxGSmtqh94+t4+l2W RRZqWCU0uNWdapX7JOLeCmu2RsZ3/Bqf39P6OAergQ9CHIl58Vye0wpOVdBcLQQUcLBs m8AbGiOALEDQM4y++UUiQ0buVwB1sDQGkWgpIQay5xEbeAroxP9sZL8bCajQ48Dg6o7K rVtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693209915; x=1693814715; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BcfV/UeCF03lYaBfVGaWErOz9xb6mzpP56XAVU5L9WU=; b=Gxlh9TN2iT85c3lB6Bl41OJZbCvz4vtSvCEE+ZPI2MvN6JIX7Faoryt/2TKu+VpWwi WCblbFYOMbPQAKpXew3osC1+tuWhzu5iz96LssxLmdOpnYohCTgjhHFno3CKfBXCLy8A cNoQlamIi/fC++8mouCLLi4zNUxZ/QMzypa9fgGNXaXKBYrXifMQolwWAkFtNNl7gQfQ PSEwCNLtVVnJudsIsJR8uJ3RW/dh6ghGB25x4QemO1k7IjVyaUU34ZGYtjX5QTdyoPNd M64/6gfl+n6g17OY408caCCyvPewHoUJp1/PjHB3Vi/8UdkMYF5BrWJ+VMgRDfEbHpHy vLIA== X-Gm-Message-State: AOJu0YybGbD3I5tDH5GrMJrO9+WpjdV6YocFMOmN+o0xaPN5aHwi6RM4 qA9MFv/mI54OuEKEA0mBI0XU+Q== X-Google-Smtp-Source: AGHT+IEaSeTDCq4UIQR2vbGQlNVvUC4SZGmhnUEhDdSQRE9Dl3c1sByW2PUS5nv+cBEYo1AFZNSudQ== X-Received: by 2002:a1c:f304:0:b0:3fe:4900:db95 with SMTP id q4-20020a1cf304000000b003fe4900db95mr20038766wmq.37.1693209915562; Mon, 28 Aug 2023 01:05:15 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id z16-20020a1c4c10000000b003fa96fe2bd9sm13067035wmf.22.2023.08.28.01.05.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Aug 2023 01:05:15 -0700 (PDT) From: Neil Armstrong Date: Mon, 28 Aug 2023 10:04:36 +0200 Subject: [PATCH v3 1/6] Revert "arm64: dts: qcom: sm8450: Add PRNG" MIME-Version: 1.0 Message-Id: <20230828-topic-sm8550-rng-v3-1-7a0678ca7988@linaro.org> References: <20230828-topic-sm8550-rng-v3-0-7a0678ca7988@linaro.org> In-Reply-To: <20230828-topic-sm8550-rng-v3-0-7a0678ca7988@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Herbert Xu , "David S. Miller" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul Cc: linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong , Om Prakash Singh X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1157; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=XBF1rawv9t8Lox/h3s0QWqZEse/zdnYYb1W459yD0uA=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBk7FU3O4++6/1oeT3zoL8oGptWTdDDESBfY9/bTk5X dDQpW0iJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZOxVNwAKCRB33NvayMhJ0b2DD/ 4lx5GvVpFkUuE4NjITWhcFGPSoleo1LsS8SCKFUP7ZQNZGPKJ7j0jJeIOp7qUSHRhp3UZLoTg06lEJ 4mDqsutYXqSxS652q6Zuf3yZU1MiW/SkjrCdL3FB5D5pGJ6riTZvtjCChHnajbG1bLQFHO2PIv5Zos ACLyONl9uqixUkAEY5sTMHz8+jAev5DQ80+29GV3nQe4WT8z1AIJJFCSXo9F+NhgVMeAou+0obo3+s FjtDy6IRET0lUBUt+ZxLk4BJ91FOUBtUnDcJE10KGk3Qv/TkgB48nWskNARRDtUYFhBbOcWjK94a7o UZyu4nS9RjejmUicDr9jDwVswD4tBNkOlJOIwrn0xlCpsXCoNEqJImdfl/0Lia12cwDkMlnDwg8k9D uLA/XpJM8QqMo7uvlawOCQ91VoQpbmg6JJ7jyqN8oMIJwdsjs7yC/CecEzHwgiygc90wmcWUWvzsYp wk7a2xoluNFLjRmQ4E4HabD5kUrVi7mCwOBBdWjozbC6E62y40REtxmyByePGK42Yc0r5cyMi9T3Ux eQrpWuxz4FThSJqjSxcBKGp051NhhDmt9ZdLjtX2J7FzhxCwbav8r01r6G0ee019xRZ9NgmpaipjHv ejeSpYVRSl9St1+3VYeNrF+1n5AI4UhFZ4+qRbMD9qEwU6ODj4++W5iZkZYw== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org This reverts commit 76a6dd7bfcbb ("arm64: dts: qcom: sm8450: Add PRNG"), since the RNG HW on the SM8450 SoC is in fact a True Random Number Generator, a more appropriate compatible should be instead as reported at [1]. [1] https://lore.kernel.org/all/20230818161720.3644424-1-quic_omprsing@quicinc.com/ Suggested-by: Om Prakash Singh Suggested-by: Konrad Dybcio Reviewed-by: Konrad Dybcio Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/qcom/sm8450.dtsi | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index 2a60cf8bd891..6ae64059cea5 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -1738,11 +1738,6 @@ spi14: spi@a98000 { }; }; - rng: rng@10c3000 { - compatible = "qcom,sm8450-prng-ee", "qcom,prng-ee"; - reg = <0 0x010c3000 0 0x1000>; - }; - pcie0: pci@1c00000 { compatible = "qcom,pcie-sm8450-pcie0"; reg = <0 0x01c00000 0 0x3000>, From patchwork Mon Aug 28 08:04:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 718379 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D40CC83F1C for ; Mon, 28 Aug 2023 08:06:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229699AbjH1IGB (ORCPT ); Mon, 28 Aug 2023 04:06:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229621AbjH1IF1 (ORCPT ); Mon, 28 Aug 2023 04:05:27 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14C4C19A for ; Mon, 28 Aug 2023 01:05:18 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-400a087b0bfso27142445e9.2 for ; Mon, 28 Aug 2023 01:05:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693209916; x=1693814716; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=jcJHgFgYDewzQeLfgbs/yTVfroArC4TDUHuKO6mgULQ=; b=SNji06kuB79F6g/2I+gI1f7jVJ8GH344XmqKZSS0ul+d1dzA4T3MSNbQFL8mmCwCzl lMDrrYSSCjgH6Ie4xP4eKZcnYkPuUMgGGeV2OMg7+bXcouQ8Fi/dF5AKQWHSTZcIE8iW VgxzW5etDfe4gujUQsPWbYCioC7D1/Q9PLE8f+05928h1iQTP9gQ7MXztjuVhk8VTgLp kKurEwaHnA2xmqtoKRhWU9XH8rDwRJ6KFqx56NBgFWKdwHF7PSQgIEOxOLhT/uCnJx/l pZd19FJcFuMyYL88/1nT7RyaXEbTfwmevTXXgYXYPkptLlx0TesfD2EXPrucKuRR48ZL ZOvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693209916; x=1693814716; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jcJHgFgYDewzQeLfgbs/yTVfroArC4TDUHuKO6mgULQ=; b=JHVYGEsopnwESQtn/JqioA/YvxivODUQDJhGlKn3CUVoJLKJc68cHcQuagyT4TNLpU aFy7w8vj/xdczGk1Mv+2LkK7holQIqfvGIEaQNTB2NO7YBFAa+T6eyQtULNnov7UwYte 8KU13E46MxVShUGUhmhEUGq7E4ehPeumorjO9N3VPhVvRhTxvYxO/rvSPs1HySc0kxbT gNGKiKqSX8HdUdQCViR5WqLbMbXdlEgbnSNt0CV8bau7DHn2DGN9fEMgKo4/qOiz3ueh vxNw7DpzV6mlpTVrWb2CtSz/Sc/CHzc6D9Jgr0cMJZ+tvaV42rLJWFtDVsw0wa/Vbq0W 6HGA== X-Gm-Message-State: AOJu0YyM3HzRj+47bmd/JUVmuiaJ+MD581kMJXVBgpU03eSSB7k/1skj e1F+ecCHTbdglxRkdIbF6OQhcA== X-Google-Smtp-Source: AGHT+IHCt/KBwhBQ3cRI9ZoVaRqCQH/srZduwESxXqKbw05/f2F5tKqn1mWsuhuR8IizllsDWudxiA== X-Received: by 2002:a05:600c:22c2:b0:401:8225:14ee with SMTP id 2-20020a05600c22c200b00401822514eemr8201975wmg.41.1693209916631; Mon, 28 Aug 2023 01:05:16 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id z16-20020a1c4c10000000b003fa96fe2bd9sm13067035wmf.22.2023.08.28.01.05.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Aug 2023 01:05:16 -0700 (PDT) From: Neil Armstrong Date: Mon, 28 Aug 2023 10:04:37 +0200 Subject: [PATCH v3 2/6] dt-bindings: crypto: qcom,prng: document that RNG on SM8450 is a TRNG MIME-Version: 1.0 Message-Id: <20230828-topic-sm8550-rng-v3-2-7a0678ca7988@linaro.org> References: <20230828-topic-sm8550-rng-v3-0-7a0678ca7988@linaro.org> In-Reply-To: <20230828-topic-sm8550-rng-v3-0-7a0678ca7988@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Herbert Xu , "David S. Miller" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul Cc: linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong , Om Prakash Singh X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1726; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=oyHHvoyjVGzfw+imVp+8l3wkxtuE13JPRUzRZMaaQgg=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBk7FU3j9zdwg/R70J1QLWQN8EWkqHnWnsleTE/ZJCh eLzrRH2JAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZOxVNwAKCRB33NvayMhJ0Tg4EA DOsj2snQpFxhVjM32ZfVuHL643ms3DLSayg6tFbs1v6TI80qo81rCSks9MrjCCq7J/GNIeC/90usH/ mm10M5I0McfbvJugqVuHVCSEnpfQe7Jp1deWyWx9vr7Dp+e4TdRmDYj2fC/0zllKcn1lo1bp9ekkGo fYYKaDfcj1ZZBe+fYFUSUY4v2+yJDO9IZ3ocToxlWyUbpr9jv+oYttlp7v7PWeKQQNmMoBAsytINYN qB4KJK9fdeKUjb2MhGGFXfFYFXOqw8rRQBUW8JlRz7RBxrhnoNt+8nnJXsxckgGEu5rsCO4qq4CX9U oaO2IwNx12GUWvpT7JuBon+lT8ssSfEY0e8ez4egyTlDjUVyKWM9E+BlC4+L13hvW3hJ1PZBweYw8t kTfQc3yEtxgNJX3lw6ovwFjcyK2blcz1W8haadWr8ieZUKoZ2yZ483BVVWnwXc2+BifR6+uou0o4DR v10WbPkRDuladaYzQ0kJ1sKoYZOPlWfVokcC0vjPC6k04DZcWiTDI7u2/k3+t8oTUOm1N9YuFMdYn0 sggiBPFOD1a+xN5ZbBtDFdwrIKziPx6rvWEb42t0HtbJg5KbTdQW1pKQGLgZANwnbOyDrmsgl9CHhZ yGgjiZhgbsEsiTPmZeKavgcNNGobXwIfpZ6HdyIk4nkz7UQyS7X/WjJIhg9Q== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org It has been reported at [1] the RNG HW on SM8450 is in fact a True Random Number Generator and no more Pseudo, document this by adding a new qcom,trng and the corresponding SoC specific sm8450 compatible. [1] https://lore.kernel.org/all/20230818161720.3644424-1-quic_omprsing@quicinc.com/ Suggested-by: Om Prakash Singh Suggested-by: Konrad Dybcio Reviewed-by: Om Prakash Singh Signed-off-by: Neil Armstrong --- .../devicetree/bindings/crypto/qcom,prng.yaml | 24 +++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/crypto/qcom,prng.yaml b/Documentation/devicetree/bindings/crypto/qcom,prng.yaml index bb42f4588b40..4245c9e424a3 100644 --- a/Documentation/devicetree/bindings/crypto/qcom,prng.yaml +++ b/Documentation/devicetree/bindings/crypto/qcom,prng.yaml @@ -11,9 +11,13 @@ maintainers: properties: compatible: - enum: - - qcom,prng # 8916 etc. - - qcom,prng-ee # 8996 and later using EE + oneOf: + - enum: + - qcom,prng # 8916 etc. + - qcom,prng-ee # 8996 and later using EE + - items: + - const: qcom,sm8450-trng + - const: qcom,trng reg: maxItems: 1 @@ -28,8 +32,18 @@ properties: required: - compatible - reg - - clocks - - clock-names + +allOf: + - if: + not: + properties: + compatible: + contains: + const: qcom,trng + then: + required: + - clocks + - clock-names additionalProperties: false From patchwork Mon Aug 28 08:04:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 718380 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0ACC6C83F25 for ; Mon, 28 Aug 2023 08:06:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229689AbjH1IF7 (ORCPT ); Mon, 28 Aug 2023 04:05:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229646AbjH1IF1 (ORCPT ); Mon, 28 Aug 2023 04:05:27 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 168011A1 for ; Mon, 28 Aug 2023 01:05:19 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3fed963273cso23417435e9.1 for ; Mon, 28 Aug 2023 01:05:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693209917; x=1693814717; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=UUqK3D/qBAScvsv5jxc6WIoboJn9RkK2Rd/aqGsaGBc=; b=a0E796ED/JpDfX/oftzY0J0gcqVa9ih6OIeQ8Ajj5zfv3iAiTfbFSQCtq8WXxuKUEY 0zWZPm76VfvJIyziPoTKfoXzb+Yvc0hmRhiS/Ro5ntydB2QXghR2hJWTP3a1rb++JxZ1 5SYBW37ngfmznyxfdJ1KGOGVA9/Ed3wO+qwi1mASfhR0nM5G8zJjD36s+zgJDqZEIU5U Z29B8CUft1fIeaeJki+36wil3m2agci93XPJATughN/3wfQ5bTk+wlMXgJMQBS9ynwN5 12+I04cVE6htPTFDT5FiB1Zju6JHfvW1yt0WHTDnqH4mOeR1pU/5p9gIW8jgOpApGv0E 7YeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693209917; x=1693814717; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UUqK3D/qBAScvsv5jxc6WIoboJn9RkK2Rd/aqGsaGBc=; b=diaVrgL9YCynOR1H6Ylj1+LqEGgaL8lQhzNkb2TiE1ayBAlH8Zaq8j+cp7WfM8BSRt XvYaaE3XRk1CiD4yhZkD9Hhsuf2y6lAsMdVL9RqxykrQ69XIcuKh+Nm7aJigepSrQlss ot+k5LFRdQ0Cw6uy4HVtSLLQXf1pK/dIVvVXDj/1DRjxrAddY/ORA3WuB2s4l6Swl14C 1JO7C+zRrVzNL3BFCnYWgO/v7Jlt6mnVHtcQswWB21SGEWjFV1pzRVem2QQqkrLP4w7x VVAuaPPaEyZL7bYKmHXxjD3BBraab5+ZRBNKcBLuNzyPcikkKbwfzv7vADTDHCu7x1On eMzg== X-Gm-Message-State: AOJu0Ywq6U1IqEIcPjDG7c4efEtLNDEZ+DDYHGfxOgGqigMiT2qC919r S4GCIlLqgNAVkf5Uce52yMzOjw== X-Google-Smtp-Source: AGHT+IGc9USV6c1+FYLDF4ACIByFoCpuMg0iJJBzGTUyCCyraVLSXN9QIEBqZtJ4bfnMza+1Db4Itw== X-Received: by 2002:a05:600c:2491:b0:3fe:da37:d59 with SMTP id 17-20020a05600c249100b003feda370d59mr9859347wms.4.1693209917652; Mon, 28 Aug 2023 01:05:17 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id z16-20020a1c4c10000000b003fa96fe2bd9sm13067035wmf.22.2023.08.28.01.05.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Aug 2023 01:05:17 -0700 (PDT) From: Neil Armstrong Date: Mon, 28 Aug 2023 10:04:38 +0200 Subject: [PATCH v3 3/6] crypto: qcom-rng - Add support for trng MIME-Version: 1.0 Message-Id: <20230828-topic-sm8550-rng-v3-3-7a0678ca7988@linaro.org> References: <20230828-topic-sm8550-rng-v3-0-7a0678ca7988@linaro.org> In-Reply-To: <20230828-topic-sm8550-rng-v3-0-7a0678ca7988@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Herbert Xu , "David S. Miller" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul Cc: linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong , Om Prakash Singh X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=881; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=4EfZ57+G5h9yWi4TQIKUUrIhvzgsYdg1XurWyJSWa80=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBk7FU35qVfbGnf776KF2wzKGgyFO++U7yVJ/CF+7yt i+ez1fqJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZOxVNwAKCRB33NvayMhJ0eo0EA CybMyj1BeXvy+AD+wDJ9e2irxmiIT5ukqD+8cQ/jELy6fDqToFGhBtnu5T3BcPusp5pe2cfF6eR8zW ljUXOBiVpzsTwi/uoKU2pIskZMo1akvgUvqt7J5dc4EBUCwXQl+/VQMYMjZOo/mXrFeYi5NAEki5hO jAVCyOiYSad4ARuz7Vxs9ZG3VlZxYeUrmQQtTkNjOvs77pvQ/y/l05Ubs4JHe2mOvav01/EJqOMi4m loWLbjY52BCzHIj62fzQJF2E72XU20qXxLT8cICEGuWKR1wZTAhsnWDQJfq1jv7/w4XBMXQTwPGImo qrIKjjZMwOV35nZvC3xl2oa0v7Zi850aqtTWUPi1pz092LRratRVIxYN0Va7/6PuuDF026Qss8t1hE Noyi/IF5lzphQW7G+ulCy2nauo1psfKD8Xj6bOy2VbsdBt3lYIreKGKYz3iwPTneCVqBVkcmJT90St cc8KzUeANG2+8006NIg68u6pU7uqcdOiQkGz6PMWS7kWi30ivMkhi3pVi4Q3sKXreLxI0VmUzKUnif GRRJB/+HWAxzsXAAr/loiQLBprk2EtA703afNzDC665nJUbTrg7t/WiQypBD1VZsyGnxR1w238CXs+ Ap96mEXb3hEUaaeTO2SRdosKAwe8cxQJBnY82/miIQL4ATNtXTxDdYOe5O8A== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org The SM8450 & later SoCs RNG HW is now a True Random Number Generator and a new compatible has been introduced to handle the difference. Reviewed-by: Om Prakash Singh Signed-off-by: Neil Armstrong --- drivers/crypto/qcom-rng.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/crypto/qcom-rng.c b/drivers/crypto/qcom-rng.c index 825a729f205e..fb54b8cfc35f 100644 --- a/drivers/crypto/qcom-rng.c +++ b/drivers/crypto/qcom-rng.c @@ -207,6 +207,7 @@ MODULE_DEVICE_TABLE(acpi, qcom_rng_acpi_match); static const struct of_device_id __maybe_unused qcom_rng_of_match[] = { { .compatible = "qcom,prng", .data = (void *)0}, { .compatible = "qcom,prng-ee", .data = (void *)1}, + { .compatible = "qcom,trng", .data = (void *)1}, {} }; MODULE_DEVICE_TABLE(of, qcom_rng_of_match); From patchwork Mon Aug 28 08:04:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 717936 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E363BC83F1C for ; Mon, 28 Aug 2023 08:06:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229615AbjH1IF6 (ORCPT ); Mon, 28 Aug 2023 04:05:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229666AbjH1IF2 (ORCPT ); Mon, 28 Aug 2023 04:05:28 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 335F811B for ; Mon, 28 Aug 2023 01:05:20 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-31781e15a0cso2603530f8f.3 for ; Mon, 28 Aug 2023 01:05:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693209918; x=1693814718; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=T7pEehOps5QbkVKkyuuv31XzsIbizKaBqk17S7JImMg=; b=BtsktCcnkMkvhD6e5FGtzvV28au/oJFeaFSq8IPPBo36QOFyCR2gkMRpkKSZCF+uPx 1h89AAjoBxxe7ZgSY8qaLtm86AcPnbT05tmI8JKt6hwkKa/zLO2XFfQCklOtLHZzgbZa 492PLJBUyCYzPkNXvvkunEH6OEOpI5gG3pVlQNuRNiX4kdYLt1ldBkdSRTZj49dPRqJm +YrZRVWIr9y7ghmQDMlMS5+k4j+r9UDegzg6jXKcnMxbrKTQGEl8pec7IBNDr3Ot8mLs VGLAtdK7L+6IHtBD0LXrA229VeEVKq/DGt8d+TKuM4LzdcY5UIOaKl4PKpCTrUyDewkh kXnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693209918; x=1693814718; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=T7pEehOps5QbkVKkyuuv31XzsIbizKaBqk17S7JImMg=; b=lo29U0fyifZRpuJPHayiDMngeltmRrP/C+y3T0qwsguiICPZaNE/5hTMNH2KOW09qE fMQ+QQ+3VQiVantMSK8XKGBulI/kT9uQ17X43XVOik7lsb221J2u7TrHkqu45YjJehsL vpV00H5ryt9olO/k6KcmPqwrxR7sxmHRcQlsbgJG3PDvtQ/Fdh+spnrGN+RVlXGzk3Ym Gfi3mHLa/eB1mYRB7je8radiHLB2qacHnTFrrTN1QzbI6Iesp8J1GrWdQ4E3kV4927Q9 v4Jh3/QqFI4PDbsp3IyAR3a3Fa98ZzkN7Tui09E6VjFX50EpIKMbIb/OP1P+FmX58+3w 7A+g== X-Gm-Message-State: AOJu0YxD3zljAjlBOXaCqZG/FqNmWg21aH1k+TJwYSPZQZ0DTjpVHFS2 JBEz761ARM8aFqd5yhnSRqQ9gg== X-Google-Smtp-Source: AGHT+IGtcWa0vdfJlQAVlrZJH5+xzDeO/CXZcAHamsTvYSCjmn3m3vGPWKyG271PhNMxJnWpMeZeNw== X-Received: by 2002:a5d:510e:0:b0:31c:5c77:48ec with SMTP id s14-20020a5d510e000000b0031c5c7748ecmr13590179wrt.62.1693209918679; Mon, 28 Aug 2023 01:05:18 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id z16-20020a1c4c10000000b003fa96fe2bd9sm13067035wmf.22.2023.08.28.01.05.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Aug 2023 01:05:18 -0700 (PDT) From: Neil Armstrong Date: Mon, 28 Aug 2023 10:04:39 +0200 Subject: [PATCH v3 4/6] dt-bindings: crypto: qcom,prng: document SM8550 MIME-Version: 1.0 Message-Id: <20230828-topic-sm8550-rng-v3-4-7a0678ca7988@linaro.org> References: <20230828-topic-sm8550-rng-v3-0-7a0678ca7988@linaro.org> In-Reply-To: <20230828-topic-sm8550-rng-v3-0-7a0678ca7988@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Herbert Xu , "David S. Miller" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul Cc: linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong , Om Prakash Singh X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=929; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=BGnfWkUzwQH2a4KJs8LRMIJys6CcDcyVifGwYt3sjFA=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBk7FU4LMc9R86qxMjqtSQHBNkBIKyi3eHZH2WQ4mZO 8ofc1GqJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZOxVOAAKCRB33NvayMhJ0X/oD/ 9NshRyEi1JWBG8NE9uX7z98tAzWOX69s7cfaSu6pfZTTYR1EffXqWHkdY5HIYwwOknt1WHbbSwkXNU 8do+97PhKLS+I+PTQuZCsB7OUz4qZBP8EPNc9ydHbzup9+i/gLirvOL6q41nm1pB5ftWvWA0RgSM32 E1OS1+mHCWysGti/P2B5ri1woMKEiNLuKtgDRdiKhUgwiL5HCPHff/grwK8cec7HEumvfyDJ0R7wfS JRFXmfg5oC6i0nA+jacBQbpwBua1YfXFxeZvylfmnqkavfsUijc8fYnGVSMP49/kimLiHIhydc59nu W5XwRppdppsgLg9fjChWVYFgTVeTr+l+kX4pTSgZ1yrmVs1uDqaSvUXcbU5Zs+nxaE9/w5Hw8tNOjh wb9mI29SJeyrPmS11kXYt3RjhpgEZAD10td0tKDP4UKxuR7RRbDgmi2uefHMan3OC+MVXMAAYdmPrS JbQHBtkA51WZ7K0z/KXiNjly//jBG9p5Kv20T3XzVZbpxTUY33RlMN6iTkOs70eFAJfShM2jnEwUSv 8alAGNlefy+4scVSnVLwvOrofMvlC/yizQlsCKPqLoY78vte8TNOVdSDhYYeK+RTx3L8HcrP5AkfkO ErlTxfBLSsdjGH1Mp2FXszoVswIQ9seqOIxxmrpZyF7xKRVhDiuO6rM0vafg== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Document SM8550 compatible for the True Random Number Generator. Reviewed-by: Om Prakash Singh Signed-off-by: Neil Armstrong Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/crypto/qcom,prng.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/crypto/qcom,prng.yaml b/Documentation/devicetree/bindings/crypto/qcom,prng.yaml index 4245c9e424a3..633993f801c6 100644 --- a/Documentation/devicetree/bindings/crypto/qcom,prng.yaml +++ b/Documentation/devicetree/bindings/crypto/qcom,prng.yaml @@ -16,7 +16,9 @@ properties: - qcom,prng # 8916 etc. - qcom,prng-ee # 8996 and later using EE - items: - - const: qcom,sm8450-trng + - enum: + - qcom,sm8450-trng + - qcom,sm8550-trng - const: qcom,trng reg: From patchwork Mon Aug 28 08:04:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 717934 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B68BC83F13 for ; Mon, 28 Aug 2023 08:06:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229905AbjH1IGA (ORCPT ); Mon, 28 Aug 2023 04:06:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229705AbjH1IF2 (ORCPT ); Mon, 28 Aug 2023 04:05:28 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 237D1129 for ; Mon, 28 Aug 2023 01:05:21 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-3fe32016bc8so24981725e9.1 for ; Mon, 28 Aug 2023 01:05:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693209919; x=1693814719; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=8H6vpb7vz8I4elOBNs6E9tcR89qbBd43TTRc4haGCdE=; b=eXAQx5mIYJLteB1/kjkx1jM0vJP9s55L21WgpWJLcFABdk28qow057Qi5hIZMF8GsJ 3O/zxYyuz4IYKBeepD227Cdqw8DA+bQSD2KAygDBG9wqn5nWjNgRHIFErNVKq1c5iwKJ IyEuMyUZKJisgblRVifxkla42J921suJf7gNf9FbhLUnSAEa2rIB0nhVZ3hM9RF1EZkv IXlFzUcfU28pvL7ZMwWKWVEdf2dwmcnlyTLcgMcn4TTKMB3qZrX6UJP++Z7QgQ5cUEgc 0N1kOZ7j/6jEklmujR4gpoE+8xpRONWJYEXYbR9o0uJdVxe6M33ZV94cOrJPAR/d8eAX +n/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693209919; x=1693814719; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8H6vpb7vz8I4elOBNs6E9tcR89qbBd43TTRc4haGCdE=; b=I2FNdUUu9fWi8Szait3CHLqOUB18owOi/gQiJ4eMsyaXVcSu16TQxIdEE/6frfoxJZ kDuXSnYiPFbhQyGZSFQ2ZnBUR/HMG7NgL5Cx7Sns3QgzsicZjEEnfZagx6c23NPQSHTN Sx+hgra8jAK99BjsQ28Z6VI8qV5e05TqJgRxybGUta9wsuQk5ARaabDyrG+WN0v9Km6k P3K5uCba5mqV0NbKrfr76LZ36fztxrDLJoA1F5178bJKaJ6yQHerXxX+SIrTQoTj2lLL 9amrTo1rAprygoufegwzgBgwD0UUf8d2M87SYaTYOBs8mEv/RXKz4feXvClAlE8Zo+XN MUeg== X-Gm-Message-State: AOJu0YwL5F80ywORyDdzgUm5zl1DO0qDytAoKSfgor6Mo8RxglfolDRC 0Dq54MomcwPk3sqQb0XnFtf0NA== X-Google-Smtp-Source: AGHT+IHdO24JFhU9CHCfYSOpLnq0vwHNEayFbkbQPzMH31amPzA7JkJI1G0Q1gsAG67S47gsU2PT9g== X-Received: by 2002:a05:600c:446:b0:401:519:bd with SMTP id s6-20020a05600c044600b00401051900bdmr9007695wmb.37.1693209919695; Mon, 28 Aug 2023 01:05:19 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id z16-20020a1c4c10000000b003fa96fe2bd9sm13067035wmf.22.2023.08.28.01.05.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Aug 2023 01:05:19 -0700 (PDT) From: Neil Armstrong Date: Mon, 28 Aug 2023 10:04:40 +0200 Subject: [PATCH v3 5/6] arm64: dts: qcom: sm8550: add TRNG node MIME-Version: 1.0 Message-Id: <20230828-topic-sm8550-rng-v3-5-7a0678ca7988@linaro.org> References: <20230828-topic-sm8550-rng-v3-0-7a0678ca7988@linaro.org> In-Reply-To: <20230828-topic-sm8550-rng-v3-0-7a0678ca7988@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Herbert Xu , "David S. Miller" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul Cc: linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=811; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=pEfVqD3bo2rwpc4UXYzUwHbnl5WWQlZjBsz2SVzEcNk=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBk7FU42CR3DBT8IftFWJDKHNPN2HqvE3iv6iB1jeTs 8RiwfaKJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZOxVOAAKCRB33NvayMhJ0dr3D/ wMd9jubMSwmfygqPzjlzwcke1LHpDbsjLes9oCKTRnDnAHzYgOauRpYaS21c87JUmF7E3WmWrhyEhr 2jXEsoVjae2VbbP5+SQ3mWZHI60uzIC3Hl2dnd2365wGJ6ZYzMfI+c/y+bziZMPRPzw6mEJ9gbiteb /2lwKKw2aeERcOOFXweKibcCJRyqKCt6xy2+HxKen3HQM7iZwIrouRM2l2sguYZLHHteJ7WPfbjAce I8gdhEhbrP58J9HVBuz5lb4yQGo9dhsmdNAGJ5VM1vUBzw6MLZJnzxCEaE7r8IyROILloATW9tJcDo ZqdJT+ZK2CJJgts+X5OLHt//kYENqAYcJHw0CtLw8FAlXPwSpfQDicxnoXc8xb3kevEE2UGEAs29TK qk/goMw9FtR8l3s+kbbyWb0mtQNzmwwANd0dBhSRJT08OklKQURerv1zGL2A9GqT2qaAqexts/7I2z rntGPPq3IkjXnIZSZSGuFM5Uxrh3iyGDDyqdNumlPhaHHTt42oImKyTl+WJpx8Nd4H6xWJsQpX/el1 0SFf3SwZ9XPfpPBeeJHA5Y/xIoiWds/bKDWJzjDiUVRyGWzpIhlW7EK0p2GtGGu7bYqvF/2oH7T7gD ynGjpfQDBGn81KziJsSpSc1+vYQJ8H5uUX6nFLq3TB6Se+rs9MyqRtBKSk5Q== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Add the Qualcomm True Random Number Generator node. Reviewed-by: Konrad Dybcio Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/qcom/sm8550.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index d115960bdeec..c42c5bd03a37 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -1661,6 +1661,11 @@ mmss_noc: interconnect@1780000 { qcom,bcm-voters = <&apps_bcm_voter>; }; + rng: rng@10c3000 { + compatible = "qcom,sm8550-trng", "qcom,trng"; + reg = <0 0x010c3000 0 0x1000>; + }; + pcie0: pci@1c00000 { device_type = "pci"; compatible = "qcom,pcie-sm8550"; From patchwork Mon Aug 28 08:04:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 717935 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0735C83F1D for ; Mon, 28 Aug 2023 08:06:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229927AbjH1IGD (ORCPT ); Mon, 28 Aug 2023 04:06:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229755AbjH1IF3 (ORCPT ); Mon, 28 Aug 2023 04:05:29 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31269191 for ; Mon, 28 Aug 2023 01:05:22 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-401187f8071so17998925e9.0 for ; Mon, 28 Aug 2023 01:05:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693209920; x=1693814720; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=UQ5Oj6dPwAeurm4890sw86MQpHuIzNsi2cFp4x5AjEw=; b=Or+X4HqXgab7p8Bc6QU0kgEnAZkyk8YD5tkpmqMVP2bvEoJNWb5li3w/ua17Wa1jd/ outK8KUi4/EWIH7InY3sIrvRoi2vQUMgwwEjHIbZsjEKHqVMAioGAXIVVXNoBp11B0dp iXxRVbAXtdYnPNZFlu9Oe6tuBBZKW0F82AX2W9I2OUoOt2384aTCEAmkxSXVAK1Yqy6A 4saV/a47fveFBAlMNANN4Xwi93Wli3r1T3QhL6gwkTC8I1QakAb2giP9T3b1Y9omdQBP my4CBxpH6LSJp3rYHVtUntPFs9TAExVdAx3pmh94j91d9VDVqaj77usIy1yvs+X439e8 glrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693209920; x=1693814720; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UQ5Oj6dPwAeurm4890sw86MQpHuIzNsi2cFp4x5AjEw=; b=bA11W7fxWn2auSWJ5tD9q3HqLTyaEDK2WaYnzNwhACCmVv0yoyaGJ/hqQyFNA6jepa S3Z6CmGyg2RSERI1gA/QhAw/J1+DoViDSIWWfv/kdJfqmyDvBbLyNKjhO/62oZ9kYFcf jtE4fv0DCsFHuDtF7H8zM8rHBlQJ3TPyns4g7v3kU4uiuVgerpz5xhz4X9W16BgpsR7j 5Hi913pr81UmT8Rg6vZMq4D9N00stZ+JTx8Zzm9A743zM/daJVLxTHKcKHRAsbLc+/n6 31bLCZykMQHYO79G67K19qMib1BxNYCAoNvignCXOD1NgZ0/Pq+9w1/GhBIR61NU7Ujk Qe7A== X-Gm-Message-State: AOJu0Yyn49tAFiSTmlzmG6ATOZ26yyBQXt/5FEW1f7VaKqkP9oTM9iO6 Oor10r2L2uXCk0A8Vew7T1ixWw== X-Google-Smtp-Source: AGHT+IF22r5FjSBxYy8sW/y39UnlaDyM/PsQz1C7ObZ/6JiOQheJ1wW/uoh/KdxajGS0R5jzMnWIYA== X-Received: by 2002:a7b:c8d0:0:b0:3f6:d90:3db with SMTP id f16-20020a7bc8d0000000b003f60d9003dbmr20239679wml.3.1693209920712; Mon, 28 Aug 2023 01:05:20 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id z16-20020a1c4c10000000b003fa96fe2bd9sm13067035wmf.22.2023.08.28.01.05.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Aug 2023 01:05:20 -0700 (PDT) From: Neil Armstrong Date: Mon, 28 Aug 2023 10:04:41 +0200 Subject: [PATCH v3 6/6] arm64: dts: qcom: sm8450: add TRNG node MIME-Version: 1.0 Message-Id: <20230828-topic-sm8550-rng-v3-6-7a0678ca7988@linaro.org> References: <20230828-topic-sm8550-rng-v3-0-7a0678ca7988@linaro.org> In-Reply-To: <20230828-topic-sm8550-rng-v3-0-7a0678ca7988@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Herbert Xu , "David S. Miller" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul Cc: linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=826; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=dDA/t5wxOksk/sHtfojL7tFaSJFH5RjxPNNhxCh91eY=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBk7FU5W5EUQDZTjl8yU1azqFvazPRpMFkFH9e8IRbS HclK4HWJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZOxVOQAKCRB33NvayMhJ0RkgEA CaTwxgg+dHEFnY+HuVmYb7WoBT39wsJ5v3o0AXAAxGVRImWgWbdsX4dLiBQCXJejUtKQjiT3IQAPag mSoDOIXsQLhS/huzsgkNI8IIGKzP/W2iLqdcS/IAnpaURWWlOzYTnHYAkMZasvxXXX6now3DjEZpA7 izTFclq4PAjDclQmzt+2O3s3Z+Xp5OWMk5zhStDfN67z3woCOg6nXMBM5pvhzAwOHAJdPXONRZ3yJC kOtKUHnIC2xiQNxWErPpKKQNYXsY5Jy/2YrgdE3UsdaMwz51nzUgUiZL/MWYx2Fj/CCylL2KxYztyI INA21YyjzDmO/QYunse2P+CN3DGqr8UJEEQJEn19FMuzg5oLJxW6J+Jk+UCkjCpv8HvzWi/X7XQjYX 4p1kG5mtmeQPZnqwPdDt0RZsprTEl7GmscLXNHtRmW4jmZyuBmHwoxRdg4oeJsX8aO5yu9YZkTs6JH L0K0Ib1f/m5SFcqWdq4S+EZXDWLrMDBKCWs4Da0EUs7zRHcBVVXSEEh2IHs25vRXBVmJTnLKYvWPmw sgcjjQOI1hozD8iwdJCpya2daexh/caJtYiuRimg8+qBAUFuWeac4uCAH34y/wwY2aoPt46aLueGVe QQbYd3sJPXLo7nZVwAy15mY2IIet3Vy0h0bS7bJCrrU6/37REr9/IutKXxPA== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org The SM8450 SoC has a True Random Number Generator, add the node with the correct compatible set. Reviewed-by: Konrad Dybcio Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/qcom/sm8450.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index 6ae64059cea5..e267c6286b1a 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -1738,6 +1738,11 @@ spi14: spi@a98000 { }; }; + rng: rng@10c3000 { + compatible = "qcom,sm8450-trng", "qcom,trng"; + reg = <0 0x010c3000 0 0x1000>; + }; + pcie0: pci@1c00000 { compatible = "qcom,pcie-sm8450-pcie0"; reg = <0 0x01c00000 0 0x3000>,