devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: Alexey Romanov <avromanov@salutedevices.com>
Cc: neil.armstrong@linaro.org, clabbe@baylibre.com,
	herbert@gondor.apana.org.au, davem@davemloft.net,
	krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
	khilman@baylibre.com, jbrunet@baylibre.com,
	martin.blumenstingl@googlemail.com, vadim.fedorenko@linux.dev,
	linux-crypto@vger.kernel.org, linux-amlogic@lists.infradead.org,
	linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, kernel@salutedevices.com
Subject: Re: [PATCH v8 19/23] dt-bindings: crypto: meson: support new SoC's
Date: Mon, 10 Jun 2024 16:32:19 -0600	[thread overview]
Message-ID: <20240610223219.GA3175091-robh@kernel.org> (raw)
In-Reply-To: <20240607141242.2616580-20-avromanov@salutedevices.com>

On Fri, Jun 07, 2024 at 05:12:38PM +0300, Alexey Romanov wrote:
> Now crypto module available at G12A/G12B/S4/A1/SM1/AXG.
> 
> 1. Add new compatibles:
>   - amlogic,g12a-crypto
>   - amlogic,axg-crypto
>   - amlogic,a1-crypto
>   - amlogic,s4-crypto (uses a1-crypto as fallback)
> 
> Difference between this compatibles:
>  * Different registers offset and the number of setup descriptors.
>  * GXL doesn't support hashing like the others.
>  * G12A/B and A1/S4 crypto HW don't support 192 AES key.
>  * GXL, G12A/B and AXG require a reverse IV key before processing.
> 
> 2. Add power-domains in schema, which is required only for A1.

You added it in the prior patch, was that supposed to be done here? Kind 
of strange for h/w to optionally have a power-domain... It either has 
one or it doesn't. OTOH, making required is an ABI break.

> 
> Signed-off-by: Alexey Romanov <avromanov@salutedevices.com>
> ---
>  .../bindings/crypto/amlogic,gxl-crypto.yaml   | 21 +++++++++++++++++--
>  1 file changed, 19 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/crypto/amlogic,gxl-crypto.yaml b/Documentation/devicetree/bindings/crypto/amlogic,gxl-crypto.yaml
> index aff6f3234dc9..a8344de71b4a 100644
> --- a/Documentation/devicetree/bindings/crypto/amlogic,gxl-crypto.yaml
> +++ b/Documentation/devicetree/bindings/crypto/amlogic,gxl-crypto.yaml
> @@ -11,8 +11,16 @@ maintainers:
>  
>  properties:
>    compatible:
> -    items:
> -      - const: amlogic,gxl-crypto
> +    oneOf:
> +      - items:
> +          - enum:
> +              - amlogic,s4-crypto
> +          - const: amlogic,a1-crypto
> +      - enum:
> +          - amlogic,gxl-crypto
> +          - amlogic,axg-crypto
> +          - amlogic,g12a-crypto
> +          - amlogic,a1-crypto
>  
>    reg:
>      maxItems: 1
> @@ -37,6 +45,15 @@ required:
>    - clocks
>    - clock-names
>  
> +allOf:
> +  - if:
> +      properties:
> +        compatible:
> +          const: amlogic,a1-crypto
> +    then:
> +      required:
> +        - power-domains
> +
>  additionalProperties: false
>  
>  examples:
> -- 
> 2.34.1
> 

  reply	other threads:[~2024-06-10 22:32 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-07 14:12 [PATCH v8 00/23] Support more Amlogic SoC families in crypto driver Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 01/23] drivers: crypto: meson: don't hardcode IRQ count Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 02/23] drviers: crypto: meson: add platform data Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 03/23] drivers: crypto: meson: remove clock input Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 04/23] drivers: crypto: meson: add MMIO helpers Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 05/23] drivers: crypto: meson: move get_engine_number() Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 06/23] drivers: crypto: meson: drop status field from meson_flow Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 07/23] drivers: crypto: meson: move algs definition and cipher API to cipher.c Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 08/23] drivers: crypto: meson: cleanup defines Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 09/23] drivers: crypto: meson: process more than MAXDESCS descriptors Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 10/23] drivers: crypto: meson: avoid kzalloc in engine thread Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 11/23] drivers: crypto: meson: introduce hasher Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 12/23] drivers: crypto: meson: add support for AES-CTR Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 13/23] drivers: crypto: meson: use fallback for 192-bit keys Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 14/23] drivers: crypto: meson: add support for G12-series Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 15/23] drivers: crypto: meson: add support for AXG-series Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 16/23] drivers: crypto: meson: add support for A1-series Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 17/23] dt-bindings: crypto: meson: correct clk and remove second interrupt line Alexey Romanov
2024-06-10 22:28   ` Rob Herring
2024-07-08 10:33     ` Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 18/23] arch: arm64: dts: meson: gxl: correct crypto node definition Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 19/23] dt-bindings: crypto: meson: support new SoC's Alexey Romanov
2024-06-10 22:32   ` Rob Herring [this message]
2024-07-08 10:36     ` Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 20/23] arch: arm64: dts: meson: a1: add crypto node Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 21/23] arch: arm64: dts: meson: s4: " Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 22/23] arch: arm64: dts: meson: g12: " Alexey Romanov
2024-06-07 14:12 ` [PATCH v8 23/23] arch: arm64: dts: meson: axg: " Alexey Romanov
2024-07-08 10:37 ` [PATCH v8 00/23] Support more Amlogic SoC families in crypto driver Alexey Romanov
2024-07-08 10:41   ` Krzysztof Kozlowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240610223219.GA3175091-robh@kernel.org \
    --to=robh@kernel.org \
    --cc=avromanov@salutedevices.com \
    --cc=clabbe@baylibre.com \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=jbrunet@baylibre.com \
    --cc=kernel@salutedevices.com \
    --cc=khilman@baylibre.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=martin.blumenstingl@googlemail.com \
    --cc=neil.armstrong@linaro.org \
    --cc=vadim.fedorenko@linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).