From patchwork Wed Feb 8 18:37:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 651864 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 AC4FBC64EC5 for ; Wed, 8 Feb 2023 18:38:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229679AbjBHSiu (ORCPT ); Wed, 8 Feb 2023 13:38:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230444AbjBHSiW (ORCPT ); Wed, 8 Feb 2023 13:38:22 -0500 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82C9E29166 for ; Wed, 8 Feb 2023 10:38:13 -0800 (PST) Received: by mail-ed1-x530.google.com with SMTP id h3so2504730eda.5 for ; Wed, 08 Feb 2023 10:38:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YfZc7P3L4wBNnQQQ85wu2I6wsnovvh4e+MgGEWnocfk=; b=ZBpTHLCOzMVFoTQz2Jv4TYznabdtVlf9SsXJ3IEnljIUSkls1CsSKMmmrVQAkzSPhg /EbaraW0GDrRpCzuBZ1XUU7R1ZNk6clJqwVjWcGTjWSGZPzPnCXEjdAX9u1/yl0PXxVU GlKnql0RJ+yH7icZuYdYWxhhiTQKWIjO2qqLTg0jFTckkMCwCwkiyKEh1GugzgZbRytI WqpVD0WWM46A3nN//MjpwMfjZdvwvx9+TPAnQ3ClO5PoFQ/4XHbUo+Smm1mxDidqYCOi w4PGWgwbh1RzMA0CBRtCu7l8AwLGgc03qvHrPSbG8vtUe9G5LdXIInRyr19bsD8ayOts HhmQ== 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=YfZc7P3L4wBNnQQQ85wu2I6wsnovvh4e+MgGEWnocfk=; b=vN0lr3yjOorlMGBCgDaIZ84yxgftuQYRAU1AvAoThby/hikL4olZAelzqCM6RUDW0r eREZBZThw7t2RjQ507Xtq6JNsqbv2KX4tF4BR8XzGkQMikg8hf9dSy36xObP9iVOsoJh xvPON40Pp2G5QxGH3AYChxrEF5LOw7/ghgj7zLMKUCozAFcxQvkRUxgbdTzUp4YET3gj 9iIWlIYhImdHGCfm2I7426tCykzIird27t5Xy9C/oquvSxeO6iG2AJD56PwCAjmOkn6e arBtusxrwCo0SVfYoYn+kkDrrO54++O1VXqqPbq+g2UdpZVRX6zHsSR3cDhgCk3Yxjd4 biHA== X-Gm-Message-State: AO0yUKUehhPUxgAdjQPzxvuuJr6ddQ5HnXiZbWFDAVxsW1/N6k/CKO5D jRR04gcO3W6sYSCj0tzNIo7g4fGsb/l8DNqsTIsKIJGL X-Google-Smtp-Source: AK7set+cagKM9BkXSwtVGVWAopVYKfpge2UcnWjcZKoOJhfslhwYQ0HE0OsSczF2Wqb0Odj7qMPg7Q== X-Received: by 2002:a05:6402:510f:b0:49d:fd2a:39cd with SMTP id m15-20020a056402510f00b0049dfd2a39cdmr10565597edd.1.1675881492090; Wed, 08 Feb 2023 10:38:12 -0800 (PST) Received: from localhost.localdomain (88-112-131-206.elisa-laajakaista.fi. [88.112.131.206]) by smtp.gmail.com with ESMTPSA id d22-20020a50cd56000000b004aaa8e65d0esm5179663edj.84.2023.02.08.10.38.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 10:38:11 -0800 (PST) From: Vladimir Zapolskiy To: Krzysztof Kozlowski , Bjorn Andersson , Herbert Xu , Thara Gopinath , Bhupesh Sharma Cc: Rob Herring , Konrad Dybcio , Andy Gross , "David S. Miller" , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org Subject: [PATCH v9 02/14] MAINTAINERS: Add qcom-qce dt-binding file to QUALCOMM CRYPTO DRIVERS section Date: Wed, 8 Feb 2023 20:37:43 +0200 Message-Id: <20230208183755.2907771-3-vladimir.zapolskiy@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230208183755.2907771-1-vladimir.zapolskiy@linaro.org> References: <20230208183755.2907771-1-vladimir.zapolskiy@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Bhupesh Sharma Add the entry for 'Documentation/devicetree/bindings/crypto/qcom-qce.yaml' to the appropriate section for 'QUALCOMM CRYPTO DRIVERS' in MAINTAINERS file. Cc: Bjorn Andersson Signed-off-by: Bhupesh Sharma Signed-off-by: Vladimir Zapolskiy --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 94971603568b..864bf5b7520f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -17199,6 +17199,7 @@ M: Thara Gopinath L: linux-crypto@vger.kernel.org L: linux-arm-msm@vger.kernel.org S: Maintained +F: Documentation/devicetree/bindings/crypto/qcom-qce.yaml F: drivers/crypto/qce/ QUALCOMM EMAC GIGABIT ETHERNET DRIVER From patchwork Wed Feb 8 18:37:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 651863 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 8519AC64ED9 for ; Wed, 8 Feb 2023 18:38:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230471AbjBHSiv (ORCPT ); Wed, 8 Feb 2023 13:38:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231142AbjBHSiY (ORCPT ); Wed, 8 Feb 2023 13:38:24 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1256140BDC for ; Wed, 8 Feb 2023 10:38:17 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id m8so21723473edd.10 for ; Wed, 08 Feb 2023 10:38:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+zPdqAVNJI8VFw+E8thVrlhFODN9g8GlhI24Q34QDNM=; b=HI4z87JqBld+gUs2a2PvNMpTJ/5MAeMGcTipkWGogzA/iJcJzDtU1obNS0NUQunzfu yd8UKzz8vkydQ6naOErd3IxVWPW/QSFPxiFvAD7N4OnKdpWAzFrElcDFSxB3HW94FqLH +Mw/9aLaJLy3ifUFj062rz8HoEWRKb8nfgOXeUBAhc+cPD7WCPugnRNjJ64PNDIfg4iE kztsvbSZhu2G3CSKQsjjhYb1U52K2vk27T/w2eBpie7hvN0uuei0Si4R2teRfSchLYgI rAKGapT6ha0aZLYxxYgjY4wS3C1uMoTzfz2Zz4MWaDuo6VfG5aQ6mQ2CF6bSrP9DIlIr M+5g== 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=+zPdqAVNJI8VFw+E8thVrlhFODN9g8GlhI24Q34QDNM=; b=ZvEP14PeINB9UeGL0bCMbFZNKln7zEqI7Y6woeoXLvKJooLswBQAt/bCYGn4nHqe++ skgwdb9UTKbafGENdA6kTB/zSujg4uFZDOEUNfIjXPsU2ecofhd4oIjpezt5CT34id6x B0fD37mmpGqR8Ia/l528eNgRD7F5pG1EVYG+6ZQjHSOnNBykYCLmypO+U2OuxCp3vDxC blqyb5iarF3U2/lXgHy6xMdV7b0T1ymMS6gsJvcezhfIbmp0NVWzUjnNx2uEM58GGfbF v0n8IzKlbg4NrR25jSR/PnAq3jV3fO0rezNBJHtbAD/TwIO4VYyA2PV3wMQess7eZ08m LdVg== X-Gm-Message-State: AO0yUKVPHyz8Gqz28HeSQaA7vlsmsFBrHO5epuFvNHvR/UlluoT6oMYn Q0u9KHNUdNS3oq4i4aB8tLQqcA== X-Google-Smtp-Source: AK7set9tBOEiCi89P2IOJBPO/W87zgEQ+HJNix4V7CJ0RB4CZTX8X6K9mQ0n1eahyZwrqWFbsc4xzw== X-Received: by 2002:a05:6402:51d2:b0:4a2:64d7:16bc with SMTP id r18-20020a05640251d200b004a264d716bcmr9494598edd.4.1675881495668; Wed, 08 Feb 2023 10:38:15 -0800 (PST) Received: from localhost.localdomain (88-112-131-206.elisa-laajakaista.fi. [88.112.131.206]) by smtp.gmail.com with ESMTPSA id d22-20020a50cd56000000b004aaa8e65d0esm5179663edj.84.2023.02.08.10.38.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 10:38:15 -0800 (PST) From: Vladimir Zapolskiy To: Krzysztof Kozlowski , Bjorn Andersson , Herbert Xu , Thara Gopinath , Bhupesh Sharma Cc: Rob Herring , Konrad Dybcio , Andy Gross , "David S. Miller" , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org, Rob Herring , Jordan Crouse Subject: [PATCH v9 04/14] dt-bindings: qcom-qce: Add 'iommus' to optional properties Date: Wed, 8 Feb 2023 20:37:45 +0200 Message-Id: <20230208183755.2907771-5-vladimir.zapolskiy@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230208183755.2907771-1-vladimir.zapolskiy@linaro.org> References: <20230208183755.2907771-1-vladimir.zapolskiy@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Bhupesh Sharma Add the missing optional 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: Bjorn Andersson Reviewed-by: Rob Herring Tested-by: Jordan Crouse Signed-off-by: Bhupesh Sharma Signed-off-by: Vladimir Zapolskiy --- Documentation/devicetree/bindings/crypto/qcom-qce.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml index 94f96ebc5dac..4e00e7925fed 100644 --- a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml +++ b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml @@ -32,6 +32,12 @@ properties: - const: bus - const: core + iommus: + minItems: 1 + maxItems: 8 + description: + phandle to apps_smmu node with sid mask. + interconnects: maxItems: 1 description: @@ -72,4 +78,8 @@ examples: clock-names = "iface", "bus", "core"; dmas = <&cryptobam 2>, <&cryptobam 3>; dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x584 0x0011>, + <&apps_smmu 0x586 0x0011>, + <&apps_smmu 0x594 0x0011>, + <&apps_smmu 0x596 0x0011>; }; From patchwork Wed Feb 8 18:37:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 651862 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 D0495C64EC7 for ; Wed, 8 Feb 2023 18:39:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231192AbjBHSix (ORCPT ); Wed, 8 Feb 2023 13:38:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230443AbjBHSiY (ORCPT ); Wed, 8 Feb 2023 13:38:24 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C9529749 for ; Wed, 8 Feb 2023 10:38:18 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id l14so11820029eds.4 for ; Wed, 08 Feb 2023 10:38:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=seDN7hLl5swt4J3XJglUIV2zzqtOSiYmNP6OJCG/0cc=; b=Vb5ztwSumtqb2AB0kziEEW5EbhUthUpiOANbKW6VF+Np5gKsFzuhYqYjxzZ3M398Q3 DGAayObtSCsTqCgKdKBec95E17hC16j/qqyWWIaUMJ9Zdy0v3L+Vz89mgOwnvMrNp8Tv icUlj9/ErrnolSiksCWHbKyB4I2VRRIMYJzjfVDleHSxOli6A6uwyLJE7upSTC+h7bnl ypD3IdhRp4A9rODPxSK7rNDKBM/6UcXcjw9oRKtA7Hi5vX4CWM90mRI16Y3ecTmBTQJo ufMO/Wb65MP/SnSIB+ctt4JSSiQr3QzAdBs9zU/bngEn85oUusQyl+B9wGX49OW+gBfu 2awg== 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=seDN7hLl5swt4J3XJglUIV2zzqtOSiYmNP6OJCG/0cc=; b=2a8OTRv7YPbanuFF25InuD9TdoW8NIe458lImeRd7fPzgDg95SMrfTb7NUAxMxtsqg 3OD/Cj9gNnmttqia1z73RvIyd4aq/zMyIj9RI3zspxaiamTehbC0xPG6jRSs0XJZAJk7 6meoQ4ClNy2YiBasE/OqDvvuivlO/9b1zeOS2V2h5VFq1tQKEUzCoVQmY7NPRBLHwoQY KkUjUWhh6XGZlEVQZMFCWqjIj6iCddHTKdCPnb9cjnbaw+QBzL8zRK75YO6RdC1c+/fU Jk5oOQnOgfolyE4vXnAUxTJln9goragm0KnlzIu0y0i9R3/nG8uwKzd1g+0LNZP+NzAc vYKg== X-Gm-Message-State: AO0yUKVF11gQ+/+yDtjJgymRIO/mnghwgAEnFAQ/OkCPchnKYKqkSGo/ Q9tFZyzMudH3SB83nzdgd8TtiQ== X-Google-Smtp-Source: AK7set+y4vkuO6iCpFVJRNS7wp74veH5JnO0RdabOe4YWDYh+5U6S4gBwdKJ8pFaGEI7pgC9E7iKLw== X-Received: by 2002:a05:6402:51d2:b0:4a2:64d7:16bc with SMTP id r18-20020a05640251d200b004a264d716bcmr9494711edd.4.1675881497254; Wed, 08 Feb 2023 10:38:17 -0800 (PST) Received: from localhost.localdomain (88-112-131-206.elisa-laajakaista.fi. [88.112.131.206]) by smtp.gmail.com with ESMTPSA id d22-20020a50cd56000000b004aaa8e65d0esm5179663edj.84.2023.02.08.10.38.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 10:38:16 -0800 (PST) From: Vladimir Zapolskiy To: Krzysztof Kozlowski , Bjorn Andersson , Herbert Xu , Thara Gopinath , Bhupesh Sharma Cc: Rob Herring , Konrad Dybcio , Andy Gross , "David S. Miller" , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org Subject: [PATCH v9 05/14] dt-bindings: qcom-qce: Add new SoC compatible strings for qcom-qce Date: Wed, 8 Feb 2023 20:37:46 +0200 Message-Id: <20230208183755.2907771-6-vladimir.zapolskiy@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230208183755.2907771-1-vladimir.zapolskiy@linaro.org> References: <20230208183755.2907771-1-vladimir.zapolskiy@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Change QCE IP version specific compatible to two QCE IP family compatibles based on SoC name and populate these two IP families with particular SoC specific IP compatible names, which are known at the moment. Keep the old compatible 'qcom,crypto-v5.1' for backward compatibility of DTB ABI, but mark it as deprecated. The change is based on the original one written by Bhupesh Sharma. Cc: Bhupesh Sharma Signed-off-by: Vladimir Zapolskiy --- .../devicetree/bindings/crypto/qcom-qce.yaml | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml index 4e00e7925fed..f6f1759a2f6e 100644 --- a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml +++ b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml @@ -15,7 +15,27 @@ description: properties: compatible: - const: qcom,crypto-v5.1 + oneOf: + - const: qcom,crypto-v5.1 + deprecated: true + description: Kept only for ABI backward compatibility + - const: qcom,crypto-v5.4 + deprecated: true + description: Kept only for ABI backward compatibility + - items: + - enum: + - qcom,ipq6018-qce + - qcom,ipq8074-qce + - qcom,msm8996-qce + - qcom,sdm845-qce + - const: qcom,ipq4019-qce + - items: + - enum: + - qcom,sm8250-qce + - qcom,sm8350-qce + - qcom,sm8450-qce + - qcom,sm8550-qce + - const: qcom,sm8150-qce reg: maxItems: 1 @@ -70,7 +90,7 @@ examples: - | #include crypto-engine@fd45a000 { - compatible = "qcom,crypto-v5.1"; + compatible = "qcom,ipq6018-qce", "qcom,ipq4019-qce"; reg = <0xfd45a000 0x6000>; clocks = <&gcc GCC_CE2_AHB_CLK>, <&gcc GCC_CE2_AXI_CLK>, From patchwork Wed Feb 8 18:37:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 651861 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 E46D2C64EC6 for ; Wed, 8 Feb 2023 18:39:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231331AbjBHSiz (ORCPT ); Wed, 8 Feb 2023 13:38:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231280AbjBHSi0 (ORCPT ); Wed, 8 Feb 2023 13:38:26 -0500 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEE40526F for ; Wed, 8 Feb 2023 10:38:21 -0800 (PST) Received: by mail-ed1-x52a.google.com with SMTP id fj20so3224591edb.1 for ; Wed, 08 Feb 2023 10:38:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kbuCsaZiHtUTgOWZDPPWu8eIqChDJtTAhqjY0efOttk=; b=vguUz3jiIdB2R73Kp3HvwxlqAKmEGdrkEvgWB6XYdGVj6HJQY58L6k9lGiT57RkYfU 7ckzi3ZPcTr96wO34ptnTqRvVuYe4tKoFP8RUSRpHf6S/DxuF5fUgD6ampUEuqaXrsl6 +NE88NdS4yeIUvMmEMK73aWnqrCAwVWBJDXUeQRhURW5Jsb92Xxu5GWsPmv793SIhTjp dUenPPFBAu3x9NeON49jYAFtkSul4gMfiNkLypHQKzRMInDzGPMSNrs/ZD3eSF3A9zDI Hwo3w9GMhq8a8Lwyh6Z+XkFz3GDQSVnFi2neMRXW/fRzHv/z7t7tDw7O2wqmLgLzm426 hWUg== 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=kbuCsaZiHtUTgOWZDPPWu8eIqChDJtTAhqjY0efOttk=; b=PGp403uI/ZdggTINmolSJ1bJ1LcXQIKzxU1mPVV4JU2HLgViHc1mV4zinp9CwDAI6U AnWX88ldZZZ/6U3MFWpI4JjGpKbF4axFkqZt1HuIpamBZoTCWgjscVh6PAJHdMhMKpd+ wrB3ckCezygrEQjQQF/becV/Vy6UzK/wj3Z7rUOhUqbZTyzCAW2WnGYJ1sSHwQHsc40y iot/djajYU3HqNVvZZlTOhXF5Z16iZXwgvI2Gjm8znX/7Vgue2zFlpYzgHUbgQcpwsvO lVxR9v3UOMqRlgqmoIv8KJJYdP9zAk68f+EZ58rf/5inbY7pQI+vQRhqk6Z5YLCWEJy1 AmXQ== X-Gm-Message-State: AO0yUKUGTHPx3ukIz6vShBiEJ7Y2AxT6xJjrYVKZ7JCI8iCH/dTc7jpC 1H3H622pB/s1ozpVHre8zbo+QQ== X-Google-Smtp-Source: AK7set9I5yLGkPPfqYDV0wpLjNDuJD6rrJGD9rHgKxNqFPz95yOhZ9oj5sdKmM7AdwpH1HV4/osDgw== X-Received: by 2002:a05:6402:278a:b0:4aa:b394:7b28 with SMTP id b10-20020a056402278a00b004aab3947b28mr10466401ede.3.1675881500257; Wed, 08 Feb 2023 10:38:20 -0800 (PST) Received: from localhost.localdomain (88-112-131-206.elisa-laajakaista.fi. [88.112.131.206]) by smtp.gmail.com with ESMTPSA id d22-20020a50cd56000000b004aaa8e65d0esm5179663edj.84.2023.02.08.10.38.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 10:38:19 -0800 (PST) From: Vladimir Zapolskiy To: Krzysztof Kozlowski , Bjorn Andersson , Herbert Xu , Thara Gopinath , Bhupesh Sharma Cc: Rob Herring , Konrad Dybcio , Andy Gross , "David S. Miller" , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org Subject: [PATCH v9 07/14] arm: dts: qcom: ipq4019: update a compatible for QCE IP on IPQ4019 SoC Date: Wed, 8 Feb 2023 20:37:48 +0200 Message-Id: <20230208183755.2907771-8-vladimir.zapolskiy@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230208183755.2907771-1-vladimir.zapolskiy@linaro.org> References: <20230208183755.2907771-1-vladimir.zapolskiy@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Change the old deprecated compatible name to a new one, which is specific to IPQ4019 SoC. Signed-off-by: Vladimir Zapolskiy --- arch/arm/boot/dts/qcom-ipq4019.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-ipq4019.dtsi b/arch/arm/boot/dts/qcom-ipq4019.dtsi index a73c3a17b6a4..c73098d7a4da 100644 --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi @@ -314,7 +314,7 @@ cryptobam: dma-controller@8e04000 { }; crypto: crypto@8e3a000 { - compatible = "qcom,crypto-v5.1"; + compatible = "qcom,ipq4019-qce"; reg = <0x08e3a000 0x6000>; clocks = <&gcc GCC_CRYPTO_AHB_CLK>, <&gcc GCC_CRYPTO_AXI_CLK>, From patchwork Wed Feb 8 18:37:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 651860 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 803A2C678D5 for ; Wed, 8 Feb 2023 18:39:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231344AbjBHSi4 (ORCPT ); Wed, 8 Feb 2023 13:38:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231377AbjBHSi1 (ORCPT ); Wed, 8 Feb 2023 13:38:27 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BF7229166 for ; Wed, 8 Feb 2023 10:38:25 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id l14so11820537eds.4 for ; Wed, 08 Feb 2023 10:38:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qGwN38UyWUPf0Ti04py3ZiYx4eNGqgCxHn2UnAKcmFI=; b=caUTdNfnCpo99+HJGaHCW3+wrxfWOBK4hpmxA3rgejdGanpjoN+dRRRHY57YjwaOOl Xv3P74fxnxdp7nZhKc6ykQHgre5O39Cjr99Wgu7uUZYP5v7OC40OKejBJc0FozL20HTD 0ncwa96iejP3tBoxWgJtzVBtgixag2eUKWlw1ltdVzKCxJeZLu5Xuxfq0pVAeTls7B3P 1PgrN26Tu+izVCz3WZ9r7m0j8Y0glIe1YqErduXNSbivplb69ZojQKx3wLUg+ueuvXJC EgCLUhxCDLqozFwWxo5WebtDCe7mXFpHSZ527b9BkUxV1NQStZdU15zwCNhdhQZGUgCz biUg== 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=qGwN38UyWUPf0Ti04py3ZiYx4eNGqgCxHn2UnAKcmFI=; b=7hJvqOVhkrgvhBBQYm4RSDHd/y0IkzkDNXvDpSRzgVm93CNd5PoVGA/YVjRvwAoo4q V9rVlM0bZ3BWBfv7b8//jaWUCtyr0sXdJhdAecfmkH9AJIYK0oXj+D8FOXMO7TaYo35G YBv5AiVARTaN9FPdl9OmkDaPga2VUJ2KZ3v5VFDW8BGyJ3c8KZcoyIybWtocV+Qsn/H4 q7gsf0qqriciVU/6LBpmLOqFHuKxLCTUh2XaW7NcfR0J5s1ORzF68+uuybBLVySyDagZ WrPzNh8eHFTBG26VrzdHcR8na6AtC0Y4jJ7IBDJdvcpI57PTj16a82yXywSQgw7hmIcX 6K5A== X-Gm-Message-State: AO0yUKV2+l/8WiXvns9G3k5KreojVarRvBTJqp3Dew6IFGJVWI9Y/PFi L1rdlVRSxI7A7ajpDFF9pIt9cQ== X-Google-Smtp-Source: AK7set/54VH2VwWs1RTVWYKuvMVa9NVklUfTAccygFgbdjhM/Pdb+a0+0VpSWKwP2kwS9d2TLAHvMg== X-Received: by 2002:a05:6402:1d49:b0:4aa:b0e9:84dd with SMTP id dz9-20020a0564021d4900b004aab0e984ddmr10707578edb.3.1675881504680; Wed, 08 Feb 2023 10:38:24 -0800 (PST) Received: from localhost.localdomain (88-112-131-206.elisa-laajakaista.fi. [88.112.131.206]) by smtp.gmail.com with ESMTPSA id d22-20020a50cd56000000b004aaa8e65d0esm5179663edj.84.2023.02.08.10.38.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 10:38:24 -0800 (PST) From: Vladimir Zapolskiy To: Krzysztof Kozlowski , Bjorn Andersson , Herbert Xu , Thara Gopinath , Bhupesh Sharma Cc: Rob Herring , Konrad Dybcio , Andy Gross , "David S. Miller" , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org Subject: [PATCH v9 10/14] arm64: dts: qcom: sm8550: add a family compatible for QCE IP Date: Wed, 8 Feb 2023 20:37:51 +0200 Message-Id: <20230208183755.2907771-11-vladimir.zapolskiy@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230208183755.2907771-1-vladimir.zapolskiy@linaro.org> References: <20230208183755.2907771-1-vladimir.zapolskiy@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add a family compatible for QCE IP on SM8550 SoC, which is equal to QCE IP found on SM8150 SoC and described in the device tree bindings documentation. Signed-off-by: Vladimir Zapolskiy --- arch/arm64/boot/dts/qcom/sm8550.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index 1dea055a6815..7da89c478936 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -1865,7 +1865,7 @@ cryptobam: dma-controller@1dc4000 { }; crypto: crypto@1de0000 { - compatible = "qcom,sm8550-qce"; + compatible = "qcom,sm8550-qce", "qcom,sm8150-qce"; reg = <0x0 0x01dfa000 0x0 0x6000>; dmas = <&cryptobam 4>, <&cryptobam 5>; dma-names = "rx", "tx"; From patchwork Wed Feb 8 18:37:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 651859 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 B4336C6FA99 for ; Wed, 8 Feb 2023 18:39:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231403AbjBHSi6 (ORCPT ); Wed, 8 Feb 2023 13:38:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231483AbjBHSi2 (ORCPT ); Wed, 8 Feb 2023 13:38:28 -0500 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 84DD29749 for ; Wed, 8 Feb 2023 10:38:27 -0800 (PST) Received: by mail-ej1-x635.google.com with SMTP id u22so8787189ejj.10 for ; Wed, 08 Feb 2023 10:38:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=G3EO5siwdhGpkelYPYEIcK9+XxHqnaj+3eHiFrzR7l0=; b=WshMmb3W+09KjIoeUP1uAeVHbEeyyAIzdgDymmxrCu+bj0OobG7Sw6/TOt/EYF7L+w BVyW+1DPAlXCukjEqeUFdPbHOJ2R0KPIKpFuklmwzStCEPfUhPb160Gf8flLK4TxSfoU ae2/whHNQAkpJeXPKeng6lMaxu/VXGDLpuTRhU7HjTfYoc2ESAPhtB4nchgyINRH5UbP zaQZiKO9+URY8Ky4UMGoHt+Rk523jXav7k7AEJiL8+uG/DsIPErScpUmX3uNgkDiBvFA XUrlLHg1BZNTUclbsaqlwxRsp3Vxub0ImQV47s4y2MGXic2arPsSUQzZaLQLUCQx8vmA mMGA== 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=G3EO5siwdhGpkelYPYEIcK9+XxHqnaj+3eHiFrzR7l0=; b=fPQ9ibV9Boksf5eQ0kox+wva5hp60v67NMBPuDvREmLeTQllUYAF5U8683WAyN8b4L csiaB0YETuvEI/QnoeyE9NMSJ3qY32qMB5bxR78m6jpj3N8TeUv2MYYB8xkdqyoukrsu /gsEjqtGoubcbcGnnfVuaVAkNfKSEZfzhN9hoK7aIYQqsDm8hvQ4YDPv1/8hG+IZvwAt V5XogyqPJiFdqpIPQ8rBKPNVrgDwx9boJ67BnBgJ+8ThmiyIpPCq8+FFP96oveMqSibr 0uDfmP9ENIeLjljy7+hAVxrKeU5LRsL8Iwe6tpyKF57MG6AubMqC1G7udR4NaEj1vlpS GgzA== X-Gm-Message-State: AO0yUKVJ/P04msy8uXnQaesBU+i6d8GECVgXPTxC2Uu9Yf43sQKIig22 deiGsJbskcV8dA9o5n5mah6cwQ== X-Google-Smtp-Source: AK7set+MQnEt0EjwbBUXBv9Max2YvnT4UFCtu7Ky/NgIX32Bwh6SdCSEiaWBlQSub5VYHXJnMcETmw== X-Received: by 2002:a17:906:2098:b0:889:3d10:ae93 with SMTP id 24-20020a170906209800b008893d10ae93mr8112409ejq.6.1675881506124; Wed, 08 Feb 2023 10:38:26 -0800 (PST) Received: from localhost.localdomain (88-112-131-206.elisa-laajakaista.fi. [88.112.131.206]) by smtp.gmail.com with ESMTPSA id d22-20020a50cd56000000b004aaa8e65d0esm5179663edj.84.2023.02.08.10.38.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 10:38:25 -0800 (PST) From: Vladimir Zapolskiy To: Krzysztof Kozlowski , Bjorn Andersson , Herbert Xu , Thara Gopinath , Bhupesh Sharma Cc: Rob Herring , Konrad Dybcio , Andy Gross , "David S. Miller" , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org Subject: [PATCH v9 11/14] arm64: dts: qcom: sm8250: add description of Qualcomm Crypto Engine IP Date: Wed, 8 Feb 2023 20:37:52 +0200 Message-Id: <20230208183755.2907771-12-vladimir.zapolskiy@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230208183755.2907771-1-vladimir.zapolskiy@linaro.org> References: <20230208183755.2907771-1-vladimir.zapolskiy@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add description of QCE and its corresponding BAM DMA IPs on SM8250 SoC. Signed-off-by: Vladimir Zapolskiy --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index e59c16f74d17..d8698d18223e 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2215,6 +2215,30 @@ ufs_mem_phy_lanes: phy@1d87400 { }; }; + cryptobam: dma-controller@1dc4000 { + compatible = "qcom,bam-v1.7.0"; + reg = <0x0 0x01dc4000 0x0 0x24000>; + interrupts = ; + #dma-cells = <1>; + qcom,ee = <0>; + qcom,controlled-remotely; + num-channels = <8>; + qcom,num-ees = <2>; + iommus = <&apps_smmu 0x586 0x11>, + <&apps_smmu 0x596 0x11>; + }; + + crypto: crypto@1dfa000 { + compatible = "qcom,sm8250-qce", "qcom,sm8150-qce"; + reg = <0x0 0x01dfa000 0x0 0x6000>; + dmas = <&cryptobam 6>, <&cryptobam 7>; + dma-names = "rx", "tx"; + interconnects = <&aggre2_noc MASTER_CRYPTO_CORE_0 &mc_virt SLAVE_EBI_CH0>; + interconnect-names = "memory"; + iommus = <&apps_smmu 0x586 0x11>, + <&apps_smmu 0x596 0x11>; + }; + tcsr_mutex: hwlock@1f40000 { compatible = "qcom,tcsr-mutex"; reg = <0x0 0x01f40000 0x0 0x40000>; From patchwork Wed Feb 8 18:37:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 651858 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 56DACC6FD1B for ; Wed, 8 Feb 2023 18:39:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231432AbjBHSi6 (ORCPT ); Wed, 8 Feb 2023 13:38:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231520AbjBHSi3 (ORCPT ); Wed, 8 Feb 2023 13:38:29 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0050723D83 for ; Wed, 8 Feb 2023 10:38:27 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id fi26so21725895edb.7 for ; Wed, 08 Feb 2023 10:38:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XdEBUNAoD9sIXnLheQjygvvxpux6AlFhul4Trb6QXj0=; b=ZPmV9+ZzTu7dwzQlIjfMjuMdz9NttX2whjyX0KvIggMvjSihmi/2ik9TI1tKRqCSKn sGvxdU9y+XSbXTb5QrdYXL+takaOpUD7oSkcH5YzuMmwsG78Ekl2DWhVaPDyujAY9YW8 6oEHN4ICh5k/jQKOllXq/LUa6ny//wRj8bHC0ayPww5uYrKVF2ok3c998Ohks8FFPw5O sZ4RqDqpxNJd2TgUaRccECqAJILOk293+4wujl+wlvwnMQAYRO0rjzwnke1SpWgBxW8P GUwLskhAbCGlienq/mJ/ysEUYH9LljMsuLyOFY2+/3G/xlmsP07cga0HZFnADkkOlhAX jTAA== 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=XdEBUNAoD9sIXnLheQjygvvxpux6AlFhul4Trb6QXj0=; b=ibdEejF6PQbj2+Vq7c2pnY+6pnCZLzuRPoOeH4wwHIDKIyQ8KpHW7DTakxl3E5anPa dtAs4nsfMoSg8LHtdZVDDI3BPGKzVRNbRyemH9eIWdwoGMYG3BAi2TQysjMeJhRmYgtD jADyVzQ6Cr+rDoy0oNUfZh1fUEk0Zku8mzixA9qdgsDkn/Lqwz+daPRCLRVX4uD0D8Ky FwCU2RrErgdM+uWS/Rfo4RUfpcdx2RiUIkW7yqYfvqXvPQKkN7uFq5wbvT5qDZjWJkED cdCAnnLSE/gnpMgVGaBzZr8tt855qTXK0n8ptJRPbV9/7In3BwP0W70Dy40JRyjKuX5O 9hIQ== X-Gm-Message-State: AO0yUKWCzD9JdgICoqG/2WQZM9lND2qws0JcUNGX/ApuAXF1w5FJUMa7 9DIgnI9p5+2R9dY/c9ER8b4Nhw== X-Google-Smtp-Source: AK7set/QnbQMryUDCGS23BXTqH0AGhzEIZ/yIpI9f0SBT/+TCmRY2rHiCtk6WuD/wSoIJUv5gRYJkw== X-Received: by 2002:a05:6402:34d5:b0:4ab:dde:dea0 with SMTP id w21-20020a05640234d500b004ab0ddedea0mr2583030edc.2.1675881507553; Wed, 08 Feb 2023 10:38:27 -0800 (PST) Received: from localhost.localdomain (88-112-131-206.elisa-laajakaista.fi. [88.112.131.206]) by smtp.gmail.com with ESMTPSA id d22-20020a50cd56000000b004aaa8e65d0esm5179663edj.84.2023.02.08.10.38.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 10:38:27 -0800 (PST) From: Vladimir Zapolskiy To: Krzysztof Kozlowski , Bjorn Andersson , Herbert Xu , Thara Gopinath , Bhupesh Sharma Cc: Rob Herring , Konrad Dybcio , Andy Gross , "David S. Miller" , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org, Jordan Crouse Subject: [PATCH v9 12/14] crypto: qce: core: Add support to initialize interconnect path Date: Wed, 8 Feb 2023 20:37:53 +0200 Message-Id: <20230208183755.2907771-13-vladimir.zapolskiy@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230208183755.2907771-1-vladimir.zapolskiy@linaro.org> References: <20230208183755.2907771-1-vladimir.zapolskiy@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Thara Gopinath Crypto engine on certain Snapdragon processors like sm8150, sm8250, sm8350 etc. requires interconnect path between the engine and memory to be explicitly enabled and bandwidth set prior to any operations. Add support in the qce core to enable the interconnect path appropriately. Tested-by: Jordan Crouse Signed-off-by: Thara Gopinath [Bhupesh: Make header file inclusion alphabetical and use devm_of_icc_get()] Signed-off-by: Bhupesh Sharma [vladimir: moved icc bandwidth setup closer to its acquisition] Signed-off-by: Vladimir Zapolskiy --- drivers/crypto/qce/core.c | 16 +++++++++++++++- drivers/crypto/qce/core.h | 1 + 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/qce/core.c b/drivers/crypto/qce/core.c index d3780be44a76..336edba2513e 100644 --- a/drivers/crypto/qce/core.c +++ b/drivers/crypto/qce/core.c @@ -5,6 +5,7 @@ #include #include +#include #include #include #include @@ -22,6 +23,8 @@ #define QCE_MAJOR_VERSION5 0x05 #define QCE_QUEUE_LENGTH 1 +#define QCE_DEFAULT_MEM_BANDWIDTH 393600 + static const struct qce_algo_ops *qce_ops[] = { #ifdef CONFIG_CRYPTO_DEV_QCE_SKCIPHER &skcipher_ops, @@ -218,10 +221,18 @@ static int qce_crypto_probe(struct platform_device *pdev) if (IS_ERR(qce->bus)) return PTR_ERR(qce->bus); - ret = clk_prepare_enable(qce->core); + qce->mem_path = devm_of_icc_get(qce->dev, "memory"); + if (IS_ERR(qce->mem_path)) + return PTR_ERR(qce->mem_path); + + ret = icc_set_bw(qce->mem_path, QCE_DEFAULT_MEM_BANDWIDTH, QCE_DEFAULT_MEM_BANDWIDTH); if (ret) return ret; + ret = clk_prepare_enable(qce->core); + if (ret) + goto err_mem_path_disable; + ret = clk_prepare_enable(qce->iface); if (ret) goto err_clks_core; @@ -260,6 +271,9 @@ static int qce_crypto_probe(struct platform_device *pdev) clk_disable_unprepare(qce->iface); err_clks_core: clk_disable_unprepare(qce->core); +err_mem_path_disable: + icc_set_bw(qce->mem_path, 0, 0); + return ret; } diff --git a/drivers/crypto/qce/core.h b/drivers/crypto/qce/core.h index 085774cdf641..228fcd69ec51 100644 --- a/drivers/crypto/qce/core.h +++ b/drivers/crypto/qce/core.h @@ -35,6 +35,7 @@ struct qce_device { void __iomem *base; struct device *dev; struct clk *core, *iface, *bus; + struct icc_path *mem_path; struct qce_dma_data dma; int burst_size; unsigned int pipe_pair_id;