From patchwork Thu Oct 10 18:23:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 175797 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp2659278ill; Thu, 10 Oct 2019 11:24:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqyi6hI5ZqHuUUVYeTnLzys+lXE2fejJ3tpHagpTiXpUKTMxO6XC6dZzObQ8v5tHc9lLBqcU X-Received: by 2002:aa7:dd18:: with SMTP id i24mr9748287edv.239.1570731842729; Thu, 10 Oct 2019 11:24:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570731842; cv=none; d=google.com; s=arc-20160816; b=B69T/wteEpyghGsW+Y4MOx4ORMrqvsHDMAi2KhAo2vUvZcuYecTTRNA5+cMN+VT5XJ toJJS5VN2q3Ko6zem6nPzI+Aifj7BkQ2NilIRrujKgMsGOwgxloom5MkQAdUK4EMHjwL enyW9RkCfMCyOSmjniv9c1AwK7oY5QfGkQg0BMEhSBpMwxQ13r8G1KzWxDYsSgsrvq9Q EBtoqB0SFVEwqQrazsJoGK4Qms3biNeX/rWzq7GlGjkay8fr3IQ3ZtRccb+JkItHuSC/ 0tQqd326nIMvmeOtYS3tIaGm+Je5WstTtAHeyLjNDKpo7niROLYPNuO2R1H1Dc6p9Pao WQNg== 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=1FMzJIIyw4z/wqW7e42wz5NIx7jF256+N5mF2lPv9Ug=; b=vG1hQTj2GVc85nlR0aWISzI1n24ZZBjrh6Bnxl/xH7C+3K+2di89mJuULHWq4hXMxr bhMIE3s4oKTlFVJtJQ65DEFYo30klhNIDvEuSo+uOls3dAn88sUi+Ez9+rI2v4Z+yeZN g6g2s3zVgQL1wJSMQzrTRBfhGxYgcOett/4nHtcB5IU7ChrVdoD729urervDnOlPthZC mos90T/8l8vOxSdP/wOU1KoWGV1xJN1yvvmEk+rBUmu0z0p4tUu4HykQVR0eXahXgA3T sPauZDg7pEIteKdAFF37esx8KG6pOnIk6KoIyi+9cv6qRTYiTedeeWNKcOBeDTADDVVl JwCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="QpEo/GnR"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 q22si3516250eja.178.2019.10.10.11.24.02; Thu, 10 Oct 2019 11:24:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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="QpEo/GnR"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1726927AbfJJSYA (ORCPT + 22 others); Thu, 10 Oct 2019 14:24:00 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:54908 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726551AbfJJSX6 (ORCPT ); Thu, 10 Oct 2019 14:23:58 -0400 Received: by mail-wm1-f66.google.com with SMTP id p7so7954723wmp.4; Thu, 10 Oct 2019 11:23:57 -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=1FMzJIIyw4z/wqW7e42wz5NIx7jF256+N5mF2lPv9Ug=; b=QpEo/GnRkai8NNa+QWMvtXcFWa9Q5DycFBkMC2Q6z9IiLbjtRRyHUqnaBC/tSD75gB d2+Iduaj3ZEjNsSKxotbCsnYWW4fOSeBPN7r3WHswD1hjmec8Zn9Tb6q9LRscBM6SCDF E2rtfziCQUXEImJpkOuCR3+xCNBqneLI14f0J6dsphh70OKJ/fzTDEYwmJ9Ui5WA4qRQ f22sTQQxsvi0UTixfjwThSgwTLlFSICR8M9WLTkur2rIBxRZJ/XpxrDvRFfBtJpWMVJ4 7x36pfBMn95Od51H26thWUdZUNgEl4+EZYpTrQmiggEH58bF4MGMdLDtdk0TEx0S6PCW BROg== 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=1FMzJIIyw4z/wqW7e42wz5NIx7jF256+N5mF2lPv9Ug=; b=E8C/vU7RPKTolSvaQLTwD4WFLmt5fWqc6MAU4aDcctG1IZLJbDZg0oMHMo+G93xz2R LzFRNKbNvcaoME5SkohTAWUOO/56U7otoeqIehYsbMBbMHFsjyFEbjFWv4ZU4gk90CLC weB8MLSjUscw87Iq6YCvlJgo01qi9oVjFT64Iw9fYDtd1vZyJvjTYwpDd0hox5wXstIH xoo3JmAza2H00YvOxP0oRzycc2SEPq2p18iPrD7cD8tUR5S/ln29CNXkENxf1TiY1Q+D e3TB/8j6zyvMf2b1sFm9VSxi/He+i69fwAFr9pB82KdIGUBG7OUQj/Gp4eMI0iFqCOle 7OXQ== X-Gm-Message-State: APjAAAW7uq/KU4rjAEcpAJxy7vzu03PoXi+ZoRIeKiRYThhpbcVIT9C6 d/aEdLMVa/eW30KyRtDLgBM= X-Received: by 2002:a7b:ce07:: with SMTP id m7mr8893122wmc.117.1570731836816; Thu, 10 Oct 2019 11:23:56 -0700 (PDT) Received: from Red.localdomain ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id y186sm11367664wmb.41.2019.10.10.11.23.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Oct 2019 11:23:55 -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 Subject: [PATCH v3 03/11] dt-bindings: crypto: Add DT bindings documentation for sun8i-ce Crypto Engine Date: Thu, 10 Oct 2019 20:23:20 +0200 Message-Id: <20191010182328.15826-4-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191010182328.15826-1-clabbe.montjoie@gmail.com> References: <20191010182328.15826-1-clabbe.montjoie@gmail.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds documentation for Device-Tree bindings for the Crypto Engine cryptographic accelerator driver. Signed-off-by: Corentin Labbe --- .../bindings/crypto/allwinner,sun8i-ce.yaml | 92 +++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 Documentation/devicetree/bindings/crypto/allwinner,sun8i-ce.yaml -- 2.21.0 Reviewed-by: Rob Herring 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..a5c8f90d267f --- /dev/null +++ b/Documentation/devicetree/bindings/crypto/allwinner,sun8i-ce.yaml @@ -0,0 +1,92 @@ +# 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 + + reset-names: + const: bus + +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>; + reset-names = "bus"; + }; +