Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp567602rwb; Tue, 27 Sep 2022 01:14:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6tRfbnKBPHzAEB94T109iV5pfXqodK2LVaNwo6WyqDqWVa0g/POWGWO+AL1qo4+KSJnQK6 X-Received: by 2002:aa7:d1c4:0:b0:456:c93c:5344 with SMTP id g4-20020aa7d1c4000000b00456c93c5344mr20577513edp.306.1664266448837; Tue, 27 Sep 2022 01:14:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664266448; cv=none; d=google.com; s=arc-20160816; b=DGz5vu6vo2pnTfn3fvBUQx9DsAAuoQiPTw323zwgKBHfY5GuX9paQWc5kJjK9VLXHE ieJNhALCttX5NHJ36TUzuQn2134b8MhSqiYT1eViBHrfD0+tDLxdn1zJ9nEABO2GeSU5 fVUF8iHeVIRO8XwhMuk6vWwS6HXuRp2+W5iPTFnJ/CoR2FxStRJtmYAQT3EbOWltdAuw GNV55/Dov4gB1MXHY1k562Mfxe+Q4z18gA1sBp6s6O/0jHcK0EbjKobeZN4JETUxOBc9 Tdi1R/SyjKghKM+PSfUCcEJUKnrvx77WncvoRt4qX67cu9gsi6Jcmd1QSaudGiQ0Xo6j in6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5mdo6NGLlB92HNx1YdBVXQY1nz6YTKAI7LSgWV6iJpg=; b=q3g6JG/e+HPqJc785NEBHRmvy4xWLYe+gC2q5U/6I8dVq4GxqDpgDQhQab0VTfSuly 52mXltZP9mrBVzdP/7THpGEpJhJcOf6d41+Xq3x81nt9It6v0ZYUfa5sSQUDGOv/AICt +UFCx3Uctm1AHmqZ/MJ2TVCnu3nSl1vvoULxqFg2Oiu3G0Vnlk9LlAhx2rfrGm+qamow JvSJncv4BSwvED8VAVxQvQIoF5oOzJY9nDJ16hjLUZyQVJCuO5Gv+Fmr2YDF5bDFkoE8 2CGiE4I/zjZ9v3ytOQX99CdgnhcLNUR/b5JbrpJm+nXbRc0eVP3gAJyEqYlxrcxtY3KJ aHaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=TSMUqXpB; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i21-20020a1709064fd500b00780cb1272eesi664529ejw.466.2022.09.27.01.13.45; Tue, 27 Sep 2022 01:14:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=TSMUqXpB; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231265AbiI0IHu (ORCPT + 99 others); Tue, 27 Sep 2022 04:07:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231633AbiI0IH3 (ORCPT ); Tue, 27 Sep 2022 04:07:29 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3250310FC67 for ; Tue, 27 Sep 2022 01:01:57 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id cc5so13709762wrb.6 for ; Tue, 27 Sep 2022 01:01:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=5mdo6NGLlB92HNx1YdBVXQY1nz6YTKAI7LSgWV6iJpg=; b=TSMUqXpBGA6O740Vbe76KnkTC6Rzlba5NxIu8AhZkfGCcFSJjaFFBtesClkcZA+GXr d86YrtgrRC7mOqx+CXyq29Bl5ZNd13wRycLSj+hmLJLqApJpA86x0NZ46MZGXkETE13V GRTEp4Z3u1MKMPRXmjoo9rcz7lC1fMCTe2cnLgEjjuQCFqQTB3UPygH+Fpd8f/rvrP8E T8gQeE6GHf7rfXIiNZUX+ZFYjAACzbEqsamzVviFOrVBJrmBKPz8KvXpPSth3xZeB0VB QJH3xwSiGZt9nG3yXTqpIFwEeZQ1kz1c/GkNTFSheME1zrNrbJN1IxKCCqIVnqo2HuVW 8Dfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=5mdo6NGLlB92HNx1YdBVXQY1nz6YTKAI7LSgWV6iJpg=; b=rR/uuwJw3WhAuVMkvnu/ssVgQ/wkQTmN9jbaSvqP1AGcaxj8QAbxqV/gfuxSf4Vd8o RAc3Us0I3eqthKv0kPW6HSr7xEPsV1X7QfaFX1V5dbql8kqtCBT55hnPXcQjCzTnr4zq i0fZtOp3pXGeG6ALrCYhXUpBXF7ItoetLpJaPJKr4FNu7YGWk3zX64lltbt7fK6kNYCs wif2gj7dw875LQCVO28Jmpy2jbroDRnLIZ8d7aowZo86J5M/fvpVgusuIgrMs1YRCiwo Qpp51lWaUQ4Qvcho+YHn4Q1jh6RwESSneNfVi1uX4VEMy0iBg8wtM3NkdLjVyswSAZGB doNw== X-Gm-Message-State: ACrzQf0s9tW21/fw05MYWsBf9SDa4a2tOqXX8WO40GejX+yipGImtYmP brMih/zvcUPWJ/jg93KfsJOmUw== X-Received: by 2002:adf:9dd0:0:b0:22c:3fe0:42ef with SMTP id q16-20020adf9dd0000000b0022c3fe042efmr12390756wre.348.1664265668642; Tue, 27 Sep 2022 01:01:08 -0700 (PDT) Received: from localhost.localdomain (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id p4-20020a1c5444000000b003a5c7a942edsm13357199wmi.28.2022.09.27.01.01.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Sep 2022 01:01:08 -0700 (PDT) From: Corentin Labbe To: heiko@sntech.de, davem@davemloft.net, herbert@gondor.apana.org.au, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Corentin Labbe Subject: [PATCH RFT 2/5] dt-bindings: crypto: add support for rockchip,crypto-rk3588 Date: Tue, 27 Sep 2022 08:00:45 +0000 Message-Id: <20220927080048.3151911-3-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220927080048.3151911-1-clabbe@baylibre.com> References: <20220927080048.3151911-1-clabbe@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Add device tree binding documentation for the Rockchip cryptographic offloader V2. Signed-off-by: Corentin Labbe --- .../crypto/rockchip,rk3588-crypto.yaml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/crypto/rockchip,rk3588-crypto.yaml diff --git a/Documentation/devicetree/bindings/crypto/rockchip,rk3588-crypto.yaml b/Documentation/devicetree/bindings/crypto/rockchip,rk3588-crypto.yaml new file mode 100644 index 000000000000..aa01c3c681f4 --- /dev/null +++ b/Documentation/devicetree/bindings/crypto/rockchip,rk3588-crypto.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/crypto/rockchip,rk3588-crypto.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip cryptographic offloader V2 + +maintainers: + - Corentin Labbe + +properties: + compatible: + enum: + - rockchip,rk3568-crypto + - rockchip,rk3588-crypto + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + minItems: 4 + + clock-names: + items: + - const: aclk + - const: hclk + - const: sclk + - const: pka + + resets: + minItems: 5 + + reset-names: + items: + - const: core + - const: a + - const: h + - const: rng + - const: pka + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - resets + - reset-names + +additionalProperties: false + +examples: + - | + #include + #include + crypto@fe380000 { + compatible = "rockchip,rk3588-crypto"; + reg = <0xfe380000 0x4000>; + interrupts = ; + clocks = <&cru ACLK_CRYPTO_NS>, <&cru HCLK_CRYPTO_NS>, + <&cru CLK_CRYPTO_NS_CORE>, <&cru CLK_CRYPTO_NS_PKA>; + clock-names = "aclk", "hclk", "sclk", "pka"; + resets = <&cru SRST_CRYPTO_NS_CORE>, <&cru SRST_A_CRYPTO_NS>, + <&cru SRST_H_CRYPTO_NS>, <&cru SRST_CRYPTO_NS_RNG>, + <&cru SRST_CRYPTO_NS_PKA>; + reset-names = "core", "a", "h", "rng", "pka"; + }; -- 2.35.1