From patchwork Wed Feb 8 18:37:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 13133556 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 F13AFC636D6 for ; Wed, 8 Feb 2023 18:38:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229740AbjBHSit (ORCPT ); Wed, 8 Feb 2023 13:38:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229679AbjBHSiV (ORCPT ); Wed, 8 Feb 2023 13:38:21 -0500 Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E88072BECB for ; Wed, 8 Feb 2023 10:38:11 -0800 (PST) Received: by mail-ed1-x543.google.com with SMTP id m8so21723131edd.10 for ; Wed, 08 Feb 2023 10:38:11 -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=Rf0VgEByS+dEGqCN3splXKV9KTkduOfaE2qRRkUgcps=; b=otfIg0lMcA0LiEEexjKctTDxFiwun8LBerKGA2G07WULFCmFiExXjVN36Ni+f1DCAi uovh1uNcC+v1RwwFjkokwxalcQ3W9NZLczb8O8uwwzBNT86burdXkGfXtThYQMNWDy7T y+DpdwySYoqrG0rymffiV0H3khIY6UFLR/5qO6zdx1gEgHOhWOi12swFUpMBSl+M9k9+ hatGrfocdXqfAbohZclNnQ94sQqpT6lCIENh9kWsZd8m/KdtJD4XHFWG5H0k7UEqA567 PLNwtEOHeTHtrgP5tamJ0EwwbA1MXEMDc480/tUtaOXy9RXuuOGLj697ffiq9eUvsTIO InFQ== 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=Rf0VgEByS+dEGqCN3splXKV9KTkduOfaE2qRRkUgcps=; b=Oeoah4kSvEgIg2QOgYIKPx1idc94B154hLIpXNfiRs04xR9t1oKpSTT9MJ3vAtTsbs h3iBNU81WhKGzFi1jGf8tow/c6+p5agj2dfgYA0eu94ByCljO59EcRP61gCwdeptJSUG PE+DFBj6Ed/q8ba+i+rRYNja/W4ui9pbVr4u9cddOq49DJuO7fkBcB5XQATO8AjtPpHs X772PgLf8FwkyxfvTXnasSfa2SqdsH3nJEp9oitJYHHX4GNAXwd+EgXkWgofQcoUX7R0 n139Ta2vbFzO9V8RKdZVZwDN8QBXZU415WeSazG7J2atv2OjNMhuezF8ft1n8OYgXcFx +jPw== X-Gm-Message-State: AO0yUKVeyt2jogLGksSVoEV95GhOaunmr2k7YfcGYq6gwdxZm+mjSI3f TSLQ26gM9uWnempUM/6vxtqUlA== X-Google-Smtp-Source: AK7set+Q6k8e3Qkz/CA4VS2kB34Azo854Lo4l8KjuohfIBc46OuJ76vovKvUhG5n/f9vvR54+m1kPQ== X-Received: by 2002:a05:6402:5205:b0:4aa:a501:9bce with SMTP id s5-20020a056402520500b004aaa5019bcemr10596363edd.0.1675881490559; Wed, 08 Feb 2023 10:38:10 -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.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 10:38:09 -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 01/14] dt-bindings: qcom-qce: Convert bindings to yaml Date: Wed, 8 Feb 2023 20:37:42 +0200 Message-Id: <20230208183755.2907771-2-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: linux-arm-msm@vger.kernel.org From: Bhupesh Sharma Convert Qualcomm QCE crypto devicetree binding to YAML. Reviewed-by: Rob Herring Reviewed-by: Bjorn Andersson Tested-by: Jordan Crouse Signed-off-by: Bhupesh Sharma Signed-off-by: Vladimir Zapolskiy --- .../devicetree/bindings/crypto/qcom-qce.txt | 25 ------- .../devicetree/bindings/crypto/qcom-qce.yaml | 67 +++++++++++++++++++ 2 files changed, 67 insertions(+), 25 deletions(-) delete mode 100644 Documentation/devicetree/bindings/crypto/qcom-qce.txt create mode 100644 Documentation/devicetree/bindings/crypto/qcom-qce.yaml diff --git a/Documentation/devicetree/bindings/crypto/qcom-qce.txt b/Documentation/devicetree/bindings/crypto/qcom-qce.txt deleted file mode 100644 index fdd53b184ba8..000000000000 --- a/Documentation/devicetree/bindings/crypto/qcom-qce.txt +++ /dev/null @@ -1,25 +0,0 @@ -Qualcomm crypto engine driver - -Required properties: - -- compatible : should be "qcom,crypto-v5.1" -- 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 - "bus" clocks data transfer interface - "core" clocks rest of the crypto block -- 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" - -Example: - crypto@fd45a000 { - compatible = "qcom,crypto-v5.1"; - reg = <0xfd45a000 0x6000>; - clocks = <&gcc GCC_CE2_AHB_CLK>, - <&gcc GCC_CE2_AXI_CLK>, - <&gcc GCC_CE2_CLK>; - clock-names = "iface", "bus", "core"; - dmas = <&cryptobam 2>, <&cryptobam 3>; - dma-names = "rx", "tx"; - }; diff --git a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml new file mode 100644 index 000000000000..8df47e8513b8 --- /dev/null +++ b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml @@ -0,0 +1,67 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/crypto/qcom-qce.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm crypto engine driver + +maintainers: + - Bhupesh Sharma + +description: + This document defines the binding for the QCE crypto + controller found on Qualcomm parts. + +properties: + compatible: + const: qcom,crypto-v5.1 + + reg: + maxItems: 1 + + clocks: + items: + - description: iface clocks register interface. + - description: bus clocks data transfer interface. + - description: core clocks rest of the crypto block. + + clock-names: + items: + - const: iface + - const: bus + - const: core + + dmas: + items: + - description: DMA specifiers for rx dma channel. + - description: DMA specifiers for tx dma channel. + + dma-names: + items: + - const: rx + - const: tx + +required: + - compatible + - reg + - clocks + - clock-names + - dmas + - dma-names + +additionalProperties: false + +examples: + - | + #include + crypto-engine@fd45a000 { + compatible = "qcom,crypto-v5.1"; + reg = <0xfd45a000 0x6000>; + clocks = <&gcc GCC_CE2_AHB_CLK>, + <&gcc GCC_CE2_AXI_CLK>, + <&gcc GCC_CE2_CLK>; + clock-names = "iface", "bus", "core"; + dmas = <&cryptobam 2>, <&cryptobam 3>; + dma-names = "rx", "tx"; + }; 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: 13133557 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 C7C35C64ED6 for ; Wed, 8 Feb 2023 18:38:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230082AbjBHSiu (ORCPT ); Wed, 8 Feb 2023 13:38:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230491AbjBHSiW (ORCPT ); Wed, 8 Feb 2023 13:38:22 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FCFD2708 for ; Wed, 8 Feb 2023 10:38:13 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id r3so12002824edq.13 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=09oFLqfbaQ9VPuMqT6sss8WJZf73QXOwj6YhaXdRSDdMuyaIANhdh+zRl/d+43FYWG a0kv/M6r1Z+iaW/1zfkR8e9pmXkDzuyyxJa5XI0TNemr3Gs4StualbOD9RbD5GRku4Fw ysm6XJWgdLM2Zeqj29WwVpQ7xe5xKfbl0rWUJ9YQAsfMiBRapXBP3BmY2Mw8ov+/fW5e EIejxEau532xJML77QVt+Lha3vqZ0T9QriwIVuTbW1yJvn04s2UcR/HVjRJ8eylM/wWG 6neUpMyfhhz26xpa1RSjpNQR8TZLkNoOgPrIaoadMRoJQmZAUgOcAwccBl/PeQWu8MDd mIdg== X-Gm-Message-State: AO0yUKXfUzdFwPWJFi92FIyTbA5QbPB7GbKLFZYcjgRZvzXJgasG86uc jWKe23EUvSMPcbqwPCAZOOf8yw== 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: linux-arm-msm@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:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 13133558 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 A16A7C64ED8 for ; Wed, 8 Feb 2023 18:38:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230407AbjBHSiv (ORCPT ); Wed, 8 Feb 2023 13:38:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230495AbjBHSiW (ORCPT ); Wed, 8 Feb 2023 13:38:22 -0500 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F40E32507 for ; Wed, 8 Feb 2023 10:38:15 -0800 (PST) Received: by mail-ed1-x52e.google.com with SMTP id r3so12002980edq.13 for ; Wed, 08 Feb 2023 10:38:15 -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=/cQTcEdA6/1Tvp2AynCxy/uYQRIV6AL4re0IqB5Qt5w=; b=rc/8MVg8sUg/kg2/NFEYlA+GnNeMHqBZ1RQaHwFK+RaYrD1V4tYxKHZh6anZAZ6TAy hr032aC4PQcVOQgo30eG8Lg1TpDuFqsVP7o+bK+upuk1C9YNfubPVf5GG5mRKnhw3tlZ LqREcc7ydj8GpCbQJwSXGSuQoqCmzRMurK9qYEm9MhMnF+ORuf2JfHHD1PQeA+vTJPf1 7IC1Y/uFR+mt1H5uKwh2xLCgFed88Kafi5viL6UzvMdtyoxtQhkFdUNvltEUVfIIZBNm PCPbM3yyLzYC/+xNdQqg2llDSVfHImF0ol/bO2hflKhiDyLjgPzATPgjuv40IwdUbk/m v+tg== 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=/cQTcEdA6/1Tvp2AynCxy/uYQRIV6AL4re0IqB5Qt5w=; b=0FJ7kLPQyD5gKkWW2vo3Icc7zapY7iQMp86NcghgQ8xubMfediQqDJ9/YCeRbAO+uf C6hjMdWt8zaQHEVpzYVkYxBgYeeIgnlE9eV6u1O9t3MlsBsjdFpZ6/9jZG7F8VsY+TuQ v5CUz/muixSls5+Zx/WTuTA6r8pFzf9ztMM6nANf7ndK9LkaWZfepPZRQOdxwmN4GDq4 nOKifPATZHjr1f7d/3SFhaZO6EVq0StILlCnsY7rMxp/NoPrTlaAKGkf5JldsCYj/dCa 52G5RkbuK6gnuyxMP/emHeEAvbWsrXQee6L/9bwv3mvj3ZkqKl1AiTcF/5oweQMRLm9B LSgQ== X-Gm-Message-State: AO0yUKVyVAIBUCSIP+mNcO99z3/orW5CeCqUCnFOsvuHlJLff+Bi/OyE YQch1llClmapk+moiOfsSfEDHA== X-Google-Smtp-Source: AK7set8Zc/vEW+CFSnoFThjz5WHAQEOEOVHuHzI/XtugIhVfdZXj1JLXRnsQI9CPT5xZ578ks4P+sw== X-Received: by 2002:a05:6402:5205:b0:4aa:a248:a15c with SMTP id s5-20020a056402520500b004aaa248a15cmr10482536edd.1.1675881493776; Wed, 08 Feb 2023 10:38:13 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 10:38:13 -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 03/14] dt-bindings: qcom-qce: Add 'interconnects' and 'interconnect-names' Date: Wed, 8 Feb 2023 20:37:44 +0200 Message-Id: <20230208183755.2907771-4-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: linux-arm-msm@vger.kernel.org From: Bhupesh Sharma Add 'interconnects' and 'interconnect-names' as optional properties to the device-tree binding documentation for Qualcomm crypto IP. These properties describe the interconnect path between crypto and main memory and the interconnect type respectively. Cc: Bjorn Andersson Acked-by: Rob Herring Tested-by: Jordan Crouse Signed-off-by: Bhupesh Sharma Signed-off-by: Vladimir Zapolskiy --- Documentation/devicetree/bindings/crypto/qcom-qce.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml index 8df47e8513b8..94f96ebc5dac 100644 --- a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml +++ b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml @@ -32,6 +32,14 @@ properties: - const: bus - const: core + interconnects: + maxItems: 1 + description: + Interconnect path between qce crypto and main memory. + + interconnect-names: + const: memory + dmas: items: - description: DMA specifiers for rx dma channel. 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: 13133577 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 9B90CC636D7 for ; Wed, 8 Feb 2023 18:39:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230509AbjBHSiw (ORCPT ); Wed, 8 Feb 2023 13:38:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230497AbjBHSiX (ORCPT ); Wed, 8 Feb 2023 13:38:23 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A04D1A94F for ; Wed, 8 Feb 2023 10:38:17 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id eq11so21724993edb.6 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=V2qzEt2HYcLa3/51YiSlgkeinNhYaenZpG4elfWSOTgwvkKH/WAUXqLIbBxfhUypZP FBZcdEKbXH74uAPZJ7PTye+YxyY/lFrEZcr89nv3XvimcQrb9yWFwESagF6KGMR8Gln9 5GhmrdCyKyrv+wLzN2Kl/2hVY0dtZIqqnr4f8j2/UXtpwVwNumBdttPcDyG8w7/2Uawe 6U7Ih8EwpEVfTm0u+21v2Uu/EsDQXmjKgZqEApPO/qcS6FYGbRqeAJXNL28QrjcDRpEv q07/S4Nj7ANRnNtaWiOAHh9BS7+EtQks/E4qLRr0JSTjYfG4VWk9OCc5kGxs497mgdBo xDWA== X-Gm-Message-State: AO0yUKUuF3d5VeCgbVTY8eRKEFt7SnFvusWPxeiXShKBJgXXlgn83hzP U+JlgKYQPpfBit/62rQT/U8OAg== 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: linux-arm-msm@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: 13133559 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 5EA81C677F1 for ; Wed, 8 Feb 2023 18:38:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230495AbjBHSiv (ORCPT ); Wed, 8 Feb 2023 13:38:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231151AbjBHSiY (ORCPT ); Wed, 8 Feb 2023 13:38:24 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E14AD522 for ; Wed, 8 Feb 2023 10:38:18 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id l12so12839984edb.0 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=faUfHZvgxuRO8zwiw7DpBwJT+RJrodjwuDVwh7wRfTf5z8R2LcolUFxhby8rruKP3X zfDIDns+Gzkb493hXyQlLQ6y+hYihtBZhNOmYf8BEK5jCepkKLfKKj+0J/jEmjA+bS1K 6fRLKmWo8N8MSf2M4RDqrFt1vfwQErK/doYb5QhjI6DEmFT94QUi1o/2xHeK5H1qP48Y EPwBeelhh5FTveykGsT0rFCkmitwT4LGf+tDopi5WoiTmo+1CF9bmOBaDn4rdvGVN0WI rPvnfG1lWz1zpAmmQ578wqph3XPBMV2ch/aKV9S2Ug5kLH98QToOSDZ3DxY/5B1o9uG0 tLDw== X-Gm-Message-State: AO0yUKVxELEEKCsKDVwHQvvnYp1WkyS0cO6PDqzILuXihZxtUHCyPlUK IWgsVQeH2XRYYqEyb2tA8b/5QQ== 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: linux-arm-msm@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 Reviewed-by: Krzysztof Kozlowski --- .../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:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 13133578 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 BE412C64EC4 for ; Wed, 8 Feb 2023 18:39:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231175AbjBHSix (ORCPT ); Wed, 8 Feb 2023 13:38:53 -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 S231208AbjBHSiZ (ORCPT ); Wed, 8 Feb 2023 13:38:25 -0500 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44B2C23D83 for ; Wed, 8 Feb 2023 10:38:20 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id v13so21672490eda.11 for ; Wed, 08 Feb 2023 10:38:20 -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=v3yGyy6DT/FeiWv3N7O4FaG2s+u8+Q44HOcXWeexoAk=; b=xfRxNZKeHqAq1oU4BJxHwtGoudZ6HuAE9yC5MOpJx9KztcjIGoMs+WfcPvAKYNoyX5 8/7xj+WhEgBtA+DI5pfyFEZERS3xGpSu/ZP7QEzbBLC7Rzcy2gGtQBAX1rk35sflYqUW cOWBJHUZNch8RRrPjez/QVcVGPLtSQ2gb4mvsYz1vUBU+mI29NjwJKUuDT+uQv0sdRJy 3B/yrYhkFklwRy9uNvBN5hQyDZEF0g+JMPGvp6uFIihTH/9ek/bIVpjW+LM7LkyUNFGV IE/gDa4G45MOflgy/ECdDIiF/Obw9PmXrYgpbX78EDoi9Dy/glUCvD1C0r26vSfmM3fL 9tvw== 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=v3yGyy6DT/FeiWv3N7O4FaG2s+u8+Q44HOcXWeexoAk=; b=bTxOKtHQv9zoNjuWhpbWnyGFPuPLlAPZ5uGMu85y0jXtHaRL5bKJawvOtPgTBSc3eR jEIdkf93yk1ZuBPj62PfXk0SzZHusGkpSKFYQ4yWj9yaK7K9qkciRLGuG3L8nomihbuT +3lpQjQ6dvxPY/DC6zz1Am/fC5A7U2kyVE4GT+PstltA17Clxrf+Nlf+IML3v6aTbPIP SASDovJsHWvqUeEQE8UHgDun/i+utro4uBVdsoKr3b+WaXM8gkksQ8Bxp874I0O+2ZdE 2ptPOpZITfy6ZDEerXtFRTAog+KB4fcK8czhPYkX8TtnMFJmsR9grjNqcg++cc1Tv3CQ 9XCQ== X-Gm-Message-State: AO0yUKUgibPblwxlIEMJdVqAF3SNOUj9g/FDNXldKEmNEdUP2spoMU2P Gd47XsWgoYILDp6uvj+MJXJ2ng== X-Google-Smtp-Source: AK7set+mt/xEx6HRtJbQVOPA+mpkt0iDASqZdbQ5zXXYmROAGaAnkAVky7plisq5gyQaCUW0doMyNw== X-Received: by 2002:a05:6402:1d49:b0:4aa:b0e9:84dd with SMTP id dz9-20020a0564021d4900b004aab0e984ddmr10707225edb.3.1675881498827; Wed, 08 Feb 2023 10:38:18 -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.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 10:38:18 -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, Neil Armstrong Subject: [PATCH v9 06/14] dt-bindings: qcom-qce: document optional clocks and clock-names properties Date: Wed, 8 Feb 2023 20:37:47 +0200 Message-Id: <20230208183755.2907771-7-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: linux-arm-msm@vger.kernel.org On newer Qualcomm SoCs the crypto engine clocks are enabled by default by security firmware. To drop clocks and clock-names from the list of required properties use 'qcom,sm8150-qce' compatible name. The change is based on Neil Armstrong's observation and an original change. Cc: Neil Armstrong Signed-off-by: Vladimir Zapolskiy --- .../devicetree/bindings/crypto/qcom-qce.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml index f6f1759a2f6e..d0f6b830a5dd 100644 --- a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml +++ b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml @@ -79,11 +79,22 @@ properties: required: - compatible - reg - - clocks - - clock-names - dmas - dma-names +if: + properties: + compatible: + contains: + enum: + - qcom,crypto-v5.1 + - qcom,crypto-v5.4 + - qcom,ipq4019-qce +then: + required: + - clocks + - clock-names + additionalProperties: false examples: 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: 13133579 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 09A35C64ED8 for ; Wed, 8 Feb 2023 18:39:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231237AbjBHSiz (ORCPT ); Wed, 8 Feb 2023 13:38:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231253AbjBHSiZ (ORCPT ); Wed, 8 Feb 2023 13:38:25 -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 A1CAD5581 for ; Wed, 8 Feb 2023 10:38:21 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id fi26so21725461edb.7 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=VHghxga3N5noovSZyFiB0lNlPG3i9ksbhw+qd1Ung+lEwsGrPKjZxQKRf+GPp+K8Ya 9rAekvVAvB58OZ8XHY7qxXFnrZDIVavDtSAaSHoY2Vzpgs/e9CPk/6IeQqJ/FxbHXsXY PxAIbenyLUqabUsn7dCkGeW24cPHN/W4b94DI4lOSn84AsZGXkhpiyNCXEiFZQA9EwNa X89/Z8k1ypiWRrFsHX8epGwa5dBu6Qffdy6Erhu2z5nNFQnKi/YA09bEzl2lJoOeUj0U L53oqV1jGdHjNtOShOIZXue7fQWh3NhEe7mtARx7YmbyIJ1tdIFaMtKP7w3dOA/NNqnU tUiA== X-Gm-Message-State: AO0yUKXoRwJHb9fOfQVi8y6texV8WNMppAX6INwvJQaoG0VIDwLyxRAS Lu9XtmU2JmePwi1ccuBNjqJwkw== 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: linux-arm-msm@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:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 13133581 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 57BA7C64ED9 for ; Wed, 8 Feb 2023 18:39:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231215AbjBHSiy (ORCPT ); Wed, 8 Feb 2023 13:38:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231331AbjBHSi0 (ORCPT ); Wed, 8 Feb 2023 13:38:26 -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 194E926873 for ; Wed, 8 Feb 2023 10:38:23 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id fj20so3224666edb.1 for ; Wed, 08 Feb 2023 10:38:23 -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=cz0oWSthv9m1vHslRMrBSvak5CO+z8/t3E9oDupBv5U=; b=pWhVGcXPExfi7kwQnUxS6iOPVL21CHnr7uVJorN8HWlfHjeMhoySFEWl/pmDFYM55j ATMOBMjKW+OPbgvLSqOgAfUt78rZuezele90NElHFZ3+GoX35Ga078wIoXpm47ultTY7 Neau8+D0Uj6spo80LPFaWt2FYMvv7BP2qrBOzFkXcd3UWkIkTU+5ZU92axp6M0DMEG5P 0BDAnw/p3boKWl/cGTib1A9SWt+Rud3z+KiZcIsmFUXgmu6yQ075rWxAlBVvrxq8+s3N Qf6j0PMnwb9f9uKGVQe4DoGuktu3vPpdHsdnZPii2dhHQGHxVcHR+ZQbQAxD6ti2rY3u /qxw== 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=cz0oWSthv9m1vHslRMrBSvak5CO+z8/t3E9oDupBv5U=; b=rlch8uGNbQCnTb8X7QWGmBb71XdwEmzpjVMQUiWxIz8pAwZm1PDSTTCB+Tt+OP2bvk OGeFcYQqs+2BVZ77dF6YNxGYucvpmqWWVvbVitHCrFVpNVlJpTqvgevwQnLe5maT7cw+ k3mD9c8vJk+zOkrjDsOV2v635PZIXdqKmmmty7OTLzxHh3WdeOhAgrGkx/e6qlG4w8vB DvjBLfg/1IIWXPIht+CQhZYmKRdBqHs9R6AlRFpmhzIXTBWCtMvRNsyWDQR383Ej2Sb+ STZLWLIreOWj0iz3YBpqlmO9T0nIcTH+6321gQAMWmJ+XoWREFcRNkjARXZwegMw6NzZ Kuqg== X-Gm-Message-State: AO0yUKUpYgEVTUh5Vh1yuWdqia0NMqYdDwbTiMGP8rv1Vjdor23tIQY6 isVdSKv9Q/YjhMxtmb+jtwKzWA== X-Google-Smtp-Source: AK7set9ag2bJyP6dEaevJZh2YbJ3Hl7I50yjzbGsfBpdCNayUpDBXicgrx6S4fcxrMcDrypiyGeQYQ== X-Received: by 2002:a05:6402:510f:b0:4aa:a515:58ad with SMTP id m15-20020a056402510f00b004aaa51558admr11003494edd.0.1675881501709; Wed, 08 Feb 2023 10:38:21 -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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 10:38:21 -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 08/14] arm64: dts: qcom: msm8996: update QCE compatible according to a new scheme Date: Wed, 8 Feb 2023 20:37:49 +0200 Message-Id: <20230208183755.2907771-9-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: linux-arm-msm@vger.kernel.org Change the old deprecated compatible name of QCE IP on MSM8996 to new ones based on SoC name. Signed-off-by: Vladimir Zapolskiy --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 55180586f7b6..fe9a769afa37 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -784,7 +784,7 @@ cryptobam: dma-controller@644000 { }; crypto: crypto@67a000 { - compatible = "qcom,crypto-v5.4"; + compatible = "qcom,msm8996-qce", "qcom,ipq4019-qce"; reg = <0x0067a000 0x6000>; clocks = <&gcc GCC_CE1_AHB_CLK>, <&gcc GCC_CE1_AXI_CLK>, From patchwork Wed Feb 8 18:37:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 13133580 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 68A6AC678DB for ; Wed, 8 Feb 2023 18:39:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231351AbjBHSi4 (ORCPT ); Wed, 8 Feb 2023 13:38:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231365AbjBHSi0 (ORCPT ); Wed, 8 Feb 2023 13:38:26 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 921AC11649 for ; Wed, 8 Feb 2023 10:38:24 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id gr7so53379703ejb.5 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=i6Xkj1uvomIqvV5vtczDqyKqzJQXhJ76whYXVbHQRUQ=; b=ffI3XCS4l92o9hwe5j/shy1u1L+qV168krZto2cXNR5wARnSRUoqEEqGuKyCcvKpc2 x6IKLWAhmUysj+bBkosvaHUkjAQsSm27KQCv0jxcnEJIYc5d5J8179v5rsOww7Skrx0Y 8ppUFoFDIjjNSiutNBDJNg+ucy0frepTp8P7zpxmSXsLH6vsa0dNmHaqOInYxVQaAzy2 0oBUn6f2SbnWH7Ws8za68ZIaWs2eBEze2LF1WtFEw76K8FFk7mmUVmNECpCIPxwlaJJ3 K581XZ5oRsWvUubQFoIEVIzdx0OHvce2A6eJcigRhd0LEygaVJzNXK/lhvleVjdOxyeD SUDQ== 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=i6Xkj1uvomIqvV5vtczDqyKqzJQXhJ76whYXVbHQRUQ=; b=FRFexnIxPYf+QPnZQo3oNWO3XoLo5IuG49s0T8mm+Wtl3w3TgKb0xdNF3Gmx6iiv8V /kL23Nmxp6E98rIt+ZCSJrH8Xg4hgIt/9K58pSYcqSVC9+WkIAc94t9zlltEo4YDNsl9 +EBGrq3UxDvlUUiJYXi6ZMHrnT2RcM4I2PLRjLcJhsKOxArCEybsDuD/ZetNUDipt7/j P/B+4XEQlduO0tsUwFoBlL6H8A8nZqX3qbtpTA0qYDWkAl4D2L0PqPk5QuyG4e+FvMOR SgMni+cqUQp78VEHr/1gFgnlw7rRdspEdlE0qp9K++MBy0gDA6b3mjAhBfSvp49QEJsg xBYQ== X-Gm-Message-State: AO0yUKUZFdN6Ofy54aSnxojHNrnOM1XW30zkqWEQnBeKLYp8MCiJ1xhF /whswxrX8u2UV7XmT3xGfB4yXw== X-Google-Smtp-Source: AK7set8mwOxLCl0RNGRM/7A9ghZt28JBV7F4PVrkuIM0uG9foafHtvMsHOIS892LYvJsV6GrS9A7pQ== X-Received: by 2002:a17:906:d6:b0:86e:2051:a514 with SMTP id 22-20020a17090600d600b0086e2051a514mr8339869eji.5.1675881503218; Wed, 08 Feb 2023 10:38:23 -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.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 10:38:22 -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 09/14] arm64: dts: qcom: sdm845: update QCE compatible according to a new scheme Date: Wed, 8 Feb 2023 20:37:50 +0200 Message-Id: <20230208183755.2907771-10-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: linux-arm-msm@vger.kernel.org Change the old deprecated compatible name of QCE IP on SDM845 to new ones based on SoC name. Signed-off-by: Vladimir Zapolskiy --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 9ffc0fe07c21..2cf19e4d211b 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2632,7 +2632,7 @@ cryptobam: dma-controller@1dc4000 { }; crypto: crypto@1dfa000 { - compatible = "qcom,crypto-v5.4"; + compatible = "qcom,sdm845-qce", "qcom,ipq4019-qce"; reg = <0 0x01dfa000 0 0x6000>; clocks = <&gcc GCC_CE1_AHB_CLK>, <&gcc GCC_CE1_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: 13133582 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 F0D57C6FD1A for ; Wed, 8 Feb 2023 18:39:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231396AbjBHSi5 (ORCPT ); Wed, 8 Feb 2023 13:38:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231432AbjBHSi1 (ORCPT ); Wed, 8 Feb 2023 13:38:27 -0500 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DA521A94F for ; Wed, 8 Feb 2023 10:38:26 -0800 (PST) Received: by mail-ed1-x52f.google.com with SMTP id a10so14658822edu.9 for ; Wed, 08 Feb 2023 10:38:25 -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=2nr/IkpHiBw6rNQeQ7aIl3BwAmbsZBf6mqSzhrO7MM48NTjwib0aaEqLZX3bQb0EMN oPpL+LEpdwM8/MQepYXkBWL8gdctn74og1N6y8KAdmTIOFkRjnPKfX8/hiKo68DFcwmB vl97YJ04v5X+mTQKu60XfgWnPd2/aD3cvOFIcB5QZueyx4dXWRhzty/KvkE3G7OdXdYI x7lECO0db+lrS0DH+et3o/TzUba00HGyLOd40oYe+fNAwClFbzaWs1c87Y31gdAeG42j QjjjaoT91yQslhwH4XPe0Yj7+wRb5FNzx+LqhJHSr329QAj/OMSZqkl+oG1a5lGvgmyB ikhQ== X-Gm-Message-State: AO0yUKWO3SHkkKnIJE1LWLhHhK9Jl6UQ31y43X0EH/ggL+7veTTZDBeN o74M5BcXxI8nExY52Sfijy+mPA== 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: linux-arm-msm@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 Reviewed-by: Krzysztof Kozlowski --- 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: 13133585 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 88D41C6FD1D for ; Wed, 8 Feb 2023 18:39:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231394AbjBHSi6 (ORCPT ); Wed, 8 Feb 2023 13:38:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231477AbjBHSi2 (ORCPT ); Wed, 8 Feb 2023 13:38:28 -0500 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85F78D522 for ; Wed, 8 Feb 2023 10:38:27 -0800 (PST) Received: by mail-ej1-x633.google.com with SMTP id qw12so53417663ejc.2 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=3gjBtsiJ0LsY8NJ4/eLnUucY8wRDkk3zFzl6ux71kqC2E4bDj2di+gin5emC/UvZff EtGIuj7MRl0geFiaYQZqmJeXecIIC/FFaXgzghZ07sfuObTk6N9YVzj5JUVdHb0AKL26 jBZ7JOhpXnNi98EX5jxOvPJvG5XKKLGliwucftSdrPrB/ZB1KbZ1/VRvqpoojI+NEmP9 XhmvH8hoeBEzi/Exhn+nU4vkQpMOo10dgVdS+tkVv3MUYqtfN0E3tbxfdd4hyQ0G8deH sVaNCBExkxaTV+XbsDFgPrnkglKXzu2J5CE7Wyc7kCev0SStg/BkWXWQ+6DnDi8BAn5B AHQQ== X-Gm-Message-State: AO0yUKXy9jlqCEsMO8lDhwBd+Qfow0q0XA6zq2cn22DBRJDl2a4wJZYq +01Djk283QDnaQSclJEWBmuBLA== 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: linux-arm-msm@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: 13133584 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 D39DEC6FD1F for ; Wed, 8 Feb 2023 18:39:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231477AbjBHSi7 (ORCPT ); Wed, 8 Feb 2023 13:38:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231528AbjBHSi3 (ORCPT ); Wed, 8 Feb 2023 13:38:29 -0500 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 045512132 for ; Wed, 8 Feb 2023 10:38:29 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id v10so21723546edi.8 for ; Wed, 08 Feb 2023 10:38:28 -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=BBzVbIm6rhhhSQBEkhNxORPDBfYJcdJtNqUVGKrVm6lwAA1svfPHW5y0kksVp6pvrd Ow8eVGA+F94b6MsTdLjQ7dDDZ3U9pRbHTFNTFL9e6KBA6fr8j7F5nmXAsYdClpE12p7q tfAOantzymiVg4DfXUF7XZiu8yKOF9mmrbV8Fj/pCPF2bzW/tiECFQunVYTbA199lW68 6AwHWSsp2+5+/D5YX621OKugm6dDwZVU728FKYhcPaM8TznH25EP4js00aEPfYziyaeD nVXZpfA/DQQ8Tx+Pi4HniE/gcDN7UCVq6HpyxamVHapCKP5Tfe9mcUy3UKZjwAlaKreW dtVQ== X-Gm-Message-State: AO0yUKV8SkeD8JPTJ2OPqbRwANT/XegBp5hwoJkEXfL810EmzI0us2wT wRg2EgVphiTi9uBOtdQMcgc8Hg== 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: linux-arm-msm@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; From patchwork Wed Feb 8 18:37:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 13133583 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 200F4C6FD19 for ; Wed, 8 Feb 2023 18:39:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231433AbjBHSi6 (ORCPT ); Wed, 8 Feb 2023 13:38:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231532AbjBHSia (ORCPT ); Wed, 8 Feb 2023 13:38:30 -0500 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B58FC4228 for ; Wed, 8 Feb 2023 10:38:29 -0800 (PST) Received: by mail-ed1-x533.google.com with SMTP id u21so21744723edv.3 for ; Wed, 08 Feb 2023 10:38:29 -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=SAHs+SDEqt1ZZjAtte39FysEWDFBUT1+AZHfiDgMVRA=; b=vv1ZJQWkIkONSmBeiG7pNI6Hcoa1H5TWQgwTku3Ls7bWSOGrTQ2UbnakOB2iEOU5qw TQGS1xg3ryBP44LpW6DKJ77W7o/28DgqjkM2tC6TYyvRe4dRVzRt1wwCucx9vUIvXhbj SnwlCmBQLC/9raKFEuMnwpTyBtGNxlBWf0FV0+YnH+kNnms2eoBJiC/m+GQzZ17//Kgj kECKyKT/xjFEePdH2ncrCqV7S5jLZ8dI4RawW98403Q/N47P+Hk5+du996GwvdSQBJuq 4+lY7A537y3Q/aFaYwJ6kMLykSa4VJzU5ApoArKuULOSLfR39p8rrJQbjGIPA9NEPlrs G0Ww== 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=SAHs+SDEqt1ZZjAtte39FysEWDFBUT1+AZHfiDgMVRA=; b=fEqPn5NGFi4N8mzlROJ0Ji71GKn/NhIX8fpjhChmUePuEm5BV91TVaSzLM/2dXgtxR nekMVmz2LIHXJsxeAj6Gnk/rXC/eYVn0yeUNRvVIS2z7xfRJVaHOimU+98xnR04G5O07 RaOOKR9Vp3cGwid1RhMhK3/ovKoWJl33z8ZiGbakgJpm9aQFle8ySWBDxTTDjbWOv4D8 kvfFhRkAoef3z86WsLRPUfnfI7rhyCd5K/wDoHwTfbMEm3gPKzq2D5i9Pn+wTwS38Ob6 W9DzpQLK8ljudFpuaA0mSZoX9P+EPTKGV7TjeUB5iophb13UkJBDDTgnU9OqUNki0qRs ImsQ== X-Gm-Message-State: AO0yUKXt/e39tsFVeQWu5QuzMpjTwDKWxxOOnQQXmVMe0j5UETKGxMWf 5a8knHBiNyLnMex2iojM7J1D2Q== X-Google-Smtp-Source: AK7set8jvWeiiJ8HRdxUE5ZrOm82+hU2lb7t7t3pIj64LRTS7tZjtkDo5HvxOnQgD5fbQGhW7Riykw== X-Received: by 2002:a05:6402:510f:b0:49d:fd2a:39cd with SMTP id m15-20020a056402510f00b0049dfd2a39cdmr10566704edd.1.1675881509329; Wed, 08 Feb 2023 10:38:29 -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.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 10:38:28 -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 13/14] crypto: qce: core: Make clocks optional Date: Wed, 8 Feb 2023 20:37:54 +0200 Message-Id: <20230208183755.2907771-14-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: linux-arm-msm@vger.kernel.org From: Thara Gopinath On certain Snapdragon processors, the crypto engine clocks are enabled by default by security firmware and the driver should not handle the clocks. Make acquiring of all the clocks optional in crypto engine driver, so that the driver initializes properly even if no clocks are specified in the dt. Tested-by: Jordan Crouse Signed-off-by: Thara Gopinath Signed-off-by: Bhupesh Sharma [Bhupesh: Massage the commit log] Signed-off-by: Vladimir Zapolskiy --- drivers/crypto/qce/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/qce/core.c b/drivers/crypto/qce/core.c index 336edba2513e..8e496fb2d5e2 100644 --- a/drivers/crypto/qce/core.c +++ b/drivers/crypto/qce/core.c @@ -209,15 +209,15 @@ static int qce_crypto_probe(struct platform_device *pdev) if (ret < 0) return ret; - qce->core = devm_clk_get(qce->dev, "core"); + qce->core = devm_clk_get_optional(qce->dev, "core"); if (IS_ERR(qce->core)) return PTR_ERR(qce->core); - qce->iface = devm_clk_get(qce->dev, "iface"); + qce->iface = devm_clk_get_optional(qce->dev, "iface"); if (IS_ERR(qce->iface)) return PTR_ERR(qce->iface); - qce->bus = devm_clk_get(qce->dev, "bus"); + qce->bus = devm_clk_get_optional(qce->dev, "bus"); if (IS_ERR(qce->bus)) return PTR_ERR(qce->bus); From patchwork Wed Feb 8 18:37:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 13133586 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 1A604C74A5B for ; Wed, 8 Feb 2023 18:39:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231522AbjBHSjA (ORCPT ); Wed, 8 Feb 2023 13:39:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231558AbjBHSic (ORCPT ); Wed, 8 Feb 2023 13:38:32 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ACD45581 for ; Wed, 8 Feb 2023 10:38:31 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id eq11so21725979edb.6 for ; Wed, 08 Feb 2023 10:38:31 -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=HoPGz5Pm+LZHpkjttTLTUflLBb3yC+wx886HJm99ZqA=; b=AhsSyyTofxroC3bJBIYXUw5pJHJDs4YkyO5xi+nRwRntn9OHsmG9YtNz3MGbLpUV1F DfFAuVtLQAa+hPgmwLaw/YscakI8uyVusFIVFjVraGqbHY+Yxj+K4yR1/Ky/pxUydYw7 vSR+G8W0R9WxXr/ncC3DTrbMdO+rqi/PavVBX0wFNCjP5C1K2MsBLLKiD5xIaZWgtxQ+ NNv2/fUxAnN+aOWaHz3DFkP/vWMQPhou6K2SfsEvYbIKmWGCIDixV1KccPaHV/iTJnI1 WOUy2BZbEn0UgQUDEmPS6tvU7CpTIquysw9gWt9XJUjG005Eoly6L79oHwNAZ+fEs1eL ve9g== 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=HoPGz5Pm+LZHpkjttTLTUflLBb3yC+wx886HJm99ZqA=; b=t9adZcbiawwwM/BWuFstQWDjWGzgeOpEpB0XaVghGt9tbF0EDFXrcy03my6Pj/hEbJ iAHeLqp+mVmwq92AkdSCaXKpVv+Act+9yT1fWgOErLKIeu0rOEzGhn8mU6metM5ur/FB tuRC99h8fyO8XIO2oQ+pAnwXAkKm7mL0TTXF5OE2KdtdcSCw3qK/DgH/nR8veWKM5wqn dYnCGU5RHEVgz9sSUoiquKFPfE9stfjcqBpnkUk01uHOOCEz+seqrxEq4/XXDKu3UKPY H5dfXkolQZ/tiwxM2zR2zQH0nHHAsMTrnlmlJ9yQrBlPLF3nW9jExiDCaVVqv9N+ilKu fChg== X-Gm-Message-State: AO0yUKV5ZcEzh8wPecv2ek51MiKIpBjkJLywGGhOKmIecILHE0a+FpAX Ny1nhkoKh4WFCB5HvwtF1urmDg== X-Google-Smtp-Source: AK7set/hrIkfSh6wiF0q3Mlf8So3j2+LQ748LajKSEBH/yJrz8Ayf0IO+wdD3H+tyYM81FqgVad3tA== X-Received: by 2002:a05:6402:278f:b0:4aa:aa5b:fcd0 with SMTP id b15-20020a056402278f00b004aaaa5bfcd0mr10466462ede.1.1675881510813; Wed, 08 Feb 2023 10:38:30 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 10:38:30 -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 14/14] crypto: qce: core: Add a compatible based on a SoC name Date: Wed, 8 Feb 2023 20:37:55 +0200 Message-Id: <20230208183755.2907771-15-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: linux-arm-msm@vger.kernel.org The added 'qcom,ipq4019-qce' and 'qcom,sm8150-qce' compatible values will serve as QCE IP family compatibles, so that the crypto engine on added platforms can derive from one of these two. Also the compatibles serve as a fall-back for currently supported QCE IP variants on Qualcomm platforms. At the moment there is no need to differentiate or add any other SoC specific compatible values to the list, however it's known in advance that the two QCE IP families are not fully compatible between each other. The IP version based compatibles are left untouched to preserve backward DTB ABI compatibility. Signed-off-by: Vladimir Zapolskiy Reviewed-by: Krzysztof Kozlowski --- drivers/crypto/qce/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/qce/core.c b/drivers/crypto/qce/core.c index 8e496fb2d5e2..627354e772e9 100644 --- a/drivers/crypto/qce/core.c +++ b/drivers/crypto/qce/core.c @@ -293,6 +293,8 @@ 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,ipq4019-qce", }, + { .compatible = "qcom,sm8150-qce", }, {} }; MODULE_DEVICE_TABLE(of, qce_crypto_of_match);