From patchwork Wed Oct 16 13:33:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 176478 Delivered-To: patch@linaro.org Received: by 2002:ac9:3c86:0:0:0:0:0 with SMTP id w6csp7177959ocf; Wed, 16 Oct 2019 06:34:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzd2ZkUarqB9fK9zuPgGBB0NvVjHKdiWIMMQCVXTWp/27Zn2YRB7DS7UtWj775OoJGOVtp9 X-Received: by 2002:a17:906:2307:: with SMTP id l7mr38442439eja.320.1571232842073; Wed, 16 Oct 2019 06:34:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571232842; cv=none; d=google.com; s=arc-20160816; b=c3KeaZhKQdYqdWu0ZjUtMK91q9oNNBnolQ325wE12bFmFxyjZuOrUXXqRZsO5QwVCe pFNxj6TX32ETeZqa6aqNyDvc6W62y7cEz9lH7CPBQZ87PwCC2QbBbvaY/mQEHfmDzrHC tu2d6PPksVPh+KgMPuyo0NjiTEIcGeUGcSCRwokKlDnu77ZxNaDdhuvbXH8/Su5HxTow Doi5HbfCYmgms+KJSmdWP4eDW7l0wn5wb+HCe5rWhynJbqgsriSn3RgAGdcj7Bq0JLyC byRZfa7IBydlW2zmsomod7/RRPEr/3IH1wepZ8bKP7ZOdT9fSVjoVmEQ4uyqQTwi+H69 k0sA== 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=xz+yYfMplPu5ZIKk6Ng0nX8uGkHzojnBY7LEEfSaIYQ=; b=VK03yzNj/T1gRiKPro3j3Fp8CAWLgoy4GdaW5q11sjH7q87797sqGwXON4z+vko8MK LJQ7bR+cZoEIYbp5HFFVs4rbCiIaoNFfdoyB6eI5Za8a5qhcbmZupqGYcmR11WDLyPCv CNRkewlxJXszTAzdZBBy7AxxcffHyatCmZ33dbx+nkDabQM+ccGxYm3VVxMx0JNPlvvO E8NML7kRaOPCxglocIqZCOarC3VxH40tJzan0qzGhl8fy3DWT0XxPQg1/7vDLUtKAy9I UQq03VBm/sxlHPfiFZmUg7mig7g6D+oOZtefbwTUMW+ahtGyFE4Xq5457GZzEpmoUFm/ m/LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DmFIZIf+; 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 f20si14246624edm.365.2019.10.16.06.34.01; Wed, 16 Oct 2019 06:34: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=DmFIZIf+; 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 S2405417AbfJPNd4 (ORCPT + 26 others); Wed, 16 Oct 2019 09:33:56 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:50590 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405388AbfJPNdy (ORCPT ); Wed, 16 Oct 2019 09:33:54 -0400 Received: by mail-wm1-f65.google.com with SMTP id 5so2969800wmg.0; Wed, 16 Oct 2019 06:33:53 -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=xz+yYfMplPu5ZIKk6Ng0nX8uGkHzojnBY7LEEfSaIYQ=; b=DmFIZIf+THi7WPBbG/i/CRNriv5YFiA24wHXA6g1GiMFYbbyz8jqKf86Y8uaVNV/su 3LOOj7TcTnlQeTCEnfQMggAoYM9iRSlMm7E+VYq7i4oAYHPcGtccOVNej7b91SDKOx9u C+h0GjnzJ0giM+eFpfAWpZwwtCtguqMfUwOYzphIJfoqGGtzozyAgxUtfhkD0WhohbQw pNrDuKoBADVRHFS2jVowoYS2B88ZYQRdUoCe8MpIlJ1W7ndJwjE3YFVWKQ/9/bMKLb+w zKOky9PLoi2tofWKtifOjZZ3PbD95KgkQvI6nY9AkjxAuExo3hjB40XI3tg3EIDM8vK9 dhrA== 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=xz+yYfMplPu5ZIKk6Ng0nX8uGkHzojnBY7LEEfSaIYQ=; b=pIXU50pxMfvf0m++CGpCAyTMHZ0iDXhHZlqRLm4HQbvl2MoZjGDUJjY2SGAPgVqBHF ByV0VdESRiPyBh0lJp1edPzfkKus/0IqfjCydRA4Piu6eEVWaVI6PZ0cG6DW0PPqAEE+ QtMkWm0SPCJJn68sxeBNPX34a4gVZscoGEiKmB7FW4FwApIeUS+tBKJ4lrZdtcxgTO9i zci1148ycSI50vExaTmwrtxuEEPtMCARslrAL/q3z/HK6rdw2XG3jWw1CXdEZyc3eKuZ M8tSVXWCMzwUrJaOlDbtYeR08NGnoC53Fwbiw2rrN0K6tLajdGLJrLT9BmNO5hs71c2G a6Jw== X-Gm-Message-State: APjAAAXGhypD9SoRP8C218Eiizr9zXA06l3yGRKZZ8rdOQeCI6VAcbw/ UBG8kmNdD70v6YqK0s/reUc= X-Received: by 2002:a1c:9dc7:: with SMTP id g190mr3497325wme.115.1571232832926; Wed, 16 Oct 2019 06:33:52 -0700 (PDT) Received: from Red.localdomain ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id h17sm3139998wme.6.2019.10.16.06.33.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2019 06:33:52 -0700 (PDT) From: Corentin Labbe To: davem@davemloft.net, herbert@gondor.apana.org.au, 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 2/4] dt-bindings: crypto: Add DT bindings documentation for sun8i-ss Security System Date: Wed, 16 Oct 2019 15:33:43 +0200 Message-Id: <20191016133345.9076-3-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191016133345.9076-1-clabbe.montjoie@gmail.com> References: <20191016133345.9076-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 Signed-off-by: Corentin Labbe --- .../bindings/crypto/allwinner,sun8i-ss.yaml | 64 +++++++++++++++++++ 1 file changed, 64 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..99b7736975bc --- /dev/null +++ b/Documentation/devicetree/bindings/crypto/allwinner,sun8i-ss.yaml @@ -0,0 +1,64 @@ +# 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 + + reset-names: + const: bus + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + #include + #include + + crypto: crypto@1c15000 { + compatible = "allwinner,sun8i-a83t-crypto"; + reg = <0x01c15000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_SS>, <&ccu CLK_SS>; + clock-names = "bus", "mod"; + resets = <&ccu RST_BUS_SS>; + reset-names = "bus"; + }; +