From patchwork Mon Dec 27 18:32:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12700002 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 696E3C433F5 for ; Mon, 27 Dec 2021 18:35:16 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sXNBxg6ZoA2TG/MoGqUNrVuOIUQNFL5tcUNwWrgbu1w=; b=VwsrD+52zYwCPB oZekw9TwaKpIYF4hL95M1gaFP46oHsEB/ciBbTL3r3tj4Q4Ho2S8n3HoEfulKqXLxCzmozn9f+3/p d4DQUd+hJBDXiyzEZghwdGye24m30FJhRYs0djw/8kxfqJoLwVgamF7y+4CmjIGNNa3lpZqUjiczz g10guBP7fur0mdPpmmI/t/dVatWhFe6A/TFrkNSEdcptkhXZqREQd+s3mjWnHUlBgFMiLcTgozzGS Hb87mCl1WWWpxyaBL0F8avKhpRJEOI6NTSYEAflO9VAEoXrE8M+q1h7qSFOZzPn+HuWGxUGVPF6j9 ArqnlrFfwJ0T0/3mgcqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n1uog-00HHOe-EC; Mon, 27 Dec 2021 18:33:50 +0000 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n1unx-00HH4w-FP for linux-arm-kernel@lists.infradead.org; Mon, 27 Dec 2021 18:33:08 +0000 Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 61850402E6 for ; Mon, 27 Dec 2021 18:32:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1640629978; bh=Ha91ZDV5aCOHeV4K+0XvZy0cP8PcDx+1Y/WeQ3R169I=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=bz8aWCzJhPborglQ6dQTuo5DBiWfOehSPenCvx6PtASXuIeSeQcIwadEu1gRJofcr T0YyDeNyW0zK94wR9UgLWZ3OEBJBmiA3GKiGtHxwwkaSedit4P80erOED4LwuEGmIy j5MwB1NWYkd850x6O/bNbz537EiJuzropU2M9EIDawUUSBjlDfmNECnjrQtq7frTgU 14UbxMlOdj6hw5CqpAIVjGLf5IBjVQ7iCvDNwxYbcjGztkD6y3KJI0HVDpIR1NvKDN Q4wbz5/YjxccdAL8PO+cqDsRdpOQdyBbAuT4f2VbAMXC36m4uxIhBLxdqSsHnpDuqZ TUcufQ1hCWUOQ== Received: by mail-lj1-f200.google.com with SMTP id g27-20020a2e391b000000b0022d8f41fa9aso4855423lja.18 for ; Mon, 27 Dec 2021 10:32:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ha91ZDV5aCOHeV4K+0XvZy0cP8PcDx+1Y/WeQ3R169I=; b=kN8FLiLSPAdIq7gk9DzGrUnS0bJFJJ/3SbdM9sel5cIhgx5fdcm2BIqAycoGJi6DDe eizbnZXxN7LBx3Cjnv7fkC9W79UQmrMWoUOSmFx9XnkIiuf4/InD690GYdbBAoRZaX0L JbH8AzMLgoiQ8PQ+l7NDW4bIiCV1ENKHGu6sPKu1ttfQHjH0FGFiLJwEgyqxAVgT0FTS exNWDAH9aPPNOdIbXfrFQjEYacqmfj8IEtB560OvPu+0NiUqqIr+xrTP1s01T7cwwED/ FEUqYn25KsuvWSAxGmKaRh/qOrPg++ZfA9Vdf2x5EfKd9w+CSvNNQoJ2SdnM1QygkOYD IldA== X-Gm-Message-State: AOAM533zpFwyoBp2j4yVANTKYOAcW96NrgAnjgRxcBmwCTg2bp0n4kxf 3ImH/+b4LtwkCmO6vFi6raCCDp10I3mH8CM6p0pXLnMkynnc0h7nofCMKMfEw3uOKktvuSfBzQP 8gqSTS9RYN9vGC/75h1HfThwdp2kUSczjsMF9d0wySujUDm+jclA0 X-Received: by 2002:ac2:4d34:: with SMTP id h20mr16342034lfk.617.1640629977839; Mon, 27 Dec 2021 10:32:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxw2ascN7H6LYQsbejqKJs7k+yaXgGe30MRDmj5xMYPmLPKoxgkmpwR4T2jbxwJKJSp1I0tQg== X-Received: by 2002:ac2:4d34:: with SMTP id h20mr16342015lfk.617.1640629977677; Mon, 27 Dec 2021 10:32:57 -0800 (PST) Received: from krzk-bin.lan (89-77-68-124.dynamic.chello.pl. [89.77.68.124]) by smtp.gmail.com with ESMTPSA id o12sm1299622ljc.5.2021.12.27.10.32.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Dec 2021 10:32:57 -0800 (PST) From: Krzysztof Kozlowski To: Matt Mackall , Herbert Xu , Rob Herring , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Krzysztof Kozlowski , Khuong Dinh , Patrice Chotard , Nishanth Menon , Santosh Shilimkar , =?utf-8?q?Pali_Roh=C3=A1r?= , Tony Lindgren , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, openbmc@lists.ozlabs.org Subject: [PATCH 2/8] dt-bindings: rng: atmel, at91-trng: convert Atmel TRNG to dtschema Date: Mon, 27 Dec 2021 19:32:45 +0100 Message-Id: <20211227183251.132525-2-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211227183251.132525-1-krzysztof.kozlowski@canonical.com> References: <20211227183251.132525-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211227_103305_694800_CD87D4A0 X-CRM114-Status: GOOD ( 18.19 ) 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 Convert the Atmel TRNG bindings to DT schema. Signed-off-by: Krzysztof Kozlowski Acked-by: Nicolas Ferre --- .../bindings/rng/atmel,at91-trng.yaml | 46 +++++++++++++++++++ .../devicetree/bindings/rng/atmel-trng.txt | 16 ------- 2 files changed, 46 insertions(+), 16 deletions(-) create mode 100644 Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml delete mode 100644 Documentation/devicetree/bindings/rng/atmel-trng.txt diff --git a/Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml b/Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml new file mode 100644 index 000000000000..0324e863dab8 --- /dev/null +++ b/Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rng/atmel,at91-trng.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Atmel AT91 True Random Number Generator + +maintainers: + - Nicolas Ferre + - Alexandre Belloni + - Ludovic Desroches + +properties: + compatible: + enum: + - atmel,at91sam9g45-trng + - microchip,sam9x60-trng + + clocks: + maxItems: 1 + + interrupts: + maxItems: 1 + + reg: + maxItems: 1 + +required: + - compatible + - clocks + - interrupts + - reg + +additionalProperties: false + +examples: + - | + #include + + rng@fffcc000 { + compatible = "atmel,at91sam9g45-trng"; + reg = <0xfffcc000 0x4000>; + interrupts = <6 IRQ_TYPE_LEVEL_HIGH 0>; + clocks = <&trng_clk>; + }; diff --git a/Documentation/devicetree/bindings/rng/atmel-trng.txt b/Documentation/devicetree/bindings/rng/atmel-trng.txt deleted file mode 100644 index 3900ee4f3532..000000000000 --- a/Documentation/devicetree/bindings/rng/atmel-trng.txt +++ /dev/null @@ -1,16 +0,0 @@ -Atmel TRNG (True Random Number Generator) block - -Required properties: -- compatible : Should be "atmel,at91sam9g45-trng" or "microchip,sam9x60-trng" -- reg : Offset and length of the register set of this block -- interrupts : the interrupt number for the TRNG block -- clocks: should contain the TRNG clk source - -Example: - -trng@fffcc000 { - compatible = "atmel,at91sam9g45-trng"; - reg = <0xfffcc000 0x4000>; - interrupts = <6 IRQ_TYPE_LEVEL_HIGH 0>; - clocks = <&trng_clk>; -};