From patchwork Wed Feb 15 13:27:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 57544 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp192358wrn; Wed, 15 Feb 2023 05:33:38 -0800 (PST) X-Google-Smtp-Source: AK7set/HVTMp1XfMOqgV7qVEVWYhynoKxnfmcr+Q5Ai7vG63E01fNn4CbP4xfw8/i1GWfp93HZJL X-Received: by 2002:a05:6a21:9988:b0:c3:19ef:1a83 with SMTP id ve8-20020a056a21998800b000c319ef1a83mr2355810pzb.32.1676468018468; Wed, 15 Feb 2023 05:33:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676468018; cv=none; d=google.com; s=arc-20160816; b=kDeHPGw25CV/5pas7Kw5El2FalUuHjCEwvZViZxdbiLdie4SKz/QISKPBNfzLrjvKL GAm03Oiale4Gi6jKx8QiPOiUoOBYPOK1nSI5mYC+Pp8LNcMj3n3RVaRf56LGhqEJhwbY X5TGfNCjN+OjfnYpusd0lQ42hrel7AeaDskh6/sGYoNlK7eAMYwV+oPtIF7rYDceDgUA UoBgKHZCMVDFt4YdDmz9Jb8mkTzevjuih2uu39e5Ao7fEvHhWl8lwoIoOtr++QjwZgyT H2d00e7qzzdOhnfB+4axTiFSBihCUi5f64B871Ok/TczCK+yNGNERrcSB+Z/gTjwjDEj 7eGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date; bh=MSMPkWyjIoGOy2ttBCZV00bjpKccjsu3EX/wfKuDA/g=; b=DwJe7y2fFIMcqlbBeAW1JMzOg87oMxf7kCX2cbM4qNkWHYGQwoNa9qneuaZYMH0OPD r+ulKds+L9T1S2ycdVAK+If89cglHqJ767RueKS0K9rzhyPW0eKtj/quTaNj8oYt1pKl /vMHOhTEwc8O+FhleAoya4LCoPXT1+DoD1gkALZ8rivmi6luRehZ+p9B5uC4dt4HX+/D bNvu3Ee4crBNXw3hBgc6tWLCa68NWPcMk56Kd17if2hg3JeFfyi5lLVSWmjXkEXkAaz2 LxhPq3U7T/jo63kAiAczoBBeiT1bSa7OaBVJscoiCJVFnAe4t2H4spRveJy5pKbfqXp9 oGVQ== 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 y5-20020aa79e05000000b005a8d85904e1si5217053pfq.361.2023.02.15.05.33.21; Wed, 15 Feb 2023 05:33:38 -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; 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 S231969AbjBON3i (ORCPT + 99 others); Wed, 15 Feb 2023 08:29:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232106AbjBON30 (ORCPT ); Wed, 15 Feb 2023 08:29:26 -0500 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B45D95580; Wed, 15 Feb 2023 05:29:09 -0800 (PST) Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1pSHqN-0005qp-0A; Wed, 15 Feb 2023 14:29:07 +0100 Date: Wed, 15 Feb 2023 13:27:30 +0000 From: Daniel Golle To: devicetree@vger.kernel.org, Sean Wang , Olivia Mackall , Herbert Xu , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno , Conor Dooley , Mingming Su , linux-crypto@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] dt-bindings: rng: Add MediaTek MT7981 TRNG Message-ID: References: <89865515728cb937b6591160ad9c30b4bcc8dd41.1676467500.git.daniel@makrotopia.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <89865515728cb937b6591160ad9c30b4bcc8dd41.1676467500.git.daniel@makrotopia.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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?1757904129088191918?= X-GMAIL-MSGID: =?utf-8?q?1757904129088191918?= Add documentation to describe the MediaTek true random number generator which is provided by ARM TrustedFirmware-A of the MT7981. Signed-off-by: Daniel Golle --- .../bindings/rng/mediatek,mt7981-rng.yaml | 39 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/rng/mediatek,mt7981-rng.yaml diff --git a/Documentation/devicetree/bindings/rng/mediatek,mt7981-rng.yaml b/Documentation/devicetree/bindings/rng/mediatek,mt7981-rng.yaml new file mode 100644 index 000000000000..d577d60538d8 --- /dev/null +++ b/Documentation/devicetree/bindings/rng/mediatek,mt7981-rng.yaml @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rng/mediatek,mt7981-rng.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek Random number generator (v2/SMC) + +maintainers: + - Daniel Golle + +properties: + $nodename: + pattern: "^rng$" + + compatible: + enum: + - mediatek,mt7981-rng + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: rng + +required: + - compatible + +additionalProperties: false + +examples: + - | + rng { + compatible = "mediatek,mt7981-rng"; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 90d82aba6d73..523f1abf00d5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13148,6 +13148,7 @@ F: drivers/leds/leds-mt6323.c MEDIATEK RANDOM NUMBER GENERATOR SUPPORT M: Sean Wang S: Maintained +F: Documentation/devicetree/bindings/rng/mediatek,* F: drivers/char/hw_random/mtk-rng-v2.c F: drivers/char/hw_random/mtk-rng.c