[PATCH 3/4] dt-bindings: crypto: fsl,sec-v4.0: Allow supplying power-domains

John Ernberg posted 4 patches 7 months ago
There is a newer version of this series
[PATCH 3/4] dt-bindings: crypto: fsl,sec-v4.0: Allow supplying power-domains
Posted by John Ernberg 7 months ago
NXP SoCs like the iMX8QM, iMX8QXP or iMX8DXP use power domains for
resource management.

Signed-off-by: John Ernberg <john.ernberg@actia.se>
---
 Documentation/devicetree/bindings/crypto/fsl,sec-v4.0.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/crypto/fsl,sec-v4.0.yaml b/Documentation/devicetree/bindings/crypto/fsl,sec-v4.0.yaml
index 75afa441e019..47bbf87a5a5a 100644
--- a/Documentation/devicetree/bindings/crypto/fsl,sec-v4.0.yaml
+++ b/Documentation/devicetree/bindings/crypto/fsl,sec-v4.0.yaml
@@ -77,6 +77,9 @@ properties:
   interrupts:
     maxItems: 1
 
+  power-domains:
+    maxItems: 1
+
   fsl,sec-era:
     description: Defines the 'ERA' of the SEC device.
     $ref: /schemas/types.yaml#/definitions/uint32
@@ -116,6 +119,9 @@ patternProperties:
       interrupts:
         maxItems: 1
 
+      power-domains:
+        maxItems: 1
+
       fsl,liodn:
         description:
           Specifies the LIODN to be used in conjunction with the ppid-to-liodn
-- 
2.49.0
Re: [PATCH 3/4] dt-bindings: crypto: fsl,sec-v4.0: Allow supplying power-domains
Posted by Frank Li 7 months ago
On Fri, May 23, 2025 at 01:18:32PM +0000, John Ernberg wrote:
> NXP SoCs like the iMX8QM, iMX8QXP or iMX8DXP use power domains for
> resource management.

Add power-domains for iMX8QM and iMX8QXP.

Need keep the same restriction with other platform.

>
> Signed-off-by: John Ernberg <john.ernberg@actia.se>
> ---
>  Documentation/devicetree/bindings/crypto/fsl,sec-v4.0.yaml | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/crypto/fsl,sec-v4.0.yaml b/Documentation/devicetree/bindings/crypto/fsl,sec-v4.0.yaml
> index 75afa441e019..47bbf87a5a5a 100644
> --- a/Documentation/devicetree/bindings/crypto/fsl,sec-v4.0.yaml
> +++ b/Documentation/devicetree/bindings/crypto/fsl,sec-v4.0.yaml
> @@ -77,6 +77,9 @@ properties:
>    interrupts:
>      maxItems: 1
>
> +  power-domains:
> +    maxItems: 1
> +
>    fsl,sec-era:
>      description: Defines the 'ERA' of the SEC device.
>      $ref: /schemas/types.yaml#/definitions/uint32
> @@ -116,6 +119,9 @@ patternProperties:
>        interrupts:
>          maxItems: 1
>
> +      power-domains:
> +        maxItems: 1
> +
>        fsl,liodn:
>          description:
>            Specifies the LIODN to be used in conjunction with the ppid-to-liodn


Need add new compatible string for 8qm and 8qxp and fall back to exist one.

Add allOf

allOf:
  - if not contain 8qm and 8qxp
  - then
      property:
        power-domains: false

> --
> 2.49.0