Skip to content

Commit

Permalink
dt-bindings: crypto: ti,omap-sham: Convert to dtschema
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Animesh Agarwal authored and Herbert Xu committed Apr 5, 2024
1 parent 140e4c8 commit a00dce0
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 28 deletions.
28 changes: 0 additions & 28 deletions Documentation/devicetree/bindings/crypto/omap-sham.txt

This file was deleted.

56 changes: 56 additions & 0 deletions Documentation/devicetree/bindings/crypto/ti,omap-sham.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/crypto/ti,omap-sham.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: OMAP SoC SHA crypto Module

maintainers:
- Animesh Agarwal <animeshagarwal28@gmail.com>

properties:
compatible:
enum:
- ti,omap2-sham
- ti,omap4-sham
- ti,omap5-sham

reg:
maxItems: 1

interrupts:
maxItems: 1

dmas:
maxItems: 1

dma-names:
const: rx

ti,hwmods:
description: Name of the hwmod associated with the SHAM module
$ref: /schemas/types.yaml#/definitions/string
enum: [sham]

dependencies:
dmas: [dma-names]

additionalProperties: false

required:
- compatible
- ti,hwmods
- reg
- interrupts

examples:
- |
sham@53100000 {
compatible = "ti,omap4-sham";
ti,hwmods = "sham";
reg = <0x53100000 0x200>;
interrupts = <109>;
dmas = <&edma 36>;
dma-names = "rx";
};

0 comments on commit a00dce0

Please sign in to comment.