diff mbox series

[1/1] dt-bindings: media: imx-jpeg: Document slot property

Message ID 20240110094604.472701-1-alexander.stein@ew.tq-group.com
State New
Headers show
Series [1/1] dt-bindings: media: imx-jpeg: Document slot property | expand

Commit Message

Alexander Stein Jan. 10, 2024, 9:46 a.m. UTC
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 mbox series

Patch

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>;
     };
 ...