From patchwork Mon Dec 27 18:32:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12700000 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 91C71C433EF for ; Mon, 27 Dec 2021 18:34:41 +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: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:In-Reply-To:References: List-Owner; bh=maNhPrgAaImgFT0JRRuiPhYgKcLR+JrQLtz5QhZil5s=; b=eX1bW8eBy6A/OV GVzAR44/UHS+hdw8SvP2irVeWcg5cbXm/+K5m44jo+IxQ+tGHB//TYWRYEvH07AihGHa9pr4UX0nd j0/96U3VAwphwY5i6D1EX/B41CF/rq2e9MQ4mjhdn4pXr/c25BUsmRqZhJRwDmRoegWMREs5TcWrH pdrXE3g0Y5xpG76NgdjHml4jVEmIUdSe8EWDTiXNrHrt6u0/epkXJmYyHI09VvTnc5KuEEMqGEqF4 HnTI98m85ww0w0TI5xhe4CCqlsnp74Y7h3U2LHTzCwgfIgKCc3oFYjFt5HYbM07IAHJq3uobS9gws suCGIUm9e6lPurnmn33g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n1uoD-00HHDg-Dy; Mon, 27 Dec 2021 18:33:21 +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-00HH4z-FS for linux-arm-kernel@lists.infradead.org; Mon, 27 Dec 2021 18:33:07 +0000 Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) (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 00A603FFDA for ; Mon, 27 Dec 2021 18:32:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1640629977; bh=i54sREsIiziNBvMfagruvxn2qixoZveyXs+MJUzMCDQ=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=gBAGx34FitmlyBt0oy/fmNfty199IsOby3v1G5vKTKlBiWN+6aIKS7Da1jvhZHXXx hnLJYs3O0lravlinA53/YZ6yWdL44og2+4AuSGnRMj69ic6FvyWHfCiRUrX/d7vZcQ ldwkzivnzVE0GimvWJ2dsDihLv1RquCIBegxr0x0oBJhPtajFNsOnulvP5nDrd9w1N A+ZaXq+dTbApTFTF7sWxWQMglKCWYM75L35J8lEaxI7ofOPMtjqS8p6dPtj04fQM67 6W35JplYS+JnZ45XCrG6MAcVS+42EM1Mzd44D5w6lRMUU94y4UbiTPeqas4bKMXyST Ev38VMn8xudmg== Received: by mail-lj1-f198.google.com with SMTP id k11-20020a05651c0a0b00b0022dc4d55f14so2296569ljq.22 for ; Mon, 27 Dec 2021 10:32:56 -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:mime-version :content-transfer-encoding; bh=i54sREsIiziNBvMfagruvxn2qixoZveyXs+MJUzMCDQ=; b=h5KwMrGhyOuuNjCQUauRhSMhFiAM+MRERyjIqlw6WNc4SYa507IxBJT6zXX8b9P/m1 8cYlcxuCMAfyzbOZ5cXP60j6ORrhMTZMAngIn+tKMv+O4gDRRpL1ywlkb90MyYkxf81i VTi62MEsNulVqiuKvtfqYiOkfolt0pbiYugWdTkGKvc7ey2x8oorppIuhzc4GXHF0An6 0+JNRBmrtvEQTpVjEfNzrqBLx+ziOuMOmP4xd8s6CehR2tI1rqg2RWq0OU03vCxr6Tvu NDZ6sagXlkRTN6uzRfl9QclRz1DhwixOHJV4SO+xpPYE+ZnKdwCGq21FrNv19PxIUELt K7KA== X-Gm-Message-State: AOAM53209FnlAac/tQYxgY4Hg/nVn9MILlIWWH7apSSyNM+9jALQ2Jjc yzHzZI0EQa2c7/Y9jYuwOxcQIluVHQDgiVhGRmpIKkk36pjmqKY+67kCV2Uzb3DaSAqDJVQ/I/C tLky4a7XAJxlKyXgkLRR+knpF4FHg1iDZXlm7N1VJwe5vh04TR3zH X-Received: by 2002:a05:6512:139e:: with SMTP id p30mr16310374lfa.492.1640629976302; Mon, 27 Dec 2021 10:32:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxAZ3WEqusbAy4q7yWvfndZFSCKKy0G3HTKCX5F7Y7Ex31eIeYUwjTgsdfidX3vvAEfthquPg== X-Received: by 2002:a05:6512:139e:: with SMTP id p30mr16310362lfa.492.1640629976089; Mon, 27 Dec 2021 10:32:56 -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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Dec 2021 10:32:55 -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 1/8] dt-bindings: rng: apm, x-gene-rng: convert APM RNG to dtschema Date: Mon, 27 Dec 2021 19:32:44 +0100 Message-Id: <20211227183251.132525-1-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211227_103305_690240_DA20D6DD X-CRM114-Status: GOOD ( 16.58 ) 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 APM X-Gene RNG bindings to DT schema. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/rng/apm,rng.txt | 17 ------- .../bindings/rng/apm,x-gene-rng.yaml | 47 +++++++++++++++++++ 2 files changed, 47 insertions(+), 17 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rng/apm,rng.txt create mode 100644 Documentation/devicetree/bindings/rng/apm,x-gene-rng.yaml diff --git a/Documentation/devicetree/bindings/rng/apm,rng.txt b/Documentation/devicetree/bindings/rng/apm,rng.txt deleted file mode 100644 index 4dde4b06cdd9..000000000000 --- a/Documentation/devicetree/bindings/rng/apm,rng.txt +++ /dev/null @@ -1,17 +0,0 @@ -APM X-Gene SoC random number generator. - -Required properties: - -- compatible : should be "apm,xgene-rng" -- reg : specifies base physical address and size of the registers map -- clocks : phandle to clock-controller plus clock-specifier pair -- interrupts : specify the fault interrupt for the RNG device - -Example: - - rng: rng@10520000 { - compatible = "apm,xgene-rng"; - reg = <0x0 0x10520000 0x0 0x100>; - interrupts = <0x0 0x41 0x4>; - clocks = <&rngpkaclk 0>; - }; diff --git a/Documentation/devicetree/bindings/rng/apm,x-gene-rng.yaml b/Documentation/devicetree/bindings/rng/apm,x-gene-rng.yaml new file mode 100644 index 000000000000..02be143cc829 --- /dev/null +++ b/Documentation/devicetree/bindings/rng/apm,x-gene-rng.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rng/apm,x-gene-rng.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: APM X-Gene SoC Random Number Generator + +maintainers: + - Khuong Dinh + +properties: + compatible: + const: apm,xgene-rng + + clocks: + maxItems: 1 + + interrupts: + maxItems: 1 + + reg: + maxItems: 1 + +required: + - compatible + - clocks + - interrupts + - reg + +additionalProperties: false + +examples: + - | + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + rng@10520000 { + compatible = "apm,xgene-rng"; + reg = <0x0 0x10520000 0x0 0x100>; + interrupts = ; + clocks = <&rngpkaclk 0>; + }; + }; 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>; -}; From patchwork Mon Dec 27 18:32:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12699999 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 AE82CC433EF for ; Mon, 27 Dec 2021 18:34:30 +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=QhQRXCZjdNS7I0Nv+UAPfPSFmyAW4iPL9cXRDgbnoxw=; b=oCzmis1ImfpWmA sFBrGcJpltsDaxnq7+FPF28FBTISgWPKoPiPBrhdFQPh3evNInGEnTjWehyAPYMtxQmyi5xQE4mT9 XHCqOQouatpvNkXwTElqsDIpa5CpJSNwf2W/su8IjJ5CvN59jNmdNcPT4VVM517QMuRV2s1bzvgTI junCOZRJ164rej4DVMMhIlrAtGAbZK+TU4oAMSjQHAT+CxrE4zH44330vRB8AjTbjlebCKPxaEtbZ cWsqAY7EEzUVl9JfER9XSsUtTg6LZe9blHcQxfLlAUBAlob+8dwHHRMCI/jxfeUUnHdKUp3H5DR4p mtU4gFtWdib2GGwlXNjg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n1uo1-00HH7q-VH; Mon, 27 Dec 2021 18:33:10 +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-00HH4x-FR for linux-arm-kernel@lists.infradead.org; Mon, 27 Dec 2021 18:33:06 +0000 Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) (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 D8E1D402ED for ; Mon, 27 Dec 2021 18:32:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1640629979; bh=RFPGHmjdhJ/hloNRhgmml05wd4YHMhrSG+GgHjMTnJk=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=hbsNls55h7iHCHQKlGI0ce8CWrlK61baRNtu8ytzbBrlTT38GsL/9IAZC0nO/12KC 5LVkT09qvGnq3i/4HZTnImGVNkVp6qJlNcGddU7a+4Ry+5Yn53pkaDRhsQZtrX4JxV y5NnorBgtAF7BgiHG19Vld7MzpyRyFZyJFj5fTk9ZA4PTY0hwqMMtd7ohyHFNHjA36 J58/BbCd7IEWgOWDQh8a7faMtCktbKWIah7m5/LKLjMmB5BAOlzUsqlSsZiCfEZqLb WCV2yUlAkCcLmUpqa+KvqgaUs32BqBD3RrETwphVskQgIvMAecIhEiXXRvIATazx+m bLDXje5qSboZA== Received: by mail-lj1-f197.google.com with SMTP id v19-20020a2e87d3000000b0022dbe4687f1so2506129ljj.7 for ; Mon, 27 Dec 2021 10:32:59 -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=RFPGHmjdhJ/hloNRhgmml05wd4YHMhrSG+GgHjMTnJk=; b=d3p9v1vbqsRf838zY9SVMGqnnkcmNS4pJ3uJs8sx0ohdl0fhjwHa+i0JQQZK1xxsQ+ fy2zhFCHRBBYNUOAX4oyUQVpLqND4R0VJKPFecPcIjT/sTvoc5rYRM2s/KYMcWgCcRcE h0XhXG9nDptX3LzqDEPEwck+8RIW2dgKpksXsGeOKc5a/wy8BF1AHO0VwsDrP8k5u9Gn 1QJmu54srBqbVE2eIL+Y6P2G/gpQlElZL+yWxuZdv368wOxtdgWoUvVHqzaj/5VvaIjq XaXVHuqZjZbJ4vl9zK8utgIrD6qC6PDJ67u3SuN9KTz5NzPWjb+ujjbSR9Gu3qa+yI5b 8rlA== X-Gm-Message-State: AOAM530nhxFESPLEN6xRIslkNy3tS+2BEW8ueXyYsBhoqBBHE+dhtEPl Vp5xTg3FUzXkvNRM8Z46QlTozj8JQK3NmRkl8EB+4nqaxCAYy6+bbAGWjYTZ97RABCEWAe/TEyR Kl97x20FPTg+vDsWfWLIWsJxKmk0zRuaz4U163nqQ9vgKOLwDz4Ov X-Received: by 2002:a05:6512:168b:: with SMTP id bu11mr15627636lfb.401.1640629979251; Mon, 27 Dec 2021 10:32:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJy/Gt49kywYk1krG8CoXR3xfc8T8Tm6VqX8pnxg2OeXzFbjocvCOPPW2+Ds+ALgMTQuQ1xw9g== X-Received: by 2002:a05:6512:168b:: with SMTP id bu11mr15627620lfb.401.1640629978994; Mon, 27 Dec 2021 10:32:58 -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.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Dec 2021 10:32:58 -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 3/8] dt-bindings: rng: atmel,at91-trng: document sama7g5 TRNG Date: Mon, 27 Dec 2021 19:32:46 +0100 Message-Id: <20211227183251.132525-3-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_686963_A4497D3D X-CRM114-Status: GOOD ( 11.79 ) 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 compatbile for Microchip sama7g5 TRNG. Signed-off-by: Krzysztof Kozlowski Acked-by: Nicolas Ferre --- .../devicetree/bindings/rng/atmel,at91-trng.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml b/Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml index 0324e863dab8..c1527637eb74 100644 --- a/Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml +++ b/Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml @@ -13,9 +13,14 @@ maintainers: properties: compatible: - enum: - - atmel,at91sam9g45-trng - - microchip,sam9x60-trng + oneOf: + - enum: + - atmel,at91sam9g45-trng + - microchip,sam9x60-trng + - items: + - enum: + - microchip,sama7g5-trng + - const: atmel,at91sam9g45-trng clocks: maxItems: 1 From patchwork Mon Dec 27 18:32:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12700004 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 44473C433EF for ; Mon, 27 Dec 2021 18:35:46 +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=Wzq0zrK4tSZNnmiEcYS8P7TGCBuqPYaXvE3DJKcclOs=; b=xIzHQyGLmiQPfr B2LOn2IZT3dvShENpMlzRpP6YO+nZ7mDCbJZiZTJcPukVx65BIo2E9eDb43QXplJO0qoBUMb0ookZ fhDSHLo3p5ZbSCRDHhdOjMPzaw7Gu3TG8o1WSvnK/NxpXiy3f6DYv4xro6nToAVGXLOjEWqjSV+el oALDk/sPF5qgxTD6Q+aFyMTGXHAx0rkbnIkBi1LgTLRp/fhfhC6gXo9xsY3es4i1m6hDGHHKtAK9q 2+HRgHQ0FZYOvycY/3IfLmU5hjhjosNJ4BG7PvrsDuNZICHj22KYidctU6GjrmeeeQlxhz0G6qRg1 BAf7YxJpty1MQGZLvBZw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n1upD-00HHc5-Ue; Mon, 27 Dec 2021 18:34:24 +0000 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n1uny-00HH4y-W0 for linux-arm-kernel@lists.infradead.org; Mon, 27 Dec 2021 18:33:09 +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-0.canonical.com (Postfix) with ESMTPS id 792653F206 for ; Mon, 27 Dec 2021 18:33:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1640629981; bh=YNz7bZBCirgiUqMV90mDMcfWLPuTB2AJTgAPIRcxfBU=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=mQM4V0krFd1Fqq7ZD2alexp0293sASuhGPqpu+1Z0+f2tPraZwrcX2glR1KLYpEmn KWMr9wM/xHW5yvqi3s9PyG98+KlAVFg86IfSNl0m52Jkm+zeBOFZmBCul2mcGAa7gt kc7ylbW5fo+Fb3XfJ0AYu4aqOVP9lE1VQc+CsIoT/xTONF7BBy4PF/ohfhitMn/vME mzeFMTMM10AoWdAGN1pa8tgtCG355WGL49BHsI9Vm2XpYKe0OfOaWcrWdEKy8yuQ3U jjn3tyWPOXVi+ubPquLTu/iMzECH3iwF9w3vWlpN+GQHo9pXF9Xkut2sdU26N8cY2t EeheJnwgNMTMQ== Received: by mail-lj1-f200.google.com with SMTP id b20-20020a2e9894000000b0022dc5a5f841so2253646ljj.2 for ; Mon, 27 Dec 2021 10:33:01 -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=YNz7bZBCirgiUqMV90mDMcfWLPuTB2AJTgAPIRcxfBU=; b=qZ1Yfu235pPAuSVc2U9JuN7NDl32+vFeIUEWAVsVOkYnyc7Y5RJ35XgzFo971EfPXQ 7Ln4dSYryL06+E9tc6N/JGphzaFnBLC3toASWk7zPMvvaotij1/K/1vStlX5pmXNGCHo d4yhoomG49RIcXISUe7HlqCLLvpDVzlENc9p6zGSF66M9wo/WUyIeJ+HtMV0WLyw4t6m 7CUGAVd6kMs1hdsNIKIZseBuBfHAV9qPWFtEX2nDNMg3eZ99Yw0o0hUR46LG7IFCmkFC ClSeL2XIeA3zbOatZCAZc/eSXlDDcJr99yfauZgumwa/HC7lBf1PtNgcyfW36wzjk/Fv kX+g== X-Gm-Message-State: AOAM532b/YRJUdSWRg6/zqAyNVI/VFmcAvrObZZcIYtPvgwO1Ru9DmTL gRb9HwB+cl4MXkmqr4Gv+WlqxqBC0Sb9fFhy1xmeY8DHOTDsw5e1kBMIKM6ephVjrl5Jj0hqYE+ 0OnmFvJR0UJ+AMldao34jpCc9HWwG5PyLMa93u80lPdY5rXeaion0 X-Received: by 2002:a05:6512:228d:: with SMTP id f13mr10245757lfu.6.1640629980930; Mon, 27 Dec 2021 10:33:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2MVFgtxVXl9dkYylvm3W8Z0PJf+NtYNzVtH9LFtR6/thbbsYTREB34HF4sYqA19ZCqZuMBw== X-Received: by 2002:a05:6512:228d:: with SMTP id f13mr10245747lfu.6.1640629980747; Mon, 27 Dec 2021 10:33:00 -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.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Dec 2021 10:33:00 -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 4/8] dt-bindings: rng: ti, keystone-rng: convert TI Keystone RNG to dtschema Date: Mon, 27 Dec 2021 19:32:47 +0100 Message-Id: <20211227183251.132525-4-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_103307_239160_C246118B X-CRM114-Status: GOOD ( 18.50 ) 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 TI Keystone RNG bindings to DT schema. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/rng/ks-sa-rng.txt | 21 -------- .../bindings/rng/ti,keystone-rng.yaml | 50 +++++++++++++++++++ 2 files changed, 50 insertions(+), 21 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rng/ks-sa-rng.txt create mode 100644 Documentation/devicetree/bindings/rng/ti,keystone-rng.yaml diff --git a/Documentation/devicetree/bindings/rng/ks-sa-rng.txt b/Documentation/devicetree/bindings/rng/ks-sa-rng.txt deleted file mode 100644 index b7a65b487901..000000000000 --- a/Documentation/devicetree/bindings/rng/ks-sa-rng.txt +++ /dev/null @@ -1,21 +0,0 @@ -Keystone SoC Hardware Random Number Generator(HWRNG) Module - -On Keystone SoCs HWRNG module is a submodule of the Security Accelerator. - -- compatible: should be "ti,keystone-rng" -- ti,syscon-sa-cfg: phandle to syscon node of the SA configuration registers. - This registers are shared between hwrng and crypto drivers. -- clocks: phandle to the reference clocks for the subsystem -- clock-names: functional clock name. Should be set to "fck" -- reg: HWRNG module register space - -Example: -/* K2HK */ - -rng@24000 { - compatible = "ti,keystone-rng"; - ti,syscon-sa-cfg = <&sa_config>; - clocks = <&clksa>; - clock-names = "fck"; - reg = <0x24000 0x1000>; -}; diff --git a/Documentation/devicetree/bindings/rng/ti,keystone-rng.yaml b/Documentation/devicetree/bindings/rng/ti,keystone-rng.yaml new file mode 100644 index 000000000000..e749818fc193 --- /dev/null +++ b/Documentation/devicetree/bindings/rng/ti,keystone-rng.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rng/ti,keystone-rng.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Keystone SoC Hardware Random Number Generator + +maintainers: + - Nishanth Menon + - Santosh Shilimkar + +properties: + compatible: + const: ti,keystone-rng + + clocks: + maxItems: 1 + + clock-names: + items: + - const: fck + + reg: + maxItems: 1 + + ti,syscon-sa-cfg: + $ref: "/schemas/types.yaml#/definitions/phandle" + description: | + Phandle to syscon node of the SA configuration registers. These + registers are shared between HWRNG and crypto drivers. + +required: + - compatible + - clocks + - clock-names + - reg + - ti,syscon-sa-cfg + +additionalProperties: false + +examples: + - | + rng@24000 { + compatible = "ti,keystone-rng"; + ti,syscon-sa-cfg = <&sa_config>; + clocks = <&clksa>; + clock-names = "fck"; + reg = <0x24000 0x1000>; + }; From patchwork Mon Dec 27 18:32:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12700001 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 DE771C433F5 for ; Mon, 27 Dec 2021 18:34:56 +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=haom938vTGQKxMEmcEIFIYGAp4oRPh+nrWIjM0rTOz4=; b=3CNne1ITxA4T0K /mhm29BRhAg6fXlWQvN5EC1kO7LW5EzpgfZF8JG+I4dvyIiIc/ButYZ4p/G+ZzEUN9PQ628TwsFgu oIWeONNcpQVc2EdpHMm5DkzqmlbSZqd1Fx3Q/6/yuPvZBO92iFeN1Q3UhEuSsV62lfQ+h7Xfyy7g1 rMYC4J1jrdIsfodpVtAJi2MfD/8uvTG33stvM1jwtnK7uK0rK+bujCqL79lUwqJ37E4YR2Ao/E/nW D3jLb1lA6ZJYdNyGWsTU1bKfjXrDuV+RehTUC6YJeO1pHem6EL4bcpBBRjH/vSROsdZo1Uq9k9Wyl Hn1nuiatuJLqOEM0XyCA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n1uoQ-00HHJS-MB; Mon, 27 Dec 2021 18:33:35 +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-00HH5A-FQ for linux-arm-kernel@lists.infradead.org; Mon, 27 Dec 2021 18:33:08 +0000 Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) (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 8FE52402E5 for ; Mon, 27 Dec 2021 18:33:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1640629983; bh=3Q76L02spV6rbbuHR2sV57AudkwFdOfi5uJcF47/ZVw=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=FDQNMg1UR5tuBhmC05kar3Pdl8TtNpCecm2xOO7nOeFIpxcwVq3B7tT3yi48dVF/x u+o8cGwsxAHIfQRMO64lLmuIeJxuTHjRZvIbx0IEVPUfPsPdxfqMqHu2yLR2FtwRDb H2w5LH/+ZdcNm6KsotJQI4qCVV/i8sszdIJx+p4A7lv1sYspFe9KQsAYy/itHXdS3Z 9Z88lIb0RljwmdXv0OCvomeNxTuSG7OutFbN+2lTnoU6BX5n6rNKHonG6y5OcVr3iD iryfUfb9L9yKq084BVa2xkaxYpBByuwhk05hWzF5WiDyKMAuseECqT+UNXhJ8/WNdf MRNinV8vPM4lA== Received: by mail-lj1-f197.google.com with SMTP id y4-20020a2e95c4000000b0022dbab5f69eso2510604ljh.14 for ; Mon, 27 Dec 2021 10:33:03 -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=3Q76L02spV6rbbuHR2sV57AudkwFdOfi5uJcF47/ZVw=; b=CaOp2ly1O20daoYnMqVGZN9hUpiZRcDmhrV2I7RR74Z48J+Q5/W8Urm9e25XeTPWgB 8tmdavAyhk3mc06k823WZ7VfChPCgh8zpMNsvkJ7AuT+xE0erfILMbnCOOCyye+3Gfcz Ts7kVE/5aW+/AWh2CJa+x1ti/2asUJN2SfZqi9cQARWDPvL1C6Kz9g2LZPtF4ZQ7056f 8KMUfO9qXM3ZBpAmF3aO6jeqQA/iFnPKwSi+LrsZxkL8YyQLePtHT9QIGX0GqKOj6Hxk rS7xYCzh49dmgmi0Jmf5f4SRONEYpC518cXd/+8smNjx4BX8eOi+QMDS1Pmq8uWgNmj3 SfOw== X-Gm-Message-State: AOAM532xZ/EKkjmFJlvtj9PXhcHPcPMEKP1H3XjRa4thA8li6NKHX+Tw 8cIKA3KkE0NR5RtjYD3kIHa7Wqh4+axxn7sAnc2T/jIuNI8fUg4ikSD4I9HLWNzyRVl7Mg9Xl/2 oaY7mfjLjZvKYuzn/KCCfahRObvLewDUU69IuS2mm5gd412OyhNga X-Received: by 2002:a2e:141c:: with SMTP id u28mr15227838ljd.338.1640629982304; Mon, 27 Dec 2021 10:33:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3O/GRYpaNdG1mlwpRYPezP3gDyMQfsP+6AvdRKYOdbC4zcWygSTmf7lt1HtEIyYzxmmRdEw== X-Received: by 2002:a2e:141c:: with SMTP id u28mr15227822ljd.338.1640629982100; Mon, 27 Dec 2021 10:33:02 -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.33.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Dec 2021 10:33:01 -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 5/8] dt-bindings: rng: nuvoton, npcm-rng: convert Nuvoton NPCM RNG to dtschema Date: Mon, 27 Dec 2021 19:32:48 +0100 Message-Id: <20211227183251.132525-5-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_694132_3805AEE2 X-CRM114-Status: GOOD ( 17.66 ) 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 Nuvoton NPCM RNG bindings to DT schema. Signed-off-by: Krzysztof Kozlowski --- .../bindings/rng/nuvoton,npcm-rng.txt | 12 ------- .../bindings/rng/nuvoton,npcm-rng.yaml | 35 +++++++++++++++++++ 2 files changed, 35 insertions(+), 12 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rng/nuvoton,npcm-rng.txt create mode 100644 Documentation/devicetree/bindings/rng/nuvoton,npcm-rng.yaml diff --git a/Documentation/devicetree/bindings/rng/nuvoton,npcm-rng.txt b/Documentation/devicetree/bindings/rng/nuvoton,npcm-rng.txt deleted file mode 100644 index 65c04172fc8c..000000000000 --- a/Documentation/devicetree/bindings/rng/nuvoton,npcm-rng.txt +++ /dev/null @@ -1,12 +0,0 @@ -NPCM SoC Random Number Generator - -Required properties: -- compatible : "nuvoton,npcm750-rng" for the NPCM7XX BMC. -- reg : Specifies physical base address and size of the registers. - -Example: - -rng: rng@f000b000 { - compatible = "nuvoton,npcm750-rng"; - reg = <0xf000b000 0x8>; -}; diff --git a/Documentation/devicetree/bindings/rng/nuvoton,npcm-rng.yaml b/Documentation/devicetree/bindings/rng/nuvoton,npcm-rng.yaml new file mode 100644 index 000000000000..abd134c9d400 --- /dev/null +++ b/Documentation/devicetree/bindings/rng/nuvoton,npcm-rng.yaml @@ -0,0 +1,35 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rng/nuvoton,npcm-rng.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nuvoton NPCM SoC Random Number Generator + +maintainers: + - Avi Fishman + - Tomer Maimon + - Tali Perry + - Patrick Venture + - Nancy Yuen + - Benjamin Fair + +properties: + compatible: + const: nuvoton,npcm750-rng + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + rng@f000b000 { + compatible = "nuvoton,npcm750-rng"; + reg = <0xf000b000 0x8>; + }; From patchwork Mon Dec 27 18:32:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12700006 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 690F8C433F5 for ; Mon, 27 Dec 2021 18:36:46 +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=v/gSrP7m6s9mTQnAD3xb6A+wnPw9JT9wOcbD3thAA7M=; b=UODQDs7sci5gwa V8CQkNqMlWqPV/2NCV9ROiCYiVMkOVtnIb102J/M6rbp6duBGD9serKk4vcwnKL0oqvHP6pcnH1l+ 57yhFC3QPg5XQgrLzEZug0Y2gpbOY7FkIkKlFp/LUXmJvXoym62bmqYUf4+OoCWMwDwHwFx2mTNCi v2W+U+Puer9aDHu1QSp5/lGpzoC6OAsYB6WlnD2jLr5kH8Ee5t8G1qojKDxEoAAVMa1lsR/AAj3cR vjDUx7eLyYqPDJrAqobQLTcqKNQKhIHt8bck2mtE5fyhGeWTZAHgYICumNrrourHS7ZETtbBK1xSf nyEa70vbYGtmOTt1Kknw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n1uq8-00HI3A-Lq; Mon, 27 Dec 2021 18:35:21 +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 1n1uo8-00HHBJ-C0 for linux-arm-kernel@lists.infradead.org; Mon, 27 Dec 2021 18:33:18 +0000 Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (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 EA92B3FFDA for ; Mon, 27 Dec 2021 18:33:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1640629994; bh=NkhG/x29/01OwnwUW7nLUUqEe+ov12qsWpqmInTRQ8g=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=b/deRvJugD9wyr/ETrpfD4lBdV/YXDWekjq4f4p7ToZb1lP4PeJG5FThIqGF9F90o RfnS7O5EElE2WLczcv3cJh0WfjAlNQtOvmN8yrD6fGb1AlqdnT2v49CzkZ7pyArZ7K P30w9E5dkSzvOcd8z9lgHyNYoO1wkPf3L20kPijnk1eaVHAnE3EY3JARsFB80XHoyN de84dHMxCYixVakG8CfaRjPb0lPUVMG8yZ/Wa0hMXIud0YRY9q6nKBOlrfbqsITB+o D6ifuvjXdWeuUQ3O9BzHA5yFGpyA3mWpUvlMto0XvBGer/OJIEUtxjcHmzZ9fei95y tyGCSDfhz2sDA== Received: by mail-wr1-f70.google.com with SMTP id r7-20020adfbb07000000b001a254645f13so3307619wrg.7 for ; Mon, 27 Dec 2021 10:33:14 -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=NkhG/x29/01OwnwUW7nLUUqEe+ov12qsWpqmInTRQ8g=; b=dTctnBj86b8lWKkIvk/mobjIh3Y9tdbm3zaerMyiPj4g+Z4c3LFaGal4EgJvIz5Mk9 L3NWZQzy8ceTbzsy/wbyUEqbpz52x9xPtFGNbqj/IwPA+GFvP2gTROsw86KMbIeXjy2Y GBgqmDu6rkpA6lFJubqf9Vm0w/rC/DYqzfLRMKJ1uUwAeLYoGHEJoTL+ANCRFtoTY8Jk NTf0KFOybROXmQ/zSH2B81ek5VfXKS8BuJGLOfNwhdS/QD+wR2K04eZ65gd71ndlWYYP qn/6MUxidWeb1RJmPHxdPRZr+jbOTfwwaGq62iz0xP10YZC0jBo5r/c8/9vYQZyun0Sm 3U3w== X-Gm-Message-State: AOAM530KXNc//B+LchmkSjFU1I50lrWsfzAqVALKt6x/E8okz2E8cm1c XW/P+cQ1Get18448Vad6q4arT1gHiq+QLgsTFjp/XniDZ6QYXLS3GaGwoPkWJo2+I0a2ziwTtC0 9y/J2vYf8tmwZa1NSAOASAc7YL880gFhtxqfXM3hNUAFZONXCY+z+ X-Received: by 2002:a05:651c:1788:: with SMTP id bn8mr15237854ljb.521.1640629983713; Mon, 27 Dec 2021 10:33:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJwPduPoQbsa0sy+uH2eNHIhEtE/sohO5iVYWenQxdkMncrOkJ+IgNQ7Hd0WQR7JT8kWLRV0CA== X-Received: by 2002:a05:651c:1788:: with SMTP id bn8mr15237828ljb.521.1640629983480; Mon, 27 Dec 2021 10:33:03 -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.33.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Dec 2021 10:33:03 -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 6/8] dt-bindings: rng: ti, omap-rom-rng: convert OMAP ROM RNG to dtschema Date: Mon, 27 Dec 2021 19:32:49 +0100 Message-Id: <20211227183251.132525-6-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_103316_592449_38C1DF73 X-CRM114-Status: GOOD ( 18.29 ) 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 OMAP ROM RNG bindings to DT schema. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/rng/omap3_rom_rng.txt | 27 ------------ .../bindings/rng/ti,omap-rom-rng.yaml | 41 +++++++++++++++++++ 2 files changed, 41 insertions(+), 27 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rng/omap3_rom_rng.txt create mode 100644 Documentation/devicetree/bindings/rng/ti,omap-rom-rng.yaml diff --git a/Documentation/devicetree/bindings/rng/omap3_rom_rng.txt b/Documentation/devicetree/bindings/rng/omap3_rom_rng.txt deleted file mode 100644 index f315c9723bd2..000000000000 --- a/Documentation/devicetree/bindings/rng/omap3_rom_rng.txt +++ /dev/null @@ -1,27 +0,0 @@ -OMAP ROM RNG driver binding - -Secure SoCs may provide RNG via secure ROM calls like Nokia N900 does. The -implementation can depend on the SoC secure ROM used. - -- compatible: - Usage: required - Value type: - Definition: must be "nokia,n900-rom-rng" - -- clocks: - Usage: required - Value type: - Definition: reference to the the RNG interface clock - -- clock-names: - Usage: required - Value type: - Definition: must be "ick" - -Example: - - rom_rng: rng { - compatible = "nokia,n900-rom-rng"; - clocks = <&rng_ick>; - clock-names = "ick"; - }; diff --git a/Documentation/devicetree/bindings/rng/ti,omap-rom-rng.yaml b/Documentation/devicetree/bindings/rng/ti,omap-rom-rng.yaml new file mode 100644 index 000000000000..9a58440b1ab1 --- /dev/null +++ b/Documentation/devicetree/bindings/rng/ti,omap-rom-rng.yaml @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rng/ti,omap-rom-rng.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: OMAP ROM Random Number Generator + +maintainers: + - Pali Rohár + - Tony Lindgren + +description: + Secure SoCs may provide RNG via secure ROM calls like Nokia N900 does. + The implementation can depend on the SoC secure ROM used. + +properties: + compatible: + const: nokia,n900-rom-rng + + clocks: + maxItems: 1 + + clock-names: + items: + - const: ick + +required: + - compatible + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + rng { + compatible = "nokia,n900-rom-rng"; + clocks = <&rng_ick>; + clock-names = "ick"; + }; From patchwork Mon Dec 27 18:32:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12700003 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 89D88C433EF for ; Mon, 27 Dec 2021 18:35: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: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=nny9IKuUeENWzl5qqZc3asnZMgSdUM1LNf2TIO1ArBQ=; b=UnyHy4BA//JDX+ +bH7A0qvi7tBNhepBOkGaklr0QyhZtMGYPJX93voogM36u0BlNl6RgPu4noh7/m/oIQh3xjfd7AKq 8ANxgK5+r+Lx3Lecnjw3zrZbx4lVEZxx8vHVXXE+LY4LGRDgVsxhtsRVtdF7L6Iw4rbcRCJSmsE1f QTSmSzYzzRGN5XJ4snr/5lt8IoOIi1eRoC6+TCFLAAXTicI2rovP/CiO5X9N5fGJD7iqVZzR6w7/C aehclTGvoQgqa2/6EyLZvppSF8td2RUWZo5TGcsVOsYHMKrkhsADRr8eMpyRrR0R0WObj5i+kxEjL jviz9HHwJxA40jCj86oA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n1uoz-00HHVi-5t; Mon, 27 Dec 2021 18:34:09 +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 1n1unz-00HH6Y-Jx for linux-arm-kernel@lists.infradead.org; Mon, 27 Dec 2021 18:33:09 +0000 Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) (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 ABEC9402FE for ; Mon, 27 Dec 2021 18:33:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1640629985; bh=cDCEy25L+nu0jfudc7PZIQa9FUmo6Gd8digQKlJvlAs=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=G0dMnEfP8dyjOvvcdjY4F54wuHm1ekTxOrUxFhgtBD/rD9iehMPkWKJQXxMSWxLFs nISpm99bi7Y0Uy2pW4sRT/oTEvjAKiLcTQMrybU/YoOBtLJnUZIOVyxdtTn4AMA0jJ HypfqvMGAfSogD2eSob3vHekwayDDLeM4/wCrXTmxBYojKqSxDhqiYCmTdYesAnY6O VHbf6HfdN6n5Zp1wG1vzFC+CfiRfreEDePy5b92et9tI6ax59btgIVUNBVACoIvvAR Aia4Qnucc3t9PJ9/NGHM4S1rclcRQ4K7VfzamH8zOigClcI+MhvLEWsuNnrQ6b9XXT eDnH22ym1eDHg== Received: by mail-lj1-f198.google.com with SMTP id v19-20020a2e87d3000000b0022dbe4687f1so2506209ljj.7 for ; Mon, 27 Dec 2021 10:33:05 -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=cDCEy25L+nu0jfudc7PZIQa9FUmo6Gd8digQKlJvlAs=; b=xopQFbHkFe2PY+Orvlfl8BmFhJnoKuKQWcxKFSuWIkgZ4xkyqql7++iev4g7Zs55hO EhwFf6LkpMskGrgK/0JTmN/qGs7yaXXmv/RdHqb27eoQDcfjuc/TdTg8BmyGRYxN0O5w Dk2VthFQ1myEaGisAAnJE1eqxqCsje5ed2k9CQqL+sN0PRu2o9ApnANZSoFMnAIseE72 q79pFTUsFujtoqzWTNDOmkqCvszi700JWmo7hlPKOnG/4e3jIohzEka9wYfddEnqtus8 sQvynd4aOuEs3NmTOpzFLASh6Mox1mvfq21E6ejaySjCJaQ2XoubH08jTde+Yba+rioB R/cw== X-Gm-Message-State: AOAM5312KSMetz9DfSfAb8OPXRnqwhu52ogAnze4htfqHZYz7S88/3UT jQ9t+96dpvksb9fmWcpWn4JZFJQmt/zAbswFB17G4UZ94tkpzaJutW7utJgmOJTRa7C8St0+0rG sRrhrp4g/iZOqB8DPFpnYkpHioql9j+UdPjVKj3wb+/eOORzeojqI X-Received: by 2002:a05:6512:1598:: with SMTP id bp24mr16353992lfb.65.1640629985102; Mon, 27 Dec 2021 10:33:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3kFMlMAdQXCxbskTEMB+R+oa2Xt/GVAXanOCHL6Mls3XVIJnedTi419+2LDz4zUcQPZRm8Q== X-Received: by 2002:a05:6512:1598:: with SMTP id bp24mr16353985lfb.65.1640629984924; Mon, 27 Dec 2021 10:33:04 -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.33.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Dec 2021 10:33:04 -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 7/8] dt-bindings: rng: st,rng: convert ST RNG to dtschema Date: Mon, 27 Dec 2021 19:32:50 +0100 Message-Id: <20211227183251.132525-7-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_103307_821095_2BC6217B X-CRM114-Status: GOOD ( 16.85 ) 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 ST RNG bindings to DT schema. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/rng/st,rng.txt | 15 -------- .../devicetree/bindings/rng/st,rng.yaml | 35 +++++++++++++++++++ 2 files changed, 35 insertions(+), 15 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rng/st,rng.txt create mode 100644 Documentation/devicetree/bindings/rng/st,rng.yaml diff --git a/Documentation/devicetree/bindings/rng/st,rng.txt b/Documentation/devicetree/bindings/rng/st,rng.txt deleted file mode 100644 index 35734bc282e9..000000000000 --- a/Documentation/devicetree/bindings/rng/st,rng.txt +++ /dev/null @@ -1,15 +0,0 @@ -STMicroelectronics HW Random Number Generator ----------------------------------------------- - -Required parameters: -compatible : Should be "st,rng" -reg : Base address and size of IP's register map. -clocks : Phandle to device's clock (See: ../clocks/clock-bindings.txt) - -Example: - -rng@fee80000 { - compatible = "st,rng"; - reg = <0xfee80000 0x1000>; - clocks = <&clk_sysin>; -} diff --git a/Documentation/devicetree/bindings/rng/st,rng.yaml b/Documentation/devicetree/bindings/rng/st,rng.yaml new file mode 100644 index 000000000000..ff1211ef9046 --- /dev/null +++ b/Documentation/devicetree/bindings/rng/st,rng.yaml @@ -0,0 +1,35 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rng/st,rng.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMicroelectronics Hardware Random Number Generator + +maintainers: + - Patrice Chotard + +properties: + compatible: + const: st,rng + + clocks: + maxItems: 1 + + reg: + maxItems: 1 + +required: + - compatible + - clocks + - reg + +additionalProperties: false + +examples: + - | + rng@fee80000 { + compatible = "st,rng"; + reg = <0xfee80000 0x1000>; + clocks = <&clk_sysin>; + }; From patchwork Mon Dec 27 18:32:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12700005 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 A459BC433F5 for ; Mon, 27 Dec 2021 18:36: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=vXkVVBrN0isH0YWDtT0Evf2TBs+bC0ImUZJVaFbgHnA=; b=Ip77ot+MS8XS3q 8i/uidsDY8vmXaRULyeEArRATz1KMyhk/pScPSxUT0IDOraDDXPPCliJ/dPIBIChdV/Gb/Ixbx4xJ Kli9fMc9HPdqt+caa/N6nqgV2zbnv65Dioq5DZ+oY106xq5o7HEraEKSi9SZ5ZtgOvr1bKKVpVZPm SYmPQtbUv1kVqS94TUwh1MhyfvnTxhL+3ZUvMF6CRyh2O+y2F6n8L1f7flOPMnSO4sruTStzQs3OQ /Mnu8yyM4bO82zOwJcJDCtNnSH/DyBCJsOt8wJ3ptnEuLHH0hdrMHww2YQYdr+5npv5p/7Ws7J2wc kgnK9rakGzZfcherz7RA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n1upd-00HHn2-TE; Mon, 27 Dec 2021 18:34: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 1n1uo3-00HH8c-QY for linux-arm-kernel@lists.infradead.org; Mon, 27 Dec 2021 18:33:14 +0000 Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) (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 AF3A03FFDB for ; Mon, 27 Dec 2021 18:33:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1640629988; bh=SIUiGPqn4sHTI4wrPpQmcuGfM1myPDztAmFG+NtIpFs=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=bBIaC0DlCnvj42YKOnmdsYkLZ6ETIp7PBm6kdOSOmErBMZKSZzVVT+2zZDdmabIPK oZW3xrfg0YT+l+nXv75h+A/6eJMVZZIQ4JiQLixL5gHeFuzu3hh5AMckg4VlCmzn1/ 3aSdI/ShsSICGd6CGSuKV5DYHuI1x7LSGneYUV+rixNEp1+XNlgM5D9/ufaiYZPsgf j40J8gwE60SKzW4WCasbUmZx5K1tJoPBpNSRh124/vDnDuPXQEm7tkM0SVj+eVv4CT gvhXQqUoepUoO4SglQUOfFFamZU9oKv6G6PuBdjV0HVZ9tp9PBB94vOoTyT7A1tf4l ncP556wHpYhjQ== Received: by mail-lf1-f70.google.com with SMTP id b19-20020ac24113000000b004297f324073so1313733lfi.8 for ; Mon, 27 Dec 2021 10:33:08 -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=SIUiGPqn4sHTI4wrPpQmcuGfM1myPDztAmFG+NtIpFs=; b=dAM6tcjzZJMt/eLiGOTPultQdPqYIub22CZlw7MfFV3Nv+G8NKyd1cP6DlpHLwLxKF DoRTZTuHUMmFCprp+eJWXi5J7X1ofAoe+WToqpwWyUEH5VjFpYjrgf0vlmAIqCojKRJV E3U87RkkLWUK2h/3QKi8S0dLIvZycFD/+fw+1A5NCwVD/oFz/UQQ6lj7yvyqC1Zb+Ikj GAAaeRCOH5NefTC2pFiNvhXEiyhKW4g5JBGn5F5Eq2SGtfiPimjSmGWLJJAe+2x1gEGA iZyN7ClOgLgWDze6QG6VxQXgEAJee4R6QY7zg+2v1zR4okxrStxKWanSl375J66Ss93/ 6yxg== X-Gm-Message-State: AOAM531JQcqO6rHFooRUviiRVn6NrYDEg5B3prwuluURiggFr/Qzr0LF trEGTjirUKHHBHMryebDnujuTpAjwZGz3LNzMGMzortsdfKo12Rh16iBPBpaonnEFzOOkl9fo4i l/mq04DWslRmLGbStEqp2XpJFOCzUfCN3hQimTSG0pmghC1V/8Byy X-Received: by 2002:a05:651c:1686:: with SMTP id bd6mr6422218ljb.144.1640629987086; Mon, 27 Dec 2021 10:33:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJyiwYxvtGi5aBexdLaJuo+p/mJzCN8N3cW4pSt0ALzD1mYO4Fc/mOyRPmGVLkcxEc1Zn1IoqQ== X-Received: by 2002:a05:651c:1686:: with SMTP id bd6mr6422189ljb.144.1640629986863; Mon, 27 Dec 2021 10:33:06 -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.33.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Dec 2021 10:33:06 -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 8/8] dt-bindings: rng: timeriomem_rng: convert TimerIO RNG to dtschema Date: Mon, 27 Dec 2021 19:32:51 +0100 Message-Id: <20211227183251.132525-8-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_103312_853353_3C602327 X-CRM114-Status: GOOD ( 20.55 ) 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 TimerIO RNG bindings to DT schema. Signed-off-by: Krzysztof Kozlowski --- .../bindings/rng/timeriomem_rng.txt | 25 ---------- .../bindings/rng/timeriomem_rng.yaml | 48 +++++++++++++++++++ 2 files changed, 48 insertions(+), 25 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rng/timeriomem_rng.txt create mode 100644 Documentation/devicetree/bindings/rng/timeriomem_rng.yaml diff --git a/Documentation/devicetree/bindings/rng/timeriomem_rng.txt b/Documentation/devicetree/bindings/rng/timeriomem_rng.txt deleted file mode 100644 index fb4846160047..000000000000 --- a/Documentation/devicetree/bindings/rng/timeriomem_rng.txt +++ /dev/null @@ -1,25 +0,0 @@ -HWRNG support for the timeriomem_rng driver - -Required properties: -- compatible : "timeriomem_rng" -- reg : base address to sample from -- period : wait time in microseconds to use between samples - -Optional properties: -- quality : estimated number of bits of true entropy per 1024 bits read from the - rng. Defaults to zero which causes the kernel's default quality to - be used instead. Note that the default quality is usually zero - which disables using this rng to automatically fill the kernel's - entropy pool. - -N.B. currently 'reg' must be at least four bytes wide and 32-bit aligned - -Example: - -hwrng@44 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "timeriomem_rng"; - reg = <0x44 0x04>; - period = <1000000>; -}; diff --git a/Documentation/devicetree/bindings/rng/timeriomem_rng.yaml b/Documentation/devicetree/bindings/rng/timeriomem_rng.yaml new file mode 100644 index 000000000000..84bf518a5549 --- /dev/null +++ b/Documentation/devicetree/bindings/rng/timeriomem_rng.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rng/timeriomem_rng.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TimerIO Random Number Generator + +maintainers: + - Krzysztof Kozlowski + +properties: + compatible: + const: timeriomem_rng + + period: + $ref: /schemas/types.yaml#/definitions/uint32 + description: wait time in microseconds to use between samples + + quality: + $ref: /schemas/types.yaml#/definitions/uint32 + default: 0 + description: + Estimated number of bits of true entropy per 1024 bits read from the rng. + Defaults to zero which causes the kernel's default quality to be used + instead. Note that the default quality is usually zero which disables + using this rng to automatically fill the kernel's entropy pool. + + reg: + maxItems: 1 + description: + Base address to sample from. Currently 'reg' must be at least four bytes + wide and 32-bit aligned. + +required: + - compatible + - period + - reg + +additionalProperties: false + +examples: + - | + rng@44 { + compatible = "timeriomem_rng"; + reg = <0x44 0x04>; + period = <1000000>; + };