From: Krzysztof Kozlowski Date: Mon, 27 Dec 2021 18:32:49 +0000 (+0100) Subject: dt-bindings: rng: ti,omap-rom-rng: convert OMAP ROM RNG to dtschema X-Git-Tag: v6.1-rc5~2150^2~52 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8000f55a3c6bc13d211547fd38ba092e47427117;p=platform%2Fkernel%2Flinux-starfive.git dt-bindings: rng: ti,omap-rom-rng: convert OMAP ROM RNG to dtschema Convert the OMAP ROM RNG bindings to DT schema. Signed-off-by: Krzysztof Kozlowski Signed-off-by: Rob Herring Link: https://lore.kernel.org/r/20211227183251.132525-6-krzysztof.kozlowski@canonical.com --- 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 f315c97..0000000 --- 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 0000000..9a58440 --- /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"; + };