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: 717989 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 AA35DC83F22 for ; Mon, 28 Aug 2023 08:06:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229900AbjH1IGA (ORCPT ); Mon, 28 Aug 2023 04:06:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229601AbjH1IFZ (ORCPT ); Mon, 28 Aug 2023 04:05:25 -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 2597318F for ; Mon, 28 Aug 2023 01:05:17 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3fee87dd251so27219155e9.2 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=RJyp3Q9/eKfnv+wkCpqfRU5FsPT6/HCYEYi7VFoLznehkAK/vEWaxn2sniv+LyPO67 mDVO1lkK5lA+qn/bo0gG6TCLv4zQHa29kmc0Q8Ks279w2IiEPRyveNppaoxYjMow2C1V L2PHONeun3Oxs2vJeBNiAIdrpcgEaYX3YFTgt0re8kuqHGumKMZ95uqr3Rw0yeTme0SO V4LWw1usg71/jFI1tt02/M+xLFM0YXdVSppx0YQRxa4f76+MwXz3/UnQ6TxA5Xk4QOUw 9j3149jRTt6Z1v/H5gtHR7kL0c98iYD05Vr2MHxdzbSImmLrVuuK+2zZXNiLzZ/swW2z 6haQ== X-Gm-Message-State: AOJu0YxVyyVjQAmTh4ujgbGnIp+3Wd3djY3MsW88tRN1wRBuFP5I32VY 115zY1Vp0aIoYU8Lo8DC5ok2MA== 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: devicetree@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: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: 717990 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 755CEC83F1B for ; Mon, 28 Aug 2023 08:06:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229781AbjH1IF6 (ORCPT ); Mon, 28 Aug 2023 04:05:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229657AbjH1IF1 (ORCPT ); Mon, 28 Aug 2023 04:05:27 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EFF31A4 for ; Mon, 28 Aug 2023 01:05:19 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3ff5ddb4329so23557455e9.0 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=hQ4YKk+qkk2l2/L754bW2Yh8x7BuvHBQ52/zZNiOLo5Hw9lXjNdQnavAK8yJ391Lot vFv33JIuEqWMaAYrQ3kO15phc6X0+oBnzvtDn15rYFlt4tANBvX1O1463QXsqDlJbBMw 5Bzqf3N/+HUS9URBchF30iIBFOvMEyE2xMqf9UfCecbbNHsaUKQGV/OfFjOiAW3MXe+L p+zREgrQ/1dPcqQAg8IIhCw/z09IXgYYj1jY/kvS6DhHHP2B5ejGupUYP4Y2OEh0QqoJ cbvD5ArNCk1TJpE8kSZMBbK+oFPCFl3k0ARP1zPkzO1jDXbgjj2CiN8TrX3RaQS5hpe0 EmYA== X-Gm-Message-State: AOJu0Yx9XGa7adfJECjJTyT7vMdIqm7ADScG+sO7unoGVJI7hGnijAql aUW0I3ZajAQP/DeyHzkP8jRIwg== 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: devicetree@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: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: 717988 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 5E9EDC83F19 for ; Mon, 28 Aug 2023 08:06:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229705AbjH1IGB (ORCPT ); Mon, 28 Aug 2023 04:06:01 -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 S229759AbjH1IF3 (ORCPT ); Mon, 28 Aug 2023 04:05:29 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F606189 for ; Mon, 28 Aug 2023 01:05:22 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-4018af103bcso17852265e9.1 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=gtMS8iYn3u2PR0gx7LSS1wt4emixTNHUHUcFez8feBfYJ0NgBIAw3VAu63L9vbi4vT Vk3QhaU83StUoBfw2OaXUn0cRfhlIMox4su50v3s/SyMz4WPmC5S49CJ9PiUBse4Lwo7 8yzR2pdmpCS/sdV6LKk9v+RBniaCAFUnndgM0G6NeMYsgYOIdcVfQfekUpyklnURoKQP UbRauJXLO3RH6B3kI84Arv3yKp1l1HhR8YjwpF066Y4t5NuBj88sgcwBf2uqz4Tgrr33 Y4nKaG9mlobRUzqChmMMjxD/Mc0mwAH66XWL6Y9xZ9V88ecgBVzv/XI/7Qh7//YIe5ts 5MwA== X-Gm-Message-State: AOJu0YzbyC4BVYTHcsJcOs4x4ZK+yfke6VNLZGjyBDJykMBouPSE2dF8 eviqs8t+kJ1MthFyyCrXEzq9jA== 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: devicetree@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>,