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: 13141660 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 20A43C6379F for ; Wed, 15 Feb 2023 13:30:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=xSrSzYPZasWNfZzJeoB2m2m+tlEIEcBtvPs/tGvvZpM=; b=Y0R6b2Byo24m/a Bzs1fHITc0UREWM0m9tOFrlr11KLfayMZoZWfsnHFAinwAaMObwFCq+Pduvnks0IqiC6MHIA5fTsy Lm3C+noRjt8EeqcDzqKLeX4FaO7oXayDERMYF4WEh7zpE3c/nyEW5mcFh2qKWlCd8UV3y7lWRDkB2 IP8WZBTJ+AkwEpZeqW/LCeEofuKeB4OTKUxMLLcGF2+/jDeBMRpWWwn/Lpqi3HZwe333czYMW7aYA GkYRX9OPyqDCpscy8JBl+t3A761+jEPmb0ki59chq9ePx0NGL82vyj/ehA4ZoA4dqXFQuuCTXUFOi pwOgtxxBD0rd8QzKs1Ow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pSHqs-005zzI-FJ; Wed, 15 Feb 2023 13:29:38 +0000 Received: from fudo.makrotopia.org ([2a07:2ec0:3002::71]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pSHqi-005zv6-Gu; Wed, 15 Feb 2023 13:29:29 +0000 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230215_052928_575727_CAF32B07 X-CRM114-Status: GOOD ( 15.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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