From patchwork Thu Aug 24 11:33:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 716643 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 0BB75C7113B for ; Thu, 24 Aug 2023 11:34:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241011AbjHXLdz (ORCPT ); Thu, 24 Aug 2023 07:33:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241013AbjHXLde (ORCPT ); Thu, 24 Aug 2023 07:33:34 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F738198A for ; Thu, 24 Aug 2023 04:33:32 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-319559fd67dso5969865f8f.3 for ; Thu, 24 Aug 2023 04:33:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692876811; x=1693481611; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=yC8fuqTzuiabrnYWwAhiJIKgyhh3Mk1H5rlP+xTvTnI=; b=igQv/zrnXwHM5gwk8wWQESGx3C+u/yZGYbbhqE/71fO2mGsqYeLjKR/39WqnIyMoKK fo2iaeQdN55xgyTC7dkEsjcTPcH/WoE+i6YIDK0+BA8v84tmiBqCzZxS9sH6ZAACGbmI YsOtv17vEGgCyPcCFWMUdXSDP9HHAEpUUKvt0kBsJv2PMgGmjyLjmyISWu76EddxCTDn EbaqmGaR44oHPFgDcKqrljPyp6kkRaN/CfP5fgGJ9d7CVWHLHbTi3rn2O49ciwhhiUnH dxWJ6usUTvXjp2PglDox+rlrOUKT/luxPlYffiNznVPUV5VRqZlA2H4RHtPe+gSY1fra GVwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692876811; x=1693481611; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yC8fuqTzuiabrnYWwAhiJIKgyhh3Mk1H5rlP+xTvTnI=; b=abqeT1j+mHbHO/dS8yTzUQOvnry1ywRgTpn0et11cC8iu2Q7iAoCViyNN/2X9L8dF2 LKHdEysj4QLg+mTbdFKJ6UbmIUcOKSfGBebyOCjjhMTVPPrHcI77LTbiF4jkGXpn4O7w rw+z8NqYpUBJ0moQ2rjaSXLrd5B2SSWFx9NUQmTJ1WdC9sNszEvVRPDkK7Ra7YH2nuWE RxZ0kcjIxcQjfUZlOzeLltKR/KC9Mf+FTFXkrVAq8EU8HXMUaTKRVZMd+1/iqX49HJgf TgWdoUmFL1p8XIkEqszvBB0OGeTxCD+mkYrt2ADV75T73nFGx8ZUF98vblyeUVRGm3tT ucDw== X-Gm-Message-State: AOJu0Yzs8XEsfI3RfviCGqfkN1brHcjhraTwyxjzOPcAcpEiOINoiEUS ezS9F2BPmJrU+dmObOFdFXK7JwvllXCbAvB2GK08WnsN X-Google-Smtp-Source: AGHT+IEuKIOqpYdFLoEc3uJDous6FKrrl9wXIPxcO+vuIcm6WuADk3WDktemifszunQw4zVYDY2uEA== X-Received: by 2002:a05:6000:1807:b0:316:fc86:28ae with SMTP id m7-20020a056000180700b00316fc8628aemr10125694wrh.15.1692876810636; Thu, 24 Aug 2023 04:33:30 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id e11-20020a5d65cb000000b003179d7ed4f3sm22063938wrw.12.2023.08.24.04.33.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Aug 2023 04:33:30 -0700 (PDT) From: Neil Armstrong Subject: [PATCH v2 0/7] arm64: qcom: sm8550: enable RNG Date: Thu, 24 Aug 2023 13:33:19 +0200 Message-Id: <20230824-topic-sm8550-rng-v2-0-dfcafbb16a3e@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAP8/52QC/32NQQ6CQAxFr0K6tqZTHJ248h6GBYEKTXSGdAjRE O7uyAFcvpf891fIYioZrtUKJotmTbEAHyroxjYOgtoXBiauKTDjnCbtML+C94QWB+xC7U58CbU wQZlNJg9978l7U3jUPCf77A+L+9k/scUhYRBH5L07+97dnhpbS8dkAzTbtn0Bi1oLc7EAAAA= 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 , =?utf-8?q?=EF=BF=BCOm_Prakash_S?= =?utf-8?q?ingh?= X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1392; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=ouJjqlHbJ9Q1ClPHm6B8a1xk6Kp+RJrUCNvbJ68Jc/8=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBk50AGVZrb06NDM7Lo+iLktpmxPB8RGE+vbQWDsN4b l9WNHzuJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZOdABgAKCRB33NvayMhJ0SShD/ 495Rv4XzpodSbsg30ceHZ7dtVHdXZn/Vn4A4F03LybVg2rkjntADljZ9CGLUyPAY+mwKABxAwORAVZ D1TY0lnzWrb0zO58uMvwzM3hOE+oCoMN2AaPg7KZSFMtoEnYxlRg3jHf2kpB3zQOFa7GVuAGlbuWpM ubgL4pASC9qdibXzcK7AmGe/O4zQYUfHOJ2PnxTfITRsH56cHeyld1pzvZ3kpn2dkw90Iy7FEuU669 b3ukeyO/8xsTU1Ss8/TIE2yrQ+WeDJ4QEk0AaW1XOjoyjoxvsDfjKAq9G5ZNDnDFJ4RYzrfsudtFSv Px3YWv5DtOLIM2z0flvEVmo6mJovxMtZPb6gxP0Oe6monA+3hcDd6PCLkq8BHtDxDgFq7S/8VhGeoL dbO6COS4hJ+XsRZ/f8Xvhj62FkDASbn3X3jYAO31hyJ6zyUa9A4FHgaYpVnz9gUtNnZySCuWrX8i7j PKHckt3WGsnHA8WA0fSU2eVWCA5K3Tq1XQWhJ20cDozyJK6jdYfK8/lzE9yrHhB89v06S3+PLVvmdy PpZ8tPaKcz0JBw6uXKes5HcybWlmnD1WA9/MH5K1MnWpYO7eEB8DOcIZ0dlij7xMOmpYoySHQ8yoeT euli+hqPMwnRzhITixnU/qxMXdANI75Vk8u4I8CzUfa4FKBYCW6TTlN60ETw== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Enable RNG on SM8550 by reverting the PRNG bindings & DT for SM8450 and correctly document it as a True Random Number Generator. Signed-off-by: Neil Armstrong Reviewed-by: Konrad Dybcio --- Changes in v2: - Revert SM8450 DT & bindings - Add new qcom,trng compatible and use it for SM8450 & SM8550 - Explicitly didn't collect the Reviewed-by tags due to the compatible change - Link to v1: https://lore.kernel.org/r/20230822-topic-sm8550-rng-v1-0-8e10055165d1@linaro.org --- Neil Armstrong (7): Revert "dt-bindings: crypto: qcom,prng: Add SM8450" Revert "arm64: dts: qcom: sm8450: Add PRNG" dt-bindings: crypto: qcom,prng: document that RNG on SM8450 is a TRNG crypto: qcom-rng - Add support for trng dt-bindings: crypto: qcom,prng: document SM8550 arm64: dts: qcom: sm8550: add TRNG node arm64: dts: qcom: sm8450: add TRNG node Documentation/devicetree/bindings/crypto/qcom,prng.yaml | 8 +++++--- arch/arm64/boot/dts/qcom/sm8450.dtsi | 2 +- arch/arm64/boot/dts/qcom/sm8550.dtsi | 5 +++++ drivers/crypto/qcom-rng.c | 1 + 4 files changed, 12 insertions(+), 4 deletions(-) --- base-commit: 28c736b0e92e11bfe2b9997688213dc43cb22182 change-id: 20230822-topic-sm8550-rng-c83142783e20 Best regards,