From patchwork Fri Sep 6 18:45:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 173273 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp1106327ilq; Fri, 6 Sep 2019 11:46:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqyd0dRHCLvZV1RZlCP/z1jcOUvcG0p/0YNLq6LvqOfWphgCfHu+2epDrhCGcpJnTPduyZjU X-Received: by 2002:a17:902:36a:: with SMTP id 97mr10197008pld.75.1567795572478; Fri, 06 Sep 2019 11:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567795572; cv=none; d=google.com; s=arc-20160816; b=o5qKJtA1u3OQRxYy9518DRn19gvi6kneNZbPCehhmAfGK5rIRtQmqdrSzl9etF6msm z2cPulzJ9oRAIBvuT5fR3VCeRw/lBiO8PVffOnI6h+Jl2LDlwevn9XzQBdU9JCCIlwf9 aYA9BB4OQXgHNzJB9j/whhK7iskq04bFQu/v//ng4nhoG9gw9vKkkpzchkSp0IlHRbMA FYohNTqwEeZntDCsmLpHfi4cqyJs1YJlpWo6gT8WnopoTSZDH/DShFnJlgoHqG/vkBri Zj9R2zftPe3R10M0qp3y2j+eeRn/p3xujff+B+9CKGr1cXiGsTScCVejIRQ4qU3DsP1g +X4g== 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=8335uoZd+LT0PenZntX1wYZZQovMh2HBfgED4ylV1H8=; b=kZ0fp/JMQgj9oo1+eDNwUXxUcCU0+dEyn01IZzAg0+YtDQU8A9uhUjEjuit/dLdiC7 kbWI9/I2y+veuwamLrpXznm6El45uvm3aV6etxoNFXqr7tf/gHVyWb23Kvj2iiAojOo/ bOEGuS1PBNOFjFnfZksOH6jwvWSm/571Tf/e1cgzVYvf30+qzTnGRQxVMv9mRZtJNDCp EHsrroKEzWxjtc4P/q9fq4ECx+DjsI7hGRpbsOiW/534wInEw49CSDa9wJblZ5CLrA/2 QghxgPMuRQNIwxCwMV8K5pMmep5se+9L7TQcaQMWlsRh/EgT4TeIZKblgOWjbTOQ7Shx Rabw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BgPusha7; 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 ck3si1615982pjb.50.2019.09.06.11.46.12; Fri, 06 Sep 2019 11:46:12 -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=BgPusha7; 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 S2391458AbfIFSqL (ORCPT + 3 others); Fri, 6 Sep 2019 14:46:11 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:54470 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2395370AbfIFSqK (ORCPT ); Fri, 6 Sep 2019 14:46:10 -0400 Received: by mail-wm1-f66.google.com with SMTP id k2so7494917wmj.4; Fri, 06 Sep 2019 11:46:08 -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=8335uoZd+LT0PenZntX1wYZZQovMh2HBfgED4ylV1H8=; b=BgPusha78ZW/cPNKiDFgfhvWxRZaVKbdmGqlpkN9MmEUQktGlSSLP85gzEKKdcG+xP R6H7X1DYibgG0M62pnrgldIQaGA9UJlmG1nHfiBS7ry8k+ilpUVzDFCKM7f5AIqVOuDy ZiZCX7vKtwcszA3pOF0unJtONhlGfLebCfAvwIj6+9rIhBgPhqLgg9W9LZFM/4Qg7lSg ytKiCyPelDioNz+j2NNhKt5opOQ2wDEY5m1A4sFOYfOgtBt0yRMq4mEmhha4Qai0b2Gh xoe+ogn4tPmcf7PZAc6KAg3InfAZuKTD5C2YmGU3Hpp3EMhFuZ4r/fCU8b9iL6RRjXfx Jxtw== 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=8335uoZd+LT0PenZntX1wYZZQovMh2HBfgED4ylV1H8=; b=AMyWvSPg4tWEN9QPPgpC+jdEqBQS+YD6UP8FeqW0QCZ0rdMeWftbeK/KPJtITKqeD0 NwpCLkcrDy7vHGwrzsKJw8cvXsUj68zdoN9hlF238ZpC16Ic4+78ejpq5pBQCcZ246A0 yNZDM15xhZIJJoEU9rMYa+yOd1O1RpXUXioqNkWIlr3K0Ljc5zafIVd9hD3jT+xmu37o 8hPZy6Cphjxg0rxqC7e7rll+IAU0LGsxMlSajoBxYAaGXo6mK8tOsrZ8wqm3pQAl2nIr xRZj5Ck5fQ+ct+YYgt+OzOxOrMKyX4qfuC7mOiBuHL37lk8y+zAABAq9H1aB5tvX4biK KSQg== X-Gm-Message-State: APjAAAWC7sjjq8EL/omPfjYECTe19mdXuvhHvquUqvmNgZ3hBWh5xYAc 7zumA49uNssbcsh4WChhGAA= X-Received: by 2002:a7b:cb9a:: with SMTP id m26mr5027714wmi.57.1567795567864; Fri, 06 Sep 2019 11:46:07 -0700 (PDT) Received: from Red.localdomain ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id j1sm8677577wrg.24.2019.09.06.11.46.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Sep 2019 11:46:07 -0700 (PDT) From: Corentin Labbe To: 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 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 3/9] dt-bindings: crypto: Add DT bindings documentation for sun8i-ce Crypto Engine Date: Fri, 6 Sep 2019 20:45:45 +0200 Message-Id: <20190906184551.17858-4-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190906184551.17858-1-clabbe.montjoie@gmail.com> References: <20190906184551.17858-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. Signed-off-by: Corentin Labbe --- .../bindings/crypto/allwinner,sun8i-ce.yaml | 84 +++++++++++++++++++ 1 file changed, 84 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..bd8ccedd6059 --- /dev/null +++ b/Documentation/devicetree/bindings/crypto/allwinner,sun8i-ce.yaml @@ -0,0 +1,84 @@ +# 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: + oneOf: + - const: allwinner,sun8i-h3-crypto + - const: allwinner,sun8i-r40-crypto + - const: allwinner,sun50i-a64-crypto + - const: allwinner,sun50i-h5-crypto + - const: allwinner,sun50i-h6-crypto + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +if: + properties: + compatible: + contains: + const: allwinner,sun50i-h6-crypto +then: + clocks: + items: + - description: Bus clock + - description: Module clock + - description: MBus clock + + clock-names: + items: + - const: ahb + - const: mod + - const: mbus +else: + clocks: + items: + - description: Bus clock + - description: Module clock + + clock-names: + items: + - const: ahb + - const: mod + + resets: + maxItems: 1 + + reset-names: + const: ahb + + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +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 = "ahb", "mod"; + resets = <&ccu RST_BUS_CE>; + reset-names = "ahb"; + }; +