mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nicolas Dufresne <nicolas@ndufresne.ca>
To: Frank Li <Frank.Li@nxp.com>,
	mirela.rabulea@nxp.com, mchehab@kernel.org, robh@kernel.org,
	krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org,
		s.hauer@pengutronix.de, kernel@pengutronix.de,
	festevam@gmail.com, 	krzysztof.kozlowski@linaro.org
Cc: imx@lists.linux.dev, linux-media@vger.kernel.org,
	 devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	 linux-kernel@vger.kernel.org, ming.qian@nxp.com
Subject: Re: [PATCH RESEND 1/2] media: dt-bindings: nxp,imx8-jpeg: Add compatible strings for IMX95 JPEG
Date: Fri, 23 May 2025 19:22:04 -0400	[thread overview]
Message-ID: <eef5ccd99d82dd33e3a4ecdb5d4a5b75ccb0b972.camel@ndufresne.ca> (raw)
In-Reply-To: <20250521173444.310641-1-Frank.Li@nxp.com>

Hi,

Le mercredi 21 mai 2025 à 13:34 -0400, Frank Li a écrit :
> Add compatible strings "nxp,imx95-jpgdec" and "nxp,imx95-jpgenc", which
> are backward compatible with "nxp,imx8qxp-jpgdec" and
> "nxp,imx8qxp-jpegenc". i.MX95 just need one power domain which combine
> wrap and all slots together. Reduce minItems of power-domains to 1 for
> i.MX95 and keep the same restriction for others.
> 
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>

Acked-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>

Krzysztof, will you take this one once the DTS part is ready ?

regards,
Nicolas

> ---
>  .../bindings/media/nxp,imx8-jpeg.yaml         | 28 +++++++++++++++++--
>  1 file changed, 25 insertions(+), 3 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml
> b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml
> index 2be30c5fdc839..4cba42ba7cf72 100644
> --- a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml
> +++ b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml
> @@ -22,10 +22,14 @@ properties:
>              - nxp,imx8qxp-jpgdec
>              - nxp,imx8qxp-jpgenc
>        - items:
> -          - const: nxp,imx8qm-jpgdec
> +          - enum:
> +              - nxp,imx8qm-jpgdec
> +              - nxp,imx95-jpgdec
>            - const: nxp,imx8qxp-jpgdec
>        - items:
> -          - const: nxp,imx8qm-jpgenc
> +          - enum:
> +              - nxp,imx8qm-jpgenc
> +              - nxp,imx95-jpgenc
>            - const: nxp,imx8qxp-jpgenc
>  
>    reg:
> @@ -48,7 +52,7 @@ properties:
>      description:
>        List of phandle and PM domain specifier as documented in
>        Documentation/devicetree/bindings/power/power_domain.txt
> -    minItems: 2               # Wrapper and 1 slot
> +    minItems: 1               # Wrapper and all slots
>      maxItems: 5               # Wrapper and 4 slots
>  
>  required:
> @@ -58,6 +62,24 @@ required:
>    - interrupts
>    - power-domains
>  
> +allOf:
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            enum:
> +              - nxp,imx95-jpgenc
> +              - nxp,imx95-jpgdec
> +    then:
> +      properties:
> +        power-domains:
> +          maxItems: 1
> +    else:
> +      properties:
> +        power-domains:
> +          minItems: 2        # Wrapper and 1 slot
> +
> +
>  additionalProperties: false
>  
>  examples:

  reply	other threads:[~2025-05-23 23:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-21 17:34 [PATCH RESEND 0/2] media: nxp,imx8-jpeg: Add imx95 support Frank Li
2025-05-21 17:34 ` [PATCH RESEND 1/2] media: dt-bindings: nxp,imx8-jpeg: Add compatible strings for IMX95 JPEG Frank Li
2025-05-23 23:22   ` Nicolas Dufresne [this message]
2025-05-24  6:27     ` Krzysztof Kozlowski
2025-06-19  4:27     ` Shawn Guo
2025-06-19 17:16       ` Nicolas Dufresne
2025-06-20  5:54         ` Krzysztof Kozlowski
2025-06-20 15:06           ` Nicolas Dufresne
2025-06-22 10:28             ` Krzysztof Kozlowski
2025-05-21 17:34 ` [PATCH RESEND 2/2] arm64: dts: imx95: add jpeg encode and decode nodes Frank Li
2025-07-10  2:48   ` Frank Li
2025-07-11  5:37     ` Shawn Guo
2025-07-11  5:41       ` Shawn Guo

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=eef5ccd99d82dd33e3a4ecdb5d4a5b75ccb0b972.camel@ndufresne.ca \
    --to=nicolas@ndufresne.ca \
    --cc=Frank.Li@nxp.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=imx@lists.linux.dev \
    --cc=kernel@pengutronix.de \
    --cc=krzk+dt@kernel.org \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=ming.qian@nxp.com \
    --cc=mirela.rabulea@nxp.com \
    --cc=robh@kernel.org \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.org \
    /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

all inboxes | Powered by JetHome®