Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp528146pxj; Fri, 11 Jun 2021 05:21:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHQuaX8/qh1DBSlC2CbfgY0TeGLJv6mjyBbUNxKWnndkoZo4YDW9+bUTQbSL/Ghxn/X/eC X-Received: by 2002:aa7:ce86:: with SMTP id y6mr3374122edv.309.1623414072174; Fri, 11 Jun 2021 05:21:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623414072; cv=none; d=google.com; s=arc-20160816; b=FVanXkJkvDBwA+sSKoz0pXP1wuVeU3UpaFdI9IqMkHFcqI+eos2769x1KszRufYZ2d cbttT7S+kZVCRd1ZTouEgwYFleg4a1eGY7/DIxACVQpnUnnU23wqKYXPIiyWzc7SVJGc pD6ULNm3T1eufbzmVNa2jcMF5EXrV0W15YxTD9RwjAcEvsMm191uhcJ6e2jmEaTmC36u CKl51WOy4tLvlAkD8l4RgoeDM1lhFXyUmqzyJ2L22qKT+W5KzIsK602N7D2tGTOxxQoM 4MOEChHQUhMGo+AyhwwaaJWlJoW81LCCUh50lrgZesNJ812pWbtWAtGCzxlWZTziQ0+p g2OA== 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 :message-id:date:subject:cc:to:from; bh=KO88evW59B8tEZPSYiiNgdve4XOTUm7Xhp/+7JdlFTQ=; b=aCq2cYaSYMSYUSUlRogg61nVyZ0LjY484DCGbuHn/JuNrcbivmAZfnMQ6Pt1kjZ+xq YLf6yTYRxOi8NTGZrzbHRhxPaKqHGS0vm7sSIAx+i9OJNdj4RSg2Wl62De55WccoJPnH MB1BIua1BJvXQEIlPX0JCfsgT/Q83kJt7uInEj8q4VTv+y7M+xo5pIiRs+YtIcFSicj5 hqzfSIJ1GRymXYCVPRI54QrwhQdDhdinQ8JluETxBg2M/ZgfvFpcPbi7uybGDj0MbE84 /7FkpZNZ6gxrxNL3mrDlYira1TxWeU5WJn17px8x441T7UoQBtY3dBe575e9uw6OTosv XEhw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yh23si4430081ejb.636.2021.06.11.05.20.38; Fri, 11 Jun 2021 05:21:12 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231420AbhFKMWW (ORCPT + 99 others); Fri, 11 Jun 2021 08:22:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229785AbhFKMWV (ORCPT ); Fri, 11 Jun 2021 08:22:21 -0400 Received: from michel.telenet-ops.be (michel.telenet-ops.be [IPv6:2a02:1800:110:4::f00:18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF5A4C061574 for ; Fri, 11 Jun 2021 05:20:23 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:2411:a261:8fe2:b47f]) by michel.telenet-ops.be with bizsmtp id FoLL2500425eH3q06oLLgv; Fri, 11 Jun 2021 14:20:21 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1lrg95-00FfOh-Lm; Fri, 11 Jun 2021 14:20:19 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1lrg94-00Cgtb-Tc; Fri, 11 Jun 2021 14:20:18 +0200 From: Geert Uytterhoeven To: Herbert Xu , "David S . Miller" , Rob Herring , Gilad Ben-Yossef Cc: linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] dt-bindings: crypto: ccree: Convert to json-schema Date: Fri, 11 Jun 2021 14:20:17 +0200 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Convert the Arm TrustZone CryptoCell cryptographic engine Device Tree binding documentation to json-schema. Document missing properties. Update the example to match reality. Signed-off-by: Geert Uytterhoeven --- .../bindings/crypto/arm,cryptocell.yaml | 53 +++++++++++++++++++ .../bindings/crypto/arm-cryptocell.txt | 25 --------- 2 files changed, 53 insertions(+), 25 deletions(-) create mode 100644 Documentation/devicetree/bindings/crypto/arm,cryptocell.yaml delete mode 100644 Documentation/devicetree/bindings/crypto/arm-cryptocell.txt diff --git a/Documentation/devicetree/bindings/crypto/arm,cryptocell.yaml b/Documentation/devicetree/bindings/crypto/arm,cryptocell.yaml new file mode 100644 index 0000000000000000..9c97874a6dbd1db9 --- /dev/null +++ b/Documentation/devicetree/bindings/crypto/arm,cryptocell.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/crypto/arm,cryptocell.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Arm TrustZone CryptoCell cryptographic engine + +maintainers: + - Gilad Ben-Yossef + +properties: + compatible: + enum: + - arm,cryptocell-713-ree + - arm,cryptocell-703-ree + - arm,cryptocell-712-ree + - arm,cryptocell-710-ree + - arm,cryptocell-630p-ree + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + + dma-coherent: true + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + + arm_cc712: crypto@80000000 { + compatible = "arm,cryptocell-712-ree"; + reg = <0x80000000 0x10000>; + interrupts = ; + }; diff --git a/Documentation/devicetree/bindings/crypto/arm-cryptocell.txt b/Documentation/devicetree/bindings/crypto/arm-cryptocell.txt deleted file mode 100644 index 6130e6eb4af89135..0000000000000000 --- a/Documentation/devicetree/bindings/crypto/arm-cryptocell.txt +++ /dev/null @@ -1,25 +0,0 @@ -Arm TrustZone CryptoCell cryptographic engine - -Required properties: -- compatible: Should be one of - - "arm,cryptocell-713-ree" - "arm,cryptocell-703-ree" - "arm,cryptocell-712-ree" - "arm,cryptocell-710-ree" - "arm,cryptocell-630p-ree" -- reg: Base physical address of the engine and length of memory mapped region. -- interrupts: Interrupt number for the device. - -Optional properties: -- clocks: Reference to the crypto engine clock. -- dma-coherent: Present if dma operations are coherent. - -Examples: - - arm_cc712: crypto@80000000 { - compatible = "arm,cryptocell-712-ree"; - interrupt-parent = <&intc>; - interrupts = < 0 30 4 >; - reg = < 0x80000000 0x10000 >; - - }; -- 2.25.1