* [PATCH v2 2/3] dt-bindings: crypto: fsl-imx-sahara: Document the clocks
2023-09-25 11:12 [PATCH v2 1/3] dt-bindings: crypto: fsl-imx-sahara: Shorten the title Fabio Estevam
@ 2023-09-25 11:12 ` Fabio Estevam
2023-09-25 11:12 ` [PATCH v2 3/3] dt-bindings: crypto: fsl-imx-sahara: Fix the number of irqs Fabio Estevam
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Fabio Estevam @ 2023-09-25 11:12 UTC (permalink / raw)
To: herbert
Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, linux-crypto,
devicetree, Fabio Estevam, Krzysztof Kozlowski
From: Fabio Estevam <festevam@denx.de>
Describe the clocks (ipg and ahb) needed by Sahara block to operate.
Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
Changes since v1:
- Simplify the commit log. (Krzysztof)
.../bindings/crypto/fsl-imx-sahara.yaml | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml b/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml
index bad82491cd6a..9dbfc15510a8 100644
--- a/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml
+++ b/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml
@@ -21,17 +21,34 @@ properties:
interrupts:
maxItems: 1
+ clocks:
+ items:
+ - description: Sahara IPG clock
+ - description: Sahara AHB clock
+
+ clock-names:
+ items:
+ - const: ipg
+ - const: ahb
+
required:
- compatible
- reg
- interrupts
+ - clocks
+ - clock-names
additionalProperties: false
examples:
- |
+ #include <dt-bindings/clock/imx27-clock.h>
+
crypto@10025000 {
compatible = "fsl,imx27-sahara";
reg = <0x10025000 0x800>;
interrupts = <75>;
+ clocks = <&clks IMX27_CLK_SAHARA_IPG_GATE>,
+ <&clks IMX27_CLK_SAHARA_AHB_GATE>;
+ clock-names = "ipg", "ahb";
};
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v2 3/3] dt-bindings: crypto: fsl-imx-sahara: Fix the number of irqs
2023-09-25 11:12 [PATCH v2 1/3] dt-bindings: crypto: fsl-imx-sahara: Shorten the title Fabio Estevam
2023-09-25 11:12 ` [PATCH v2 2/3] dt-bindings: crypto: fsl-imx-sahara: Document the clocks Fabio Estevam
@ 2023-09-25 11:12 ` Fabio Estevam
2023-09-25 12:21 ` [PATCH v2 1/3] dt-bindings: crypto: fsl-imx-sahara: Shorten the title Krzysztof Kozlowski
2023-10-05 10:24 ` Herbert Xu
3 siblings, 0 replies; 5+ messages in thread
From: Fabio Estevam @ 2023-09-25 11:12 UTC (permalink / raw)
To: herbert
Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, linux-crypto,
devicetree, Fabio Estevam, Krzysztof Kozlowski
From: Fabio Estevam <festevam@denx.de>
i.MX27 has only one Sahara interrupt. i.MX53 has two.
Describe this difference.
Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
Changes since v1:
- Placed the if block before additionalProperties. (Krzysztof)
- Remove extra minItems = 1. (Krzysztof)
.../bindings/crypto/fsl-imx-sahara.yaml | 22 ++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml b/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml
index 9dbfc15510a8..41df80bcdcd9 100644
--- a/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml
+++ b/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml
@@ -19,7 +19,10 @@ properties:
maxItems: 1
interrupts:
- maxItems: 1
+ items:
+ - description: SAHARA Interrupt for Host 0
+ - description: SAHARA Interrupt for Host 1
+ minItems: 1
clocks:
items:
@@ -38,6 +41,23 @@ required:
- clocks
- clock-names
+allOf:
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - fsl,imx53-sahara
+ then:
+ properties:
+ interrupts:
+ minItems: 2
+ maxItems: 2
+ else:
+ properties:
+ interrupts:
+ maxItems: 1
+
additionalProperties: false
examples:
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/3] dt-bindings: crypto: fsl-imx-sahara: Shorten the title
2023-09-25 11:12 [PATCH v2 1/3] dt-bindings: crypto: fsl-imx-sahara: Shorten the title Fabio Estevam
2023-09-25 11:12 ` [PATCH v2 2/3] dt-bindings: crypto: fsl-imx-sahara: Document the clocks Fabio Estevam
2023-09-25 11:12 ` [PATCH v2 3/3] dt-bindings: crypto: fsl-imx-sahara: Fix the number of irqs Fabio Estevam
@ 2023-09-25 12:21 ` Krzysztof Kozlowski
2023-10-05 10:24 ` Herbert Xu
3 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2023-09-25 12:21 UTC (permalink / raw)
To: Fabio Estevam, herbert
Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, linux-crypto,
devicetree, Fabio Estevam
On 25/09/2023 13:12, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
>
> In the title, there is no need to mention "included in some i.MX chips"
> as it is too vague.
>
> Remove it to make it simpler.
>
> While at it, also remove the extra space in the first reg entry.
>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/3] dt-bindings: crypto: fsl-imx-sahara: Shorten the title
2023-09-25 11:12 [PATCH v2 1/3] dt-bindings: crypto: fsl-imx-sahara: Shorten the title Fabio Estevam
` (2 preceding siblings ...)
2023-09-25 12:21 ` [PATCH v2 1/3] dt-bindings: crypto: fsl-imx-sahara: Shorten the title Krzysztof Kozlowski
@ 2023-10-05 10:24 ` Herbert Xu
3 siblings, 0 replies; 5+ messages in thread
From: Herbert Xu @ 2023-10-05 10:24 UTC (permalink / raw)
To: Fabio Estevam
Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, linux-crypto,
devicetree, Fabio Estevam
On Mon, Sep 25, 2023 at 08:12:18AM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
>
> In the title, there is no need to mention "included in some i.MX chips"
> as it is too vague.
>
> Remove it to make it simpler.
>
> While at it, also remove the extra space in the first reg entry.
>
> Signed-off-by: Fabio Estevam <festevam@denx.de>
> ---
> Changes since v1:
> - Squash the removal of leading space. (Krzysztof)
>
> Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
All 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