Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5094698pxb; Sun, 13 Feb 2022 07:36:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJyt4poO/zfoaLf5QayOEmokpLYcGeU+Qs0RBmdCYUfMnVFNIbb7cRryF83GbtWniV3cO7VN X-Received: by 2002:a05:6402:278d:: with SMTP id b13mr11541041ede.171.1644766618384; Sun, 13 Feb 2022 07:36:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644766618; cv=none; d=google.com; s=arc-20160816; b=rBvoTMuXFL5zuUaslmAWlyP0E6Jrd+XFmE927npizwo8me1EEK6sBU1o6N/Aig+Iap SsnJZ10SunMLS88ruWQp7LEGNxp4gnU7lW8yIfPfU5h4p6oR2yT67TSU/dAPGzWx4oKV bTfuaWB4ammTRlvGRrInkZf5TzBNsC2te3DhgffCDshMIAaIH1MjGlhKzn+Mz+TN0cOh CX5bkLzFBNN6taBFhUkni1r6e+rySrzpMftf7kcSRpguQke4jte3DIrbxhiZUeDZrqxX tH/hUAsJxvsRjUqDNKsk/FA7EGXjwcXbr3m+Ai4kGi3ZyVZahlSUqELn8IArdb/e4pNx ZS+g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=tx8ZFq8JdO/4oUXF/KhCH6Nf7XCVn/8UewteKqP8h1s=; b=xfX594hf1iIU0lrHvlnfJGII+GIKckLZ5JvEAPJ363WPGr+YcVnD0MabmitVCDEbYX g9iLBf52ILEH6W30cIpMJ3206ewDxMXCov5+mvZoeAK92lpySGOEW7IKgny6dI7KPVhW rsPbuQfTKKrfyLOfa6fBJpNO5T8PBy09JruIKtBwjZ0wk+P6MKVh5KomDNLfbixcM0i2 0B87Co/bg2UIxWTRIllqPiGL2Wy090YiFitmrS+Uwv6DmdLztfaQ+i++d+cvqnJo/dRy 0BwHub8YhoFej1C482HE7kITockPc2NgO/xWz4Zc9IDZamxwSq8fctdFHtQkj4oEQ4fY +wyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=qFuJQjxg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 ga19si11610493ejc.13.2022.02.13.07.36.34; Sun, 13 Feb 2022 07:36:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=qFuJQjxg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349797AbiBKMDN (ORCPT + 93 others); Fri, 11 Feb 2022 07:03:13 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:47748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232442AbiBKL7e (ORCPT ); Fri, 11 Feb 2022 06:59:34 -0500 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DF35F4E for ; Fri, 11 Feb 2022 03:59:33 -0800 (PST) Received: by mail-wm1-x32e.google.com with SMTP id j9-20020a05600c190900b0037bff8a24ebso2693232wmq.4 for ; Fri, 11 Feb 2022 03:59:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tx8ZFq8JdO/4oUXF/KhCH6Nf7XCVn/8UewteKqP8h1s=; b=qFuJQjxgvlT2bAueQpdORWOfP43xD0e9K9dpxtvEuNkSBmi78JUWnzGS/JJ24WgnT+ xmsbEsQQ0PS/X6OwzA7TnNT9C6OfK/X7stRvoYNMAu99/yiDTcgwglSlcBW3kfdbBwyj JVS3vcWbyRWXaFKBO6IwAoi2vUivUvSgdSKP8mrWFN4wD4N7VQ1p82JzooQtWS7GXNWb nzkZ/F+GgntKUs4PqHPwVkdyKnNp5DqeR5rqJyJHhpRqny4w/I9ag2PCyokFPyJEV0Uo azUOZmMvsleKSTM+DBPEiBBBNCcxN3n1iMRxd+cAGLtOyMtvr41E0CBkb14hUsEwA0qH qSfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tx8ZFq8JdO/4oUXF/KhCH6Nf7XCVn/8UewteKqP8h1s=; b=0z3IKcky1VUz03EMpG4vXmmaKP5yfD2W8Mnsk0VO7RqE5QG8She+b5EqMjhk/n+may hHQkd8jpOCUgIRzszRR9zaMdUNPckqLuAKC2erRErPTulKUoHek4RUSTwYiqudrit0g5 3WPpV+navgh8Z2zScKshJG1AG5gKFVlDa0FRntVty7APw3KHBxc7g+uak/4ZP/RAMa2G ztujpFyNqKprQJ+e5/4kBGBacSLsfpG9SuvVG4minfHVlUq4qvAd5MvwFnOs8+2IeaQB SJiCx0DLPARrITQpKl/dyt7j1vt8/YuUEi5PFxMLG/c91ovO8jYOmWGyfH+5SvESpYXR siYw== X-Gm-Message-State: AOAM5334dtDpx4oCWzw8/WRdpDGkSR0BWjETYVR4YCoeohJedk7qDgOE 1OJGXT31if01afZhoL7LhzFaXCnIbFhNJA== X-Received: by 2002:a05:600c:4611:: with SMTP id m17mr17712wmo.94.1644580771686; Fri, 11 Feb 2022 03:59:31 -0800 (PST) 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 s187sm4763212wme.14.2022.02.11.03.59.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Feb 2022 03:59:31 -0800 (PST) From: Corentin Labbe To: davem@davemloft.net, heiko@sntech.de, herbert@gondor.apana.org.au, krzysztof.kozlowski@canonical.com, 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 v3] dt-bindings: crypto: convert rockchip-crypto to yaml Date: Fri, 11 Feb 2022 11:59:25 +0000 Message-Id: <20220211115925.3382735-1-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 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, T_SCC_BODY_TEXT_LINE autolearn=ham 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-kernel@vger.kernel.org Convert rockchip-crypto to yaml Signed-off-by: Corentin Labbe --- Changes since v1: - fixed example - renamed to a new name - fixed some maxItems Change since v2: - Fixed maintainers section .../crypto/rockchip,rk3288-crypto.yaml | 66 +++++++++++++++++++ .../bindings/crypto/rockchip-crypto.txt | 28 -------- 2 files changed, 66 insertions(+), 28 deletions(-) create mode 100644 Documentation/devicetree/bindings/crypto/rockchip,rk3288-crypto.yaml delete mode 100644 Documentation/devicetree/bindings/crypto/rockchip-crypto.txt diff --git a/Documentation/devicetree/bindings/crypto/rockchip,rk3288-crypto.yaml b/Documentation/devicetree/bindings/crypto/rockchip,rk3288-crypto.yaml new file mode 100644 index 000000000000..2e1e9fa711c4 --- /dev/null +++ b/Documentation/devicetree/bindings/crypto/rockchip,rk3288-crypto.yaml @@ -0,0 +1,66 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/crypto/rockchip,rk3288-crypto.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip Electronics And Security Accelerator + +maintainers: + - Heiko Stuebner + +properties: + compatible: + const: rockchip,rk3288-crypto + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: clock data + - description: clock data + - description: clock crypto accelerator + - description: clock dma + + clock-names: + items: + - const: aclk + - const: hclk + - const: sclk + - const: apb_pclk + + resets: + maxItems: 1 + + reset-names: + const: crypto-rst + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - resets + - reset-names + +additionalProperties: false + +examples: + - | + #include + #include + crypto@ff8a0000 { + compatible = "rockchip,rk3288-crypto"; + reg = <0xff8a0000 0x4000>; + interrupts = ; + clocks = <&cru ACLK_CRYPTO>, <&cru HCLK_CRYPTO>, + <&cru SCLK_CRYPTO>, <&cru ACLK_DMAC1>; + clock-names = "aclk", "hclk", "sclk", "apb_pclk"; + resets = <&cru SRST_CRYPTO>; + reset-names = "crypto-rst"; + }; diff --git a/Documentation/devicetree/bindings/crypto/rockchip-crypto.txt b/Documentation/devicetree/bindings/crypto/rockchip-crypto.txt deleted file mode 100644 index 5e2ba385b8c9..000000000000 --- a/Documentation/devicetree/bindings/crypto/rockchip-crypto.txt +++ /dev/null @@ -1,28 +0,0 @@ -Rockchip Electronics And Security Accelerator - -Required properties: -- compatible: Should be "rockchip,rk3288-crypto" -- reg: Base physical address of the engine and length of memory mapped - region -- interrupts: Interrupt number -- clocks: Reference to the clocks about crypto -- clock-names: "aclk" used to clock data - "hclk" used to clock data - "sclk" used to clock crypto accelerator - "apb_pclk" used to clock dma -- resets: Must contain an entry for each entry in reset-names. - See ../reset/reset.txt for details. -- reset-names: Must include the name "crypto-rst". - -Examples: - - crypto: cypto-controller@ff8a0000 { - compatible = "rockchip,rk3288-crypto"; - reg = <0xff8a0000 0x4000>; - interrupts = ; - clocks = <&cru ACLK_CRYPTO>, <&cru HCLK_CRYPTO>, - <&cru SCLK_CRYPTO>, <&cru ACLK_DMAC1>; - clock-names = "aclk", "hclk", "sclk", "apb_pclk"; - resets = <&cru SRST_CRYPTO>; - reset-names = "crypto-rst"; - }; -- 2.34.1