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: 11193569 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E39E21390 for ; Wed, 16 Oct 2019 15:02:35 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 693AB20640 for ; Wed, 16 Oct 2019 15:02:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="J6qHhWjl"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PLQtZSn+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 693AB20640 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2g1lTTb63SVUET1olJlyDVxcAkQO6O/7x9ogWD8OruY=; b=J6qHhWjlt0ibAb 65xesfMal0Xr6D2lBDlCg+VYLhEir9+dhN20+IQjcVC9C8xJdcdYzQnV7v4gLt4soGkyxujzxVfkW wk5KwRE4R7ToSWFs5kSk8T+Vfnjg8JbdoZw5OLd660PfQY3IsHTEqMeI9zC1xUS7gKSSJupi3JGms iy0U5glF/kc/rcjMJfDdg9/YBcRkQ2/rS6LgybTfVQByT90WrDqmUVNTlV/Md6S9zZ7ovp9cwyh1s 8sOhX9b133TEn04y47B0jxBrbDQx48ceJzZYqh/czm4eU8hwULtKrAqY5XljRFSSZOgH4tQqazrAW CeeLskVtYp3lu9O8YC7Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iKkob-0000gG-9u; Wed, 16 Oct 2019 15:02:17 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iKko1-00006q-Kf for linux-arm-kernel@lists.infradead.org; Wed, 16 Oct 2019 15:01:43 +0000 Received: by mail-wm1-x341.google.com with SMTP id 5so3313369wmg.0 for ; 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=cCKGHGT3BFSd/l8UaNBCwSdSgkhV6RdgXppXGRZrRV8GtNLWGVamfEvb8ys7s9Cyz7 k5wheAslXHJ5sTdepJEj3of83mXkbRUtMZ98mrRTd5bjpnrYvvAhGqQbX5+SxbzsUiXo h6HlqGG1yVHPgvo1G3tYjB8vvUxWOpoyNLtDNMS8F+jlBRQNKkntS4vXusBRoIKLKxcG fE46KwHljy5Yq8gSZcIGrDrFTkcdENrWi2qTW0oKW0fdABbFEELcQeaAjN/oTpm1ElWc KbR4O67ThvHP6F0TZnyu1cyH6Ko/0vDbktf1ZvE0qRRET+uIC5gAuKFJ6qG7v/RTj1lZ tNLg== X-Gm-Message-State: APjAAAU+p6tPV/NMIBNTThO61Fapj/SUxS9sDi5O4o1u49vVj8bVNkc2 At0Z/8JJA04kB+Gs/fqrcVY= X-Google-Smtp-Source: APXvYqyBZ1qB/ltT/hAuRNTYrYAOkdPTdDbDs8wpfV+2g9pzG0NhOcjvxsBCBCwOCBqByu6ihz8VSw== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191016_080141_814419_5DD7924F X-CRM114-Status: GOOD ( 12.04 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:341 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (clabbe.montjoie[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Rob Herring , linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Corentin Labbe , linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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 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>; + }; +