From patchwork Fri Oct 25 18:51:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 177775 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp4121661ill; Fri, 25 Oct 2019 11:51:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxnh9PXAwftPunKn128ckzAs/Ghdq66zT42K7f6foEVYGTLQN/zukW/nTnntddYT/GIrea7 X-Received: by 2002:a17:906:66d2:: with SMTP id k18mr5087480ejp.100.1572029508933; Fri, 25 Oct 2019 11:51:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572029508; cv=none; d=google.com; s=arc-20160816; b=C5FmLlPEnjPk01Zn4Lmp669HyuLA3l1Kqylt2KIM/Ja2huR7ndFYLTuvhcf/NZYHMi z1I4DJ7WwwYGoDS6sxSqUA5Bgq+99+Cv5n9JQyhhEfGp2xQbMfaLIcOtxvZT2cahQHqh YYEHpKUgRquXBfQQuiehQX1pmQJpvohiq6MzyWaShuAadST5kV8/QjCqH6QHZCpdUVFe iRO4dvDBtVKMj+fPCK3JgdjfPT6QUpN6pWaux1Y2BjbNqH9FuVsC8mMMb8vaeNIaFsoL 23rPO1N2kRhUxjoyUYOlGWtN6m3854Qc41WHlcqhMZW4N3qm66CIkytUOw0d0XyJ9OGK /kIw== 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=CYt7OOCWxMiffTsFLQ4ttpRYBiNr53KKi8gZYEc7rRE=; b=Igr5xMnYQQ6+KvvsztFFXNjMSC43THepHsAMyxpQTkPFP0FhLnBTEjOEvO0sgbclFp 5BdoJh0TfKJE1BJaIpiL40Ih9trJmTYrsWro4VkbdSqNC9ieECZ9mnGZnyLPMWLLT1lv WibMJPjqAE54tO80EMxso9jMnuH8RXzLGHc0Y79gfowAx8g85ehrqPxVJgzyz+1xM5BS nQI6hRePqNZBkCRVpNogDOvY+JSR5vUvVs3riJ2pA/zYNeWGiL/SIAEk1I3uNB6xCz1H Lya7t8auGPhyQxRUGqTr968WGSC4p5QJAARYpMLhZ1wIqBzQXrzKDBxn1G+cvWSpv4pI yjzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aySJ8aeX; 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 c1si1651171ejb.116.2019.10.25.11.51.48; Fri, 25 Oct 2019 11:51:48 -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=aySJ8aeX; 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 S1727812AbfJYSvi (ORCPT + 26 others); Fri, 25 Oct 2019 14:51:38 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:45282 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727344AbfJYSvh (ORCPT ); Fri, 25 Oct 2019 14:51:37 -0400 Received: by mail-wr1-f68.google.com with SMTP id q13so3470899wrs.12; Fri, 25 Oct 2019 11:51:35 -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=CYt7OOCWxMiffTsFLQ4ttpRYBiNr53KKi8gZYEc7rRE=; b=aySJ8aeXoWxWPhcU+I0HG5la8rxAm6aFD9Au5YAv6kFfB35LDbcNRkENPsRoTLf8lj UdDAzp3DZw2hQ3GYVLFzuQcRqnRcfCtcQ4zUBX1yDscrxz+eB2F6p461h4EvRK+ZbP3x oZjxzciRUN/Bqv6/T2aIglqLR4kQOlG/FfQN9gbmfDclKQjDjR0P1HnXAWA7y2hf65wT DTD6mt+idA+3GCzKURVM9wkpGFzmjDWGCrF1jGxI9Y1Fj38XWil5WkRNrS2GITyJ8qPi nWeFVl9YrC/aPwkm9MVvYJiAD6EEDvPOTdxj1LbYhQimpKd0+uOiloh40LFCrjJqd32x Co2A== 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=CYt7OOCWxMiffTsFLQ4ttpRYBiNr53KKi8gZYEc7rRE=; b=mppJeFhF/DIudiLuMQMGCfALORfKyeD5tFuL8Q3FPf37Bwu3GbpdN/xOwzUfl4RrK4 8JmUkhdETEsGbbtmblwmlFPVSR4L4rUzta6rwpYBJbsU3LoR3CiEN8uU32PNLFKsDkol FvzZ2F7PqGX/QMovnOvCphbF9Pp/714QdA7hSMBr1WhodoGV8vCvpq/9vcdKfwEJZOni EAT4I1gRlEm9z7NcvL5rrpPgPc89fxFHkJiOncflIYk+ZmpsMCmL3BR/7L/GTN1I5Szm s/o85+7u2BprUttfeGtH4R9ZOFiN/cS4ejOCcnt3G18VQ0QWRDC5o9w9GmQ00VMfP8f+ TpCg== X-Gm-Message-State: APjAAAW/B+3NUNCubF28B6zuoTS0lbrSquwvYfLBe9nzBxFjPy1w3Sl/ /gFAu+cosyLS7rY9o6DZX+k= X-Received: by 2002:adf:ec90:: with SMTP id z16mr4158431wrn.110.1572029495347; Fri, 25 Oct 2019 11:51:35 -0700 (PDT) Received: from Red.localdomain (lfbn-1-7036-79.w90-116.abo.wanadoo.fr. [90.116.209.79]) by smtp.googlemail.com with ESMTPSA id l22sm4821683wrb.45.2019.10.25.11.51.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 11:51:34 -0700 (PDT) From: Corentin Labbe To: davem@davemloft.net, herbert@gondor.apana.org.au, mark.rutland@arm.com, mripard@kernel.org, p.zabel@pengutronix.de, 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 v3 2/4] dt-bindings: crypto: Add DT bindings documentation for sun8i-ss Security System Date: Fri, 25 Oct 2019 20:51:26 +0200 Message-Id: <20191025185128.24068-3-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191025185128.24068-1-clabbe.montjoie@gmail.com> References: <20191025185128.24068-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 of the Security System cryptographic offloader driver. Signed-off-by: Corentin Labbe --- .../bindings/crypto/allwinner,sun8i-ss.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/crypto/allwinner,sun8i-ss.yaml -- 2.21.0 diff --git a/Documentation/devicetree/bindings/crypto/allwinner,sun8i-ss.yaml b/Documentation/devicetree/bindings/crypto/allwinner,sun8i-ss.yaml new file mode 100644 index 000000000000..8e9894c9f1bf --- /dev/null +++ b/Documentation/devicetree/bindings/crypto/allwinner,sun8i-ss.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/crypto/allwinner,sun8i-ss.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner Security System v2 driver + +maintainers: + - Corentin Labbe + +properties: + compatible: + enum: + - allwinner,sun8i-a83t-crypto + - allwinner,sun9i-a80-crypto + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: Bus clock + - description: Module clock + + clock-names: + items: + - const: bus + - const: mod + + resets: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - resets + +additionalProperties: false + +examples: + - | + #include + #include + #include + + crypto: crypto@1c15000 { + compatible = "allwinner,sun8i-a83t-crypto"; + reg = <0x01c15000 0x1000>; + interrupts = ; + resets = <&ccu RST_BUS_SS>; + clocks = <&ccu CLK_BUS_SS>, <&ccu CLK_SS>; + clock-names = "bus", "mod"; + }; +