From patchwork Tue Apr 11 08:14:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: JiaJie Ho X-Patchwork-Id: 81795 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2408282vqo; Tue, 11 Apr 2023 01:15:59 -0700 (PDT) X-Google-Smtp-Source: AKy350b/5pT3+1UPvZ0s08PNBRff3b8oIDspeDzfYcTRFw4qBdtzbURreAytEl+CMM6pB0bLUTaU X-Received: by 2002:a17:90b:1e10:b0:23d:21c9:193 with SMTP id pg16-20020a17090b1e1000b0023d21c90193mr2693360pjb.2.1681200959547; Tue, 11 Apr 2023 01:15:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681200959; cv=none; d=google.com; s=arc-20160816; b=E5HCPaIDAk3HDn/yqzcfNIEK0QUBSuk0vKbhW/VjAWpBtmwg6W0Eg1zwUKmbuiFo+f l5fVmoplET0kJ0jNsZLsistL86DvJFH4LYJiwedn/yFU5afqS+5EAoX7pwt+rWA30rGn +gLYU6PS7Ylq7J65xdo8ohZXuT6ptJFH/Si5z6soOvapvfmHpvjYqXRVu+KAovUGm3iA cH33aXbfHTSSmMNG/PgacZuTGQTtuMFp65Cqx7EpgBX6o8SgXo6UfF8r340rhRF71FnE DgxGGL/71z5eJGQhtm9DFE0971xcIjjNXxsrjOcAjrapSUAhtnMERpzBNnKEXs0o1tQn lFoA== 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=dkB50BuoLulpt7jnDjZpchpF0vQus35OdC7fU5cN3wBz+ZMbQkjLTWbBHQk1Gc5E70 U5prNbwPb1fQ2ofofwYIJ4qseSlPxvcidjH7tLEEVYsjIgRerJP3tMjow3DRDBpPY4qS UbGbGWZqpUpqU6yI7pcix8mbNdfcjxZUBpY8QlEgW4IxQKMJXhLZDRuMIuWAFCDOYuHs 1o0iitEvsFwVWSQwj2hhLLBRso1MeLXKqQh5zSMGN5LKK53AMmhi3jSLPVMsqKkwwikM RB8qyMk0STl9c2C5p7eLLAQR6FNveRZLLtSCvz7J7jZHMTwJzQBnUTTddPfjWwwJIu/e dBBQ== ARC-Authentication-Results: i=1; mx.google.com; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id om6-20020a17090b3a8600b0023f6ee835cesi13553654pjb.9.2023.04.11.01.15.48; Tue, 11 Apr 2023 01:15:59 -0700 (PDT) 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; 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 S230158AbjDKIOj convert rfc822-to-8bit (ORCPT + 99 others); Tue, 11 Apr 2023 04:14:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230015AbjDKIOg (ORCPT ); Tue, 11 Apr 2023 04:14:36 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D68B026AB; Tue, 11 Apr 2023 01:14:34 -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 ex01.ufhost.com (Postfix) with ESMTP id 9878024E208; Tue, 11 Apr 2023 16:14:33 +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; Tue, 11 Apr 2023 16:14:33 +0800 Received: from ubuntu.localdomain (202.188.176.82) by EXMBX168.cuchost.com (172.16.6.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 11 Apr 2023 16:14:29 +0800 From: Jia Jie Ho To: Herbert Xu , "David S . Miller" , Rob Herring , Krzysztof Kozlowski , Palmer Dabbelt , Emil Renner Berthing , Conor Dooley CC: , , , Subject: [PATCH v5 1/4] dt-bindings: crypto: Add StarFive crypto module Date: Tue, 11 Apr 2023 16:14:21 +0800 Message-ID: <20230411081424.131912-2-jiajie.ho@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230411081424.131912-1-jiajie.ho@starfivetech.com> References: <20230411081424.131912-1-jiajie.ho@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [202.188.176.82] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) To EXMBX168.cuchost.com (172.16.6.78) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=0.0 required=5.0 tests=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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762866977354552507?= X-GMAIL-MSGID: =?utf-8?q?1762866977354552507?= 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"; + }; +...