From patchwork Wed Oct 16 15:01:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 176485 Delivered-To: patch@linaro.org Received: by 2002:ac9:3c86:0:0:0:0:0 with SMTP id w6csp7282267ocf; Wed, 16 Oct 2019 08:01:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqyaTxnb+WeR448jXLtCbvz7vm0i9D/fFlSWPk6juQVS3CiS2JNI0+Iz04LH4AzyN/FRRVwQ X-Received: by 2002:a17:906:3488:: with SMTP id g8mr39513049ejb.162.1571238105280; Wed, 16 Oct 2019 08:01:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571238105; cv=none; d=google.com; s=arc-20160816; b=0ln+GVSjDmfTGwuVNGG+wLfUn2nDDhJrsR0YR7ur5Ao7BZ56Ephkz7HRBzhSN67KDp uTlCR9CkJU3T6R1M1EFcUL3Yk0f+NDmyICp16GqtP2WQ9pTaoVnTnagSLDnL82rD6WEo /GLi47WN1mSTIWSI9+n5DH7DyDfK8altrCuFF21ATWe7PXFjymW4IYZ2pDBe2N06iuqS U/XzqVyHDl66ZQEwiCz8HsqhXGkWmMWR0XZkOQjaBhCDNq6n33UMWBKE6aGTrwWZ+LA4 GQBi/TPp8ysqqcYzkRYdfK+JW4G1YWYBzG9nevxG9xaQmCPOtgzLPIYhBWRs3IxwFWv1 HPcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=XSMaBnNcLIC/2A/YQA0ncniU4wnlx2r73tbiVGv77iU=; b=hd8DnbfuGbUIAR6bsM+GvriTzJH8LG8vSQEQgAbA2n+9LdH3rWgh3hS1MyeLkZTBAD l2dGeu5+qyxh9GxExZlM48JiXFGobAJhcqCV3I9u/VPVTfwSFAKFArYbZUReJxCnPV3Z hdLMx7lgSYab6rhS+lZ/JqKOTmwSqh5YAftopErXwHT/pihPONbFnK9rbxLs/W+gztLu +2O7amkDokyCOw4GjYhuVJIwLPdTRFLIOJh4foWVNqiDwGNIZ3Wuct7o2wDesAzcniRD Qz6b6gP2andQAHNpWI6Rlwx6F4rzVXOInzDaG2BkqnrjZAQ2noOs+/qQAbG0fpRmXcPM ShNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PLQtZSn+; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l8si15526466ejc.432.2019.10.16.08.01.45; Wed, 16 Oct 2019 08:01:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PLQtZSn+; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392396AbfJPPBo (ORCPT + 3 others); Wed, 16 Oct 2019 11:01:44 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:54995 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392381AbfJPPBn (ORCPT ); Wed, 16 Oct 2019 11:01:43 -0400 Received: by mail-wm1-f66.google.com with SMTP id p7so3287349wmp.4; Wed, 16 Oct 2019 08:01:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XSMaBnNcLIC/2A/YQA0ncniU4wnlx2r73tbiVGv77iU=; b=PLQtZSn+yUCemUGZyaK473m9JcxsoRBCHnK8mKz/zRj0tErRYuBh0OKyDqaROR1GC5 Mh6xh9x9uLzTwwGKktHHM0dZjuzSU+KBx4vtVd2mze3+9dwxpgKLTF/PXr8PCr0KMoxX yHSxmJhCqFcCVaNaG+WSCiBOfADh+tm5sixlRBTne9F8KHURtnekWoDdXMbty/NyjqQP +lehwak7dZxc9G+e327uYJdunwZ0TzBBxiKqMTBZF+0/P4y4m3DP/8I8Kzl+8G/dWGN0 4BwZu5zF9V1PNhmrLFDwwz1WbevubQhpfziefaGjaTNOIg9eVVWcpLOh6tfi/tPGuwXw +heA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XSMaBnNcLIC/2A/YQA0ncniU4wnlx2r73tbiVGv77iU=; b=pmHuh73XfgWUnG/qs0hIQLGPekmzGl8ME20C3hW6Tc3pLqJvf0gRJdrKrwU/a/zlWV WlW0lMIKgtEw1FaOwdUZvMNgyA2JGnbGBxpCPKnZHOkoz1Lt9uMZgohd3BJ/ivF1mor6 mzq4p8Vlk71i9FBvfvwLKrWn3p++QDOwNlG7+Jm4xmzbOzv85cswdV0qxzHkFaOW/PWf Zj/gNetK0xApOYcrgGtr1xKI04HZCiKkG8vvSG/00d97gdH+53k3YGDifkeH2HFSO/lz y2i3KHROkDrwZnl1HVdWwfMyz9YdgGpFg/lhtG5MQMUlup3vpcs1i6vUg/NHpR6uTnlX lb4g== X-Gm-Message-State: APjAAAUizW7zSSv24DQ1ASNOXsqUHce9UePnqLd/aHH2GsY5XkzePPLz SsrKVaSmiaOSctyAVX0TQDU= X-Received: by 2002:a05:600c:c1:: with SMTP id u1mr3437767wmm.87.1571238100141; Wed, 16 Oct 2019 08:01:40 -0700 (PDT) Received: from Red.localdomain ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id r18sm3215437wme.48.2019.10.16.08.01.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2019 08:01:39 -0700 (PDT) From: Corentin Labbe To: catalin.marinas@arm.com, davem@davemloft.net, herbert@gondor.apana.org.au, linux@armlinux.org.uk, mark.rutland@arm.com, mripard@kernel.org, robh+dt@kernel.org, wens@csie.org, will@kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Corentin Labbe , Rob Herring Subject: [PATCH v5 03/11] dt-bindings: crypto: Add DT bindings documentation for sun8i-ce Crypto Engine Date: Wed, 16 Oct 2019 17:01:23 +0200 Message-Id: <20191016150131.15430-4-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191016150131.15430-1-clabbe.montjoie@gmail.com> References: <20191016150131.15430-1-clabbe.montjoie@gmail.com> MIME-Version: 1.0 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org This patch adds documentation for Device-Tree bindings for the Crypto Engine cryptographic accelerator driver. Reviewed-by: Rob Herring Signed-off-by: Corentin Labbe --- .../bindings/crypto/allwinner,sun8i-ce.yaml | 88 +++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 Documentation/devicetree/bindings/crypto/allwinner,sun8i-ce.yaml -- 2.21.0 diff --git a/Documentation/devicetree/bindings/crypto/allwinner,sun8i-ce.yaml b/Documentation/devicetree/bindings/crypto/allwinner,sun8i-ce.yaml new file mode 100644 index 000000000000..2c459b8c76ff --- /dev/null +++ b/Documentation/devicetree/bindings/crypto/allwinner,sun8i-ce.yaml @@ -0,0 +1,88 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/crypto/allwinner,sun8i-ce.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner Crypto Engine driver + +maintainers: + - Corentin Labbe + +properties: + compatible: + enum: + - allwinner,sun8i-h3-crypto + - allwinner,sun8i-r40-crypto + - allwinner,sun50i-a64-crypto + - allwinner,sun50i-h5-crypto + - allwinner,sun50i-h6-crypto + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: Bus clock + - description: Module clock + - description: MBus clock + minItems: 2 + maxItems: 3 + + clock-names: + items: + - const: bus + - const: mod + - const: ram + minItems: 2 + maxItems: 3 + + resets: + maxItems: 1 + +if: + properties: + compatible: + items: + const: allwinner,sun50i-h6-crypto +then: + properties: + clocks: + minItems: 3 + clock-names: + minItems: 3 +else: + properties: + clocks: + maxItems: 2 + clock-names: + maxItems: 2 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - resets + +additionalProperties: false + +examples: + - | + #include + #include + #include + + crypto: crypto@1c15000 { + compatible = "allwinner,sun8i-h3-crypto"; + reg = <0x01c15000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>; + clock-names = "bus", "mod"; + resets = <&ccu RST_BUS_CE>; + }; +