Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1982460rwd; Mon, 15 May 2023 05:57:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ70ZKH+XCnDFga5qZV9vZfMSdyTING+ElGL1UEC0FqkOwP0ZhLxcBs4dcn8hJFtxojKBfvb X-Received: by 2002:a05:6a00:1821:b0:644:d77:a2c5 with SMTP id y33-20020a056a00182100b006440d77a2c5mr46194178pfa.29.1684155448443; Mon, 15 May 2023 05:57:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684155448; cv=none; d=google.com; s=arc-20160816; b=DcTJRroATGU6RujzGAt+WubsdOL9bfqTXuB1E2l5Dpf81jJVeEXTRDvwgNh8Gh1XKU ReT6ojz4lMwx/3Mjb/Wofk/tu+G7wYBtQa2uIYW0PuDiNe9lGwSSYuNGi7KM15N/E2fo 6YnS1SNwvtSRHhyiRbS4XuCqaf6AAL6J5O+SYRpCqhQcsNxZ87JLniLQniKk29KrcRqe vcIk4yAZb2KW+OBc5Z8fgWBkKOv6Ilib/2L8mHb5LZ1s00ms4tlwvFv7Rdj0GaH62rE+ l9XBH2x5wZY4S+bdkdFheNB/RwhPl1FvvBTS0QwcPGg0ZI5eVHdTjY3BNQWEU+msX8be U+yw== 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; bh=0s1VEn5UlzmZUI/VzJlPvTPv4xkr2quQt0CjnP8iP4Y=; b=l1irPq+CcXu9Wz1lsQpg7tZLvviZhgsvjUOcNQqYbx2hBW50MnhelS+AACpW3WvFQF 8AjPqhuWyxLbqHfBQTTdFaujGeJCfDJjxCoqT+goxuz1TN3mNhULA7m/XW3mtY3GFjyY ZcZUFDNsHN2P7WpjdQCIhJMncgbloRwyClRhpQ64rqNTX7wrXZp0q0FaFBCReuBhfeGS J6LcXBy0+8ElGDcAZWRcLIsf3Yvqt8vtbnClvyF4WNThlKodSBc/XbIbKjlSfdOKykMC GchQKmgIFqrYE9oyk/z0ooDOe8YWCedL+pPY+IqyMW1jnYuIkV2fcAyDVto9XJkkzsiN SVeQ== ARC-Authentication-Results: i=1; mx.google.com; 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 y12-20020aa78f2c000000b0064367018c21si17371067pfr.12.2023.05.15.05.57.11; Mon, 15 May 2023 05:57:28 -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; 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 S238913AbjEOMyy convert rfc822-to-8bit (ORCPT + 99 others); Mon, 15 May 2023 08:54:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242014AbjEOMyS (ORCPT ); Mon, 15 May 2023 08:54:18 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 373A819AE; Mon, 15 May 2023 05:54:17 -0700 (PDT) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id 72198807C; Mon, 15 May 2023 20:54:15 +0800 (CST) Received: from EXMBX168.cuchost.com (172.16.6.78) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 15 May 2023 20:54:15 +0800 Received: from ubuntu.localdomain (161.142.156.10) by EXMBX168.cuchost.com (172.16.6.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 15 May 2023 20:54:09 +0800 From: Jia Jie Ho To: Herbert Xu , "David S . Miller" , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Conor Dooley CC: , , , Subject: [PATCH v8 1/4] dt-bindings: crypto: Add StarFive crypto module Date: Mon, 15 May 2023 20:53:52 +0800 Message-ID: <20230515125355.624250-2-jiajie.ho@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230515125355.624250-1-jiajie.ho@starfivetech.com> References: <20230515125355.624250-1-jiajie.ho@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [161.142.156.10] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX168.cuchost.com (172.16.6.78) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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-crypto@vger.kernel.org Add documentation to describe StarFive cryptographic engine. Co-developed-by: Huan Feng Signed-off-by: Huan Feng Signed-off-by: Jia Jie Ho Reviewed-by: Rob Herring --- .../crypto/starfive,jh7110-crypto.yaml | 70 +++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree/bindings/crypto/starfive,jh7110-crypto.yaml diff --git a/Documentation/devicetree/bindings/crypto/starfive,jh7110-crypto.yaml b/Documentation/devicetree/bindings/crypto/starfive,jh7110-crypto.yaml new file mode 100644 index 000000000000..71a2876bd6e4 --- /dev/null +++ b/Documentation/devicetree/bindings/crypto/starfive,jh7110-crypto.yaml @@ -0,0 +1,70 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/crypto/starfive,jh7110-crypto.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive Cryptographic Module + +maintainers: + - Jia Jie Ho + - William Qiu + +properties: + compatible: + const: starfive,jh7110-crypto + + reg: + maxItems: 1 + + clocks: + items: + - description: Hardware reference clock + - description: AHB reference clock + + clock-names: + items: + - const: hclk + - const: ahb + + interrupts: + maxItems: 1 + + resets: + maxItems: 1 + + dmas: + items: + - description: TX DMA channel + - description: RX DMA channel + + dma-names: + items: + - const: tx + - const: rx + +required: + - compatible + - reg + - clocks + - clock-names + - resets + - dmas + - dma-names + +additionalProperties: false + +examples: + - | + crypto: crypto@16000000 { + compatible = "starfive,jh7110-crypto"; + reg = <0x16000000 0x4000>; + clocks = <&clk 15>, <&clk 16>; + clock-names = "hclk", "ahb"; + interrupts = <28>; + resets = <&reset 3>; + dmas = <&dma 1 2>, + <&dma 0 2>; + dma-names = "tx", "rx"; + }; +... -- 2.25.1