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: 12700013 X-Patchwork-Delegate: herbert@gondor.apana.org.au 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3AD29C433EF for ; Mon, 27 Dec 2021 18:33:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229848AbhL0SdT (ORCPT ); Mon, 27 Dec 2021 13:33:19 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:45492 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231748AbhL0SdP (ORCPT ); Mon, 27 Dec 2021 13:33:15 -0500 Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (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 2AF493F1EE 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=i54sREsIiziNBvMfagruvxn2qixoZveyXs+MJUzMCDQ=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=Ea18Fp0D5YA6f2t67keaW8IfqaQJRHBelugvQfo+DlEzIluWgmnKqdXUkArxTv0dy jW2B2LMc0/3uqLQs9EJit5BOSSfMf5fyf7KD5fpz/n6JLRqoYLSGs/qk5IzzWgRGDW BtA4wNE2BnBlBdgo/CySgF6aF+fqLQGqBur5HCJBkzzUHGZmrRUvACnMO5/tcznVYX 0R9guPWh1Cud8WgdG/uJpVD4gji23OqQW4Qe3jyp99iaFcEXU9I1l4hwxKWgj9wN4x bRc67U0kNAkxWhJO/1EFcqCzOBAMTtHD4vxAsk9hwjDILYFlc6XyK1S+JU4s/sWtjI r/AMdSwul7NIw== Received: by mail-ed1-f69.google.com with SMTP id z10-20020a05640235ca00b003f8efab3342so4458768edc.2 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:mime-version :content-transfer-encoding; bh=i54sREsIiziNBvMfagruvxn2qixoZveyXs+MJUzMCDQ=; b=5Xc9q2r1yn0vi2Z0finDsNMOKZin+vr8AT7aOzoG97bLbJgysEqrt8CComoJ/FQa2c rE/EyGfOxfoC4aAr1M25Apjnm+82XdZGH77XDp71Fd1zdrHpy/HMvJfsH2iChcbqynwn 5Ng6UDg8oh2QLMD+YAjMPVRpyoI/0LhhlSqsxAsaV0LyZayWaGKsFTccNct5msC65IyX 6VxthXf1M77n8+KK5UZpME8UwB4MLYX2sy3j+6p4Y6Z/I1lO+rsZ9g3PBcCcrSxThrM5 +EQsHv0md5vWiEVlWcvLMOcvyXRDnSuZgohGQURky/XXwDTz3rQ8UTRqftedkIPg+DMg XBdA== X-Gm-Message-State: AOAM530OlEGWmTLgLC2Bq4ZbVlxVld6A77b99cJz2Mltsk9yRA5u2/AO CaS7b4Jq9GYz+1wJNxDweDqe9vKh/6BmvW8rjjLkA/KnJJhqjQNjzwow+MKrnfJDnCzdmRiSiz5 sThRMtmPH10dMWP8sbE74DcTmz5N8CeTTSBUewIRw5A== X-Received: by 2002:a05:6512:139e:: with SMTP id p30mr16310392lfa.492.1640629976400; 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 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.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: 12700008 X-Patchwork-Delegate: herbert@gondor.apana.org.au 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4041EC4332F for ; Mon, 27 Dec 2021 18:33:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231717AbhL0SdF (ORCPT ); Mon, 27 Dec 2021 13:33:05 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:45336 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231720AbhL0SdD (ORCPT ); Mon, 27 Dec 2021 13:33:03 -0500 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-0.canonical.com (Postfix) with ESMTPS id 97C193FFDE 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-f197.google.com with SMTP id k11-20020a05651c0a0b00b0022dc4d55f14so2296593ljq.22 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=nc4PTsSny1fJjrQLEMOwCt1cflMqle1OmC9TMeBNE8zKI2JEKbucBkgN7MJyVo4cF7 5rpiVRVNq0T7kT2SA255c2ZCvOx9A1tr7JgDejNqdiPvaUDzm1tKLSaPHHIvwLT3yL/X p9oUMWcNGtvJAOEEL8AcwOUMroYyyXZeHAnx4jRwNCy2ptw6AHKpb1jYiCM3n2oeyaW5 lFwYDq1KGxsz06F2ayab4nEB/0Jc20kmWHZ1uGlNrQ57+D2d5WI9LrPOEdxy9CvBIMYm hfHv+BBvpJXEgqRPZvPL24rIpnuTe/rxciaTdzJ+ebZN6INKYXcEVoFL3rNrqJquP6zT qqXg== X-Gm-Message-State: AOAM5324j9cLRSQ2hFCZLyijc1orwLSxL2KnshBj/g3mdOmCLb1RC8EJ bKYvNBfsFkSMgyFSWj5h7OgFOG+hQe3m6MTJ5WiXQthHdCskE6PMlKkvhX8PHPQrUPl+9qLiZnR XgEZ0WWqGed+OWbt7BYSa0hpMK9DfkQ10DZYMSumgrA== X-Received: by 2002:ac2:4d34:: with SMTP id h20mr16342027lfk.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 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.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: 12700007 X-Patchwork-Delegate: herbert@gondor.apana.org.au 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7FDACC433F5 for ; Mon, 27 Dec 2021 18:33:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231727AbhL0SdE (ORCPT ); Mon, 27 Dec 2021 13:33:04 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:45332 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231719AbhL0SdD (ORCPT ); Mon, 27 Dec 2021 13:33:03 -0500 Received: from mail-lj1-f199.google.com (mail-lj1-f199.google.com [209.85.208.199]) (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 0878D407AD 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=RFPGHmjdhJ/hloNRhgmml05wd4YHMhrSG+GgHjMTnJk=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=HQ1Q1ffIVZ3P096TtzqefxHYRdw0644TBHJOzETcALpXuxfwO/U0uAheYuc7va/PL zWxxZZsCg60arLZDe/bmzB47qu3As06yJDrE2jou/cjSJTZBFvvQ29A6YxW/+/zjg2 QGFFZEKwOWITnTtQ6Pu+V73+rLo0LnmaevjvHoND5Yx/MQzzK29tvAvWGRyonoacnG FdsWBxkw61UjMdxtU1BuRRfqAOKZp9IV6Pe3yxuQccAHFvaOXgDHfM0CVOHhnpwkpn rvuCnYI14yY4YtcsQm1AaAQf5dCHLtVrjszvj7ERAYWolUSdUUMJKFH8oV112CMOZ3 9oQ7NHTXYWXgA== Received: by mail-lj1-f199.google.com with SMTP id r20-20020a2eb894000000b0021a4e932846so5289778ljp.6 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=RFPGHmjdhJ/hloNRhgmml05wd4YHMhrSG+GgHjMTnJk=; b=DE54+BiQFVqHvKawR2uokDdB31pv0qVddFosYAf27jdg5RtSu6JfCp7vLm75EXuNB4 O/uF3kyWacNfy1jBCPENB+BBmurC6MsCw+lx7QXZeM10MV3UvhEkdUKo2H1HLZb/v9EH EYphqAUYFpTiS/Oh3GtnnJLU44ftr+87snKb3LaPUh5yD4/UEPWA4NMD3CgXzRjTGSS9 1kz4Yu0bWd3zPUbl3xJEb9B+/I/ld44q8D0G5RjjXpF7Tig7zsON9A6jXfD/gHhlin41 +CIH8Kd7t8WItPU9q6MFbIMlRsSNEq+rVsJXFBV28n0KbXMoI8xZqzruVykFHFKTZrIz 5RTA== X-Gm-Message-State: AOAM531Z1+siaLE2wFQvst3p6KfRdEJO6nNs++3tT0GK+wN8v0qph/Jn osdJ5P5RXf8cgfVOGCrdHfE1G7oumcyZHizjDRczhTwP3EjyNS3CxXFfjcRHXyuwZTSAN8ftkNT aF0RbkguGhwJeJjrHCC41NFOTiDSvDOG9/RCtVDg6LQ== X-Received: by 2002:a05:6512:168b:: with SMTP id bu11mr15627651lfb.401.1640629979256; 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 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.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: 12700014 X-Patchwork-Delegate: herbert@gondor.apana.org.au 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3BE76C433EF for ; Mon, 27 Dec 2021 18:33:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231923AbhL0Sdb (ORCPT ); Mon, 27 Dec 2021 13:33:31 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:45544 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231934AbhL0SdS (ORCPT ); Mon, 27 Dec 2021 13:33:18 -0500 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-0.canonical.com (Postfix) with ESMTPS id 746DD3F1B2 for ; Mon, 27 Dec 2021 18:33:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1640629996; bh=YNz7bZBCirgiUqMV90mDMcfWLPuTB2AJTgAPIRcxfBU=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=SLK+cbsNF7S/1jcil4uFrinILONFKOA45rU4XsL7urHtY9FyUzLxQppRobK4tlgwG GfMmKmjPEAYl+TmM+95qcDRQ95y3AMa6d48wcr0m4Ue0+F9390Bt/aJORQBMyZ+aCM WdJ0OiceOJ/udAXQmDOX7fCCaTEXMwKmzfOSOn9e0cCMJqKxjxS68Mpc5mQ0UqXqsY 6uwlaSIryhyNRWu95Gxc+M6vj6okBnyKDnidqPIm1jsRDa4ncZGqwVCqQdEKa2wOJ2 rgX9NcFPSpwWrxz5oObtoUasaqfCmp4CcWMKaJYuVR24TgV8RhoYlOKWgutbrbnelQ MSnf7VcunT4Eg== Received: by mail-lj1-f197.google.com with SMTP id j15-20020a2e6e0f000000b0022db2724332so2935814ljc.3 for ; Mon, 27 Dec 2021 10:33:16 -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=OA1dskMc0MzylVpPWtp5TzUb/pZ5mrP5cqz+5jROjmHKpsVlGfund90JBxVK3xULIl hC7+VCFCmXVb1wtnms14IvYem/X3rzqmQGyFg6NlbpMLibkGaivdrOqp3EKGArVptBh4 9MYYjR9P+N+YTxPQVV18JW5yvlBNzWTw2jSk9CGVjjxpsEGwrfY8mmj60aDORy5tnIW2 yeEdXt9zQZjGa1B5BMoNZuIWWktwG+GlZrdM1eoKsdPDSSNzZCTJl7hGV3yYi+1X/9sv hbuJ9iABSkGqBzlWHCdjjNxmZit1EhbDl4L3oevKHJ30xSkBGMRSgeLTYxweg0rAPmMj 7GdA== X-Gm-Message-State: AOAM530WywdHXarbwM12ffButKEzXEY6ZcCxTwfyFF1NSbZqwziUaVcU lXyYcGLFlqkdg2LIe4LUMmn65jIVxHM7XZq5s4Km/O7rqmElcbzUkVms298FruezmkRRlEGZmq8 3Ajj4muJh0cGWsw+qSIwr1fkpB/huL4wM63k5M12EmA== X-Received: by 2002:a05:6512:228d:: with SMTP id f13mr10245778lfu.6.1640629980947; 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 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.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: 12700009 X-Patchwork-Delegate: herbert@gondor.apana.org.au 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7399FC433FE for ; Mon, 27 Dec 2021 18:33:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231747AbhL0SdG (ORCPT ); Mon, 27 Dec 2021 13:33:06 -0500 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:59494 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229643AbhL0SdE (ORCPT ); Mon, 27 Dec 2021 13:33:04 -0500 Received: from mail-lj1-f199.google.com (mail-lj1-f199.google.com [209.85.208.199]) (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 6E7873FFDB 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-f199.google.com with SMTP id w17-20020a05651c119100b0022dcdb204b9so1914099ljo.5 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=M1lSkSqXsQqpONAO0V9mCW6NOUyX8IJIy+6UVIZH1fYxJuIKqOtPBF1SFuOFq5i4MJ zv4eFisxL6EwN4LXD0kt1UB77z+0PQKcU67kotcyV+21pG3GXqld6diDzZ4tNf6Z73ID YKrHLDcOAkNCKibDM2Jc9yBnEQ7pYoSylWovsxtc3VDzoFuOXrNIfLhadeZWkDvm//aN dkrYFoN/oEB81K9SLXqteANFm2A6D+a1sSyDbOaXzWdnHoSiRjzi+AvM6PqhdWIKs8Y5 FcHh+iP1U4M2xDmaI5/rxpZtLHpanlnjdforBGob7dzQHZFYAA82+rHmkzB9YcZGXgsU l+UA== X-Gm-Message-State: AOAM530TkDdJy1eKDU92zqIIvWWhsaT1AL1I+WqUzKJg8Xdqhx8QSK+q vLZapjD8laY4fYJeUPd0Kt7SDs8abXk5B3pw+G+SSZwZlyFozCVW9xHB/iwHDlwGRMqLPhjgUQ0 GePfgSzm3iJdbbOmDBQ7zB5K+DxNLsY/IXgdrzpI21g== X-Received: by 2002:a2e:141c:: with SMTP id u28mr15227856ljd.338.1640629982310; 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 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.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: 12700012 X-Patchwork-Delegate: herbert@gondor.apana.org.au 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2CA3EC4332F for ; Mon, 27 Dec 2021 18:33:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231834AbhL0SdN (ORCPT ); Mon, 27 Dec 2021 13:33:13 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:45440 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231768AbhL0SdJ (ORCPT ); Mon, 27 Dec 2021 13:33:09 -0500 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 A3CE1407AC for ; Mon, 27 Dec 2021 18:33:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1640629986; bh=NkhG/x29/01OwnwUW7nLUUqEe+ov12qsWpqmInTRQ8g=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=IrgiBy2Pfak1drSxYRPNny77La2lWm5txxP9Fg0Cda1ue5vt37en+UHVgCJaHdLrH aqBSBKqP+cNUDLmkC725t+XOTyLvEnGWe5AqyV2k67c6UxaeTcVW2rRYdxjBzotVvh fHi/h74CiobLg7HV32D24cITo8DNLZBnGlJi6iGLn4YGYwMIF3jvLT/kMwD5DbCtnN NPVN0WD4gkL7HGVZb/QWjolL+pPifeMvk4DQP0T2r5uf2z+Q1vBMbdiTfqqNe+OCjw bpSi0KsGVeWwZRjykiJ+TxaGthNThzEmx8NzrE9hFZo9s7xFJ1VVYuV078ggNoRgYj sYXflvCqlVPzQ== Received: by mail-lj1-f200.google.com with SMTP id b20-20020a2e9894000000b0022dc5a5f841so2253683ljj.2 for ; Mon, 27 Dec 2021 10:33:06 -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=dKTmWAtbtcvpc4vKw9OX9B1ZItMlS0fvQkREJsGlyIoK7PVjButuILGCZJ/+K3NoxL 9sC8g1nvMhnImZtcfczDhw1slbhNZ6KgNCaZ6j6GKraavhmDyUDF/h/MzAvbhCmuiLSS xh224iaz9W7AelkyzSL/8NEpqNegJpjhQjCE0LwWCGiMe2xyGl1Han9+8pyv8fsSaRQn 6M5e27YehHqeiqre5sctDCshJ5iPo0HkOZf0ZbeCyhGOUey4kBWKc1E0U57KEqyBAReB Ovjx7SjM3qSYU/LCMOJNBZo17x2/EupV0BwSiN1d1flMq0nImPidRTB3vFKukp2myYy7 m7RQ== X-Gm-Message-State: AOAM531532vUrUICxpv3nHl0REK/EOvYO8fleb5J8sYLZwKeveiEWeq0 q8nROlw3okqSagE1hhK43th9yJZx0w9ZISL+EPieZRwnfgy/1CVnhFNyvbmRQHARObIs7z5u8HZ doiVfDjLeB5XjNYaSoTBn7oAVPNANoo/tUtLUdLAqaw== X-Received: by 2002:a05:651c:1788:: with SMTP id bn8mr15237857ljb.521.1640629983719; 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 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.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: 12700010 X-Patchwork-Delegate: herbert@gondor.apana.org.au 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 19945C433F5 for ; Mon, 27 Dec 2021 18:33:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231721AbhL0SdJ (ORCPT ); Mon, 27 Dec 2021 13:33:09 -0500 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:59576 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231752AbhL0SdH (ORCPT ); Mon, 27 Dec 2021 13:33:07 -0500 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 96840402DD 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-f197.google.com with SMTP id j15-20020a2e6e0f000000b0022db2724332so2935735ljc.3 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=dH90GtwI7xjSDt1iRjMAqGc36nWkISsxpu/VAk8VupE5jpl02KzHleF2y1swhawDKA tlIknjZ35BkKFua0rh/1U5ZNpOw1f4pMzuY7jU4qp2VqSjs9sOsN1BroaP7Ol4LRecqk mL01HNuCOnBK9XAmRvnyBGy46kcv66L4hWLIRaJcgwpwEAfKDFUneNFEkbIM/dVGCsBW PGFKXmK9HpkQ9QWEti41cDN9r3XiJ/nwunhgIWm+89Sjr+LYAo3Y0IVdu1gV7UtpOVwp /seRrKTCuUf0LSvcfyZHQAkgO5CEin5ha1uYkjndQHlCBbWZja2fiWji7PK3+TqKcAe6 iWpA== X-Gm-Message-State: AOAM532C1etqP36G8NDkWtNlCK1p86becYvxgYU0eBj/BVFBuCL8C5Fn +HcuzZTE1ls/hofmj+0moe7ZdqsA8jCdJXBhFwL0M8WhC+MSTR8nyRS3vLsjJ4C3S53ekKRRdit tM8SdFbCOLTBy3Vs54mh+Bn/9wn9Pn2dMN3nkkpKekA== X-Received: by 2002:a05:6512:1598:: with SMTP id bp24mr16353997lfb.65.1640629985105; 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 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.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: 12700011 X-Patchwork-Delegate: herbert@gondor.apana.org.au 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BBFE7C433FE for ; Mon, 27 Dec 2021 18:33:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231778AbhL0SdM (ORCPT ); Mon, 27 Dec 2021 13:33:12 -0500 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:59624 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231757AbhL0SdJ (ORCPT ); Mon, 27 Dec 2021 13:33:09 -0500 Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com [209.85.167.71]) (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 0C0F93FFD5 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-f71.google.com with SMTP id g40-20020a0565123ba800b00426216a233fso3742758lfv.7 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=V5gj18OPzLSmmOQljCDhRfompvclli1OemOKPeUorq105KD9Av+1Y2lTebCBeYmW5v qkoy3cECIj3Y0HteUUnuX4RYyYI4S8wwQKK4Dpt0rsuxAKz+yJ+GWiywpcnH2RMVK0Dm 0uS5GDcnJORYb5zZL0o3GMmyHu3q/ZGWrmx+xK3Znv0lk5bTJNl5wCYq17FD0uZTPdib rmuRJtMmJVERHX0Lj5dLHFUiEqbXng4FhHV41/XcSXF3rrR6QGdX0yfcftf+NdczOYGP Z1DCxc0pQrw55JMkx27LjAQS72QxsaezNbn34Qfc3tUdwuMtiHmOOrgbOsT+qMYFTolX UyZQ== X-Gm-Message-State: AOAM533qi0+9bdO8HVKBMDChXwjCB087VFK4VW7qW7y6g98AR4wjiWN9 R/E8u3gYJ81LdlWlLxX46z3hu28MpdL4x6jOfFOg2xxaI/LswHPfSgc9rY4vH+vr46sdcX/dW95 31iiv4AEuiTrXxZGPxK1B1zmuU9GBQ4Rl++TVOcEZmA== X-Received: by 2002:a05:651c:1686:: with SMTP id bd6mr6422204ljb.144.1640629987085; 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 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.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>; + };