Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp784484pxj; Thu, 3 Jun 2021 20:43:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOuzpW3XYl+7fHe3K2/kgv+Raveje7qzXiJs0tliSp7bbEuiqGujLd4mhjE08RNUNYn61R X-Received: by 2002:aa7:cb02:: with SMTP id s2mr2482426edt.67.1622778233724; Thu, 03 Jun 2021 20:43:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622778233; cv=none; d=google.com; s=arc-20160816; b=L5cRVtZ31GwbKYHSXq81Se2IAzISsCz/6Jr9NDg15XmCXcGbNBLhsSdxn/6vBZV0iV hg0trGSxrVTGkahNVi3VuO6CbGgNrRtmJu0pFOIS/Ma6I/HwiUGGm1yOTzyvjSJingSd F079sYr/et51JKtJwXgqoVf6UO00pSyZMRonM5LRObVu7RmlNOKKeJ+8zP7UQD0Q7EY3 3UXcuHvB1OGBfSCoMb3Rsdau54ZY3sYIHlZ1sI5HwQU6CrjrMezg9TmGuA4vl0xhihwd +2wTBhv0LlT4XdiWpCLhBEBLmtd4YnghNU2Kw7wli1C5852jk+ELqColXpeD5LZFK4pY +iew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=qDKqotNOGIxidneZCpCOFm1Xj7iQGtbVhRVMvdBpFyw=; b=erm7RGuxNoOJt2AcSBsrvwP7CmXIch+zhF2XmdJPZaKBmweWABvZDIOy0Xo/9wYO4Y aByW8ZJtFZER2MFT3COTqSShOo3DWHos9GnA9PNM7ZctGAjslOH1zyT18O0LFgv25Km8 iuq11zrPp2VFFjXrZXTFXf8d/VfLLMW17YPLc31SlOGg5k6qNDmDLcnIVmrcCEljsK3t Z1v51KRGOL2r0nO+LEJcC4ewTRItSDdQAiPobhwQYED35qPA1I7LUCgZbrqi044oBh1E b7kbZHuRaeFDf1tX+uKWSiIUY9TeKgkn0+Rdz5uswvSPrpa1mGeQ38A2TUHWA1gx9I2O wU9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FrW4olx7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 cm8si3703174edb.480.2021.06.03.20.43.30; Thu, 03 Jun 2021 20:43:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=FrW4olx7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S229833AbhFDDnu (ORCPT + 99 others); Thu, 3 Jun 2021 23:43:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229794AbhFDDnt (ORCPT ); Thu, 3 Jun 2021 23:43:49 -0400 Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFE47C061763 for ; Thu, 3 Jun 2021 20:41:54 -0700 (PDT) Received: by mail-ot1-x32e.google.com with SMTP id 5-20020a9d01050000b02903c700c45721so6795843otu.6 for ; Thu, 03 Jun 2021 20:41:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qDKqotNOGIxidneZCpCOFm1Xj7iQGtbVhRVMvdBpFyw=; b=FrW4olx7vH1AWpZD4jiByfMBDwVT9dg4znQeN7xlFnmHlgwgZfuneJl36K8INWvP7S RnDudy0d7iVbU2l1xvdenvPuV4HuItSIRlA7CG2/qt4ye3I/DpVYkTSoy2/+I6DD7GoF HS2ctFuqsS6vAHeld+orfNCC61pfw9MV9kCV6agFhqpAUXNZB8vv2Rw0vD2m/0t+VJnA InK5jZr0vsAfHSeonW30O07YgBryNQ/HtsPAipgo8nzhzJYV6MdIlHkQF23DZdseVV42 x0dJycPdpgaJJ7v4skSAm5C4Y4mGWs5ZxHIjZVvri/joAxcFeY75eTIS5mcCbIGk1BLX c5HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qDKqotNOGIxidneZCpCOFm1Xj7iQGtbVhRVMvdBpFyw=; b=e7wpsXopZDfT65ZHY6wuUeASiZ6VljrkRpu+/t1BEK0eN6/5tVakkzJqXh+YSDyfNF n8NKzvHnsbmNc94iaPP9mGAuuDahqKiuPBfyKiRM2FAs3aqPzVcCXBWsTEEyTNbNK1s1 0pu2CRe5VqQnhq6Wl0WrOZ8zB2oBez4O/YoemQmw5HhUYBuC/qV54HiiUv8EC27vgxu3 MfZbuf2q/tUZNbgdhiWUlbLcXFXgu5gnQC2AoR2qvmHooFdB6IqC2IBCgAnyi162sDpj NfR4icHYtps8nCNX+uMW387+rScohscWy0E6DCuhnjHHIsg9LT+U8n2wPivrpZYz4fJd FpqQ== X-Gm-Message-State: AOAM532TjtpPKueTdWXLxSSM32Iale8jMgUJxTf8Wz2LQ2ti+W6xwUVV p7YVqFskWujNoBAfdebO+CRAzBrIne7qsQaoV/BKYQ== X-Received: by 2002:a9d:4f15:: with SMTP id d21mr2107757otl.155.1622778112475; Thu, 03 Jun 2021 20:41:52 -0700 (PDT) MIME-Version: 1.0 References: <20210519143700.27392-1-bhupesh.sharma@linaro.org> <20210519143700.27392-5-bhupesh.sharma@linaro.org> <20210521014547.GA2469643@robh.at.kernel.org> In-Reply-To: <20210521014547.GA2469643@robh.at.kernel.org> From: Bhupesh Sharma Date: Fri, 4 Jun 2021 09:11:41 +0530 Message-ID: Subject: Re: [PATCH v3 04/17] dt-bindings: qcom-qce: Convert bindings to yaml To: Rob Herring Cc: linux-arm-msm@vger.kernel.org, Thara Gopinath , Bjorn Andersson , Andy Gross , Herbert Xu , "David S . Miller" , Stephen Boyd , Michael Turquette , Vinod Koul , dmaengine@vger.kernel.org, linux-clk@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bhupesh.linux@gmail.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On Fri, 21 May 2021 at 07:15, Rob Herring wrote: > > On Wed, May 19, 2021 at 08:06:47PM +0530, Bhupesh Sharma wrote: > > Convert Qualcomm QCE crypto devicetree binding to YAML. > > > > Cc: Thara Gopinath > > Cc: Bjorn Andersson > > Cc: Rob Herring > > Cc: Andy Gross > > Cc: Herbert Xu > > Cc: David S. Miller > > Cc: Stephen Boyd > > Cc: Michael Turquette > > Cc: Vinod Koul > > Cc: dmaengine@vger.kernel.org > > Cc: linux-clk@vger.kernel.org > > Cc: linux-crypto@vger.kernel.org > > Cc: devicetree@vger.kernel.org > > Cc: linux-kernel@vger.kernel.org > > Cc: bhupesh.linux@gmail.com > > Signed-off-by: Bhupesh Sharma > > --- > > .../devicetree/bindings/crypto/qcom-qce.txt | 25 ------- > > .../devicetree/bindings/crypto/qcom-qce.yaml | 69 +++++++++++++++++++ > > 2 files changed, 69 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..a691cd08f372 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml > > @@ -0,0 +1,69 @@ > > +# 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 > > + description: | > > + Specifies base physical address and size of the registers map. > > Yep, that's every 'reg'. Drop. > > With that dropped, > > Reviewed-by: Rob Herring Ok, I will drop this in v4. Thanks, Bhupesh > > + > > + 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 > >