Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3334677pxb; Wed, 13 Oct 2021 04:00:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPtg2sNN3ejox7l7ECsLOSqJDoTYOOLY7DKqvcM+27somq9kzrzYyudPe5holBNUK2gn+w X-Received: by 2002:a17:907:265d:: with SMTP id ar29mr23891657ejc.295.1634122820513; Wed, 13 Oct 2021 04:00:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634122820; cv=none; d=google.com; s=arc-20160816; b=TndXqcZI87he8BruHes34RWQXZ/8Xv8NqMqAAUwpUKWW4y/zrO6jH6Kt8icUNvZZP9 RMRa/oFg4AHvmk92u/bigaE7UZCmMEYLRzsv7BwaA8LTJnzxBn0LAT7103/zDzcbfvMf La5RiyLn4IkvIMfgaseqQETIhgyjBeqHE24hVaffHvXyJQHw45M35iBe7wmymTtbnXp+ nvvyQHm724VnNOcRrrt6isTCwdYz1tcFI0UC4BSj576gp/3Uz66tbMI7w0MxK8Ho21UH FcGB45n+IqFG47t52w/wp/yA4OaQtsapZM4c0sxxmvLfu2I43KzJvqMtdt23n/bVt7E+ YAGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yw+NaHmS2OviUEGIWWfNtsmzD5nYySB6AIlogP5a/cQ=; b=wfAHoQAcvLEgcQslwCgKJUGeESF2W+jy7dxe1QnqF0GwtjtIiA2L6OXNBLUUJnO7/o wr9ALJzP8WexMHZn7J6RPQyrGwRcZurdJ5j+HJ66ONPECJNpQ5Rriu4G2P8Sg4Yx8aYQ aVQ1jPx8mdRlCrwYqbGg9sV+qxU57bSfUNAHc8wrMEH+kJY028G2a7PoetD+nEwi1V4m zxvJMlCp+ECvpsGQrJXdOi18qvhpB7CpdmB7Sp/Ee0u0GVZd9FsBwX74jqplwDeDhl/C x8gXz+1KgXsM0292Sq6oea7DmBh7xZgzl3Df5yGsfhk/s0ih36oEM4IYRjOaUyhkaGOb /3BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NHZlgl1G; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a23si20026267ejr.637.2021.10.13.03.59.56; Wed, 13 Oct 2021 04:00:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NHZlgl1G; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234099AbhJMK7F (ORCPT + 99 others); Wed, 13 Oct 2021 06:59:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232021AbhJMK6q (ORCPT ); Wed, 13 Oct 2021 06:58:46 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9908AC061777 for ; Wed, 13 Oct 2021 03:56:28 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id t184so1246221pfd.0 for ; Wed, 13 Oct 2021 03:56:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yw+NaHmS2OviUEGIWWfNtsmzD5nYySB6AIlogP5a/cQ=; b=NHZlgl1GO0cd+Qmy2aII0kIzz8l5igxZ/oBSCb8LIlRTi4oglpg2DHBYrw7iJd6wfj uHiagAUBP7IZCEQPqhL/EfyQtq5igzIaa3ULO8k4gCzyxoQ4dALhJ95/48z2Cyx14+WQ m0GA1f670VwFJju8RMabpf7IKbitlkrWmQgifeFViFFK7MtPKD2gFeZEeUkQOF4GEGGQ DyVWW1B2tlkKzr8Rtoj+04ThkYU95WXfjm1fVVtD9Obw+d/cFcpq/TguTIX1G1jGBRFn WSH7GQ981etr9pv3klieXiMzITqXlpISAleuWF/fTMoP9C3t1bV8i9FMJ/nJTQ5ya/Dj 9scw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yw+NaHmS2OviUEGIWWfNtsmzD5nYySB6AIlogP5a/cQ=; b=NliFhEe6DkYRhmqmvffSFm8r0W8qrqaXYdww2BadthQlpmFCgnF9n7X66nbVNco3XH H30DjQzw0ntQ8Ro766mu+pIzhEnIX2UZrogRXEadRxvdQC4nU/TTzNNcDBfawg6z8AK0 KrNGHyEgstZMpumtLP8ehb3pHfDayiKAlWVSHcBr9zpQdpIX/PSvFbqI5vAXNfREvQjS y10Hr+Qxnpc+gjXknlA8bzQtzmXoPY2Jv9Nea//w4fi4OL73V3YkU3USD+JnD54RrkMO djYUW/5aPdDBfQXC9LB6/rmy41Xuak1db5lbFGMppu4Z5ATYpwL+UN9bTpxraIScdE6v xVZQ== X-Gm-Message-State: AOAM531SaxyjAAf4tEOinRZPDn9YUPDjlrivpXgomysGnW8dh9Wz6p9+ VHtDgMJ/VOlAFet4BT3liBsgVA== X-Received: by 2002:a63:f313:: with SMTP id l19mr27316800pgh.40.1634122588092; Wed, 13 Oct 2021 03:56:28 -0700 (PDT) Received: from localhost.name ([122.161.48.68]) by smtp.gmail.com with ESMTPSA id b13sm6155351pjl.15.2021.10.13.03.56.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Oct 2021 03:56:27 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org Cc: bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, agross@kernel.org, herbert@gondor.apana.org.au, davem@davemloft.net, Thara Gopinath , Bjorn Andersson , Rob Herring Subject: [PATCH v4 07/20] dt-bindings: qcom-qce: Convert bindings to yaml Date: Wed, 13 Oct 2021 16:25:28 +0530 Message-Id: <20211013105541.68045-8-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211013105541.68045-1-bhupesh.sharma@linaro.org> References: <20211013105541.68045-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Convert Qualcomm QCE crypto devicetree binding to YAML. Cc: Thara Gopinath Cc: Bjorn Andersson Reviewed-by: Rob Herring Signed-off-by: Bhupesh Sharma --- .../devicetree/bindings/crypto/qcom-qce.yaml | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/crypto/qcom-qce.yaml diff --git a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml new file mode 100644 index 000000000000..b7ae873dc943 --- /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 tx dma channel. + - description: DMA specifiers for rx 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"; + }; -- 2.31.1