From patchwork Thu May 4 07:33:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: JiaJie Ho X-Patchwork-Id: 89941 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp125151vqo; Thu, 4 May 2023 00:46:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ66vH3tWr+T3b/sPXKGTTGjOwWP/ek2foBSo3Zq1lrBQwdInHodk2kdRWctTsyhy5798PK8 X-Received: by 2002:a17:902:c948:b0:1a9:6d25:b2d2 with SMTP id i8-20020a170902c94800b001a96d25b2d2mr2911221pla.67.1683186363451; Thu, 04 May 2023 00:46:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683186363; cv=none; d=google.com; s=arc-20160816; b=QSz9f00agh/sHSgfpDHBNEQpX7L1nOj30QPB9vPAGHLsJdht29CURBRHpRd7tZPOau CulSLmNBOGF3Ee7IV5Esq0lr4F89a1stK+WcfkcPhU01SY/QQRw2kgUFHKyy/IRfFubY Iqjn9S6wFjr3wld5am/6cETCQAQu1ZK2d7suLHIGNjMHyFMGt4PgraIbE4qi4Axmz/EJ +0O5lBEVtthtloPyqvdI6QkbkBdN4hrc5YVWv6bMB139dG1zOVpwlPZZnJ7gpxZbgboo tY5Hy8pXy7iCJn+abloQ7IfCDlgzVry9Km3YxRpUsfjhry5W5atWr0+dZdDJ7SAG69di 96Hw== 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=YIBrogq6zvppy/7GNhfGZ6W5fhjutDHi7i/nn6usA6mj4dstjIYFEWzGI9BxcTGoUU /SNnujFEeVMftSD6QAFImpwlprsAn3LwG+YLqmH2cEraxKet9lRrIQKfq+pYeDC6rGwC 9CcBxMgYQM/b+GnPblQW+Co3YO2ptwTCPAQe4Ah0QH6DYW4L9oD/4qApREhmMLajih6a KQCwynQY9c1eqJqHamDA2C4axWBaII2GVKobpXlD0MQDsZEZ5vzDHX9Hm+UGSUBSQx7f Gp7nedUTlfR67K0rAkI7AiiJeYm4rAWA5+Xn1vh0t/EbnO1LjeUZLfe10d+Ak+PSoXQF NM2Q== 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 p2-20020a170902ebc200b00198ff2d6543si34957442plg.117.2023.05.04.00.45.50; Thu, 04 May 2023 00:46:03 -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 S230070AbjEDHeW convert rfc822-to-8bit (ORCPT + 99 others); Thu, 4 May 2023 03:34:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229765AbjEDHeU (ORCPT ); Thu, 4 May 2023 03:34:20 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3A2AA9; Thu, 4 May 2023 00:34:16 -0700 (PDT) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id 5611324E1A6; Thu, 4 May 2023 15:34:14 +0800 (CST) Received: from EXMBX168.cuchost.com (172.16.6.78) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 4 May 2023 15:34:14 +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; Thu, 4 May 2023 15:34:08 +0800 From: Jia Jie Ho To: Herbert Xu , "David S . Miller" , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Conor Dooley , Palmer Dabbelt CC: , , , Subject: [PATCH v7 1/4] dt-bindings: crypto: Add StarFive crypto module Date: Thu, 4 May 2023 15:33:57 +0800 Message-ID: <20230504073400.1170979-2-jiajie.ho@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230504073400.1170979-1-jiajie.ho@starfivetech.com> References: <20230504073400.1170979-1-jiajie.ho@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [161.142.156.10] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX168.cuchost.com (172.16.6.78) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764948824241536118?= X-GMAIL-MSGID: =?utf-8?q?1764948824241536118?= 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"; + }; +...