* [PATCH v2] dt-bindings: crypto: ti,omap-sham: Convert to dtschema
@ 2024-03-27 5:49 Animesh Agarwal
2024-03-27 16:51 ` Conor Dooley
2024-04-05 7:51 ` Herbert Xu
0 siblings, 2 replies; 5+ messages in thread
From: Animesh Agarwal @ 2024-03-27 5:49 UTC (permalink / raw)
Cc: animeshagarwal28, Herbert Xu, David S. Miller, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, linux-crypto, devicetree,
linux-kernel
Convert the OMAP SoC SHA crypto Module bindings to DT Schema.
Signed-off-by: Animesh Agarwal <animeshagarwal28@gmail.com>
---
Changes in v2:
- Moved vendor specific property below more common properties.
---
.../devicetree/bindings/crypto/omap-sham.txt | 28 ----------
.../bindings/crypto/ti,omap-sham.yaml | 56 +++++++++++++++++++
2 files changed, 56 insertions(+), 28 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/crypto/omap-sham.txt
create mode 100644 Documentation/devicetree/bindings/crypto/ti,omap-sham.yaml
diff --git a/Documentation/devicetree/bindings/crypto/omap-sham.txt b/Documentation/devicetree/bindings/crypto/omap-sham.txt
deleted file mode 100644
index ad9115569611..000000000000
--- a/Documentation/devicetree/bindings/crypto/omap-sham.txt
+++ /dev/null
@@ -1,28 +0,0 @@
-OMAP SoC SHA crypto Module
-
-Required properties:
-
-- compatible : Should contain entries for this and backward compatible
- SHAM versions:
- - "ti,omap2-sham" for OMAP2 & OMAP3.
- - "ti,omap4-sham" for OMAP4 and AM33XX.
- - "ti,omap5-sham" for OMAP5, DRA7 and AM43XX.
-- ti,hwmods: Name of the hwmod associated with the SHAM module
-- reg : Offset and length of the register set for the module
-- interrupts : the interrupt-specifier for the SHAM module.
-
-Optional properties:
-- dmas: DMA specifiers for the rx dma. See the DMA client binding,
- Documentation/devicetree/bindings/dma/dma.txt
-- dma-names: DMA request name. Should be "rx" if a dma is present.
-
-Example:
- /* AM335x */
- sham: sham@53100000 {
- compatible = "ti,omap4-sham";
- ti,hwmods = "sham";
- reg = <0x53100000 0x200>;
- interrupts = <109>;
- dmas = <&edma 36>;
- dma-names = "rx";
- };
diff --git a/Documentation/devicetree/bindings/crypto/ti,omap-sham.yaml b/Documentation/devicetree/bindings/crypto/ti,omap-sham.yaml
new file mode 100644
index 000000000000..d69b50228009
--- /dev/null
+++ b/Documentation/devicetree/bindings/crypto/ti,omap-sham.yaml
@@ -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";
+ };
--
2.44.0
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH v2] dt-bindings: crypto: ti,omap-sham: Convert to dtschema
2024-03-27 5:49 [PATCH v2] dt-bindings: crypto: ti,omap-sham: Convert to dtschema Animesh Agarwal
@ 2024-03-27 16:51 ` Conor Dooley
2024-03-28 1:34 ` Animesh Agarwal
2024-04-05 7:51 ` Herbert Xu
1 sibling, 1 reply; 5+ messages in thread
From: Conor Dooley @ 2024-03-27 16:51 UTC (permalink / raw)
To: Animesh Agarwal
Cc: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, linux-crypto, devicetree, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 275 bytes --]
On Wed, Mar 27, 2024 at 11:19:06AM +0530, Animesh Agarwal wrote:
> 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>
Thanks,
Conor.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] dt-bindings: crypto: ti,omap-sham: Convert to dtschema
2024-03-27 16:51 ` Conor Dooley
@ 2024-03-28 1:34 ` Animesh Agarwal
0 siblings, 0 replies; 5+ messages in thread
From: Animesh Agarwal @ 2024-03-28 1:34 UTC (permalink / raw)
To: Conor Dooley
Cc: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, linux-crypto, devicetree, linux-kernel
On Wed, Mar 27, 2024 at 10:22 PM Conor Dooley <conor@kernel.org> wrote:
> Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Thanks for the review, Conor.
Regards,
Animesh Agarwal.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] dt-bindings: crypto: ti,omap-sham: Convert to dtschema
2024-03-27 5:49 [PATCH v2] dt-bindings: crypto: ti,omap-sham: Convert to dtschema Animesh Agarwal
2024-03-27 16:51 ` Conor Dooley
@ 2024-04-05 7:51 ` Herbert Xu
2024-04-05 8:12 ` Animesh Agarwal
1 sibling, 1 reply; 5+ messages in thread
From: Herbert Xu @ 2024-04-05 7:51 UTC (permalink / raw)
To: Animesh Agarwal
Cc: David S. Miller, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
linux-crypto, devicetree, linux-kernel
On Wed, Mar 27, 2024 at 11:19:06AM +0530, Animesh Agarwal wrote:
> Convert the OMAP SoC SHA crypto Module bindings to DT Schema.
>
> Signed-off-by: Animesh Agarwal <animeshagarwal28@gmail.com>
>
> ---
> Changes in v2:
> - Moved vendor specific property below more common properties.
> ---
> .../devicetree/bindings/crypto/omap-sham.txt | 28 ----------
> .../bindings/crypto/ti,omap-sham.yaml | 56 +++++++++++++++++++
> 2 files changed, 56 insertions(+), 28 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/crypto/omap-sham.txt
> create mode 100644 Documentation/devicetree/bindings/crypto/ti,omap-sham.yaml
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] dt-bindings: crypto: ti,omap-sham: Convert to dtschema
2024-04-05 7:51 ` Herbert Xu
@ 2024-04-05 8:12 ` Animesh Agarwal
0 siblings, 0 replies; 5+ messages in thread
From: Animesh Agarwal @ 2024-04-05 8:12 UTC (permalink / raw)
To: Herbert Xu
Cc: David S. Miller, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
linux-crypto, devicetree, linux-kernel
On Fri, Apr 5, 2024 at 1:21 PM Herbert Xu <herbert@gondor.apana.org.au> wrote:
> Patch applied. Thanks.
Glad to hear. Thanks!
---
Animesh Agarwal
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-04-05 8:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-27 5:49 [PATCH v2] dt-bindings: crypto: ti,omap-sham: Convert to dtschema Animesh Agarwal
2024-03-27 16:51 ` Conor Dooley
2024-03-28 1:34 ` Animesh Agarwal
2024-04-05 7:51 ` Herbert Xu
2024-04-05 8:12 ` Animesh Agarwal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox