From patchwork Wed Mar 10 05:24:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 396671 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp93073jai; Tue, 9 Mar 2021 21:26:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJzgmv+gg8AB32JBG75ZfXqDc8q82CPhYc5/XOhEqiLj5xhraytHH1+Yc4pYquwAl7k1x3Sc X-Received: by 2002:aa7:d686:: with SMTP id d6mr1304319edr.146.1615353977152; Tue, 09 Mar 2021 21:26:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615353977; cv=none; d=google.com; s=arc-20160816; b=dth4C1JyG0OvODVQAH22f2st/zI9TLyKoZbNgPMEKePspEdrsnT9hPx5vmQPQHAZkP ZkcUeXbrtTTxdqNumal66tBFw5lXrzoyb6F1edqyXLHkDKp+oVhnBZ3xu8wvABmp0bBK 6cQWjiVqsRpYIsjNnzlKF5GjLK1UYo7+geSnILHAjRZBIpCgv6hcjw5Ja/HPM5T8uTm6 yTtJJuo11W6KPnqyUKASV6ASXPfkoQPfS7VIUACUaKgjHhxY7MKRnLSUNg6vXwD9xOYA e7pCn6sLqLzmj8BgBiKCGBuARV+srpy37w6X5gijyKq3eMFjIqcogdMaYoQ+hFTPXOxj jQHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=00Qj3y18Y6HEZTQemqqh4Pl0Lyv+swPhAM+M8xYZg30=; b=WbHZ07xWTk90PhPnb+WQeUsXa7KgSY2putfRzJUj8BSpiD3Bq8hMeyTqqGTyG5J96c CcpgDauiqZEYSlDakKubmHHw9kZXh01yvLmFRFvTx6zkoEVjPN6XO9tcxzk+RmXYkN6e ap9sTVLlWRcSHw5dS0IX7ZKtduENXU++PrXIGqRSHZoOQoWQia3lQUSPIaZn65b/0vR9 o9eyP5gYQyworRohQ84m3DyOhvewOY79xRQddAQkbVuLWbai3YPZsfZCWb2p3D7l+24z kzPUKvRh3OUOir3XENmTbO7J4+BPGywrWzeFVhez1Z4NBz4Ao/POP+IT9PC+OnBN+1/J kLoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HQ9BQEzx; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si11236441edc.296.2021.03.09.21.26.16; Tue, 09 Mar 2021 21:26:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HQ9BQEzx; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232143AbhCJFZq (ORCPT + 16 others); Wed, 10 Mar 2021 00:25:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232204AbhCJFZa (ORCPT ); Wed, 10 Mar 2021 00:25:30 -0500 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE546C061763 for ; Tue, 9 Mar 2021 21:25:30 -0800 (PST) Received: by mail-pf1-x42a.google.com with SMTP id t29so11138976pfg.11 for ; Tue, 09 Mar 2021 21:25:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=00Qj3y18Y6HEZTQemqqh4Pl0Lyv+swPhAM+M8xYZg30=; b=HQ9BQEzxD10uSnjlp0tQau1zqNP1/AQG2ieW3xcPQZMFBQ/AFgIqZJfNBJkIztjKqH JsVzZvt7BWvGKJIH8CjXAK/fj6QVO03l/F6wKZZeCFpskXmHneQEI375vKdWp9xUqsxq g+VOFQOX8E2Fu4milwd7D3xnb/VVbd7cN88GuHts5IF03WVSiUmKeZM3TupXr2roB9oT TGBQXafPfOpVIuzxQvGRYluaBk6qt+XUEEX5QHn0FkTm/ya3EbPm5gw/Gvgj3hXC8Sek E+whyWF9itbCwqV91MF+ecgyCS5cqxG52nWHZ5524H/2xxKPJI47s9oaZ9mgPOZJcXIS TZ3g== 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=00Qj3y18Y6HEZTQemqqh4Pl0Lyv+swPhAM+M8xYZg30=; b=VyFI8dm66cIIKpFAH0aKwkNVMVQvdCjG3Bhyp05PPdg/x7di7aZJG2HEOngMGD15aG iTTr1Eb1IugnfjPeK2yJK9qF+29qD5/wN2QwwAhUwFiAfxk6fMHFY6l6ICd2DjYFZbM0 lyMsvVwwGF3Jn2xKV+WiGZYKWaAPE7cWK7BtQQjzSWfcKzYxaDUL16xcNtAF04vpEy/w ok3vTZ0tyPjAjCxAADDJNIlLAvpBElQJlMMIy03OrHE1d+9tDp5l0DmmjSv37426Odlw qGkq8E3JX+Cg2Cj/zQlaREDcb1RV7CmV8SCRaxP2LMG+Bh+k90Ng8MmOoOqKDl+vOLZ8 4Wyg== X-Gm-Message-State: AOAM532xcFMWCjENmLUyepBVrm5BcP0rMP//LbC/FXm2JSAgabGY7tvf xp+GWXl1dcI3KySPQSqmPxoyNGL562B2lRAHwBk= X-Received: by 2002:a63:207:: with SMTP id 7mr1298617pgc.346.1615353930118; Tue, 09 Mar 2021 21:25:30 -0800 (PST) Received: from localhost.localdomain ([2402:3a80:9f4:a436:21bd:7573:25c0:73a0]) by smtp.gmail.com with ESMTPSA id g7sm13915224pgb.10.2021.03.09.21.25.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 21:25:29 -0800 (PST) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: bhupesh.sharma@linaro.org, Thara Gopinath , Bjorn Andersson , Rob Herring , Andy Gross , Herbert Xu , "David S . Miller" , Stephen Boyd , Michael Turquette , linux-clk@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bhupesh.linux@gmail.com Subject: [PATCH 1/8] dt-bindings: qcom-qce: Add 'iommus' to required properties Date: Wed, 10 Mar 2021 10:54:56 +0530 Message-Id: <20210310052503.3618486-2-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210310052503.3618486-1-bhupesh.sharma@linaro.org> References: <20210310052503.3618486-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This patch adds the missing required property - 'iommus' to the device-tree binding documentation for qcom-qce crypto IP. This property describes the phandle(s) to apps_smmu node with sid mask. Cc: Thara Gopinath Cc: Bjorn Andersson Cc: Rob Herring Cc: Andy Gross Cc: Herbert Xu Cc: David S. Miller Cc: Stephen Boyd Cc: Michael Turquette Cc: linux-clk@vger.kernel.org Cc: linux-crypto@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: bhupesh.linux@gmail.com Signed-off-by: Bhupesh Sharma --- Documentation/devicetree/bindings/crypto/qcom-qce.txt | 1 + 1 file changed, 1 insertion(+) -- 2.29.2 diff --git a/Documentation/devicetree/bindings/crypto/qcom-qce.txt b/Documentation/devicetree/bindings/crypto/qcom-qce.txt index fdd53b184ba8..07ee1b12000b 100644 --- a/Documentation/devicetree/bindings/crypto/qcom-qce.txt +++ b/Documentation/devicetree/bindings/crypto/qcom-qce.txt @@ -11,6 +11,7 @@ Required properties: - dmas : DMA specifiers for tx and rx dma channels. For more see Documentation/devicetree/bindings/dma/dma.txt - dma-names : DMA request names should be "rx" and "tx" +- iommus : phandle to apps_smmu node with sid mask Example: crypto@fd45a000 { From patchwork Wed Mar 10 05:24:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 396673 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp93118jai; Tue, 9 Mar 2021 21:26:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJx0Js726RT4Y6PWBWuTPBSfOan2Y+fgLCS7qwUcQ07b855MPIgeh4HAGJpL5OxtCIbD84pq X-Received: by 2002:aa7:cb82:: with SMTP id r2mr1242552edt.209.1615353980706; Tue, 09 Mar 2021 21:26:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615353980; cv=none; d=google.com; s=arc-20160816; b=bCOJ04G70hREqiK8NLvsaqAjti2BUbhSQtJSc8d6PpulfBgjqYD1Tnnfc36mJbpGzd 9aF76AcCr8arx2QkNVQu88AHSe3HTzo/z9/WhIo64ssnFMgLfw5ch96keIqubnjLimim xKGxSS6QKgOjdfgku/nNkF2OFsICxPghBF+hKUvsIZilQf+YxwNPCie0OhCsTDMLgSyr 4Zgj+4h+gqQDZloKWWHzrqoQdSQ84TUkma0pgYSK3cZ9HqNBWY8aEsu+/681jh9HmXmk /pEoKOjy6rn51wwqFgHXfgYpfleua+1oAYEKOiajBqMx5bp/8c0sXvPVqQ7Qtc4Lgixm M2SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=p4MDtuxttZdWJgfIxJ4SM6O/1KHz1jNmyfxro35Wyqk=; b=mqbs86fK272EO32QYUEeFe7hTeglZHM31tmInYxcwqb+1yfZkA/8ccQdtXVc4ZoiLE CFW4rY2Tce7BJIuI8S2+n83Yg706vSQ+qwAOT0nZ1VG/E0KLtXHG7UvjbGzInlLLcJ35 NHwGiONBZNcfDocCtgMsLV7Zss1ghmv2HIa7Qd+TcOTM/5fH3Tblu3gYvJGmjlNAald4 QICuzexQTej2Ehzi42B+f96ofd2l0Y59TJAwDmVboUT8CId2duZ28FFo6oM6XJoIOgg2 jaHX15DCEALRGg4+zvA8uDy3hpS3kSgJIFcbUxRx+R1SNWNtigVBdkmNprM4EuKZy1Yx HlNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OLHdvE3o; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si11236441edc.296.2021.03.09.21.26.20; Tue, 09 Mar 2021 21:26:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OLHdvE3o; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232204AbhCJFZq (ORCPT + 16 others); Wed, 10 Mar 2021 00:25:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232215AbhCJFZh (ORCPT ); Wed, 10 Mar 2021 00:25:37 -0500 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97C7EC061763 for ; Tue, 9 Mar 2021 21:25:37 -0800 (PST) Received: by mail-pj1-x1034.google.com with SMTP id j6-20020a17090adc86b02900cbfe6f2c96so6841366pjv.1 for ; Tue, 09 Mar 2021 21:25:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=p4MDtuxttZdWJgfIxJ4SM6O/1KHz1jNmyfxro35Wyqk=; b=OLHdvE3oZF1gLJa3AqWetIIfuy8vOkVDfzZoQEvKGMoqQll51NJnHR4+YTKjp5oNN4 Q3pHVyEBvacEC4lEMZOV1gQfcjTbqVqHVRGtydSp8ix/HuUI8wUvwKp/8/C6yTieKNDX mIWq9D1aOFMRp6jfgljPMR9uNLYyNw1gXqemix4izHO/f4wLz7TVJDoVojOZ8aopH3yF nQ+i1t5lL3z1M4ATMVBcbdhU/ZLbAA67XQP0rF34qeZ9EHc4u1fvMSw3U2F3rD4n++9p VL1VdRZtRP1bGjhKFe25FQEW9O011aNS+AnPAjCJzFdtxr0sisR3Eg62J769ZuFBb2Yf S46Q== 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=p4MDtuxttZdWJgfIxJ4SM6O/1KHz1jNmyfxro35Wyqk=; b=shn1n3ApyYcppcdTUpPwzwIGxS6sy/2t1ifT4VXKlkPxuQsTBl1BjX1hYXDCmntUOb /5FFPBFGr+NbQ7VRw6s36DSYb46phodhLR3NimMxR9vV5+JLnRABeni+d8YNgvaB2mxI qylhH1HEi1OY2cTnMKZeFLI9bGrdF9G3zQK4RGo4W2JAxdyUWpzj5/dGTMzsA3zj7k0z XyG1wL644GPhgfMVTr2+yie+1oLHT1tw/VDzCfOdGiVSD7Kv+lK/42/PD9uEKlYL485Y l8D8+2svfvRd/+Xt94raPJTKWulbt6q9mdMc+YP5DzZFlb1pTv3MFMR0UEIPOYKV3A33 vq4g== X-Gm-Message-State: AOAM531TBTIcFi8Ff/bbLBTEKt7OFJAtgCPUmAAcu1f0fDSTL+1dVK4x RefbHzW+PG+NDJvH99u3NHKW9lbTjU5Zg7KaAqY= X-Received: by 2002:a17:902:f702:b029:e3:dd3f:d151 with SMTP id h2-20020a170902f702b02900e3dd3fd151mr1643353plo.18.1615353937065; Tue, 09 Mar 2021 21:25:37 -0800 (PST) Received: from localhost.localdomain ([2402:3a80:9f4:a436:21bd:7573:25c0:73a0]) by smtp.gmail.com with ESMTPSA id g7sm13915224pgb.10.2021.03.09.21.25.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 21:25:36 -0800 (PST) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: bhupesh.sharma@linaro.org, Thara Gopinath , Bjorn Andersson , Rob Herring , Andy Gross , Herbert Xu , "David S . Miller" , Stephen Boyd , Michael Turquette , linux-clk@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bhupesh.linux@gmail.com Subject: [PATCH 2/8] dt-bindings: crypto : Add new compatible strings for qcom-qce Date: Wed, 10 Mar 2021 10:54:57 +0530 Message-Id: <20210310052503.3618486-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210310052503.3618486-1-bhupesh.sharma@linaro.org> References: <20210310052503.3618486-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Newer qcom chips support newer versions of the qce IP, so add new compatible strings for qcom-qce (in addition to the existing "qcom,crypto-v5.1"). With [1], Thara tried to add the support for new compatible strings, but we couldn't conclude on the approach to be used. Since we have a number of new qcom arm64 SoCs available now, several of which support the same crypto IP version, so it makes more sense to use the IP version for the compatible string, rather than using the soc name as the compatible string. [1]. https://lore.kernel.org/linux-arm-msm/20201119155233.3974286-7-thara.gopinath@linaro.org/ Cc: Thara Gopinath Cc: Bjorn Andersson Cc: Rob Herring Cc: Andy Gross Cc: Herbert Xu Cc: David S. Miller Cc: Stephen Boyd Cc: Michael Turquette Cc: linux-clk@vger.kernel.org Cc: linux-crypto@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: bhupesh.linux@gmail.com Signed-off-by: Bhupesh Sharma --- Documentation/devicetree/bindings/crypto/qcom-qce.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -- 2.29.2 diff --git a/Documentation/devicetree/bindings/crypto/qcom-qce.txt b/Documentation/devicetree/bindings/crypto/qcom-qce.txt index 07ee1b12000b..217b37dbd58a 100644 --- a/Documentation/devicetree/bindings/crypto/qcom-qce.txt +++ b/Documentation/devicetree/bindings/crypto/qcom-qce.txt @@ -2,7 +2,11 @@ Qualcomm crypto engine driver Required properties: -- compatible : should be "qcom,crypto-v5.1" +- compatible : Supported versions are: + - "qcom,crypto-v5.1", for ipq6018 + - "qcom,crypto-v5.4", for sdm845, sm8150 + - "qcom,crypto-v5.5", for sm8250 + - "qcom,crypto-v5.6", for sm8350 - reg : specifies base physical address and size of the registers map - clocks : phandle to clock-controller plus clock-specifier pair - clock-names : "iface" clocks register interface From patchwork Wed Mar 10 05:24:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 396858 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=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, 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 3F384C433DB for ; Wed, 10 Mar 2021 05:26:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0AE1864FF4 for ; Wed, 10 Mar 2021 05:26:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232344AbhCJF0P (ORCPT ); Wed, 10 Mar 2021 00:26:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232239AbhCJFZn (ORCPT ); Wed, 10 Mar 2021 00:25:43 -0500 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD410C061763 for ; Tue, 9 Mar 2021 21:25:43 -0800 (PST) Received: by mail-pj1-x102c.google.com with SMTP id kr3-20020a17090b4903b02900c096fc01deso6832884pjb.4 for ; Tue, 09 Mar 2021 21:25:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GVkcidVr+dQRgdeYwXPMC77EhnCPIwmcpaqf5tpCWzk=; b=LqDaiMgDgkwNzNyIeZZmwTTGVXbbH5JaioyrYI/naE53D3WpY6nmbab8SzY4dq4uPp b5IQlKv3apOMbwrUxEFs6G3m1MrYfvz00XcuWlnHyTaLlcLqfUKW80aZ3/Kn8gzyU9cr 7GnbIi5Kp2E4QFnPdpJCF1LcVyEWsuTFcAQGr3S/BkkqH8KTbX0ScYLe14JcsfmE+4JU 3g34fxCIiQiW+AinOXiDvsm6LpBIT9RTcIDCRL5W0wjw2KNl8f6B4cczyhKLu7mjT/4N MLGps+LYImgxbX0xraB2bKiQ7hJ4Ygp7Kal9HjC3cZJTxnTLj/oj6rKQOkarmNV+PFzz n/0g== 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=GVkcidVr+dQRgdeYwXPMC77EhnCPIwmcpaqf5tpCWzk=; b=Hio5ix3G5Wfa7njhi4zk4pqPde96JnvqXa7opCKGpw4tWWZX5DCi/XA9GrRwdLOTS1 ciuYdaoHpSgeGqYb2R7hsybwyliPYlBTOvZa+F1ysBOsMnVGFqT3qZ02LGged3tXEYUB 9xP6SiMHg9a9oI1vBVARGzw3XcfrbyrwQQV+mNg6sLDr8U2d9+/5S8luDmvek4qTwI0c IdWjwezvrJa9vMZRmFMUSPJXhgLdHp8hg/3o7VotCT1d8C8w9TEETfx0CJWd5m43XRPh i04UaoJk/TSVdB4HUYfcqy+K3r+G3T7QQ3rOR8eN2A2ura3biu8tmuArXXKX3Ey43tJ9 mY7A== X-Gm-Message-State: AOAM532MKwCk85ml38UZ8Lq6oOjDQU+zNQqB1pdQJdDKW+30niSsxD4B h5FYVchA+3KXEgtzxa3I2yBCqAiIEHmHv/WzeIg= X-Google-Smtp-Source: ABdhPJxn4p8YhJigLSPvS6brmz6OvH+OGNaXEqaBdO7Q+jiGGtTl9R1ad5aaz8S2St3RBL/WvDK4+Q== X-Received: by 2002:a17:90b:2304:: with SMTP id mt4mr1777287pjb.179.1615353943198; Tue, 09 Mar 2021 21:25:43 -0800 (PST) Received: from localhost.localdomain ([2402:3a80:9f4:a436:21bd:7573:25c0:73a0]) by smtp.gmail.com with ESMTPSA id g7sm13915224pgb.10.2021.03.09.21.25.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 21:25:42 -0800 (PST) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: bhupesh.sharma@linaro.org, Thara Gopinath , Bjorn Andersson , Rob Herring , Andy Gross , Herbert Xu , "David S . Miller" , Stephen Boyd , Michael Turquette , linux-clk@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bhupesh.linux@gmail.com Subject: [PATCH 3/8] arm64/dts: qcom: sdm845: Use RPMH_CE_CLK macro directly Date: Wed, 10 Mar 2021 10:54:58 +0530 Message-Id: <20210310052503.3618486-4-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210310052503.3618486-1-bhupesh.sharma@linaro.org> References: <20210310052503.3618486-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org In commit 3e482859f1ef ("dts: qcom: sdm845: Add dt entries to support crypto engine."), we decided to use the value indicated by constant RPMH_CE_CLK rather than using it directly. Now that the same RPMH clock value will also be used for other SoCs (in addition to sdm845), let's use the constant RPMH_CE_CLK to make sure that this dtsi is compatible with the other qcom ones. Cc: Thara Gopinath Cc: Bjorn Andersson Cc: Rob Herring Cc: Andy Gross Cc: Herbert Xu Cc: David S. Miller Cc: Stephen Boyd Cc: Michael Turquette Cc: linux-clk@vger.kernel.org Cc: linux-crypto@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: bhupesh.linux@gmail.com Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 454f794af547..54ba95dcb35a 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2304,7 +2304,7 @@ cryptobam: dma@1dc4000 { compatible = "qcom,bam-v1.7.0"; reg = <0 0x01dc4000 0 0x24000>; interrupts = ; - clocks = <&rpmhcc 15>; + clocks = <&rpmhcc RPMH_CE_CLK>; clock-names = "bam_clk"; #dma-cells = <1>; qcom,ee = <0>; @@ -2320,7 +2320,7 @@ crypto: crypto@1dfa000 { reg = <0 0x01dfa000 0 0x6000>; clocks = <&gcc GCC_CE1_AHB_CLK>, <&gcc GCC_CE1_AHB_CLK>, - <&rpmhcc 15>; + <&rpmhcc RPMH_CE_CLK>; clock-names = "iface", "bus", "core"; dmas = <&cryptobam 6>, <&cryptobam 7>; dma-names = "rx", "tx"; From patchwork Wed Mar 10 05:24:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 396857 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.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, UNWANTED_LANGUAGE_BODY, URIBL_BLOCKED, 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 C72EFC43331 for ; Wed, 10 Mar 2021 05:26:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AD27764FF4 for ; Wed, 10 Mar 2021 05:26:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232215AbhCJF0Q (ORCPT ); Wed, 10 Mar 2021 00:26:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232307AbhCJFZv (ORCPT ); Wed, 10 Mar 2021 00:25:51 -0500 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E85EAC061763 for ; Tue, 9 Mar 2021 21:25:50 -0800 (PST) Received: by mail-pg1-x536.google.com with SMTP id g4so10619695pgj.0 for ; Tue, 09 Mar 2021 21:25:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rCnpcLpuqTdHmtaa7vEu9Tx55M7Ej3EbyXNq00c5adU=; b=sJR0eTnWGvsWHfKsGs1GxG5L1cwoqOeg3Yd0ioLF14Xa3dmshqNyd1Gl4BzpsteYUz DHpLTFAWqi5QMX8fFbywmvPnSZBQtkuHyoyvXfxDn0/JLUjpY6vYxSyHcrE7RqqfC804 4WgBcuXlgH9BPCmvnFp8UKsJRVJLQQezriFNkQvo9y+Z+Zthu2nsTVZJeE9WNj8g6jA9 cELC7WpcQnuQJFdOIm3iD8rOdfsdx46CY7iRF3/2Mee6KJyUU5S+fPq4MHxJk0eT2TDO lhJvDD6/zSv5yBOXG/fI4ppo/D0ryDRleseOhCQuueTh3ASNP/xDxukS+M77Mnbxb5No IAww== 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=rCnpcLpuqTdHmtaa7vEu9Tx55M7Ej3EbyXNq00c5adU=; b=oPNpBY2a8UTsHPoiRA7Pv7S14+IMZ3+S+war/LCyvdCBb8p9S/SpCS0BHc2ch7mN/k En2iiirTRiMlHN4tdbBT2cafH81Ta0AxQ5GSB2D642ZPwCdi0UMgs7BvsG+LJK/qKrTF KTQpHLY3nKIVWk3nVbufaoaqRcUDwp8Yym8eULAOC6YI9SMa0eeoj6dVGv7NcSwV0JGx /p/HMx1R22BM6N5N3c1xRJ2Z43JkAa/kqY4/NP3g1wcdPbA67SIu5pSbM/JFBxGFX5dW kcnb9Ne97lbatTpSfOLOMI7JcIm5yiTnb5k9YiSfjlijDyecJJwIGce8vkp3FrKFwBH5 Qh4w== X-Gm-Message-State: AOAM530sww7OJMrOateRJ9o3LbUYJl+oo6egXHFIF/zaGailJZqRoqfT IsmZ4khMjL5h3Nj15Mhn0riz86/0DTQP/MVbPxc= X-Google-Smtp-Source: ABdhPJzmRPeOWu16uPBVPML5utQZj0PB0c1OsJTfAdIhHMoFqp1dfNL6o3ViJOXYPndUKRT5BvtY4Q== X-Received: by 2002:a65:6a44:: with SMTP id o4mr1313921pgu.312.1615353950393; Tue, 09 Mar 2021 21:25:50 -0800 (PST) Received: from localhost.localdomain ([2402:3a80:9f4:a436:21bd:7573:25c0:73a0]) by smtp.gmail.com with ESMTPSA id g7sm13915224pgb.10.2021.03.09.21.25.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 21:25:50 -0800 (PST) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: bhupesh.sharma@linaro.org, Thara Gopinath , Bjorn Andersson , Rob Herring , Andy Gross , Herbert Xu , "David S . Miller" , Stephen Boyd , Michael Turquette , linux-clk@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bhupesh.linux@gmail.com Subject: [PATCH 4/8] dt-bindings/clock: qcom: sm8250: Add gcc clocks for sm8250 crypto block Date: Wed, 10 Mar 2021 10:54:59 +0530 Message-Id: <20210310052503.3618486-5-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210310052503.3618486-1-bhupesh.sharma@linaro.org> References: <20210310052503.3618486-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This patch adds the global clock controller (gcc) clocks required by the sm8250 crypto block to function to the dt-binding header file (namely: GCC_CE1_AHB_CLK, GCC_CE1_AXI_CLK and GCC_CE1_CLK). Cc: Thara Gopinath Cc: Bjorn Andersson Cc: Rob Herring Cc: Andy Gross Cc: Herbert Xu Cc: David S. Miller Cc: Stephen Boyd Cc: Michael Turquette Cc: linux-clk@vger.kernel.org Cc: linux-crypto@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: bhupesh.linux@gmail.com Signed-off-by: Bhupesh Sharma --- include/dt-bindings/clock/qcom,gcc-sm8250.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/dt-bindings/clock/qcom,gcc-sm8250.h b/include/dt-bindings/clock/qcom,gcc-sm8250.h index 7b7abe327e37..6c58320238c4 100644 --- a/include/dt-bindings/clock/qcom,gcc-sm8250.h +++ b/include/dt-bindings/clock/qcom,gcc-sm8250.h @@ -207,6 +207,9 @@ #define GCC_VIDEO_AXI0_CLK 197 #define GCC_VIDEO_AXI1_CLK 198 #define GCC_VIDEO_XO_CLK 199 +#define GCC_CE1_AHB_CLK 200 +#define GCC_CE1_AXI_CLK 201 +#define GCC_CE1_CLK 202 /* GCC resets */ #define GCC_GPU_BCR 0 From patchwork Wed Mar 10 05:25:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 396675 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp93415jai; Tue, 9 Mar 2021 21:26:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJxfxdczXDefG3Q0OO2Vsuv1q1h6IR+PLA9dhu9SThsctsst7mlP4EzxLpH/IsmHgbGYhvKw X-Received: by 2002:a17:906:7150:: with SMTP id z16mr1657000ejj.103.1615354009732; Tue, 09 Mar 2021 21:26:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615354009; cv=none; d=google.com; s=arc-20160816; b=k+F7WL+fy62iMTIxmS+impfxuIrCF+1hSxBq8kf+Cg6HWrJFEHuWjeAQwlgsfu7fij fNNf+pa81f5zai4C751I4aXoSJw6NHyAWNegToKefoJj204CUIR3h7rYWhCeG0bWBEkv kSNqoNVLTiWkpp4lb2NpCq8MMQ6xceWJWhzJ80ofSfSGZo6bSen7aCDGQQi7Ae8PHDgJ kt67dXrJns/CXB05bpB72SiyyLaoUIyQdeR1qFvlqNxn6j1CdFujgR6nIJ9IH+BrMYK7 974+iIO5jG91tgRtnjfm7NZ7U/qUJQ14QKPBDS9LFVVcID3e9e/UhaEk8AJn/WYq9D78 Hy7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VmOMUUhp3vtSE7CptEWQ9fYIwV1ThT78JbnR+RZ0uIQ=; b=ygM9S3981W9ejphahEg42t3tV0NBwXYnH1Q0y1ViXYkhvq5A4g7VeHASJfU+MUiGqb 3wZr/ShEBPAk/pMDOLxQWV/XISBy/1Q0oFheydDGMcFDu8s3c7xMTRG1R44L8CO16bva 8hsZtBsmHQojDZy+p8lqlBPtgaPrPea6EIlYx3n9vtU9NeuEIJIvtqBga3v5RqppDbpn N79akKYkO54Lsp6XNWHl9YEWauZKD3uUZ535SMTEDum3F7JFvaG8yPrALJqkr7aQdpq7 8rEzEYBxoISzow8nFgf1Ux6sTnujLkPgIwAKiMVdBpVsEllST7UwweW1ORVcRgmYlOrn cXAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TqE0mZ6Z; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si11236441edc.296.2021.03.09.21.26.49; Tue, 09 Mar 2021 21:26:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TqE0mZ6Z; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232203AbhCJF0R (ORCPT + 16 others); Wed, 10 Mar 2021 00:26:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232321AbhCJFZ5 (ORCPT ); Wed, 10 Mar 2021 00:25:57 -0500 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00248C061763 for ; Tue, 9 Mar 2021 21:25:56 -0800 (PST) Received: by mail-pl1-x634.google.com with SMTP id 30so3341801ple.4 for ; Tue, 09 Mar 2021 21:25:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VmOMUUhp3vtSE7CptEWQ9fYIwV1ThT78JbnR+RZ0uIQ=; b=TqE0mZ6ZH/dhIJ1JDztPKdeokaTI8W2brCl7nkuChEyTAn29JJhimIDqG+Zeb8ABH9 +eUxVbGOkkBfpjptJZxEA4yxQo4UWi5+HQm87PusbYbcX7h+ZIp6ErI3FKJzdF/V8AMV rn3goVF13mF3/IhQG+bm4cELSJWjt7DPDTqXchcRwUNR/014/WpHdkhob4AlWS42sIne 2N+A8k5gtSd1pPmc9sXXUhlP12k/UNE7nxha+iz9X/LDFU0BnOKBJ93MA8VvqYSU3PkD KQCYf7xfuvp3SWGaPy7zOjTv+6jtSYOdXdYhEn4581kXudurSOJ2QHENaqBeI3HfKh7j GLRQ== 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=VmOMUUhp3vtSE7CptEWQ9fYIwV1ThT78JbnR+RZ0uIQ=; b=t5Htle+tuWrYt8xG4qJWsNODcog8tdYgBhWWKPiu2lVrFGMIXAyRtlZ8bReLbEN9xa VP/hrAOmYYgKzDtI22MYEMjdnnVJNgMzNMu7u5io+Edby/yVEuF6tqes+klTFdDyawmF hNr+hNqWC/wCr/2WfKtNuibYfZcAIlxHx9f6zZC3QkGsICRkyu6avXf96hTHSZO8h5fo BVAPIh/HhcUISfbdsuRkqA88F5Mi1bToMqvfcLK5093bTWyaPb3BtlWW3CsiV4mSbsJd 9F1r8Ffu7s6OWnO3mOHSXr43waUMJrLoEgXYSLvOTOIPOO419Bl7cH066JKdvyOrXw7d mkEw== X-Gm-Message-State: AOAM533BpRbJvpQ1tI4PzLHGdh1bzdIr/m02zHhnj8TeRO6TM+ODxnPn M/96stbV6Hz9ZVHscA0q8teVWkGQoEbiSYEiw3o= X-Received: by 2002:a17:902:dacb:b029:e5:b538:9ce6 with SMTP id q11-20020a170902dacbb02900e5b5389ce6mr1444258plx.8.1615353956435; Tue, 09 Mar 2021 21:25:56 -0800 (PST) Received: from localhost.localdomain ([2402:3a80:9f4:a436:21bd:7573:25c0:73a0]) by smtp.gmail.com with ESMTPSA id g7sm13915224pgb.10.2021.03.09.21.25.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 21:25:56 -0800 (PST) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: bhupesh.sharma@linaro.org, Thara Gopinath , Bjorn Andersson , Rob Herring , Andy Gross , Herbert Xu , "David S . Miller" , Stephen Boyd , Michael Turquette , linux-clk@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bhupesh.linux@gmail.com Subject: [PATCH 5/8] clk: qcom: clk-rpmh: Add CE clock on sm8250 Date: Wed, 10 Mar 2021 10:55:00 +0530 Message-Id: <20210310052503.3618486-6-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210310052503.3618486-1-bhupesh.sharma@linaro.org> References: <20210310052503.3618486-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The Qualcomm CE clock resource (managed by BCM) is also required by sm8250 crypto driver to access the core clock, so add an entry for the same in 'sm8250_rpmh_clocks' array. Cc: Thara Gopinath Cc: Bjorn Andersson Cc: Rob Herring Cc: Andy Gross Cc: Herbert Xu Cc: David S. Miller Cc: Stephen Boyd Cc: Michael Turquette Cc: linux-clk@vger.kernel.org Cc: linux-crypto@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: bhupesh.linux@gmail.com Signed-off-by: Bhupesh Sharma --- drivers/clk/qcom/clk-rpmh.c | 1 + 1 file changed, 1 insertion(+) -- 2.29.2 diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c index 91dc390a583b..59f73494a9c1 100644 --- a/drivers/clk/qcom/clk-rpmh.c +++ b/drivers/clk/qcom/clk-rpmh.c @@ -470,6 +470,7 @@ static struct clk_hw *sm8250_rpmh_clocks[] = { [RPMH_RF_CLK1_A] = &sdm845_rf_clk1_ao.hw, [RPMH_RF_CLK3] = &sdm845_rf_clk3.hw, [RPMH_RF_CLK3_A] = &sdm845_rf_clk3_ao.hw, + [RPMH_CE_CLK] = &sdm845_ce.hw, }; static const struct clk_rpmh_desc clk_rpmh_sm8250 = { From patchwork Wed Mar 10 05:25:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 396676 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp93443jai; Tue, 9 Mar 2021 21:26:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJyev2qhEZ5pXTOtYyY0AgdNeipO4jR80V8a+zjP5CfSSzXNMkAkSSRGbN45NwbOMR2146wr X-Received: by 2002:a17:906:d797:: with SMTP id pj23mr1692803ejb.367.1615354011938; Tue, 09 Mar 2021 21:26:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615354011; cv=none; d=google.com; s=arc-20160816; b=xpGH8x/Rt3DphZh+fCseFmROWCVCGhX7HYeinUvqsJCefxCCset8Uh4xNNjwJbpgaH 3uA6ehQq+FNSdoVO+TKtQibN9SqBkk0jwZKEObBXntAaypgKytHtgmeqvqsfLZrJR+H2 bZOGCif/azCgkxEtPON+YgePD9yh4w8sKILVttEgdtL+Fwe9Wux5tGc3mzz0vAUH5BLM vKLYnDatfKCbkEaY27Y1aMc3SOIuVlAPeLQJjyn0lDymk5GkVVLL78N1jIzpbhxbmfim eepf1l1HxrVD78eBzL+1Q0Fb2emWOBkuwVWkfztXhOV5Qy+mbJtZErlpjpjU3mauteAC b4Pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MyRCvPaVcQpraU+Ca0FoAU2tyJOU/YwufLj6r26LxEI=; b=Bc2b5kEPocJpfaTqWOhX4xbPte67B/OV2iCiJuvtgA9agnJeSlhdS2VhOxnadWlZRv 5972p5wih2EOpIptwcX80RqM7uZll2YUHE8CFmeiF2Ms/otZ5E8QK6aSgFe3X3REWG9C ur3n7/PdpWHoYNhD7KVGRn7Dv9EJABOeocTAY2E3TpazVdTdMTq1EfPC79gCm9AihjAc mOn5rQ41UZD5VaqCeUTYjAhmTvrbvii2AoMuVA6PNCG50LRn2e41boOsx3NJ0NDDNTUk o2RuuFQ2/YMVv8TAat6b97ARcYlqUdWWvbLQ9qMrR2tb/Tqd2wT7B0Qb2XSimiSaUzRi 2QgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D6lyYhKU; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si11236441edc.296.2021.03.09.21.26.51; Tue, 09 Mar 2021 21:26:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D6lyYhKU; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232351AbhCJF0S (ORCPT + 16 others); Wed, 10 Mar 2021 00:26:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232328AbhCJF0D (ORCPT ); Wed, 10 Mar 2021 00:26:03 -0500 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FF2FC061763 for ; Tue, 9 Mar 2021 21:26:03 -0800 (PST) Received: by mail-pl1-x62d.google.com with SMTP id 30so3341906ple.4 for ; Tue, 09 Mar 2021 21:26:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MyRCvPaVcQpraU+Ca0FoAU2tyJOU/YwufLj6r26LxEI=; b=D6lyYhKUOzYxKJP9wW1OlrsACoqZ0od54Zu2hf1RH5ThM8X+8haQ322vVyG0VgGYG8 a3OvxE2iPvBMOand9IusfG8625ACzjFrUixK3WHIif4P951pozwIY85ijfSiSPPjkPmq hJqSd/n8HdGW68p3z0QW0LUgDbDlrte3gxd3M/NWvUhDJVQ2KPSaCDFaws6YNWUxg0rY tagg1+7vwkHCLiZ6weBdJhTmhavbvgLhu2TCKMLZeNGHa2o6aXHlczxFoVAjgYoUveKv mkVBqmB+ffwF6l49jMrZmLQbuEP++cdfYQtCBkosOQHoqdGBnNc3uDaqwXOs4z73XnLQ nQ9g== 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=MyRCvPaVcQpraU+Ca0FoAU2tyJOU/YwufLj6r26LxEI=; b=uND8GjR7S66SZXhyl7ydkEGL72jf8TD7em/cPwMpY0PADBHkDA39JH4Wa21XTrIXil iBF/xmpvbQ2vT2r0iR9psawfX30t7JsPY9/aKv2phWo/oiXfsX2NcreMVFlLQDnqDZl7 vO4kjPjOUBbS5sl8KKjPS1Vm3usNiPaeKiD1yWmv0N21+tq2o8YNTwvM9uBlWISLpr3X zbgQO8ktxnsYalWV1UaTbumA/0PwuTfJrvSjNgKf4XArw3Cb6MfKm8FKhBOS+E6J8oCO I3TCQjyfX9K7EbZc4M46d1ImLGOfO+WRC78kE81RlHmwNzVQtkGj9mqB0XCqKnGMH2B0 LfoQ== X-Gm-Message-State: AOAM533/Ckhb8czcqSR3LIQQDgh8whsMchjddsFvE+YVDOrphJ7iw9i4 AmD/tViAdjPQFe+5dXUIyJrKHsMtyKMtWMG2CCc= X-Received: by 2002:a17:90a:987:: with SMTP id 7mr1729387pjo.97.1615353962846; Tue, 09 Mar 2021 21:26:02 -0800 (PST) Received: from localhost.localdomain ([2402:3a80:9f4:a436:21bd:7573:25c0:73a0]) by smtp.gmail.com with ESMTPSA id g7sm13915224pgb.10.2021.03.09.21.25.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 21:26:02 -0800 (PST) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: bhupesh.sharma@linaro.org, Vinod Koul , Thara Gopinath , Bjorn Andersson , Rob Herring , Andy Gross , Herbert Xu , "David S . Miller" , Stephen Boyd , Michael Turquette , linux-clk@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bhupesh.linux@gmail.com Subject: [PATCH 6/8] clk: qcom: Add gcc clocks for crypto block on sm8250 Date: Wed, 10 Mar 2021 10:55:01 +0530 Message-Id: <20210310052503.3618486-7-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210310052503.3618486-1-bhupesh.sharma@linaro.org> References: <20210310052503.3618486-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This patch adds the global clock controller (gcc) clocks required by the sm8250 crypto block to function, namely: GCC_CE1_AHB_CLK, GCC_CE1_AXI_CLK and GCC_CE1_CLK. Cc: Vinod Koul Cc: Thara Gopinath Cc: Bjorn Andersson Cc: Rob Herring Cc: Andy Gross Cc: Herbert Xu Cc: David S. Miller Cc: Stephen Boyd Cc: Michael Turquette Cc: linux-clk@vger.kernel.org Cc: linux-crypto@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: bhupesh.linux@gmail.com Signed-off-by: Bhupesh Sharma --- drivers/clk/qcom/gcc-sm8250.c | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) -- 2.29.2 diff --git a/drivers/clk/qcom/gcc-sm8250.c b/drivers/clk/qcom/gcc-sm8250.c index ab594a0f0c40..0df5ac346c93 100644 --- a/drivers/clk/qcom/gcc-sm8250.c +++ b/drivers/clk/qcom/gcc-sm8250.c @@ -1198,6 +1198,47 @@ static struct clk_branch gcc_camera_xo_clk = { }, }; +static struct clk_branch gcc_ce1_ahb_clk = { + .halt_reg = 0x4100c, + .halt_check = BRANCH_HALT_VOTED, + .hwcg_reg = 0x4100c, + .hwcg_bit = 1, + .clkr = { + .enable_reg = 0x52004, + .enable_mask = BIT(3), + .hw.init = &(struct clk_init_data){ + .name = "gcc_ce1_ahb_clk", + .ops = &clk_branch2_ops, + }, + }, +}; + +static struct clk_branch gcc_ce1_axi_clk = { + .halt_reg = 0x41008, + .halt_check = BRANCH_HALT_VOTED, + .clkr = { + .enable_reg = 0x52004, + .enable_mask = BIT(4), + .hw.init = &(struct clk_init_data){ + .name = "gcc_ce1_axi_clk", + .ops = &clk_branch2_ops, + }, + }, +}; + +static struct clk_branch gcc_ce1_clk = { + .halt_reg = 0x41004, + .halt_check = BRANCH_HALT_VOTED, + .clkr = { + .enable_reg = 0x52004, + .enable_mask = BIT(5), + .hw.init = &(struct clk_init_data){ + .name = "gcc_ce1_clk", + .ops = &clk_branch2_ops, + }, + }, +}; + static struct clk_branch gcc_cfg_noc_usb3_prim_axi_clk = { .halt_reg = 0xf07c, .halt_check = BRANCH_HALT_VOTED, @@ -3325,6 +3366,9 @@ static struct clk_regmap *gcc_sm8250_clocks[] = { [GCC_CAMERA_HF_AXI_CLK] = &gcc_camera_hf_axi_clk.clkr, [GCC_CAMERA_SF_AXI_CLK] = &gcc_camera_sf_axi_clk.clkr, [GCC_CAMERA_XO_CLK] = &gcc_camera_xo_clk.clkr, + [GCC_CE1_AHB_CLK] = &gcc_ce1_ahb_clk.clkr, + [GCC_CE1_AXI_CLK] = &gcc_ce1_axi_clk.clkr, + [GCC_CE1_CLK] = &gcc_ce1_clk.clkr, [GCC_CFG_NOC_USB3_PRIM_AXI_CLK] = &gcc_cfg_noc_usb3_prim_axi_clk.clkr, [GCC_CFG_NOC_USB3_SEC_AXI_CLK] = &gcc_cfg_noc_usb3_sec_axi_clk.clkr, [GCC_CPUSS_AHB_CLK] = &gcc_cpuss_ahb_clk.clkr, From patchwork Wed Mar 10 05:25:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 396677 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp93454jai; Tue, 9 Mar 2021 21:26:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJzCVtQHVotZOMwUuesV10rys7piwaCuy2Vks55/fHfM0qd5gXKtSCOjbmV0mL9aSAT1CMWo X-Received: by 2002:a17:906:7150:: with SMTP id z16mr1657147ejj.103.1615354012778; Tue, 09 Mar 2021 21:26:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615354012; cv=none; d=google.com; s=arc-20160816; b=FrCjwqZXeqvdl+3APGcyhzhtzp6yQXXcuuohi27xRQy78xKFbAA9w1FpCAqGcevwnR u/u7zxgK24+AxtFRtUc9b7t92wi8QKRatv3BuxaulINWVF74/UkSueUktKj7IUCGtBxO 1zcsICWBradSML8wFr7DbUq/0d5FCdbbctDXQ4Bws2aCJRdLOHh7pqFyVnKm3e8Ao99T SjroGGjIEPw8OhNCKH9QGXopPtlNUUMuUeMdqDibs92doG/MlLYjvgrxlQryHCoDGCwH 2cBlOELiYNu6ux7lNIVx1LvWXyEkzwFDBYpjF9ABRRHn+vuau07/jLEncejZPSxWBH09 rCfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4q+Rnnlb5GLA1MWkdel8vTxzZ4mQRlT1eDV72kpg7eE=; b=UhtfWhFmy2Z4NzMR0a3MfBYqiVWtTEpdLaQUiEnsvgs4NzywtKTa6BwRUQvgaDpgE9 +eAEYtD/smdslhnGiTRz9nklt+f/TyKk+L3TrACR+05EcxPvcH0yAQv8B895hlNvBPe/ KDnPtfRQJ4G+Bd1FtHHJxJz1u5gLu59d60KvKTM5Nq+Dq98kkVYSTe5uSLURESfiHjJx 4njZtYlrRr49LoIuX5MYuun52++2Pg+QjGLVAkfKQA2X7PhKH8FX2N74tCcOwD67/IQt DJCguu3fQCdXRS93h7uTWI06VE47oQRj7J04wkz/B2cwzv47Cd56xqBJ1mKZH+FynaT+ wcgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tCWJDmMS; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si11236441edc.296.2021.03.09.21.26.52; Tue, 09 Mar 2021 21:26:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tCWJDmMS; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232322AbhCJF0T (ORCPT + 16 others); Wed, 10 Mar 2021 00:26:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232340AbhCJF0K (ORCPT ); Wed, 10 Mar 2021 00:26:10 -0500 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9053FC061763 for ; Tue, 9 Mar 2021 21:26:10 -0800 (PST) Received: by mail-pl1-x631.google.com with SMTP id e2so2640537pld.9 for ; Tue, 09 Mar 2021 21:26:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4q+Rnnlb5GLA1MWkdel8vTxzZ4mQRlT1eDV72kpg7eE=; b=tCWJDmMSuygEMZgc6WnxrwMZsV4E4gtraesMWAf1pwWhmu0MgG6W2PXfkChEHHS2Zu d+3dCnZuSrvoYq0MeIBkkLU9y2hLt/r2LZY03c8twD75l1OYHjnavxqtNsD7D6vMYatt /bjYkmBigXxF4bZWddXqvmRHbAICBz6SjQH1jUyH/ej6LHtoHUG43b4kZPDkZ5HmkduJ CeEiRdqMvGqNIC6eDLsGFA/65VrJnlI2oXtLFooL8Ch97NOsuQVgUfkN+YNlkSFZQAWj X7MP+z57BRlIYTtpYiU830Pn7kbAt9fwAYwZoIdqEZ7zZR8fJKh1YuiIUxNyyRHvA8Rx MSdQ== 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=4q+Rnnlb5GLA1MWkdel8vTxzZ4mQRlT1eDV72kpg7eE=; b=iEURWkYs18LffUSanuKekRtOmwB83vpLHIF4RWQphQWYMDJD8aKKI2johepwfvFhaX T78YwEnOr4v1vhOeMxP8hi2HRTp/aVD9fJxNDn9ZvzprLbMF0tg5nplB9oANixvqN7dA pSmJQasL3p0BkH7joI/wb1SC1SfYW6hC+9Zvgrq+52FUx+D0VPocx2mRyMDgsnBJoJTP PXbnKKGkMs4U9qyd5vJSJQlJ5KyUujTGj6iDm4yNahl6hSQE0lCkCB77Mi7JjGKwaM3s uWvAsjrhloT+gVmmqrvgkRqUFF+MfLPwzkVrB54Sq8ybhUrIOuvIgNWlDJmHqv2kxZUJ ntyQ== X-Gm-Message-State: AOAM533nkR/YAtHMtaCQrm40A2O8oAsKVF/z+KRn/QIv1y6K3MKtNtxX 4RU1h1eXTNvbiU/MySy3M5sS022QBUskIS60D94= X-Received: by 2002:a17:90a:68cf:: with SMTP id q15mr1730691pjj.231.1615353969992; Tue, 09 Mar 2021 21:26:09 -0800 (PST) Received: from localhost.localdomain ([2402:3a80:9f4:a436:21bd:7573:25c0:73a0]) by smtp.gmail.com with ESMTPSA id g7sm13915224pgb.10.2021.03.09.21.26.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 21:26:09 -0800 (PST) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: bhupesh.sharma@linaro.org, Thara Gopinath , Bjorn Andersson , Rob Herring , Andy Gross , Herbert Xu , "David S . Miller" , Stephen Boyd , Michael Turquette , linux-clk@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bhupesh.linux@gmail.com Subject: [PATCH 7/8] drivers: crypto: qce: Enable support for crypto engine on sm8250. Date: Wed, 10 Mar 2021 10:55:02 +0530 Message-Id: <20210310052503.3618486-8-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210310052503.3618486-1-bhupesh.sharma@linaro.org> References: <20210310052503.3618486-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add support for Qualcomm Crypto Engine accelerated encryption and authentication algorithms available on sm8250 by adding the required compatible string check for crypto version "qcom,crypto-v5.5" found on the sm8250 SoC. Cc: Thara Gopinath Cc: Bjorn Andersson Cc: Rob Herring Cc: Andy Gross Cc: Herbert Xu Cc: David S. Miller Cc: Stephen Boyd Cc: Michael Turquette Cc: linux-clk@vger.kernel.org Cc: linux-crypto@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: bhupesh.linux@gmail.com Signed-off-by: Bhupesh Sharma --- drivers/crypto/qce/core.c | 1 + 1 file changed, 1 insertion(+) -- 2.29.2 diff --git a/drivers/crypto/qce/core.c b/drivers/crypto/qce/core.c index 80b75085c265..49c73e3137a8 100644 --- a/drivers/crypto/qce/core.c +++ b/drivers/crypto/qce/core.c @@ -275,6 +275,7 @@ static int qce_crypto_remove(struct platform_device *pdev) static const struct of_device_id qce_crypto_of_match[] = { { .compatible = "qcom,crypto-v5.1", }, { .compatible = "qcom,crypto-v5.4", }, + { .compatible = "qcom,crypto-v5.5", }, {} }; MODULE_DEVICE_TABLE(of, qce_crypto_of_match);