From patchwork Wed Dec 14 17:11:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Masney X-Patchwork-Id: 634002 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 B8301C4332F for ; Wed, 14 Dec 2022 17:14:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239263AbiLNROy (ORCPT ); Wed, 14 Dec 2022 12:14:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239239AbiLNROR (ORCPT ); Wed, 14 Dec 2022 12:14:17 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 221FF29377 for ; Wed, 14 Dec 2022 09:12:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1671037930; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ogLpJVKKC25ddDetbiFHml5GQ+TG5tUiXJ4wCFo3kZQ=; b=gguYuxH0uFICeNSDWmMZW0/3TC4EwFkqlTxWQYJYC7jAQj12d3fOsX9K8LfLKdoPA2dQPx t33YWIpGT7tpnDWoaFM93dSxuz2kbXdxaHGcxlIxxXnKUpgC7csU6phFva2osTktl7Ms8R 3gAJr9wykzwrpb4VcFyC6CMITDCYdgY= Received: from mail-yw1-f199.google.com (mail-yw1-f199.google.com [209.85.128.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-554-l5YiydHbN1yLuhTCakeT1Q-1; Wed, 14 Dec 2022 12:12:08 -0500 X-MC-Unique: l5YiydHbN1yLuhTCakeT1Q-1 Received: by mail-yw1-f199.google.com with SMTP id 00721157ae682-3c9960ad866so4965387b3.4 for ; Wed, 14 Dec 2022 09:12:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ogLpJVKKC25ddDetbiFHml5GQ+TG5tUiXJ4wCFo3kZQ=; b=wNdeKfK9fwRsktFYZsdYowRqM1GhUqC1QzdSx5XSmlbMYyz6p01x7jKnIyNfpKkW/e AVun1gha1wvmKl4H3iBQ3DZZefmUW+PwEmjK0EGID0kR5iEOOHmo9RN7mznK6moEZ07N iK7QoUj+1uGgASkSoBjJbG5PQX8Rc538YEsiwldklC1UdnHoXGVcO3iiRMZJ9n4ZmXdy f747veCRiGcp3ZnzJSn+qDNDH3AhPyxDpNbVxwDHdftVWld9jm1JtHjAQyY5KIGPP45F USaoiahW+1ttySgMc4/vpY3cskLtiaPypr+F349+r1fT9bK2j/ci6Jl01DpRy+yDAeyh reag== X-Gm-Message-State: ANoB5pk24ogAxxFMkxRdCKBbfSdr1dGPh65zUcH2fchJK8euyEVNjFCY 3CHuat0Bg1EkZthqpA2Ic+A83ZX/FQ/mAI6iD7040ovOlVQ6ai4cttYe12+GH31efWuXJwMiQCC EbPfigffNyzd7Xa/lSOjm/w== X-Received: by 2002:a05:7500:5e90:b0:eb:2066:74bb with SMTP id fk16-20020a0575005e9000b000eb206674bbmr2050400gab.75.1671037927520; Wed, 14 Dec 2022 09:12:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf4f7iwQnkCpYy5hXj4Muvs1rfWFtodSaoA7k2Vmw6rOiEcFyQ9B99dD7TcL3PCjYKLke3cndA== X-Received: by 2002:a05:7500:5e90:b0:eb:2066:74bb with SMTP id fk16-20020a0575005e9000b000eb206674bbmr2050371gab.75.1671037927175; Wed, 14 Dec 2022 09:12:07 -0800 (PST) Received: from x1.redhat.com (c-73-214-169-22.hsd1.pa.comcast.net. [73.214.169.22]) by smtp.gmail.com with ESMTPSA id t30-20020a37ea1e000000b006eef13ef4c8sm10305477qkj.94.2022.12.14.09.12.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Dec 2022 09:12:06 -0800 (PST) From: Brian Masney To: andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: quic_shazhuss@quicinc.com, konrad.dybcio@linaro.org, robh+dt@kernel.org, johan+linaro@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ahalaney@redhat.com, echanude@redhat.com Subject: [PATCH v2 7/7] arm64: dts: qcom: sc8280xp: add rng device tree node Date: Wed, 14 Dec 2022 12:11:45 -0500 Message-Id: <20221214171145.2913557-8-bmasney@redhat.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221214171145.2913557-1-bmasney@redhat.com> References: <20221214171145.2913557-1-bmasney@redhat.com> MIME-Version: 1.0 Content-type: text/plain Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add the necessary device tree node for qcom,prng-ee so we can use the hardware random number generator. This functionality was tested on a SA8540p automotive development board using kcapi-rng from libkcapi. Signed-off-by: Brian Masney --- This is a new patch that's introduced in v2. arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi index 4591d411f5fb..67765975361b 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -2811,6 +2811,13 @@ tlmm: pinctrl@f100000 { gpio-ranges = <&tlmm 0 0 230>; }; + rng: rng@10d3000 { + compatible = "qcom,prng-ee"; + reg = <0 0x010d3000 0 0x1000>; + clocks = <&rpmhcc RPMH_HWKM_CLK>; + clock-names = "core"; + }; + apps_smmu: iommu@15000000 { compatible = "qcom,sc8280xp-smmu-500", "arm,mmu-500"; reg = <0 0x15000000 0 0x100000>;