From patchwork Tue May 18 18:16:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 12265425 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4AAB4C43461 for ; Tue, 18 May 2021 18:16:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2C51961006 for ; Tue, 18 May 2021 18:16:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234696AbhERSRp (ORCPT ); Tue, 18 May 2021 14:17:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234401AbhERSRo (ORCPT ); Tue, 18 May 2021 14:17:44 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A90AEC061573; Tue, 18 May 2021 11:16:25 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id i13so12333350edb.9; Tue, 18 May 2021 11:16:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=W/RjbeOm0GK54WXBuEUz9ThyU2x4dxtPR3H60Ev2zXs=; b=Xsm+nMjO/X1Nu/VJbbmU1bK9oWSZogo6sBxVWTQ9UuWvaUF11IRSPS3L8e51JjJwt4 a92AdsUcarVVMv7om7fExrVOaP0n4OgToSVfcaQ4Hk/TyYU01sNOMdLsdRClXFurRBDW lmwGotr812srdCnbq617KwP2ITEGOKbZL+B49w7LHdiyoOx7PmDRqOAcxp+jTZGcPD0u SzJLDygZKWeLXU5YS2Lo2amA8nua+o8+KdafCjFh+YlHtIOJu4Cf9VQfMD6pld7MZ8EX Ksazy0Cn9wBdFBdX7RivCMpzvfukdvIUcF6/riadZfTOFXew3E9S9QUpG8kc/6ZF045c 7xeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=W/RjbeOm0GK54WXBuEUz9ThyU2x4dxtPR3H60Ev2zXs=; b=EkMujNLhz+09x6zwJ0IJRDV1dWFpP7TqB8inRzXyU6LxX/HvxaB2dlSiCK+JxXWQiW UK9i3ohHDK5f05HrDVoKLtlt12BjZc3882zWAjSH6zljEhN62Xyib4JFRjtIb5oOQHHf fsyfdIv8PELcY6ZZDZJjoCqNCm50gyKOe/l7UrVWLMdtSemHvaOOIVJeTYdYfGtmfQff WgoGgax7G+bINFjkvXU37zkcqt0ovcVCmqVAtA/ofe6eBHXZOp59BH1qXrDvAO0h3Lug HrEgdyBX8ayIqVi1O13cTICj+2tUROPTnJtWLIg7/YpDmqBYIBeFh+6A3TSGzGBtQxN7 TtJw== X-Gm-Message-State: AOAM532CJ9+yqbaZ/ykCXfsadomj8WgfK3he9l74a2d8IYrPoWIjfTxc Eb5INsfTBPkR2S85qZrUOCGHmg9ZE+AkC8mm X-Google-Smtp-Source: ABdhPJxdD/2x6Ion+dpumU5k57EXej6cA/2Qxreiz1/fYJxUcU8ydvYaPEnrZ269828k1ZWAP1KzKw== X-Received: by 2002:a50:eb08:: with SMTP id y8mr8616849edp.89.1621361784316; Tue, 18 May 2021 11:16:24 -0700 (PDT) Received: from localhost.localdomain (dh207-99-66.xnet.hr. [88.207.99.66]) by smtp.googlemail.com with ESMTPSA id e23sm12258594edr.80.2021.05.18.11.16.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 11:16:23 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Robert Marko Subject: [PATCH 1/2] arm64: dts: ipq8074: add crypto nodes Date: Tue, 18 May 2021 20:16:17 +0200 Message-Id: <20210518181618.3238386-1-robimarko@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org IPQ8074 uses Qualcom QCE crypto engine v5.1 which is already supported. So simply add nodes for its DMA and QCE itself. Signed-off-by: Robert Marko --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index 829e37ac82f6..194930374bc5 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -197,6 +197,30 @@ pcie_phy1: phy@8e000 { status = "disabled"; }; + cryptobam: dma@704000 { + compatible = "qcom,bam-v1.7.0"; + reg = <0x00704000 0x20000>; + interrupts = ; + clocks = <&gcc GCC_CRYPTO_AHB_CLK>; + clock-names = "bam_clk"; + #dma-cells = <1>; + qcom,ee = <1>; + qcom,controlled-remotely = <1>; + status = "disabled"; + }; + + crypto: crypto@73a000 { + compatible = "qcom,crypto-v5.1"; + reg = <0x0073a000 0x6000>; + clocks = <&gcc GCC_CRYPTO_AHB_CLK>, + <&gcc GCC_CRYPTO_AXI_CLK>, + <&gcc GCC_CRYPTO_CLK>; + clock-names = "iface", "bus", "core"; + dmas = <&cryptobam 2>, <&cryptobam 3>; + dma-names = "rx", "tx"; + status = "disabled"; + }; + tlmm: pinctrl@1000000 { compatible = "qcom,ipq8074-pinctrl"; reg = <0x01000000 0x300000>; From patchwork Tue May 18 18:16:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 12265427 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2D0CC43460 for ; Tue, 18 May 2021 18:16:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C8B0561006 for ; Tue, 18 May 2021 18:16:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245566AbhERSRs (ORCPT ); Tue, 18 May 2021 14:17:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235043AbhERSRq (ORCPT ); Tue, 18 May 2021 14:17:46 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9982EC061573; Tue, 18 May 2021 11:16:27 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id c20so16088515ejm.3; Tue, 18 May 2021 11:16:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NGqV4Xu3Ra2v1f3J2XY6oCYA2hVcPqhjvch9qSMDdIc=; b=C5sNyxP48U8ETKM6xIOl80A3W07rIY3Xk+ug64dFj+h+f96AG5nzacHyBY8wouDovQ 10swg9gNw1xC4b37NSg4p4eVJRanxDY7dXl7c2NnbI5Zwb5d4paO902wHAqYY0WojeSX xEc9XBCzG8laFQ0U8lDeBMRb0OSlnRVRzfuBQDGWa+zejn0LzhvQNTooQsW39+7GMrUC 6tfnddaGVOdq2S2fiVt6yHg3P8XDW9hxC4a0zqdNdaM1kH56Vy1OMCBqwAa58hi1Qhtg KqAVdQUKSUa0UPZrzPSsbPNovnrLPRdOhe5TlPAOnmQOLk6rRVAuO7l93am/yUkJtAXn +fzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NGqV4Xu3Ra2v1f3J2XY6oCYA2hVcPqhjvch9qSMDdIc=; b=CMKBvL4ERPkunUB+XKDEx9RUJumHC3KsilDMsyVgxywQn0g2n7x2ZtZGWyvj5cshjl FG6joG9TXW8Og21JVt+k15WXqWmEnRIj+x7yCiRofti1+KboOhQzUeg/dEOnby16A4iY nNdpvkr18rxHcj61RC45CU0af002buq5XrZGuK8ecDjAqVXYqSTddcsjL9UNPP/TVgkp CC5d3Loz39vlga++kgAhGtZ9haPt14xkS0hJ9Q0AAbUYrT7WND0B7KIcJUo3EfyTMa9T UdcuCk3rkAUDo/UkVE35fAUbWVfXjfRohx1aWvJP6tvI5w4pI6b9LP/OkUvjhw1Yqeqq N7Lg== X-Gm-Message-State: AOAM532eGN64Q0xImldPnyAbCQSsLxFexVaFXBtZmERbY9P4xm7HsH3u u9QApQRkLWYV5mRFROzQAL4= X-Google-Smtp-Source: ABdhPJx2BUHOnAU6/shPsIepkQPA3/FKXJ1Nc0RO7X1tmvIDYtNyCrribRZuqojOPt9a3mAhtanZcQ== X-Received: by 2002:a17:906:b104:: with SMTP id u4mr7210776ejy.211.1621361786322; Tue, 18 May 2021 11:16:26 -0700 (PDT) Received: from localhost.localdomain (dh207-99-66.xnet.hr. [88.207.99.66]) by smtp.googlemail.com with ESMTPSA id e23sm12258594edr.80.2021.05.18.11.16.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 11:16:25 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Robert Marko Subject: [PATCH 2/2] arm64: dts: ipq8074: add PRNG node Date: Tue, 18 May 2021 20:16:18 +0200 Message-Id: <20210518181618.3238386-2-robimarko@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210518181618.3238386-1-robimarko@gmail.com> References: <20210518181618.3238386-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org PRNG insinde of IPQ8074 is already supported, so simply add the node for it. Signed-off-by: Robert Marko --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index 194930374bc5..aec7ced72a89 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -197,6 +197,14 @@ pcie_phy1: phy@8e000 { status = "disabled"; }; + prng: rng@e3000 { + compatible = "qcom,prng-ee"; + reg = <0x000e3000 0x1000>; + clocks = <&gcc GCC_PRNG_AHB_CLK>; + clock-names = "core"; + status = "disabled"; + }; + cryptobam: dma@704000 { compatible = "qcom,bam-v1.7.0"; reg = <0x00704000 0x20000>;