From: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> To: "Matt Mackall" <mpm@selenic.com>, "Herbert Xu" <herbert@gondor.apana.org.au>, "Rob Herring" <robh+dt@kernel.org>, "Nicolas Ferre" <nicolas.ferre@microchip.com>, "Alexandre Belloni" <alexandre.belloni@bootlin.com>, "Ludovic Desroches" <ludovic.desroches@microchip.com>, "Avi Fishman" <avifishman70@gmail.com>, "Tomer Maimon" <tmaimon77@gmail.com>, "Tali Perry" <tali.perry1@gmail.com>, "Patrick Venture" <venture@google.com>, "Nancy Yuen" <yuenn@google.com>, "Benjamin Fair" <benjaminfair@google.com>, "Krzysztof Kozlowski" <krzysztof.kozlowski@canonical.com>, "Khuong Dinh" <khuong@os.amperecomputing.com>, "Patrice Chotard" <patrice.chotard@foss.st.com>, "Nishanth Menon" <nm@ti.com>, "Santosh Shilimkar" <ssantosh@kernel.org>, "Pali Rohár" <pali@kernel.org>, "Tony Lindgren" <tony@atomide.com>, 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 [thread overview] Message-ID: <20211227183251.132525-8-krzysztof.kozlowski@canonical.com> (raw) In-Reply-To: <20211227183251.132525-1-krzysztof.kozlowski@canonical.com> Convert the TimerIO RNG bindings to DT schema. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> --- .../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 <krzysztof.kozlowski@canonical.com> + +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>; + }; -- 2.32.0
WARNING: multiple messages have this Message-ID (diff)
From: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> To: "Matt Mackall" <mpm@selenic.com>, "Herbert Xu" <herbert@gondor.apana.org.au>, "Rob Herring" <robh+dt@kernel.org>, "Nicolas Ferre" <nicolas.ferre@microchip.com>, "Alexandre Belloni" <alexandre.belloni@bootlin.com>, "Ludovic Desroches" <ludovic.desroches@microchip.com>, "Avi Fishman" <avifishman70@gmail.com>, "Tomer Maimon" <tmaimon77@gmail.com>, "Tali Perry" <tali.perry1@gmail.com>, "Patrick Venture" <venture@google.com>, "Nancy Yuen" <yuenn@google.com>, "Benjamin Fair" <benjaminfair@google.com>, "Krzysztof Kozlowski" <krzysztof.kozlowski@canonical.com>, "Khuong Dinh" <khuong@os.amperecomputing.com>, "Patrice Chotard" <patrice.chotard@foss.st.com>, "Nishanth Menon" <nm@ti.com>, "Santosh Shilimkar" <ssantosh@kernel.org>, "Pali Rohár" <pali@kernel.org>, "Tony Lindgren" <tony@atomide.com>, 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 [thread overview] Message-ID: <20211227183251.132525-8-krzysztof.kozlowski@canonical.com> (raw) In-Reply-To: <20211227183251.132525-1-krzysztof.kozlowski@canonical.com> Convert the TimerIO RNG bindings to DT schema. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> --- .../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 <krzysztof.kozlowski@canonical.com> + +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>; + }; -- 2.32.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2021-12-27 18:33 UTC|newest] Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-12-27 18:32 [PATCH 1/8] dt-bindings: rng: apm,x-gene-rng: convert APM RNG to dtschema Krzysztof Kozlowski 2021-12-27 18:32 ` [PATCH 1/8] dt-bindings: rng: apm, x-gene-rng: " Krzysztof Kozlowski 2021-12-27 18:32 ` [PATCH 2/8] dt-bindings: rng: atmel,at91-trng: convert Atmel TRNG " Krzysztof Kozlowski 2021-12-27 18:32 ` [PATCH 2/8] dt-bindings: rng: atmel, at91-trng: " Krzysztof Kozlowski 2021-12-28 12:54 ` [PATCH 2/8] dt-bindings: rng: atmel,at91-trng: " Rob Herring 2021-12-28 12:54 ` [PATCH 2/8] dt-bindings: rng: atmel, at91-trng: " Rob Herring 2021-12-28 12:54 ` Rob Herring 2021-12-28 13:07 ` [PATCH 2/8] dt-bindings: rng: atmel,at91-trng: " Krzysztof Kozlowski 2021-12-28 13:07 ` [PATCH 2/8] dt-bindings: rng: atmel, at91-trng: " Krzysztof Kozlowski 2022-01-03 17:36 ` [PATCH 2/8] dt-bindings: rng: atmel,at91-trng: " Nicolas Ferre 2022-01-03 17:36 ` [PATCH 2/8] dt-bindings: rng: atmel, at91-trng: " Nicolas Ferre 2021-12-27 18:32 ` [PATCH 3/8] dt-bindings: rng: atmel,at91-trng: document sama7g5 TRNG Krzysztof Kozlowski 2021-12-27 18:32 ` Krzysztof Kozlowski 2022-01-03 17:35 ` Nicolas Ferre 2022-01-03 17:35 ` Nicolas Ferre 2021-12-27 18:32 ` [PATCH 4/8] dt-bindings: rng: ti,keystone-rng: convert TI Keystone RNG to dtschema Krzysztof Kozlowski 2021-12-27 18:32 ` [PATCH 4/8] dt-bindings: rng: ti, keystone-rng: " Krzysztof Kozlowski 2021-12-27 18:32 ` [PATCH 5/8] dt-bindings: rng: nuvoton,npcm-rng: convert Nuvoton NPCM " Krzysztof Kozlowski 2021-12-27 18:32 ` [PATCH 5/8] dt-bindings: rng: nuvoton, npcm-rng: " Krzysztof Kozlowski 2021-12-27 18:32 ` [PATCH 6/8] dt-bindings: rng: ti,omap-rom-rng: convert OMAP ROM " Krzysztof Kozlowski 2021-12-27 18:32 ` [PATCH 6/8] dt-bindings: rng: ti, omap-rom-rng: " Krzysztof Kozlowski 2021-12-27 18:32 ` [PATCH 7/8] dt-bindings: rng: st,rng: convert ST " Krzysztof Kozlowski 2021-12-27 18:32 ` Krzysztof Kozlowski 2021-12-27 18:32 ` Krzysztof Kozlowski [this message] 2021-12-27 18:32 ` [PATCH 8/8] dt-bindings: rng: timeriomem_rng: convert TimerIO " Krzysztof Kozlowski 2022-01-05 13:30 ` [PATCH 1/8] dt-bindings: rng: apm,x-gene-rng: convert APM " Rob Herring 2022-01-05 13:30 ` [PATCH 1/8] dt-bindings: rng: apm, x-gene-rng: " Rob Herring 2022-01-05 13:30 ` Rob Herring
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20211227183251.132525-8-krzysztof.kozlowski@canonical.com \ --to=krzysztof.kozlowski@canonical.com \ --cc=alexandre.belloni@bootlin.com \ --cc=avifishman70@gmail.com \ --cc=benjaminfair@google.com \ --cc=devicetree@vger.kernel.org \ --cc=herbert@gondor.apana.org.au \ --cc=khuong@os.amperecomputing.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-crypto@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=ludovic.desroches@microchip.com \ --cc=mpm@selenic.com \ --cc=nicolas.ferre@microchip.com \ --cc=nm@ti.com \ --cc=openbmc@lists.ozlabs.org \ --cc=pali@kernel.org \ --cc=patrice.chotard@foss.st.com \ --cc=robh+dt@kernel.org \ --cc=ssantosh@kernel.org \ --cc=tali.perry1@gmail.com \ --cc=tmaimon77@gmail.com \ --cc=tony@atomide.com \ --cc=venture@google.com \ --cc=yuenn@google.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.