From patchwork Tue Aug 22 14:11: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: 716214 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 D3FBFEE49AA for ; Tue, 22 Aug 2023 14:13:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235140AbjHVONg (ORCPT ); Tue, 22 Aug 2023 10:13:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236423AbjHVOMh (ORCPT ); Tue, 22 Aug 2023 10:12:37 -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 EF9D6CF4 for ; Tue, 22 Aug 2023 07:12:12 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-3fef56f7223so13758505e9.3 for ; Tue, 22 Aug 2023 07:12:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692713490; x=1693318290; 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=6NuUj1e2uioZdzoL4ZpIuuQFQzc060pGZCFyiXZsTBk=; b=hmSFDXgPYiCb848Iaf4vm5HOea1e8nhq5wDEuKLvVOungPI8MXc9KqMdGCX3Khhn+e gh752v0OR8OeKkxcBlJvNHARNRuFUETCNPURpjk3o4TPFt+csn8kCEin3QtUHOQ7uM8H fDrLb/yxS1X6wp4sZw/pPEQQxbbUmK5mTyGFGf0N1cgBX8WWLBwt1yWzVujCTAvqo/b0 JpRBw7i45by4LDSYGg9SqVUk8edq6ZtfXMGulaQPPZ84i6IjgDbHEz8Scs65AOf/yC23 MJyQEA4kTwLd4Gr3CYLSt3wRjQJwZPg9/DbhDOLHVcKBbaQzWkutSwCzuC1x/TTa2P1z WMTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692713490; x=1693318290; 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=6NuUj1e2uioZdzoL4ZpIuuQFQzc060pGZCFyiXZsTBk=; b=BCWGc03ev3H8JdjHpi7btoSkIEFSJuNnwmRlcwkmJNxVS1jHSd/tXdfahSEH1LnBFh dLtRjejSMKWe7G/nWHI61T8uldRrTXcYYO9HQ31j4ycjkvdN2/W/c7XhsWkX5R7q0TUs KOo6Nsp+VYZODGYyWxpwfEnrLYLXVdVhyBM8KWgQUvltM9KMAwel+MU2nYVI8SmVFALN xRUhqk3KJAF+3LpeHgKIcspq/GVGtn24FWbT/JpyGTirC1evSIHgiDKV+WfYcJ9YVUdl 4B16UCVCvVRvg3CeLwtksWeVvpw3/vaafouqH+wlsSpglIgFDsANCJTaw4Uj8CQdpApM K3Aw== X-Gm-Message-State: AOJu0YxdlXWxtlbcGahNdY6U3knrOQ1kztGcCrKTE3q9PYtkTOc/gRwf 6ejosegVTZqYXMlX2luMTuD27w== X-Google-Smtp-Source: AGHT+IHSy+c6X29/B+uc0h5uygx4Wzt9QiBQiMCP9XwGS7qAxnnPDr1NIbD4u82IyvMT2VjNAwDAQg== X-Received: by 2002:a1c:7705:0:b0:3fe:f99:1ba with SMTP id t5-20020a1c7705000000b003fe0f9901bamr7743291wmi.2.1692713489933; Tue, 22 Aug 2023 07:11:29 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id m9-20020a05600c280900b003fe539b83f2sm19587753wmb.42.2023.08.22.07.11.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Aug 2023 07:11:29 -0700 (PDT) From: Neil Armstrong Date: Tue, 22 Aug 2023 16:11:24 +0200 Subject: [PATCH 1/2] dt-bindings: crypto: qcom,prng: document SM8550 MIME-Version: 1.0 Message-Id: <20230822-topic-sm8550-rng-v1-1-8e10055165d1@linaro.org> References: <20230822-topic-sm8550-rng-v1-0-8e10055165d1@linaro.org> In-Reply-To: <20230822-topic-sm8550-rng-v1-0-8e10055165d1@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=1240; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=GUYupVDxA6Ws4wGq8QNEeRAKEiaPalNqjgPA42KveaA=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBk5MIPwNRw8LDa2gdB9oBZJxUTJGSl4EtlFfKxpH1O EndIqleJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZOTCDwAKCRB33NvayMhJ0eZUD/ 9V+26Wr887xbDjhgG5nDAeMB/FACgZL+/702uRsC5Emz9Hk1q+05LP6cwoEZhUT4m+y6ne3ZMliwYo pjgaVeXfKSBlrh0FZfatza7xRKIeD+nOTdFqfph7zPaK8UJV/hh2TW+ppVepEB12iFWZ0pWPvD8R2B O+6H8AZd416BFMrbrlqi94YrIx72w16Pgm0V52/mhFVYWgTKR3+J7AYuXSZTSMUzKzQZ8Zf+v9WYtI yhY4tEyM4bhxEwzISr4YtDgnMQWpzyoeHireX4p1y1wSJPxEX+pFi/mHpw/7hD/7Z5SrzEhhUDklH2 j1JKqxPWiFRAgQBOg30vebfOaF3eSCo8ryyQZ75OsKm9RrAbPRkryvtr+V5VMuMcAJX1Os35v0XnDy mkYbDVsBnmoQUJqeAKjtlh9X5JlaoN2w//Mv6I4jKd2jOe5vK6UQZiksF5wIQH8+dl36dPZfJm2cve POyIHHOHB1G+bHyHy/p4NUk0vDRnWzswVIFKYFka7em+zn8lclW8alDuDtxTZeQrGguXFTB+bdjiOC C053Sm8qVZrrc6fsQjqPGICSMHHLOKx88P8YpH+Et9IEpe0gGnbcR+6qN69AH6Fe1rEy9fXHmNWvpZ yNiwgnr3XQSiIC/p/W+LkdOFU/fsqoQnv9Lo3wcmtU3vVrWE8tCEcEXGI1WA== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Document SM8550 compatible for Pseudo Random Generator, like SM8450 doesn't require clocks setup done by the secure firmware. Signed-off-by: Neil Armstrong --- Documentation/devicetree/bindings/crypto/qcom,prng.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/crypto/qcom,prng.yaml b/Documentation/devicetree/bindings/crypto/qcom,prng.yaml index 36b0ebd9a44b..60fc9f261b83 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-prng-ee + - enum: + - qcom,sm8450-prng-ee + - qcom,sm8550-prng-ee - const: qcom,prng-ee reg: @@ -39,7 +41,9 @@ allOf: properties: compatible: contains: - const: qcom,sm8450-prng-ee + enum: + - qcom,sm8450-prng-ee + - qcom,sm8550-prng-ee then: required: - clocks From patchwork Tue Aug 22 14:11: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: 715817 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 7B341EE49B2 for ; Tue, 22 Aug 2023 14:12:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234799AbjHVOM5 (ORCPT ); Tue, 22 Aug 2023 10:12:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236641AbjHVOMi (ORCPT ); Tue, 22 Aug 2023 10:12: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 51D7FE58 for ; Tue, 22 Aug 2023 07:12:16 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-31c63cd4ec2so463455f8f.0 for ; Tue, 22 Aug 2023 07:12:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692713491; x=1693318291; 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=gtuVpXwzMWaEGB5Cog4rldjWRfctqtTvAKEr2qA47a0=; b=jrsLu4OK5YNUPhALPL0I23aolOPR0gxWLbx3ArwjKaqJFKr7lrHWqM20Cw/SCIQEAt EK3RpfCgATOkdJZeCsUaPyXXPOI81zRnRt86ZQ9+vHZUNc0N1GKQ+wwOZO8XD1fE39NM r7IiKKjFomA51ccrBcdxBPsKW/q4tAywISe6wTx9f5P9iA/25oN9i40H/gv5lmB2tpG4 A5DO9v2/70CIeNC0VkpHZOXd6h6X2cVK2gMOiJnpRBMTCpSM2AN9HY2/BdIMNoYkOTLr NgxVq2D0hT0JvAbJdvTvfOvCAMsNs3VQYRH9wC9kaoQT05RLp1gdb67xqmIX5b3rO2X/ g/Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692713491; x=1693318291; 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=gtuVpXwzMWaEGB5Cog4rldjWRfctqtTvAKEr2qA47a0=; b=DU1vZRRqSsI6uMoCY+KjzP8k0NGZD7FLLZ2OQt2gZgb5w7wuc0XYO8nSQ3Wg+h5jhX EixNcdwjhiOJHI0migUdWKZyrOMv/e17fKloC3W/ljWY9ky1jn6fnLvkvFWIbFxYUUOy hWBQD6H9WuUDymqWe6vuUzNDsyZ7geIs1ISYa6Fqp4Ca2D2HXb/EEgIT5s1DcL519XHf iYVljxBZs+jP2QFJntChzkPEW2RRjH4moWYt82xup3vNowoBM+i70tjyjw90CSK5bd57 V375CIv29cFcwb2mPey7YHVxvzTls5N9Ut9IFQcaeiI6M0mSxoOOUffeGSxK0tu3IDf4 Ibbg== X-Gm-Message-State: AOJu0YxuPIdAuGlJUdH0h08b6J5uDO0ytfZdxswpY8xlAGQYES0mDY3g i6yH+fiDVlblsSVgHvcusRcvWQ== X-Google-Smtp-Source: AGHT+IG3axjvpue4qJhnlyhDa9rG2BdtfVF5SwL11Xk400+vtf82q0540IzXmG0em8nbpnu1dvRaOA== X-Received: by 2002:adf:e6c9:0:b0:313:dee2:e052 with SMTP id y9-20020adfe6c9000000b00313dee2e052mr7424653wrm.26.1692713491002; Tue, 22 Aug 2023 07:11:31 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id m9-20020a05600c280900b003fe539b83f2sm19587753wmb.42.2023.08.22.07.11.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Aug 2023 07:11:30 -0700 (PDT) From: Neil Armstrong Date: Tue, 22 Aug 2023 16:11:25 +0200 Subject: [PATCH 2/2] arm64: dts: qcom: sm8550: Add PRNG MIME-Version: 1.0 Message-Id: <20230822-topic-sm8550-rng-v1-2-8e10055165d1@linaro.org> References: <20230822-topic-sm8550-rng-v1-0-8e10055165d1@linaro.org> In-Reply-To: <20230822-topic-sm8550-rng-v1-0-8e10055165d1@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=759; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=OJpdRyF5Au18OAODNZEy6fBEK+Vc+azzodyRiMN3bls=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBk5MIP76cER9EmyxruqX9NYGR6Jn0RJnTMzyheD4Ut zX0fxUeJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZOTCDwAKCRB33NvayMhJ0RK5D/ 4tNEi6O+SlSFOeJZvyWu1fzMBWkKIizUTOm7fYnRQ6HuLks1bVXeo7B89Mh9kQU5IZEhy0NWVe27mM UINmm2mFfnO55TvEWuDzMrYZK+vbMebZgpP5vif56SjEBefeasFElXR2WFEc7Vz8M73tYVRIBdn6gN 8cXCbu1BzW0NW11RXY9r2ohM3V80Z/EsqXRJac83wboswvVIJnvbhHtHiLKaQ+AKS2TqrAe8qpF2nZ G/J4lu/dDFtAn4gVScbCkFlQiFDwLZgwpWhqe8ILkzEmQjLy+VFzeUlCRp7nBGsLED2gWA0BttHItC vQUzPJEkE3gu9mCCu50LMaJPqEqT7FFEZskGvV3XTgUB/kEdHQgu5c+RVEtUG09wK4ObAcECxMnWeS H/3qkHqK/h2Hunc6BIWSpDa401wht9+Yr2Dj08Ibuz6f0YkOPhdKSOh7Q7MKzwun8QL1MNr+xt25GV uuZoL48R90MJbqr0FClxYajfI9DvQJWLclpyKJQjccQzWR3/uAMW2TvaPmzUpHkCioVJBgLI2IWFx/ +bAqBsN9w9qqlpK5tQ7OG2T+H85Rx0ciL/lGH2IAr3kkZLw/8VVbjyBNp2dIbYoqL26/ondxjOfy0w wZRT6wMn0+79AwOyS6G/aUwJTuSLGzjhp4RUPzDPqKQYIam684Azn59PKRNA== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add the Qualcomm Pseudo-Random Number Generator. Signed-off-by: Neil Armstrong Reviewed-by: Om Prakash Singh --- 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..643ec80feacc 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-prng-ee", "qcom,prng-ee"; + reg = <0 0x010c3000 0 0x1000>; + }; + pcie0: pci@1c00000 { device_type = "pci"; compatible = "qcom,pcie-sm8550";