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

dt-bindings: crypto: Convert stm32 CRYP bindings to json-schema

Convert the STM32 CRYP binding to DT schema format using json-schema

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
a2f12f80 30f78c33

+51 -19
-19
Documentation/devicetree/bindings/crypto/st,stm32-cryp.txt
··· 1 - * STMicroelectronics STM32 CRYP 2 - 3 - Required properties: 4 - - compatible: Should be "st,stm32f756-cryp". 5 - - reg: The address and length of the peripheral registers space 6 - - clocks: The input clock of the CRYP instance 7 - - interrupts: The CRYP interrupt 8 - 9 - Optional properties: 10 - - resets: The input reset of the CRYP instance 11 - 12 - Example: 13 - crypto@50060000 { 14 - compatible = "st,stm32f756-cryp"; 15 - reg = <0x50060000 0x400>; 16 - interrupts = <79>; 17 - clocks = <&rcc 0 STM32F7_AHB2_CLOCK(CRYP)>; 18 - resets = <&rcc STM32F7_AHB2_RESET(CRYP)>; 19 - };
+51
Documentation/devicetree/bindings/crypto/st,stm32-cryp.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/crypto/st,stm32-cryp.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: STMicroelectronics STM32 CRYP bindings 8 + 9 + maintainers: 10 + - Lionel Debieve <lionel.debieve@st.com> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - st,stm32f756-cryp 16 + - st,stm32mp1-cryp 17 + 18 + reg: 19 + maxItems: 1 20 + 21 + clocks: 22 + maxItems: 1 23 + 24 + interrupts: 25 + maxItems: 1 26 + 27 + resets: 28 + maxItems: 1 29 + 30 + required: 31 + - compatible 32 + - reg 33 + - clocks 34 + - interrupts 35 + 36 + additionalProperties: false 37 + 38 + examples: 39 + - | 40 + #include <dt-bindings/interrupt-controller/arm-gic.h> 41 + #include <dt-bindings/clock/stm32mp1-clks.h> 42 + #include <dt-bindings/reset/stm32mp1-resets.h> 43 + cryp@54001000 { 44 + compatible = "st,stm32mp1-cryp"; 45 + reg = <0x54001000 0x400>; 46 + interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; 47 + clocks = <&rcc CRYP1>; 48 + resets = <&rcc CRYP1_R>; 49 + }; 50 + 51 + ...