From patchwork Mon Sep 19 19:56:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 1679700 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=YSFjhGMp; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4MWb6G0P60z1yp7 for ; Tue, 20 Sep 2022 05:56:38 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229709AbiIST4f (ORCPT ); Mon, 19 Sep 2022 15:56:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229571AbiIST4d (ORCPT ); Mon, 19 Sep 2022 15:56:33 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5DFA474CC for ; Mon, 19 Sep 2022 12:56:32 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id x1-20020a17090ab00100b001fda21bbc90so8459751pjq.3 for ; Mon, 19 Sep 2022 12:56:32 -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=9eQI2Cevi4CZxbZ5a/a4ZLydPDsHng3JOmFm5TOPYxU=; b=YSFjhGMpMvCaBX2WrPq5f4nq71mBpx9z+Pf7Dh1TMZ09RGBSOPRoruPkarHfutW4y4 TBvl+X0fc6QiO9j/N4u0WWikPnsd0Di2zxmyXYyxU9uSDqC1Y/eYA1Fzlcks7TOAHwWF +Rii2xsOknAdDkBXmqNMhDI8LmsxHSLTsIYi92y26/KNIl7ODJYpX40ZT89vN1PEh1g3 TbeRhM27oEYFwG0KZuCzQ2Jh2JotojFB4sBmd5qhh/oQW2fE9pqT+5IGD7RZRbsFq0Cv VUNAhS4KHXkyCO7L1pQb+Tqjf2lL/fek2GaCGbprGt4EqEWGq47qfy1SQxtUzJzAfrFv inEg== 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=9eQI2Cevi4CZxbZ5a/a4ZLydPDsHng3JOmFm5TOPYxU=; b=wN3xFrWTHab/V0nz67vF9SQzl6UYXoWCU+b0FUOkAxI6sshaCHnw+eYC0DmjxoprAv UYE4fVapCm+ZlinJGKiF96q4iJO/NecgIv+gWxUvZG/wuGES7yIX1si7NYnCdyR9qFaS PNy5BH973GeX79j6xTchArnqF0EApqrQeQ/kj1Ts/EY1FGTkWPnRknWNK0DBns3SW402 OrbJK8ROs/vqWaW/lx0rB9d2HjhS5GTHaZ/88PAlXXrS4wLRBfftU+vueiBXJGtJOZGI VvidG7aoGU/Nu8miPcrXBosoNFYdAnEKIjPVCNNDSDZkIaJkScmMim5or1wi8SE0hB0O RYCw== X-Gm-Message-State: ACrzQf3OKDdJSDNQ1onac1uSgktrDn7/2SGtQk2sh1Ui6qGbNtfPvi2B p0c0XOmKZF4dhdcDyPyL237Hzg== X-Google-Smtp-Source: AMsMyM5HX5H4svUT/r2BofoDjMeZmDJRtcRoQw9GQPPRehh2i6rgcw3FPCaeJGKB7rq21joXwwPRGw== X-Received: by 2002:a17:902:e884:b0:178:2065:5c29 with SMTP id w4-20020a170902e88400b0017820655c29mr1369992plg.114.1663617392278; Mon, 19 Sep 2022 12:56:32 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Sep 2022 12:56:31 -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 1/4] dt-bindings: qcom-qce: Convert bindings to yaml Date: Tue, 20 Sep 2022 01:26:15 +0530 Message-Id: <20220919195618.926227-2-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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 --- .../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 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: 1679701 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=a4tMDBHx; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4MWb6N1XSBz1yp7 for ; Tue, 20 Sep 2022 05:56:44 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229582AbiIST4l (ORCPT ); Mon, 19 Sep 2022 15:56:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229557AbiIST4j (ORCPT ); Mon, 19 Sep 2022 15:56:39 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 714D648EAC for ; Mon, 19 Sep 2022 12:56:37 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id jm11so192029plb.13 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=vAWDv1jDvvga6rp/f6MKmxWjcThHe9Hj3vwBeYXOOv0czOwbbhzNliScmmwBXNVAkb waq1GPappY07skhoLHNM2TSCxvQHcQXP4sz3sjzhuzKZ8CzaHUVXgGROE2tLDDVDM44j WGdcdDB9KV/agWYPyqN/+mFJPG5UegCbsh0bwrFv5euMdf3keQkT5G5SwS6GHMmO4ufC I3rExKPJZHwP203zksoHPP4JxiVVJcjIFQbBZFnlnSBIzWTw1huw6GH3A+VFaENXxT/5 9HoQGuclMIqKasxKM/u/xZVVPBl1rGC9OOYH1LDzpONMxMzVb83pb+YUjPy3S7I6sDfM zZ4Q== X-Gm-Message-State: ACrzQf2rwvWLoMGIfgMb6K8w1dPZqon+JfYncDR7hBbw62JV6N3iRaYT NxoHNsHh3O/qNqFkTsywz5MwKQ== 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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: devicetree@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:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 1679702 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=ARcAoURg; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4MWb6Z0fz6z1yp7 for ; Tue, 20 Sep 2022 05:56:54 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229865AbiIST4w (ORCPT ); Mon, 19 Sep 2022 15:56:52 -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 S229827AbiIST4p (ORCPT ); Mon, 19 Sep 2022 15:56:45 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20A13491D1 for ; Mon, 19 Sep 2022 12:56:42 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id bu5-20020a17090aee4500b00202e9ca2182so7379859pjb.0 for ; Mon, 19 Sep 2022 12:56:41 -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=Egtl6lY/QkJHhCEBQPmUzTRwC9E0e4ABQZQp/efkHtc=; b=ARcAoURgdu9qMN2cmYmbqczA5RxFLWFryklOmo1Z8wty2Oj5AK/rUSlBPQd2LfwB7t e3ZtMCwOQ+dVCGIBVfxbHprPLBJyF2R3wWoGaDhiL9NTxvonkg7k6jsiZE5vVOSYCYuE PV0DOHikUEAwG8OM4V4RQPL/0pz8w1KeFaq8DNl+DnOxxQRmpCSJpabD193S92+fhaYp FqRJ33Jplakbq741PMl1ndElrAkMaQeJnUVzOTWuBBAfKR9jg0SJDwmbz0zNi5VA4DDk EFA2+vpaNwg9ImEltLqu8apAM4FRV42fOIUOyhb9Cdxbzj5Ow3H7UEWU/TWkntpuI4xi 6nqg== 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=Egtl6lY/QkJHhCEBQPmUzTRwC9E0e4ABQZQp/efkHtc=; b=VorrGj4wJQsJP789yDSHupFQmyRKU2NtjZ7RAkJRR/EgYBuRr7mMAI8537iTMYDuIr PhNtoPoHZLXxXB0Gb81Dg2o3QYxU9Qyjshz4QBBsg6WKAVkXGPtNm3V92+nCSgjBGaDI pFxKfxv6ALWgcs8ce/YEgrGYJ5NP0SOknV9fWp1IVmnKAD47hOT+RwlIRDkv9K0Zi75U WOBJSxVgst7KGZPH06RQVjmga0wNJEx7Cu5edwDtBdwS5+PtNKGxxmyFwYakMPUrcgmk uZTEAid721feplmtXU1Cr7DD8tU3MIybxG0daaqFa3d462HT2J7I2VcmjT5qJhF/zSXl k51w== X-Gm-Message-State: ACrzQf03U0yIKFoQNNe6jbn6Xb4l+otf0BpYdYdvUqACoND/KpmiCsvy jgD9WDvyTQbvrxaOcEUZU0yALQ== X-Google-Smtp-Source: AMsMyM4BNxCkG2n9x/nNxJ+xHr81VW2eE/x8GKvo8nilIFVvnGb5Dq3/340llsJAPcN9xzCpBjFfug== X-Received: by 2002:a17:90b:35cf:b0:202:6f3d:53a7 with SMTP id nb15-20020a17090b35cf00b002026f3d53a7mr22218503pjb.63.1663617400976; Mon, 19 Sep 2022 12:56:40 -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.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Sep 2022 12:56:40 -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 3/4] dt-bindings: qcom-qce: Add 'iommus' to optional properties Date: Tue, 20 Sep 2022 01:26:17 +0530 Message-Id: <20220919195618.926227-4-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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add the missing optional property - 'iommus' to the device-tree binding documentation for qcom-qce crypto IP. This property describes the iommu streams for crypto pipes. Cc: Bjorn Andersson Reviewed-by: Rob Herring Tested-by: Jordan Crouse Signed-off-by: Bhupesh Sharma --- 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 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: 1679703 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=BwMIyIgI; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4MWb6n1y2fz1yp7 for ; Tue, 20 Sep 2022 05:57:05 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229898AbiIST5D (ORCPT ); Mon, 19 Sep 2022 15:57:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229698AbiIST4v (ORCPT ); Mon, 19 Sep 2022 15:56:51 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 042EA481F8 for ; Mon, 19 Sep 2022 12:56:45 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id y136so652236pfb.3 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=UewtK9nXwrnP4/1yeWkhigdmX5ZC9oeoH5D0yFiJs2yhCj3Bk+asaAzRhQVxXsRGMw gp06YScI9qO4qtJeNZhui3ZJz5GnGNcRWnt1p8Uq03hjPqi3MbaMfSijNPmidtWrAxGu +DJsBeZBG86zhueDiXGyr9T3ac1hg9mmjOdOQIje7feyFOvLxqWPyddL7cjeJ8xDPj2v FVoxwy8S48aSTQoal0ukYETPmKX/UFkjEWJCTr2K2XKPQ/dbIg/knYoEs0IljJThKvvK WCNwQmrvAGYNbHm2lb4A0oXMkiSxlxlDBBGP3SCfmpt+p5F1/1bn7No8jhOUbejE1p5W aMRQ== X-Gm-Message-State: ACrzQf03dENEHxgam6Put5CQJllS4wueLEl93E+n0i6+1LtRB3RikXMX PLXTsFCxz5EJ0gkZU7lT33JU1A== 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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: devicetree@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>,