From patchwork Thu Aug 24 11:33:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13364016 X-Patchwork-Delegate: herbert@gondor.apana.org.au 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 7721DEE4993 for ; Thu, 24 Aug 2023 11:34:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241019AbjHXLd4 (ORCPT ); Thu, 24 Aug 2023 07:33:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241016AbjHXLdf (ORCPT ); Thu, 24 Aug 2023 07:33:35 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70A511988 for ; Thu, 24 Aug 2023 04:33:33 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-31c615eb6feso2185704f8f.3 for ; Thu, 24 Aug 2023 04:33:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692876812; x=1693481612; 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=/zLEugS9nGy8m343fO+U0oktU9vdXHi5A6uYZtgbj+Y=; b=fhauLR6cP3+CaAuEJnRjyJfMlCl4+50UKz/iA0gvrRkgNkM9rw+8iG9nAS8AsMyi5U kXqQ/2GnzP/pWSc4nX9jJ6vRoLbvjnf8P3ZumSRobZrMTlr8wa9MCBP0Kki7XoHDy+K9 RZocciL8warIawbdtxiu9JfxwOOQ5df5pDdJzU6/iE5oq2hgC6KNl13pRP8Ef04brkK9 JlvgWEEcpMZ9v9bT4McT32ROUdPVNRux60VVGfcBzbckEF8AgKZwZzVfyzM2YNgz1E/V 5ugCy9WJOZu+ghxfCFyoh4NZE/DL6WBhdXZRcgp7xbS9b0PnPq8D5gy6wKJb/oxwtfNN tNaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692876812; x=1693481612; 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=/zLEugS9nGy8m343fO+U0oktU9vdXHi5A6uYZtgbj+Y=; b=HASqJ2ITBHRnRDLocFeIRZmKHkw7X8mgv/+MTzHYjUh8GR9vLHCmB2qctoAvexcBud pFJWI05lOU7d0xrRRSmvFK4hfnZ8vhDTfmGdOoqME4vUQ3Hs88vTGeaIHMkhzqo/yg0g Kecw8vTWwa+tlwtdd/00KOzBex8oMKPscNv6ToBwSKheUOULTC5dlF7DdtLchly8vGqb SScbpdNfn/NFgesEUqJ3TxXD0xX2HsfNa4JNMZ/0WUGEmjQ+3aJ06pYOl0keSaykr/9M rttw+JlNRw6LPuwP/LgWCec+JEXuP/SvE6Md6g6kRLtZ9ci98bG4a1McCo9Jv3xJ39q0 Bc9w== X-Gm-Message-State: AOJu0Ywkduf4FLzpbdjmsElYKeq1Zqx6MYakrNPPvkvsBCgYRNlXqxka CDFtlxp11NSJe0sS1Bc43zkQR9biLIeYTO6iE0WjK1cr X-Google-Smtp-Source: AGHT+IHdlm0pCfUXTMAW+oEg9e7tbMyzzy0UWxKgoF3H5LcX/OgEvj1myD84qVb5w71QFmaFqVNffw== X-Received: by 2002:adf:e94a:0:b0:317:5e55:f06f with SMTP id m10-20020adfe94a000000b003175e55f06fmr10450881wrn.10.1692876811806; Thu, 24 Aug 2023 04:33:31 -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.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Aug 2023 04:33:31 -0700 (PDT) From: Neil Armstrong Date: Thu, 24 Aug 2023 13:33:20 +0200 Subject: [PATCH v2 1/7] Revert "dt-bindings: crypto: qcom,prng: Add SM8450" MIME-Version: 1.0 Message-Id: <20230824-topic-sm8550-rng-v2-1-dfcafbb16a3e@linaro.org> References: <20230824-topic-sm8550-rng-v2-0-dfcafbb16a3e@linaro.org> In-Reply-To: <20230824-topic-sm8550-rng-v2-0-dfcafbb16a3e@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 , =?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=1711; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=EODyGQ1y4duRBKRaBi61Aed2m4X+YZ+nDCkWqRCBxew=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBk50AGSFzrid752MpfRtb3lHjKyf4Ta9G7nvQzQdid 3MRCwfSJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZOdABgAKCRB33NvayMhJ0VgOD/ 9P0ms5HF+aOhh/gDWf3V9BdcjWLxs/tDgwdDtVi/MDurRIhY6+VScAV4nGpxqdp9rQgL6fQOyivbxS tbWrCKRLnb01osuBQay4YyJfQxOCKOkNS+Ry3ZR1Yj9+xF2cPyZ+2hi5T/eRn1ySxrRusi8BSUe4vO EMNCIr6iGuE4n4KcuntigfNl3kH76Fk+BFnHX+m2A+MxEpNt7cYQ7dS1Ek2ewsQHVHshXl9IzKxlw6 32M707vrQ2Lfg/AEnLdhZcMkkBpqAwW2lgHILUuAQ+5gN5W2DPAXM0Iyc1daMMIT28z7AJjJsAig4T 05PoCpfqux0pO/ChkaAeNczl33Y5P1zq5lFU7cO/0PDdbMHklEXyA8zmg1f3ZQLCpbKMHgi7HRQtq7 ChaLaCPA7RRoxn9f0DZOW51T0WSU5Nh2PJOstiZDNH+70QW/xcb+n8mVBcTlqEf0ab96xG1qpWUYDr rbkkQ5igM+FyTmPpBUzR6OOMVMXAgIEHGjOeGwYD7tv1fLBIph4TbssgPq80lNDTle9l2+OVJTSVw1 B1T1etoayWtHirTySHuX5Wf5XRiBjlTq42w2txnKlR0F8eXnBMEmij0sQ3W5M0qwQ+2yo1Csa3nJv6 mgjRQuOFdeLP4UP106FkcK1amv5XFD+aUuKgBBM0NioUfOaWy5FSDJnEjWpQ== 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 b9296bb41275 ("dt-bindings: crypto: qcom,prng: Add SM8450"), 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 Signed-off-by: Neil Armstrong Reviewed-by: Konrad Dybcio --- .../devicetree/bindings/crypto/qcom,prng.yaml | 24 +++++----------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/Documentation/devicetree/bindings/crypto/qcom,prng.yaml b/Documentation/devicetree/bindings/crypto/qcom,prng.yaml index 36b0ebd9a44b..bb42f4588b40 100644 --- a/Documentation/devicetree/bindings/crypto/qcom,prng.yaml +++ b/Documentation/devicetree/bindings/crypto/qcom,prng.yaml @@ -11,13 +11,9 @@ maintainers: properties: compatible: - oneOf: - - enum: - - qcom,prng # 8916 etc. - - qcom,prng-ee # 8996 and later using EE - - items: - - const: qcom,sm8450-prng-ee - - const: qcom,prng-ee + enum: + - qcom,prng # 8916 etc. + - qcom,prng-ee # 8996 and later using EE reg: maxItems: 1 @@ -32,18 +28,8 @@ properties: required: - compatible - reg - -allOf: - - if: - not: - properties: - compatible: - contains: - const: qcom,sm8450-prng-ee - then: - required: - - clocks - - clock-names + - clocks + - clock-names additionalProperties: false From patchwork Thu Aug 24 11:33:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13364019 X-Patchwork-Delegate: herbert@gondor.apana.org.au 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 48FC7EE49B4 for ; Thu, 24 Aug 2023 11:34:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241049AbjHXLd5 (ORCPT ); Thu, 24 Aug 2023 07:33:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241025AbjHXLdh (ORCPT ); Thu, 24 Aug 2023 07:33:37 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B77519AA for ; Thu, 24 Aug 2023 04:33:34 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-31969580797so5874098f8f.3 for ; Thu, 24 Aug 2023 04:33:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692876813; x=1693481613; 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=dCQJ0HEmvAIeIzx96XMkOTcNZEHipw/uoFK63652WMA=; b=mCCw58ueRn7gnnQUotU8NGbAHpldqhnBr0gymOmH+PCACnYLmKUug5JrUwg32GmKAg +Dr9XeP6cjG0+Pz8mNkSpMaQUffe5mIhKVjAsLs1CARtpQPPlXWPwYsC+LWJBSNMKDsf iz2qZnAJCg1H0OtQUX/4omMvhzH/akcITZHz6ixGcnJK+8PWoPFl+n7orpAShoFax2qV bvl1OQ9zHSndXtYYxu8KPU6yKj4SXR/jLZhuO1dii5MLZyvcbEX/cx+6l3x4tJqs5q22 c0IYyIYr8t1MHUsRBywImQZiuFCT/z3M9N5Q/wNWN3vcUy6Xp6gqLBoWY+HMkLan3+iZ d57Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692876813; x=1693481613; 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=dCQJ0HEmvAIeIzx96XMkOTcNZEHipw/uoFK63652WMA=; b=Jg7Kt4UEdnHvX2+8PiFfP0eoMPwK4hDDSxpduw04J6+oTWKIESc+Ikc2xl1L/cNDX3 ojTHNrZ0vt5rLFbzX+pLi6V/2eaUxWHbt1t7UWtvig9zQroKPwtLfEsJE3kDvAqwOtNn rNrZaQ2rMKKj1zdM9j50ieLZNwbdJ/3bi9HQFml2qqZo+CuPNamTT5dnL4NXNGSRgy0O SimXHVbsJHbmKf8pkkWq2yYok5GadsfMm1VQpG1ZDQa5t/xUCSeeC9sxBeUkToU6rU5a zpGfJuvUSgU5DJVVzrDVrzICdNfvthQPi4uHzSC1LxK9fZxsgPh0eniP7udCx0IcIJ+c oeuQ== X-Gm-Message-State: AOJu0YzWIwrCIDqFVy0V6N71EOnWPSHjhNVdq/vOgP9VEiklBkWtfK2s LAn3FqgXWx/mmxNlxZi8z7ahZCQ4FV8yVfcjsKtWIYom X-Google-Smtp-Source: AGHT+IHFkOzwoiDKS1M+9awep7UXQ7whHEb5BY5rmtmF3nmAlhVdET+6kklB8fZLrhVT4MA3J2wrSA== X-Received: by 2002:adf:cd01:0:b0:314:4a15:e557 with SMTP id w1-20020adfcd01000000b003144a15e557mr10889945wrm.5.1692876812822; Thu, 24 Aug 2023 04:33:32 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Aug 2023 04:33:32 -0700 (PDT) From: Neil Armstrong Date: Thu, 24 Aug 2023 13:33:21 +0200 Subject: [PATCH v2 2/7] Revert "arm64: dts: qcom: sm8450: Add PRNG" MIME-Version: 1.0 Message-Id: <20230824-topic-sm8550-rng-v2-2-dfcafbb16a3e@linaro.org> References: <20230824-topic-sm8550-rng-v2-0-dfcafbb16a3e@linaro.org> In-Reply-To: <20230824-topic-sm8550-rng-v2-0-dfcafbb16a3e@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 , =?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=1108; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=CpcmIHORtbvBnd7b5HrtEsUbgbLwtbbEDDTih33SKM0=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBk50AHegzZZk+mpLorQ+6F8qmJZ8p5quI6VnOm0qQX xGhJJ4qJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZOdABwAKCRB33NvayMhJ0cdND/ 40CjMvgYnxm/vbtutlMq9sSnn4+pPD0vo/OaZUeZ7zViCVoeAA1UPtba4qz/sNRqAnVTtmhjn82Gv0 4AoUBX1EunWWVl58ysB3Jk8GN1Jaeo9XSiXdGRXIvffSxRr3J4gWkdeQYveaQr19/9UJ0GzHb/1vNZ gV9w7E9xM8YPlA40pOOQ8g6gsgNHvtUJlas6tOueXGxW7DRxOeK0HyiZ+IfUytrtwW5c1k82Px5nTC /zgeyl0I15Scw58+BPgf5CHUEfPHSxXQkSemB9ExKUnZIJtJpCOYT3xqjU8oEhUvCFZXZhb1wD/Rdf BVt/crgLLxT058mQ1mgyuLPKO4OOVJX0IhkqSDq5Z7LIwKEdOTSvv9VzJOmC68fZ8/qtuHPnY3TgLV GJqhooZxbPRgo+DecVZRo9D2XrFtS3rkTelP0Jl4LSdWpQZy9taTnOBDAHm0GNEZ5yvhlXs8vRqoxK 9qNChQa5j4Hecacsaa+Uao/lcSyaL9uJD2DA5HNXx1JcKSFMCBCdEhA51Ej4Elw0urHwz7pXdOaZJb RGSPpYS196ub/M3Uefkqz+m6OlyNjDZ4jyBnhlr7nzyc/93Nq4LYShdPrAkSwqcIrvTEEJ8Ch6jx3y YDtUCA54fVcIy2Hm4jkOTIFTl4/AoahMDRDt7Rg+wcCDJfvhYrUmY3P9JAXw== 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 Signed-off-by: Neil Armstrong Reviewed-by: Konrad Dybcio --- 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 Thu Aug 24 11:33:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13364017 X-Patchwork-Delegate: herbert@gondor.apana.org.au 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 B6EF6EE49AB for ; Thu, 24 Aug 2023 11:34:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241033AbjHXLd7 (ORCPT ); Thu, 24 Aug 2023 07:33:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241029AbjHXLdi (ORCPT ); Thu, 24 Aug 2023 07:33:38 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BA221993 for ; Thu, 24 Aug 2023 04:33:36 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-31c3726cc45so4016380f8f.0 for ; Thu, 24 Aug 2023 04:33:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692876814; x=1693481614; 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=t7JVgS4P+r3UmL+zEqqJ/GMQY1QC9tz8eDbv8910S9M=; b=V53f72SG/otue/+tuFudA5Q8YGHWoaxA7TQozk08FfxNYzkL6TRFZ5XYrWXm+tu917 LHZXwhfDDX3PfUTOmDvQIESdsTA8k491RCtuRtr8+k+Nk/y8nx3qdVSjLlAPirGTLQhu oBnn/0R10TpyKHJmulWLYI7WWxxnQrhKe6y1xhF1UOhIObAFW4WN3dvV4eFp/quYUsmV aXhYBp38psQR7VXrWjHrkBM7Z6LgbPJuIScT2TlLcLFWTXS5jSDEeVRqEn1NdAigZ2TO Ux2GEPMK/6Cj4IHH8u9YzD3oEBF7f0KtDwZkop3QwK/nwNhQXkVhtSBATD5LIxIFZhZG 7UFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692876814; x=1693481614; 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=t7JVgS4P+r3UmL+zEqqJ/GMQY1QC9tz8eDbv8910S9M=; b=YqAIic52d6yAIwusQx2P1v93VsfKUNABR/k3it6Khl4yPl5PoloPUEnrmU8peZAez6 YU3gPTqQlhJtg3w9SPvLgeBnXIYodNQGJ6bDZmicGElH7I2iazyu6mxVOpmLSYFrnatj c/Cft5cmwsF7pbwG0w2s+3iPTngH12xRNqWSYyx3R1ajhYeSD08JJ8ERkhyRYw5XmDud EbH8DMAbGtjAOPQVA8X2DoP2yWa/jGBBVjvoLR8Q0K5iCwiyH5exXGtA7DdPDLVbaV2r 9ZLoOxgHeWC3g3zruklMCT+4+FnRHS2yPUUluZHVegqepbZiFwql0Jy7lwmq5pjsTwYR WAmA== X-Gm-Message-State: AOJu0YxvIMlTHUsl7bPyN+dMFpH5MGQiebZNLWY5DGc1munj35MI6b39 O5EuM7QN0P8kJyg7TQEYQ73ksxTtQmjUA/hb0eVumchG X-Google-Smtp-Source: AGHT+IHf0MvesscCIVZNzz1z+yO4m4QsxlCrKzGMF4nH0xWogaqvZJyN56VfVspoOk4QUILlBU55nQ== X-Received: by 2002:adf:e886:0:b0:31a:d716:fd7e with SMTP id d6-20020adfe886000000b0031ad716fd7emr10256024wrm.71.1692876813920; Thu, 24 Aug 2023 04:33:33 -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.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Aug 2023 04:33:33 -0700 (PDT) From: Neil Armstrong Date: Thu, 24 Aug 2023 13:33:22 +0200 Subject: [PATCH v2 3/7] dt-bindings: crypto: qcom,prng: document that RNG on SM8450 is a TRNG MIME-Version: 1.0 Message-Id: <20230824-topic-sm8550-rng-v2-3-dfcafbb16a3e@linaro.org> References: <20230824-topic-sm8550-rng-v2-0-dfcafbb16a3e@linaro.org> In-Reply-To: <20230824-topic-sm8550-rng-v2-0-dfcafbb16a3e@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=1667; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=58wxphp2h2TI0jORKIXbWmrB3KQFcJDowKn8tdRUZt8=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBk50AHfonZie7b9AdU6R0NgcQ8qLlFJ07pEbuDwRPy LMYxB7GJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZOdABwAKCRB33NvayMhJ0fYjEA Cbmh8vjHfB/JtBtuEtXZ3GvClNvgfaYfr2V+grZgSUPiBD1Mxgx+jxQ49BRifHMDBxZrLKlN/ydraX SrqQdUsnKqskCEIaypmqRi7zZbPdzZPnAXuMKbyHr9zmfXc5+pGToiseqhiBUtKEQyevNbstyCKgbn WRSYTFdoVsONJSdrXToI08CZHNRDPO7cUbVn7gvactk6JMFhw5u1X/d52svCCLKfj9QS/eYweRZ8f5 GxefR7QpbdvnT8v5fYpAA9p/vnUL/lvALK9iBrkvwV8GOdeOjd/OdljfbrOoR1asp8kDQfOkQ+/QWp 2XzBZEqcR41CITJIGpo0leRZ7w/5F1xtpiCDrpWG9WwHcjYWOXAcQ1z/w0FppNRTY5HeAbaa2ttsw0 gxWklLb1znrWhaDkNje01FndKVtqOiXIDEyzgqVk+lhitIoaHA+EUYjgsChCj30xnjZ/ghqTLiyU1H KvANLDb6h/r0Levrk/lDtf7nS3WFHM5KYkEzq4NVN62r6Aks/m8Rm4khkPjBTIpTsmygaB4A1S8p4S rDqp/7iTFOYD1bwVKdGZA5OLfrnSwCw57LNr7CM269I++GBlIKYpLPZEqFGGhcRWQfoRkg/Wtk8tI5 qUxTxyFar3oVyxcBm9Q1DcIxGufSd0C2Ex+fCbqKAMb0NJsiTJLYJBsMPxuQ== 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 Signed-off-by: Neil Armstrong Reviewed-by: Om Prakash Singh --- .../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 Thu Aug 24 11:33:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13364018 X-Patchwork-Delegate: herbert@gondor.apana.org.au 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 EFD70EE49B0 for ; Thu, 24 Aug 2023 11:34:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241055AbjHXLd6 (ORCPT ); Thu, 24 Aug 2023 07:33:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241033AbjHXLdk (ORCPT ); Thu, 24 Aug 2023 07:33:40 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9E2A1987 for ; Thu, 24 Aug 2023 04:33:36 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-313e742a787so498362f8f.1 for ; Thu, 24 Aug 2023 04:33:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692876815; x=1693481615; 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=TT+3PtTEWwow+wvZw0jd3MVENA8M+HVZgmD6YM9pzZs=; b=qzfeJ6wS7TKcsaWDOdGCNO04aZT98Y1qdgzZt8seaXw7MrmvEQcgfM+MDHy0Q+4T3k aVOf7Ekbmo9Z3DRk4row2gD0VElkwqDphBZgGUhdX2jQvRZovjjGyrUIwA+Dr+1wHQHO Y+kPjXy34j8cOzNNNZ+x1FmrZpcaIO0H2M1Hl9i9tVqHSMZzWu9ZoUDQGBbRqUny9CNf G2630JQLIX6x7343CLim9m6zk7TTQJhG2aczDLGMrJnycx/Mjspwg4AxXssYJCu6Ve67 v1d3ZoO7LlysXZQXQxcV11nA+ILKL+bfwZzEaS+ytDabQb5LG5aWywi32xcgYZFzhsli mPCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692876815; x=1693481615; 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=TT+3PtTEWwow+wvZw0jd3MVENA8M+HVZgmD6YM9pzZs=; b=WfHiupxcXaWXCXBYpLKAZH5TD/ibPHWOOeZhpcBP7ceWmeaZbeAsWW+JdGwxzUyXTO F/IPzhAr9wh7ie7PNCsd2WXkv8+xgsduPv6uUYPLKtj0PYqi08UZwLNALFhGm1yptA3x orqLBYKPqS3q3V1P+iZNkNAX1mi1kPvvdH3L90IovLnaTibmktcpp8y9Ec8YKn/GqmS9 U0bBqaIKfChK6lBhXdQMT0q58DBQgDBLj9zWqXm2pJEAujgBiSaaH08z7+1KhidXZphC I0XQBzROprMm6QvFTmLOQjC1ML7EV4MI0gRZTe105FZa+9Xt3yp/if0rsGnZZtL9Znu/ 9zQQ== X-Gm-Message-State: AOJu0YyJVSjnAYWzx9PImFe3yXC7D2sqFwBsUgV8u/l9xBZsVmGxjMCR MMMrvfBMVZiX+R3ItHxpVLjS/H2tsuLnZZnvY7U5veHY X-Google-Smtp-Source: AGHT+IEStLNUZ458nU+n7MPhji16NlK4/IAMBvZPbLGDl12OgwPwZ74622bDQM9ISblnXkvZc6EPOQ== X-Received: by 2002:adf:f986:0:b0:317:dadc:4a63 with SMTP id f6-20020adff986000000b00317dadc4a63mr11316924wrr.8.1692876815529; Thu, 24 Aug 2023 04:33:35 -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.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Aug 2023 04:33:35 -0700 (PDT) From: Neil Armstrong Date: Thu, 24 Aug 2023 13:33:23 +0200 Subject: [PATCH v2 4/7] crypto: qcom-rng - Add support for trng MIME-Version: 1.0 Message-Id: <20230824-topic-sm8550-rng-v2-4-dfcafbb16a3e@linaro.org> References: <20230824-topic-sm8550-rng-v2-0-dfcafbb16a3e@linaro.org> In-Reply-To: <20230824-topic-sm8550-rng-v2-0-dfcafbb16a3e@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=822; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=inzVwuMARlcbh5HV8mDTw43aUJjgrQvAQ/pIfweiQCc=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBk50AH8nMEcPo71ueUkKxSD9CIiVFkHWu8XFprPW4l U0OF9UKJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZOdABwAKCRB33NvayMhJ0UgHEA DAu8DGfb+eUHnMWlyVwpItoK+XKhSCoDKRcF6x7mOwgKQX+chyG6UbnuDplIGGE9dv/gqdDfCveTew bi+uQtoSxAKiJdZbfL39LMnk2kyYFHNDNMyRgfNA7fWuD8L03JK5QaYIblf4HdHIY21mYOhdleohGK c6ztv+PfsPuzr9Gv2KwLy6BcU0nX1NZbUni5Fx9MwnmgLAEJCIXXIpIma+Y8SqrRq4/7yO92oY9ved DPA0eTQ939cO1KLcFZq62P3Aa6QexWf2lef/+3aoKfZWBtuhb3cBa51mcdcYVWE4wFsGfv5UI8urUD aXhVE5IS9bKBX/yhOrhtnbAAGaSl0pQX1RY9vJAPbnRTPzFFIRSlhtUjHrFWCystROKD4f70v8PjAe 5cdV782+ixr0u/k5KzGheZcMiO/gAu1OQph8NyMumOktnBuw3pnnEM6V9WFjNBgZoXGsdwgjyXDEtF qg70OhqI+smFV/K0m0aQgem2bTpvXODQaAUA/yPuDp1qHFpRNP4s0cIOmtjjfovESkxHQ64qyq3Tk4 VTX1OqNoGZZ1F7ss8FxxsLekfMKMHzzoVUwy39jqS1oQBC8xPAL7vpHzu7fZAoEWI7Js+86cC3W4K7 eOZDTNg6H0CwJRvd+Iy7lNoNWDseRFc7ELyP3h7XKWTOFRUZo2T15zXbhayA== 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. Signed-off-by: Neil Armstrong Reviewed-by: Om Prakash Singh --- 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 Thu Aug 24 11:33:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13364022 X-Patchwork-Delegate: herbert@gondor.apana.org.au 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 E1E0CEE49BC for ; Thu, 24 Aug 2023 11:34:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241027AbjHXLeA (ORCPT ); Thu, 24 Aug 2023 07:34:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241040AbjHXLdk (ORCPT ); Thu, 24 Aug 2023 07:33:40 -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 0460419AC for ; Thu, 24 Aug 2023 04:33:38 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-3fef4b063a7so32806495e9.2 for ; Thu, 24 Aug 2023 04:33:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692876816; x=1693481616; 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=ijL9XhwjGXgvTsziQU1R0Sp8EVefJrVWDew+ILjeQSQ=; b=iMJdQlCNmWcU3CD97Rf6JU8z5W97p8+IqbrQlDhM13RINBrFpC56uJWD20HHCWbiT7 VEBPJB0v1vMaWVWhWSOe9i2oEtgZp9wDUpeICcOi7bAukZAWh6ReQZ8wzxdogFpTEIk4 lv+qvKyd/GK8Fu1NEm4U1QbD1q6wr9l6wioRtNl7it2hCVltRVUtWLXQ3IdFr4g3n2Pm tk0c+37iqGy28JYQOPGbHLU61Um3Ouz5W6hAbIUdlIQrCkS4K6f4C9vn2fQ1AA/d7tZD mqmMAIsOpwhx2JYguIal7FxLaI3rmjYiw0QsqILibFSAoPYmpZO7/l/IpojJyR7kRQKK iJFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692876816; x=1693481616; 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=ijL9XhwjGXgvTsziQU1R0Sp8EVefJrVWDew+ILjeQSQ=; b=PwuIhummhZqGbthiGobXigon0RL6tNAVaM9D5zaVSeCP9BTPYyk1k+YFQk0VfjAozf xUNyFRSMajs2WVHwmbmf54B7V5GuXXuc/+sPN+H/8086QPZZJ852F1WwLoyScfMvSHl5 0bTr4Nu7tv4xvmXJfNdxYw+rkGfPKo+6h7dH1RY4FUg8fI2trEX4FBBqxVuPTZYGV1XT OONz+SvrKhVlRp6pWGmJkubHysc0eUAA2Qe0JjVSiNkW8Wqq/sXoQCum0qX4Vr6QIEZ4 XpW7tD/54AW0t/M8MGfHPkw7nVUR1vX+E0FQsxt3BaXIIh/81aI8HvxoY9ji5Osv6SxY 50oQ== X-Gm-Message-State: AOJu0YyHUPS1FzOyfHhK9hHOQZY2NeZvwWXq5LG+WrfyeP7fZLHMfAxk iDR+XMJxjBSUh1i0c0KVpfQnEp3M8PpBfTKtjzBT8cVz X-Google-Smtp-Source: AGHT+IGG8oNcZ7PNzYH79eqZ9d04xNwDLH2FikclwMSWDu0S2fyqA6VpVAlcFGLik7H8W8dly+XjdA== X-Received: by 2002:adf:e601:0:b0:31a:ea9a:b602 with SMTP id p1-20020adfe601000000b0031aea9ab602mr11098109wrm.1.1692876816537; Thu, 24 Aug 2023 04:33:36 -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.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Aug 2023 04:33:36 -0700 (PDT) From: Neil Armstrong Date: Thu, 24 Aug 2023 13:33:24 +0200 Subject: [PATCH v2 5/7] dt-bindings: crypto: qcom,prng: document SM8550 MIME-Version: 1.0 Message-Id: <20230824-topic-sm8550-rng-v2-5-dfcafbb16a3e@linaro.org> References: <20230824-topic-sm8550-rng-v2-0-dfcafbb16a3e@linaro.org> In-Reply-To: <20230824-topic-sm8550-rng-v2-0-dfcafbb16a3e@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=870; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=ICXotOUiTdh5yjHcK9RlGWMhy0USQET7mt90sU485TY=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBk50AIud6LxUXIggA7N47tLDhf4/3Qgaw3POkNWrrb PEfr69OJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZOdACAAKCRB33NvayMhJ0fI7EA CsYFJIthQE/UJ3/C+CL06/Y+7Xg4P0ykAaPXPvxSYmA6hREwCcGNREB/udwl69waRFAG/hHnLKYb2Z Cr2UTTBTBGFUCLs+hvYbgXhhkVYRW8L+SvEnlDjy79P030fyK4H1yZ3i8QWv7S+oiapiX9vyyZQihY 5aych1befV9pXMZO9zflpHL2Hd6lIzebocakACS9atnldHkVJBrN47stdAhlRkrbIcvIDtUYNvRh5X NMF57oBl31Sj6JiMXLGJws26j9nou0iw5ASjyHRIH7IKzFiN3Sr4DdYFlWi0T6z7kXBiHT1s4SfEf6 fpOfoMivg3vkSpIn9frvRNvkxvl7uMKIMh9bPoFAXAxXQTR5fxV5MzDv0kjRGtEYsN1Xk6jF7iBS3D BxRz5iHHHRrdNp/u5jZzjY8cSu8HQJTST+PHYHOSgLrFbH4i8ZeI0MSfPTo881EZ1xCCIqlZ2UCTlK FiMnY/D7Zx60aGD0fgZ4V9X+MxfCwt+hQKgdV3s8z1LA9sB90lHxKc8H6i7wxIHleFXElNnID44F48 ejr4WNampBZABp1T1PrptIbFEKbYl6q2fAndj3Bk0dgGUmwI+8p8cCewJZytqO+PYF7iZ8xSKfQGwc glAJOn4f+xoL937fGnbgFA/eofRU7zBbTD4qV2wTZM9jC/MKResTiD9BaR5A== 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. Signed-off-by: Neil Armstrong Reviewed-by: Om Prakash Singh --- 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 Thu Aug 24 11:33:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13364020 X-Patchwork-Delegate: herbert@gondor.apana.org.au 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 93B0DEE49B8 for ; Thu, 24 Aug 2023 11:34:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241062AbjHXLd7 (ORCPT ); Thu, 24 Aug 2023 07:33:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241042AbjHXLdl (ORCPT ); Thu, 24 Aug 2023 07:33:41 -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 F3C2319AD for ; Thu, 24 Aug 2023 04:33:38 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-3197b461bb5so5750629f8f.3 for ; Thu, 24 Aug 2023 04:33:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692876817; x=1693481617; 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=8WpELkDIoFcOBpglC5P3ZWupm38vhsMwP331NwzHDCg=; b=sY8ALyLRjJDrsOn1XznUGHJfPgIfmyT3Tg0xOOF4HO37o86q3EqwE1RRaAZyepNNII 6AVjt45Xjf2TnmyXWQdGCPVs8dzdJFz/zerBQTxHAEaovgUyeqmeZN/vfUKxxPb4JCNp RhgB8go+MX3G1C1cqAI0hPW3NoyQj/Y+FAVWNOpic6XpZiHkP4qwgil+v5/SoAgrMT/S TRn7F29XL2SahYx6ddzq9G2pHXkH/B8ONHQtZxCvQ8PTjSoey7zo4Qyu1WwujMygbOSk ar3dOvEz0nYYEEjYhgoVm/ZbkEF0ShfHWjemNl0Cj6soF7nRtca3qfwfPBCA2Sfax48P eiSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692876817; x=1693481617; 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=8WpELkDIoFcOBpglC5P3ZWupm38vhsMwP331NwzHDCg=; b=GrNklsHPgQlp8DQxs6/IE4NqE5iwpqpqAzRNEeKLEnkOYzRHTJ2xZCDPQC8u5XbbUY bbNGd6B+8H8jO1SUd8+ZX/6JLUu3OStGH75rMxZQ+sRZ0854oPJkuLvTzHYB9sndn5PX RzMjdl1l43W99p2QDSQaHtapzkzPwGEBcw4Ra41Qe5a9799YiL/xefjDoTHwrhMcZvaw fmPX+bxGA/OGXmG5u4CKYX5Jncc1kuGWA2wKLmCSYOOOy7Pp778QrdjK7h0EWb9oor8B I+HSCKsbV/O9raFHu8GdKVMpB4uXyU373kCC7aDiTM2z0R9g+rKmAoNQZRplm9q9xVii qtog== X-Gm-Message-State: AOJu0Yy5XQwP231619Voxp1DFrQH5V0b+zDoaPu9NwnhePzk2X1MWQmp MF+yCFeur1h/wBPxmqgJnI8WYPMMz7yyJ6NuKVp4bFSb X-Google-Smtp-Source: AGHT+IGjbctPhhJokdl8EmJDPZ3i+yvO6pNALDMAAqAje9IL5RVindngBZP8hJQWzMaLq33xiHrP+g== X-Received: by 2002:adf:f184:0:b0:314:35e2:e28d with SMTP id h4-20020adff184000000b0031435e2e28dmr12110907wro.13.1692876817511; Thu, 24 Aug 2023 04:33:37 -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.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Aug 2023 04:33:37 -0700 (PDT) From: Neil Armstrong Date: Thu, 24 Aug 2023 13:33:25 +0200 Subject: [PATCH v2 6/7] arm64: dts: qcom: sm8550: add TRNG node MIME-Version: 1.0 Message-Id: <20230824-topic-sm8550-rng-v2-6-dfcafbb16a3e@linaro.org> References: <20230824-topic-sm8550-rng-v2-0-dfcafbb16a3e@linaro.org> In-Reply-To: <20230824-topic-sm8550-rng-v2-0-dfcafbb16a3e@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=756; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=LCwZ4KC8gvTuRA6IYwBPb6uZ7MJ47erCdg3FgSczjSk=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBk50AI/PPcJ1kGTnjICAPRr2U3fYANpHfpQIvkgI/s F+2GPeaJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZOdACAAKCRB33NvayMhJ0cgUD/ 9O/sp8RbQsdhI90sMdLRCcuPxF0rghLROCL/uMxN5I/TvrJ3axijUfEQjNjnaeOgqahQlNbI9hKXls 57RUBMw+cPaZ7mmJGEjxYNBvmBw92hOTor4Dx+q1+2jWXI7Go0j0U+iziubp3fvc1oHiTHeGpLvejI ZRS1jntKG1fJDSCZzb7WMTRystUhvOXizM+o7UkdvvCtiEXxbBsWzKmMv+YVcKYf+GZbk8MwPmjY7r KUVMezBYzyRDcxs92cNdVB18OUzPyJlt3L7jHADYf5V7qdcUWE6nLZwpCwUpEISuPSWbVrJdV04ytR IEbL0jikGHc15Wz955ySCMN4oQInrxga3CSeYGNa1no2rVkD1ZYR7nWV7SSN23AE/JVxKS8wiq1NIE DlBHIqpwnawBbVDvOAOiAHewPyHF0Sq497lFoFHWFczalJBfkD+L6HIQqb1YnKD18Pdzl0XG/DkexN r92QJK48RsicPiZNt+D6rFQuQv4xEw75ElKbmR//2nj0OveBZDLM3ZobPGuBUu4iu8ocZ+NI57n11A dVfvmZWNEU1cK5ffb7GqGt8hAVHEXSud65tfu6/Tx1C2MC4ybqNu6cKhJ7vUxv9/lMp5cP63yEy+Vi GulunAvRr7ppT5HfloBWBV8MsCrnmPnCKiZ4yj+4Rb1BUj/rNt59ltLNYWKg== 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. Signed-off-by: Neil Armstrong Reviewed-by: Konrad Dybcio --- 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 Thu Aug 24 11:33:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13364021 X-Patchwork-Delegate: herbert@gondor.apana.org.au 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 D1860EE49BD for ; Thu, 24 Aug 2023 11:34:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241040AbjHXLeB (ORCPT ); Thu, 24 Aug 2023 07:34:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241046AbjHXLdm (ORCPT ); Thu, 24 Aug 2023 07:33:42 -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 229FD1987 for ; Thu, 24 Aug 2023 04:33:40 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-31aeee69de0so4389389f8f.2 for ; Thu, 24 Aug 2023 04:33:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692876818; x=1693481618; 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=u1+VydXzfxLqbKymTpC2ek/0uqcSPu9zE4cPEud2i4c=; b=zpVSJoV2OKTnEF/1zVaCh/yqQ080b9x0nwt7F01EzBGNMfogfM7g611Q97JS3isnRD rtA/CYfT3MTKMPTz3MxC8KkH79z95zeXAv9eSBswKW51hEFYWq1cRe6/GCSnnMxz6vAg 1hbdk7KtCMyCLu+YKw4fBLJEMyet90sispYC6y2sj6zrbyHVpCRRkjseFHQXFWy/Jq3I LyfdJ6mUE6jCwn0uoL5snWQIYQZr0PtQtrGnn8KjUI5shgA6vJpt0MGLQeN1NKAPZePF eEGxscTy6RIDuLv6iUAQCvRdM1QV7QGvO5o9vuckk81IzF6H8EhDRSW2drP4BLTMjrwF LAwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692876818; x=1693481618; 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=u1+VydXzfxLqbKymTpC2ek/0uqcSPu9zE4cPEud2i4c=; b=OVEbnA8knT7sau60FuVbY8vU9C9D9us4aDBYKG9/8qnH8CMgoQy2Sd72OSiwrZ11Zv NdLpFadqZHdcApvE7j791yJb6sd3LlJhKWhm5PitApNHYHkKjV5TirL1sv//b6umeybV 9i9jbLgvHxio6Lb6j80jwQ70ChjGRPG7c8mBg5rEc4b7pnI+ghF8VQ6NuunpIY9i2Emj EiWD3iBSg3Hwr/cH8HC2owI4UyIZDEcSL72Smv6MWlWUXSUyX7oeESMFbF25gqKQyc7n qB/wtB9VIt42sC2mkJi/GIP4MoR/+q/JW0Ji9wqcdiMI/YaXf64WLBp6dNDX2UnjWDMZ lszA== X-Gm-Message-State: AOJu0Yymdc7sv25Y4rAGmdYFFUyBq2pdKi9+T7Sq5JFY5JgLvRoqg7ZW J9Z2NoirEcjnZLPq7N/dvFDILx8iFfa4HDq712GPxKTJ X-Google-Smtp-Source: AGHT+IH23BZ6wC+UHlfW7T/eaLxJ7f8JWRo2I+hbpN4B3h1hcfk9Qtaidv401lbLT2VCxb4+z9q1wQ== X-Received: by 2002:adf:e40c:0:b0:31a:d551:c2c0 with SMTP id g12-20020adfe40c000000b0031ad551c2c0mr12824744wrm.57.1692876818535; Thu, 24 Aug 2023 04:33:38 -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.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Aug 2023 04:33:38 -0700 (PDT) From: Neil Armstrong Date: Thu, 24 Aug 2023 13:33:26 +0200 Subject: [PATCH v2 7/7] arm64: dts: qcom: sm8450: add TRNG node MIME-Version: 1.0 Message-Id: <20230824-topic-sm8550-rng-v2-7-dfcafbb16a3e@linaro.org> References: <20230824-topic-sm8550-rng-v2-0-dfcafbb16a3e@linaro.org> In-Reply-To: <20230824-topic-sm8550-rng-v2-0-dfcafbb16a3e@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=771; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=m7/7ECgc0fg/dhJmabho4FQvGRAnMOFTyf9xpw4qgS0=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBk50AJMPuB4Ma/4wWIQ6Uc5MaTwp6I1znHAJiVW4s9 1hJuwEeJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZOdACQAKCRB33NvayMhJ0ZwED/ 45gkp84ObxZzVGYOsHOcWnrEMnMXLTVDgi5lNRBTcN72PJd9lyMGRwMvMkm+k9Uno6DhbZbSazrCRk CjaYhP7t0jp7EUFw+C/XU9iCqY8rtaIRZUFJ9iMKzhSt+CM9+ynB75eXrcZw84kdYokNEozSN5yD3j Cy3LEd2ad7LT0rsV3VIa6eVF8Pb1hr6PlR2eQaCybugzfn7tCxC8+CyhbVcIxA4Iusr253aWLi/UhU gz4kcwxylNSlm1beOOlP657cco8eFfIcmv1DApAGlYQrFAy39LDxmsXQufiHxuFVIo5DqKxNLKS545 0mcAzP4Ugol5IYYlDwKSOeQ2wGttaGLNvJTnGmo7jATfyi9BxVk+l07WoGduFOTaAN4jpJgOPL2X63 IJ1Z36rD5YbUA4k0x3IH7KldQrN3WLU/NWGEWz+tRpPy3Ze3IvGdvyktECLvpIhWJ5xjG1YIQgnHl4 oCZ8Tn7gQNPyiss8lTrrTlEXs3QmawysaaeM65usNzgjRswUEkucRVUG03sWWMllXTAXdrpL5oJrsX BJIUM0aG6Vl7Sw3+4kT1g0wW0LB6Fw8SDK+9i34UpKBx0sngDjU2IAiYrwI08ScCk6tYFWcsCMkce2 K21iK5QaR/qQoDZWX6AaDwa2qiZpct/clKPdXJ7ACnmIe2KihCZ2KdW1QH3A== 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. Signed-off-by: Neil Armstrong Reviewed-by: Konrad Dybcio --- 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>,