From patchwork Mon Sep 19 19:56:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 607403 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 97CC0ECAAD3 for ; Mon, 19 Sep 2022 19:56:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229808AbiIST4k (ORCPT ); Mon, 19 Sep 2022 15:56:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbiIST4i (ORCPT ); Mon, 19 Sep 2022 15:56:38 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 270C048EA7 for ; Mon, 19 Sep 2022 12:56:37 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id s90-20020a17090a2f6300b00203a685a1aaso298277pjd.1 for ; Mon, 19 Sep 2022 12:56:37 -0700 (PDT) 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; bh=Ow7jg7iL4OBsAsTVBpxDnjt3oRi+Efs0B5EUHKrVg58=; b=a4tMDBHxsyE7kFhzAOs35rMM31B5bZXrSZG+rdYC+e+0mglJpacQZUmAsEySPmiM7P 4Ne5TVYh5UamhDAsZXfrSet8WD8MVxaY/ke8AlT5/qeWF5e2ZCirCIG6KemRcfC30Tz6 6k/AHZbbFTnqw9+qA4MafLmR0n3haA5pVJH0lIe6XOuBjKyuv5rVJC4hAaI9o4RfnD5v pRkibe5+st6UW3bRgucpPDGcONroMIKz2BLj3cO3iWUjUCsInQ0oDXxLRBVts966ih9k FkfDnAdIg7ADUWcdhLJSAwKt/aB+fXkUjWNq7CM22VK4z0IS2e6rYyv7NWZ0IXeAgnVm zE2Q== 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; bh=Ow7jg7iL4OBsAsTVBpxDnjt3oRi+Efs0B5EUHKrVg58=; b=N9eySqpQpBmGJfhDud0i3JzLLmsbFrS3/IvScF1ldIT/vdBh7MdHStPgu/i/K6Qnmq u6gQOmyMSFBauyhXa4UqvrT9nhf9t60BeJFmd47ayvAv+b2jL+aAOrO/hm8oUp+moUoL wmh0ylvOCzpAR9nwmizvBWE81X9U0JiUGthy4pJp10/bWLjO+F0Bw7w0e6ilkSikOdqB 9dTbVNd1Wp2XMAnFiOsehBXJK/trWHWMO8ZoZGntIwW9V1ohxUYAfvbLiVJ6HbTFVmGp k6RgK8AQA4iPsRpgVd8t3m2EooNmZZfdT7Vfet4ByoJoC8F0DBiZstPDCMAiM0GyqNyR 3WkQ== X-Gm-Message-State: ACrzQf2GXfzum5kxj4Z1o8zIcry8xQL3LOiH+wUSyb+qDieExjO8YtgJ QRQYrUAbvw6DLo3167eHaUe/QQ== X-Google-Smtp-Source: AMsMyM6u1VdfqskBLA7cssJPdfoUIqbbD5ThITqXw8yIL8RADqQR5ftTVby7YAzNRexhLqnj+s90PQ== X-Received: by 2002:a17:902:f549:b0:177:f7ca:c870 with SMTP id h9-20020a170902f54900b00177f7cac870mr1355832plf.4.1663617396573; Mon, 19 Sep 2022 12:56:36 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:6535:ca5f:67d1:670d:e188]) by smtp.gmail.com with ESMTPSA id a14-20020a17090a688e00b002032bda9a5dsm7071454pjd.41.2022.09.19.12.56.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Sep 2022 12:56:36 -0700 (PDT) From: Bhupesh Sharma To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: agross@kernel.org, robh+dt@kernel.org, linux-arm-msm@vger.kernel.org, thara.gopinath@gmail.com, robh@kernel.org, krzysztof.kozlowski@linaro.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, Jordan Crouse Subject: [PATCH v6 2/4] dt-bindings: qcom-qce: Add 'interconnects' and 'interconnect-names' Date: Tue, 20 Sep 2022 01:26:16 +0530 Message-Id: <20220919195618.926227-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220919195618.926227-1-bhupesh.sharma@linaro.org> References: <20220919195618.926227-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 --- 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 Mon Sep 19 19:56:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 607402 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 093C4ECAAA1 for ; Mon, 19 Sep 2022 19:57:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229566AbiIST5D (ORCPT ); Mon, 19 Sep 2022 15:57:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229851AbiIST4v (ORCPT ); Mon, 19 Sep 2022 15:56:51 -0400 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60A2448EB4 for ; Mon, 19 Sep 2022 12:56:45 -0700 (PDT) Received: by mail-pg1-x52f.google.com with SMTP id c7so316242pgt.11 for ; Mon, 19 Sep 2022 12:56:45 -0700 (PDT) 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; bh=AuOntKkRGiT94FIUgQn4R1HFHExIoQrEAqGWMSUIfV4=; b=BwMIyIgIPvGV+trHHgrWie+p9NWZ+gxbFDznKtOZvMtFreUzCLfRJ13CUvYn9j4Bbc jHWMJNXFdTY3utq0YNOAoiS7El4tu2g5hihwe3c0L69yyn735hkBc51xybfZD8C+KTiE 04MMYJ3q4JzW0fI/x/1dR93OhPhtJadcaCpu7o8gpE5/tWg5yNgBK9sqMfLuoI4rBHbl OS6Lh0KMvclpToor7DPXwn4EltMkTweAXTR0NSHa4USMaDhtig5k/1hbUZkAhLksVXxF HOmWBzrKYHc7EWdwM0RkkXKAlvO1vyaEEaNEziezyT2DBrNgP/HKQi29iQapLHUFvENP WKKg== 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; bh=AuOntKkRGiT94FIUgQn4R1HFHExIoQrEAqGWMSUIfV4=; b=adORYWdVQByTK2IgiI4EHSUC+dpmhF19IB2vwpGekePh3nXc7CHlxZuuIag+UQVc1/ DnOez3mxfPOrFRAIIrWpwo6gFQQQaFFxXcElL9lET+GuafujPbNJyTWnUhilroGoc0pE vvqtHU8+KicEGVeZhBKbhz/lA9x/UEI71Z9Bwa1UzN7zSj0Hxy5J8vk0wyuUrp5P+7w9 DX4pvI220gOqzZu84PrOck8j6UHTDbLQwFEbDc/rkIz/N/aWzp1vpuoQOobOFOU3Ta5B 6IxZmQYXf0pG4OPV33UWBUuk70tFo1BZURD2Cac1qBu0TOuw9qZ2yuc/Tt1zvsVPU6KI +vLA== X-Gm-Message-State: ACrzQf15QT/OTIr1OlNYklflxgzdAHsREdCqd3kz/+Fs9zAQkNDsSdFz 4lE6rTJwxWwvpPOqslsyc9wNew== X-Google-Smtp-Source: AMsMyM7ANG3NNssy4tKpSoU8TB+9pXpQnLjxi7OjOiJCK4RDGqoyYgViiGl9TrMQhRDzA1VR2cmrcg== X-Received: by 2002:a65:6544:0:b0:439:b319:2422 with SMTP id a4-20020a656544000000b00439b3192422mr16804119pgw.114.1663617405350; Mon, 19 Sep 2022 12:56:45 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:6535:ca5f:67d1:670d:e188]) by smtp.gmail.com with ESMTPSA id a14-20020a17090a688e00b002032bda9a5dsm7071454pjd.41.2022.09.19.12.56.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Sep 2022 12:56:44 -0700 (PDT) From: Bhupesh Sharma To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: agross@kernel.org, robh+dt@kernel.org, linux-arm-msm@vger.kernel.org, thara.gopinath@gmail.com, robh@kernel.org, krzysztof.kozlowski@linaro.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, Jordan Crouse Subject: [PATCH v6 4/4] dt-bindings: qcom-qce: Add new SoC compatible strings in dt-binding doc Date: Tue, 20 Sep 2022 01:26:18 +0530 Message-Id: <20220919195618.926227-5-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220919195618.926227-1-bhupesh.sharma@linaro.org> References: <20220919195618.926227-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Newer Qualcomm chips support newer versions of the qce crypto IP, so add soc specific compatible strings for qcom-qce instead of using crypto IP version specific ones. Keep the old strings for backward-compatibility, but mark them as deprecated. Cc: Bjorn Andersson Reviewed-by: Rob Herring Tested-by: Jordan Crouse Signed-off-by: Bhupesh Sharma --- .../devicetree/bindings/crypto/qcom-qce.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml index 4e00e7925fed..aa2f676f5382 100644 --- a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml +++ b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml @@ -15,7 +15,15 @@ description: properties: compatible: - const: qcom,crypto-v5.1 + enum: + - qcom,crypto-v5.1 # Deprecated. Kept only for backward compatibility + - qcom,ipq6018-qce + - qcom,ipq8074-qce + - qcom,msm8996-qce + - qcom,sdm845-qce + - qcom,sm8150-qce + - qcom,sm8250-qce + - qcom,sm8350-qce reg: maxItems: 1 @@ -70,7 +78,7 @@ examples: - | #include crypto-engine@fd45a000 { - compatible = "qcom,crypto-v5.1"; + compatible = "qcom,ipq6018-qce"; reg = <0xfd45a000 0x6000>; clocks = <&gcc GCC_CE2_AHB_CLK>, <&gcc GCC_CE2_AXI_CLK>,