public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] dt-bindings: crypto: Convert ti,omap4-des to DT schema
@ 2025-06-11 23:10 Rob Herring (Arm)
  2025-06-17  8:57 ` Krzysztof Kozlowski
  2025-06-23  9:18 ` Herbert Xu
  0 siblings, 2 replies; 3+ messages in thread
From: Rob Herring (Arm) @ 2025-06-11 23:10 UTC (permalink / raw)
  To: Herbert Xu, David S. Miller, Krzysztof Kozlowski, Conor Dooley,
	Aaro Koskinen, Andreas Kemnade, Kevin Hilman, Roger Quadros,
	Tony Lindgren
  Cc: linux-crypto, devicetree, linux-kernel

Convert the TI OMAP DES binding to DT schema format.

Drop "ti,hwmods" as it is not actually used for this binding. Only
OMAP2 platforms are using it.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
---
v2:
 - Drop ti,hwmods from required too
---
 .../devicetree/bindings/crypto/omap-des.txt   | 30 ---------
 .../bindings/crypto/ti,omap4-des.yaml         | 65 +++++++++++++++++++
 2 files changed, 65 insertions(+), 30 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/crypto/omap-des.txt
 create mode 100644 Documentation/devicetree/bindings/crypto/ti,omap4-des.yaml

diff --git a/Documentation/devicetree/bindings/crypto/omap-des.txt b/Documentation/devicetree/bindings/crypto/omap-des.txt
deleted file mode 100644
index e8c63bf2e16d..000000000000
--- a/Documentation/devicetree/bindings/crypto/omap-des.txt
+++ /dev/null
@@ -1,30 +0,0 @@
-OMAP SoC DES crypto Module
-
-Required properties:
-
-- compatible : Should contain "ti,omap4-des"
-- ti,hwmods: Name of the hwmod associated with the DES module
-- reg : Offset and length of the register set for the module
-- interrupts : the interrupt-specifier for the DES module
-- clocks : A phandle to the functional clock node of the DES module
-           corresponding to each entry in clock-names
-- clock-names : Name of the functional clock, should be "fck"
-
-Optional properties:
-- dmas: DMA specifiers for tx and rx dma. See the DMA client binding,
-	Documentation/devicetree/bindings/dma/dma.txt
-	Each entry corresponds to an entry in dma-names
-- dma-names: DMA request names should include "tx" and "rx" if present
-
-Example:
-	/* DRA7xx SoC */
-	des: des@480a5000 {
-		compatible = "ti,omap4-des";
-		ti,hwmods = "des";
-		reg = <0x480a5000 0xa0>;
-		interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
-		dmas = <&sdma 117>, <&sdma 116>;
-		dma-names = "tx", "rx";
-		clocks = <&l3_iclk_div>;
-		clock-names = "fck";
-	};
diff --git a/Documentation/devicetree/bindings/crypto/ti,omap4-des.yaml b/Documentation/devicetree/bindings/crypto/ti,omap4-des.yaml
new file mode 100644
index 000000000000..f02f1e141218
--- /dev/null
+++ b/Documentation/devicetree/bindings/crypto/ti,omap4-des.yaml
@@ -0,0 +1,65 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/ti,omap4-des.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: OMAP4 DES crypto Module
+
+maintainers:
+  - Aaro Koskinen <aaro.koskinen@iki.fi>
+  - Andreas Kemnade <andreas@kemnade.info>
+  - Kevin Hilman <khilman@baylibre.com>
+  - Roger Quadros <rogerq@kernel.org>
+  - Tony Lindgren <tony@atomide.com>
+
+properties:
+  compatible:
+    const: ti,omap4-des
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  dmas:
+    maxItems: 2
+
+  dma-names:
+    items:
+      - const: tx
+      - const: rx
+
+  clocks:
+    maxItems: 1
+
+  clock-names:
+    items:
+      - const: fck
+
+dependencies:
+  dmas: [ dma-names ]
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - clocks
+  - clock-names
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+
+    des@480a5000 {
+        compatible = "ti,omap4-des";
+        reg = <0x480a5000 0xa0>;
+        interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
+        clocks = <&l3_iclk_div>;
+        clock-names = "fck";
+        dmas = <&sdma 117>, <&sdma 116>;
+        dma-names = "tx", "rx";
+    };
-- 
2.47.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] dt-bindings: crypto: Convert ti,omap4-des to DT schema
  2025-06-11 23:10 [PATCH v2] dt-bindings: crypto: Convert ti,omap4-des to DT schema Rob Herring (Arm)
@ 2025-06-17  8:57 ` Krzysztof Kozlowski
  2025-06-23  9:18 ` Herbert Xu
  1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2025-06-17  8:57 UTC (permalink / raw)
  To: Rob Herring (Arm)
  Cc: Herbert Xu, David S. Miller, Krzysztof Kozlowski, Conor Dooley,
	Aaro Koskinen, Andreas Kemnade, Kevin Hilman, Roger Quadros,
	Tony Lindgren, linux-crypto, devicetree, linux-kernel

On Wed, Jun 11, 2025 at 06:10:56PM GMT, Rob Herring (Arm) wrote:
> Convert the TI OMAP DES binding to DT schema format.
> 
> Drop "ti,hwmods" as it is not actually used for this binding. Only
> OMAP2 platforms are using it.
> 
> Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
> ---
> v2:
>  - Drop ti,hwmods from required too
> ---
>  .../devicetree/bindings/crypto/omap-des.txt   | 30 ---------
>  .../bindings/crypto/ti,omap4-des.yaml         | 65 +++++++++++++++++++
>  2 files changed, 65 insertions(+), 30 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/crypto/omap-des.txt
>  create mode 100644 Documentation/devicetree/bindings/crypto/ti,omap4-des.yaml

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] dt-bindings: crypto: Convert ti,omap4-des to DT schema
  2025-06-11 23:10 [PATCH v2] dt-bindings: crypto: Convert ti,omap4-des to DT schema Rob Herring (Arm)
  2025-06-17  8:57 ` Krzysztof Kozlowski
@ 2025-06-23  9:18 ` Herbert Xu
  1 sibling, 0 replies; 3+ messages in thread
From: Herbert Xu @ 2025-06-23  9:18 UTC (permalink / raw)
  To: Rob Herring (Arm)
  Cc: David S. Miller, Krzysztof Kozlowski, Conor Dooley, Aaro Koskinen,
	Andreas Kemnade, Kevin Hilman, Roger Quadros, Tony Lindgren,
	linux-crypto, devicetree, linux-kernel

On Wed, Jun 11, 2025 at 06:10:56PM -0500, Rob Herring (Arm) wrote:
> Convert the TI OMAP DES binding to DT schema format.
> 
> Drop "ti,hwmods" as it is not actually used for this binding. Only
> OMAP2 platforms are using it.
> 
> Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
> ---
> v2:
>  - Drop ti,hwmods from required too
> ---
>  .../devicetree/bindings/crypto/omap-des.txt   | 30 ---------
>  .../bindings/crypto/ti,omap4-des.yaml         | 65 +++++++++++++++++++
>  2 files changed, 65 insertions(+), 30 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/crypto/omap-des.txt
>  create mode 100644 Documentation/devicetree/bindings/crypto/ti,omap4-des.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] 3+ messages in thread

end of thread, other threads:[~2025-06-23  9:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-11 23:10 [PATCH v2] dt-bindings: crypto: Convert ti,omap4-des to DT schema Rob Herring (Arm)
2025-06-17  8:57 ` Krzysztof Kozlowski
2025-06-23  9:18 ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox