devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] dt-bindings: media: imx-jpeg: Document slot property
@ 2024-01-10  9:46 Alexander Stein
  2024-01-10 10:17 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Stein @ 2024-01-10  9:46 UTC (permalink / raw)
  To: Mirela Rabulea, Mauro Carvalho Chehab, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Shawn Guo, Sascha Hauer,
	Fabio Estevam
  Cc: Alexander Stein, NXP Linux Team, Pengutronix Kernel Team,
	linux-media, devicetree, linux-arm-kernel

There are 4 slots available in the IP, which the driver may use.
This property lists which slots can be used. In reference to commit
53ebeea50599 ("media: imx-jpeg: Support to assign slot for encoder/decoder")
only slot 0 can be used on imx8qxp.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
---
 .../devicetree/bindings/media/nxp,imx8-jpeg.yaml       | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml
index 07fef1e723f20..5122c7cff8e73 100644
--- a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml
+++ b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml
@@ -54,6 +54,14 @@ properties:
     minItems: 2               # Wrapper and 1 slot
     maxItems: 5               # Wrapper and 4 slots
 
+  slot:
+    $ref: /schemas/types.yaml#/definitions/uint32-array
+    minItems: 1
+    maxItems: 4
+    items:
+      enum: [ 0, 1, 2, 3 ]
+    description: Available slot index
+
 required:
   - compatible
   - reg
@@ -85,6 +93,7 @@ examples:
                         <&pd IMX_SC_R_MJPEG_DEC_S1>,
                         <&pd IMX_SC_R_MJPEG_DEC_S2>,
                         <&pd IMX_SC_R_MJPEG_DEC_S3>;
+        slot = <0>;
     };
 
     jpegenc: jpegenc@58450000 {
@@ -102,5 +111,6 @@ examples:
                         <&pd IMX_SC_R_MJPEG_ENC_S1>,
                         <&pd IMX_SC_R_MJPEG_ENC_S2>,
                         <&pd IMX_SC_R_MJPEG_ENC_S3>;
+        slot = <0>;
     };
 ...
-- 
2.34.1


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

* Re: [PATCH 1/1] dt-bindings: media: imx-jpeg: Document slot property
  2024-01-10  9:46 [PATCH 1/1] dt-bindings: media: imx-jpeg: Document slot property Alexander Stein
@ 2024-01-10 10:17 ` Krzysztof Kozlowski
  2024-01-10 10:41   ` Alexander Stein
  0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Kozlowski @ 2024-01-10 10:17 UTC (permalink / raw)
  To: Alexander Stein, Mirela Rabulea, Mauro Carvalho Chehab,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
	Sascha Hauer, Fabio Estevam
  Cc: NXP Linux Team, Pengutronix Kernel Team, linux-media, devicetree,
	linux-arm-kernel

On 10/01/2024 10:46, Alexander Stein wrote:
> There are 4 slots available in the IP, which the driver may use.
> This property lists which slots can be used. In reference to commit
> 53ebeea50599 ("media: imx-jpeg: Support to assign slot for encoder/decoder")
> only slot 0 can be used on imx8qxp.
> 
> Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
> ---
>  .../devicetree/bindings/media/nxp,imx8-jpeg.yaml       | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml
> index 07fef1e723f20..5122c7cff8e73 100644
> --- a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml
> +++ b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml
> @@ -54,6 +54,14 @@ properties:
>      minItems: 2               # Wrapper and 1 slot
>      maxItems: 5               # Wrapper and 4 slots
>  
> +  slot:
> +    $ref: /schemas/types.yaml#/definitions/uint32-array

NAK for documenting something post factum.

https://lore.kernel.org/all/9b853b5f-b3e6-4aea-b99a-51a490a29f9d@linaro.org/

https://lore.kernel.org/all/cover.1697597713.git.ming.qian@nxp.com/

Best regards,
Krzysztof


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

* Re: [PATCH 1/1] dt-bindings: media: imx-jpeg: Document slot property
  2024-01-10 10:17 ` Krzysztof Kozlowski
@ 2024-01-10 10:41   ` Alexander Stein
  0 siblings, 0 replies; 3+ messages in thread
From: Alexander Stein @ 2024-01-10 10:41 UTC (permalink / raw)
  To: Mirela Rabulea, Mauro Carvalho Chehab, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Shawn Guo, Sascha Hauer,
	Fabio Estevam, Krzysztof Kozlowski
  Cc: NXP Linux Team, Pengutronix Kernel Team, linux-media, devicetree,
	linux-arm-kernel

Am Mittwoch, 10. Januar 2024, 11:17:42 CET schrieb Krzysztof Kozlowski:
> ********************
> Achtung externe E-Mail: Öffnen Sie Anhänge und Links nur, wenn Sie wissen,
> dass diese aus einer sicheren Quelle stammen und sicher sind. Leiten Sie
> die E-Mail im Zweifelsfall zur Prüfung an den IT-Helpdesk weiter.
> Attention external email: Open attachments and links only if you know that
> they are from a secure source and are safe. In doubt forward the email to
> the IT-Helpdesk to check it. ********************
> 
> On 10/01/2024 10:46, Alexander Stein wrote:
> > There are 4 slots available in the IP, which the driver may use.
> > This property lists which slots can be used. In reference to commit
> > 53ebeea50599 ("media: imx-jpeg: Support to assign slot for
> > encoder/decoder") only slot 0 can be used on imx8qxp.
> > 
> > Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
> > ---
> > 
> >  .../devicetree/bindings/media/nxp,imx8-jpeg.yaml       | 10 ++++++++++
> >  1 file changed, 10 insertions(+)
> > 
> > diff --git a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml
> > b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml index
> > 07fef1e723f20..5122c7cff8e73 100644
> > --- a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml
> > +++ b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml
> > 
> > @@ -54,6 +54,14 @@ properties:
> >      minItems: 2               # Wrapper and 1 slot
> >      maxItems: 5               # Wrapper and 4 slots
> > 
> > +  slot:
> > +    $ref: /schemas/types.yaml#/definitions/uint32-array
> 
> NAK for documenting something post factum.
> 
> https://lore.kernel.org/all/9b853b5f-b3e6-4aea-b99a-51a490a29f9d@linaro.org/
> 
> https://lore.kernel.org/all/cover.1697597713.git.ming.qian@nxp.com/

Ah, thanks. I was not aware of that discussion. I'll wait for v6 then.

Thanks and best regards,
Alexander
-- 
TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany
Amtsgericht München, HRB 105018
Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider
http://www.tq-group.com/



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

end of thread, other threads:[~2024-01-10 10:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-10  9:46 [PATCH 1/1] dt-bindings: media: imx-jpeg: Document slot property Alexander Stein
2024-01-10 10:17 ` Krzysztof Kozlowski
2024-01-10 10:41   ` Alexander Stein

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).