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

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

Convert the STM32 HASH 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
ceced4ac 5059791e

+69 -30
-30
Documentation/devicetree/bindings/crypto/st,stm32-hash.txt
··· 1 - * STMicroelectronics STM32 HASH 2 - 3 - Required properties: 4 - - compatible: Should contain entries for this and backward compatible 5 - HASH versions: 6 - - "st,stm32f456-hash" for stm32 F456. 7 - - "st,stm32f756-hash" for stm32 F756. 8 - - reg: The address and length of the peripheral registers space 9 - - interrupts: the interrupt specifier for the HASH 10 - - clocks: The input clock of the HASH instance 11 - 12 - Optional properties: 13 - - resets: The input reset of the HASH instance 14 - - dmas: DMA specifiers for the HASH. See the DMA client binding, 15 - Documentation/devicetree/bindings/dma/dma.txt 16 - - dma-names: DMA request name. Should be "in" if a dma is present. 17 - - dma-maxburst: Set number of maximum dma burst supported 18 - 19 - Example: 20 - 21 - hash1: hash@50060400 { 22 - compatible = "st,stm32f756-hash"; 23 - reg = <0x50060400 0x400>; 24 - interrupts = <80>; 25 - clocks = <&rcc 0 STM32F7_AHB2_CLOCK(HASH)>; 26 - resets = <&rcc STM32F7_AHB2_RESET(HASH)>; 27 - dmas = <&dma2 7 2 0x400 0x0>; 28 - dma-names = "in"; 29 - dma-maxburst = <0>; 30 - };
+69
Documentation/devicetree/bindings/crypto/st,stm32-hash.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-hash.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: STMicroelectronics STM32 HASH bindings 8 + 9 + maintainers: 10 + - Lionel Debieve <lionel.debieve@st.com> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - st,stm32f456-hash 16 + - st,stm32f756-hash 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 + dmas: 31 + maxItems: 1 32 + 33 + dma-names: 34 + items: 35 + - const: in 36 + 37 + dma-maxburst: 38 + description: Set number of maximum dma burst supported 39 + allOf: 40 + - $ref: /schemas/types.yaml#/definitions/uint32 41 + - minimum: 0 42 + - maximum: 2 43 + - default: 0 44 + 45 + required: 46 + - compatible 47 + - reg 48 + - clocks 49 + - interrupts 50 + 51 + additionalProperties: false 52 + 53 + examples: 54 + - | 55 + #include <dt-bindings/interrupt-controller/arm-gic.h> 56 + #include <dt-bindings/clock/stm32mp1-clks.h> 57 + #include <dt-bindings/reset/stm32mp1-resets.h> 58 + hash@54002000 { 59 + compatible = "st,stm32f756-hash"; 60 + reg = <0x54002000 0x400>; 61 + interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>; 62 + clocks = <&rcc HASH1>; 63 + resets = <&rcc HASH1_R>; 64 + dmas = <&mdma1 31 0x10 0x1000A02 0x0 0x0>; 65 + dma-names = "in"; 66 + dma-maxburst = <2>; 67 + }; 68 + 69 + ...