Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: rng: Convert stm32 RNG bindings to json-schema

Convert the STM32 RNG binding to DT schema format using json-schema
Remove interrupt from the json-schema because it is not used by the driver.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Benjamin Gaignard and committed by
Rob Herring
5059791e d8c313d7

+48 -25
-25
Documentation/devicetree/bindings/rng/st,stm32-rng.txt
··· 1 - STMicroelectronics STM32 HW RNG 2 - =============================== 3 - 4 - The STM32 hardware random number generator is a simple fixed purpose IP and 5 - is fully separated from other crypto functions. 6 - 7 - Required properties: 8 - 9 - - compatible : Should be "st,stm32-rng" 10 - - reg : Should be register base and length as documented in the datasheet 11 - - interrupts : The designated IRQ line for the RNG 12 - - clocks : The clock needed to enable the RNG 13 - 14 - Optional properties: 15 - - resets : The reset to properly start RNG 16 - - clock-error-detect : Enable the clock detection management 17 - 18 - Example: 19 - 20 - rng: rng@50060800 { 21 - compatible = "st,stm32-rng"; 22 - reg = <0x50060800 0x400>; 23 - interrupts = <80>; 24 - clocks = <&rcc 0 38>; 25 - };
+48
Documentation/devicetree/bindings/rng/st,stm32-rng.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/rng/st,stm32-rng.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: STMicroelectronics STM32 RNG bindings 8 + 9 + description: | 10 + The STM32 hardware random number generator is a simple fixed purpose 11 + IP and is fully separated from other crypto functions. 12 + 13 + maintainers: 14 + - Lionel Debieve <lionel.debieve@st.com> 15 + 16 + properties: 17 + compatible: 18 + const: st,stm32-rng 19 + 20 + reg: 21 + maxItems: 1 22 + 23 + clocks: 24 + maxItems: 1 25 + 26 + resets: 27 + maxItems: 1 28 + 29 + clock-error-detect: 30 + description: If set enable the clock detection management 31 + 32 + required: 33 + - compatible 34 + - reg 35 + - clocks 36 + 37 + additionalProperties: false 38 + 39 + examples: 40 + - | 41 + #include <dt-bindings/clock/stm32mp1-clks.h> 42 + rng@54003000 { 43 + compatible = "st,stm32-rng"; 44 + reg = <0x54003000 0x400>; 45 + clocks = <&rcc RNG1_K>; 46 + }; 47 + 48 + ...