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

dt-bindings: crypto: ti,omap-sham: Convert to dtschema

Convert the OMAP SoC SHA crypto Module bindings to DT Schema.

Signed-off-by: Animesh Agarwal <animeshagarwal28@gmail.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Animesh Agarwal and committed by
Herbert Xu
a00dce05 140e4c85

+56 -28
-28
Documentation/devicetree/bindings/crypto/omap-sham.txt
··· 1 - OMAP SoC SHA crypto Module 2 - 3 - Required properties: 4 - 5 - - compatible : Should contain entries for this and backward compatible 6 - SHAM versions: 7 - - "ti,omap2-sham" for OMAP2 & OMAP3. 8 - - "ti,omap4-sham" for OMAP4 and AM33XX. 9 - - "ti,omap5-sham" for OMAP5, DRA7 and AM43XX. 10 - - ti,hwmods: Name of the hwmod associated with the SHAM module 11 - - reg : Offset and length of the register set for the module 12 - - interrupts : the interrupt-specifier for the SHAM module. 13 - 14 - Optional properties: 15 - - dmas: DMA specifiers for the rx dma. See the DMA client binding, 16 - Documentation/devicetree/bindings/dma/dma.txt 17 - - dma-names: DMA request name. Should be "rx" if a dma is present. 18 - 19 - Example: 20 - /* AM335x */ 21 - sham: sham@53100000 { 22 - compatible = "ti,omap4-sham"; 23 - ti,hwmods = "sham"; 24 - reg = <0x53100000 0x200>; 25 - interrupts = <109>; 26 - dmas = <&edma 36>; 27 - dma-names = "rx"; 28 - };
+56
Documentation/devicetree/bindings/crypto/ti,omap-sham.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/ti,omap-sham.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: OMAP SoC SHA crypto Module 8 + 9 + maintainers: 10 + - Animesh Agarwal <animeshagarwal28@gmail.com> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - ti,omap2-sham 16 + - ti,omap4-sham 17 + - ti,omap5-sham 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + interrupts: 23 + maxItems: 1 24 + 25 + dmas: 26 + maxItems: 1 27 + 28 + dma-names: 29 + const: rx 30 + 31 + ti,hwmods: 32 + description: Name of the hwmod associated with the SHAM module 33 + $ref: /schemas/types.yaml#/definitions/string 34 + enum: [sham] 35 + 36 + dependencies: 37 + dmas: [dma-names] 38 + 39 + additionalProperties: false 40 + 41 + required: 42 + - compatible 43 + - ti,hwmods 44 + - reg 45 + - interrupts 46 + 47 + examples: 48 + - | 49 + sham@53100000 { 50 + compatible = "ti,omap4-sham"; 51 + ti,hwmods = "sham"; 52 + reg = <0x53100000 0x200>; 53 + interrupts = <109>; 54 + dmas = <&edma 36>; 55 + dma-names = "rx"; 56 + };