All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Mirela Rabulea (OSS)" <mirela.rabulea@oss.nxp.com>
To: robh+dt@kernel.org, shawnguo@kernel.org, aisheng.dong@nxp.com,
	guoniu.zhou@nxp.com, linux-arm-kernel@lists.infradead.org,
	mchehab@kernel.org
Cc: peng.fan@nxp.com, s.hauer@pengutronix.de, linux-imx@nxp.com,
	devicetree@vger.kernel.org, hverkuil-cisco@xs4all.nl,
	linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
	paul.kocialkowski@bootlin.com, daniel.baluta@nxp.com,
	robert.chiras@nxp.com, laurentiu.palcu@nxp.com,
	p.zabel@pengutronix.de, ezequiel@collabora.com,
	kernel@pengutronix.de, Mirela Rabulea <mirela.rabulea@nxp.com>
Subject: [PATCH v13 1/2] media: dt-bindings: imx-jpeg: Add compatible for i.MX8QM JPEG codec
Date: Sun, 23 May 2021 00:10:54 +0300	[thread overview]
Message-ID: <20210522211055.15988-2-mirela.rabulea@oss.nxp.com> (raw)
In-Reply-To: <20210522211055.15988-1-mirela.rabulea@oss.nxp.com>

From: Mirela Rabulea <mirela.rabulea@nxp.com>

Add two more compatibles: "nxp,imx8qm-jpgdec" and " nxp,imx8qm-jpgenc".
Also update the compatible property to ensure mutually exclusive usage of
encoder and decoder compatibles.
Update examples.

Signed-off-by: Mirela Rabulea <mirela.rabulea@nxp.com>
---
 .../bindings/media/nxp,imx8-jpeg.yaml           | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml
index 5d13cbb5251b..5cc7b6a94c44 100644
--- a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml
+++ b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml
@@ -16,12 +16,15 @@ description: |-
 
 properties:
   compatible:
-    items:
-      - enum:
-            # JPEG decoder
-          - nxp,imx8qxp-jpgdec
-            # JPEG encoder
-          - nxp,imx8qxp-jpgenc
+    oneOf:
+      - items:
+          anyOf:
+            - const: nxp,imx8qxp-jpgdec
+            - const: nxp,imx8qm-jpgdec
+      - items:
+          anyOf:
+            - const: nxp,imx8qxp-jpgenc
+            - const: nxp,imx8qm-jpgenc
 
   reg:
     maxItems: 1
@@ -69,7 +72,7 @@ examples:
     };
 
     jpegenc: jpegenc@58450000 {
-        compatible = "nxp,imx8qxp-jpgenc";
+        compatible = "nxp,imx8qm-jpgenc", "nxp,imx8qxp-jpgenc";
         reg = <0x58450000 0x00050000 >;
         interrupts = <GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>,
                      <GIC_SPI 306 IRQ_TYPE_LEVEL_HIGH>,
-- 
2.17.1


WARNING: multiple messages have this Message-ID (diff)
From: "Mirela Rabulea (OSS)" <mirela.rabulea@oss.nxp.com>
To: robh+dt@kernel.org, shawnguo@kernel.org, aisheng.dong@nxp.com,
	guoniu.zhou@nxp.com, linux-arm-kernel@lists.infradead.org,
	mchehab@kernel.org
Cc: peng.fan@nxp.com, s.hauer@pengutronix.de, linux-imx@nxp.com,
	devicetree@vger.kernel.org, hverkuil-cisco@xs4all.nl,
	linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
	paul.kocialkowski@bootlin.com, daniel.baluta@nxp.com,
	robert.chiras@nxp.com, laurentiu.palcu@nxp.com,
	p.zabel@pengutronix.de, ezequiel@collabora.com,
	kernel@pengutronix.de, Mirela Rabulea <mirela.rabulea@nxp.com>
Subject: [PATCH v13 1/2] media: dt-bindings: imx-jpeg: Add compatible for i.MX8QM JPEG codec
Date: Sun, 23 May 2021 00:10:54 +0300	[thread overview]
Message-ID: <20210522211055.15988-2-mirela.rabulea@oss.nxp.com> (raw)
In-Reply-To: <20210522211055.15988-1-mirela.rabulea@oss.nxp.com>

From: Mirela Rabulea <mirela.rabulea@nxp.com>

Add two more compatibles: "nxp,imx8qm-jpgdec" and " nxp,imx8qm-jpgenc".
Also update the compatible property to ensure mutually exclusive usage of
encoder and decoder compatibles.
Update examples.

Signed-off-by: Mirela Rabulea <mirela.rabulea@nxp.com>
---
 .../bindings/media/nxp,imx8-jpeg.yaml           | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml
index 5d13cbb5251b..5cc7b6a94c44 100644
--- a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml
+++ b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml
@@ -16,12 +16,15 @@ description: |-
 
 properties:
   compatible:
-    items:
-      - enum:
-            # JPEG decoder
-          - nxp,imx8qxp-jpgdec
-            # JPEG encoder
-          - nxp,imx8qxp-jpgenc
+    oneOf:
+      - items:
+          anyOf:
+            - const: nxp,imx8qxp-jpgdec
+            - const: nxp,imx8qm-jpgdec
+      - items:
+          anyOf:
+            - const: nxp,imx8qxp-jpgenc
+            - const: nxp,imx8qm-jpgenc
 
   reg:
     maxItems: 1
@@ -69,7 +72,7 @@ examples:
     };
 
     jpegenc: jpegenc@58450000 {
-        compatible = "nxp,imx8qxp-jpgenc";
+        compatible = "nxp,imx8qm-jpgenc", "nxp,imx8qxp-jpgenc";
         reg = <0x58450000 0x00050000 >;
         interrupts = <GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>,
                      <GIC_SPI 306 IRQ_TYPE_LEVEL_HIGH>,
-- 
2.17.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2021-05-22 21:12 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-22 21:10 [PATCH v13 0/2] Add dts and bindings update for i.MX8QM/QXP JPEG codec Mirela Rabulea (OSS)
2021-05-22 21:10 ` Mirela Rabulea (OSS)
2021-05-22 21:10 ` Mirela Rabulea (OSS) [this message]
2021-05-22 21:10   ` [PATCH v13 1/2] media: dt-bindings: imx-jpeg: Add compatible for i.MX8QM " Mirela Rabulea (OSS)
2021-05-24  3:19   ` Aisheng Dong
2021-05-24  3:19     ` Aisheng Dong
2021-05-22 21:10 ` [PATCH v13 2/2] arm64: dts: imx: Add jpeg encoder/decoder nodes Mirela Rabulea (OSS)
2021-05-22 21:10   ` Mirela Rabulea (OSS)
2021-05-24  3:28   ` Aisheng Dong
2021-05-24  3:28     ` Aisheng Dong
2021-05-24  7:17     ` Mirela Rabulea
2021-05-24  7:17       ` Mirela Rabulea
2021-06-11 13:33       ` Dong Aisheng
2021-06-11 13:33         ` Dong Aisheng
2021-06-11 15:00         ` Ezequiel Garcia
2021-06-11 15:00           ` Ezequiel Garcia
2021-06-18 12:47           ` Dong Aisheng
2021-06-18 12:47             ` Dong Aisheng

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=20210522211055.15988-2-mirela.rabulea@oss.nxp.com \
    --to=mirela.rabulea@oss.nxp.com \
    --cc=aisheng.dong@nxp.com \
    --cc=daniel.baluta@nxp.com \
    --cc=devicetree@vger.kernel.org \
    --cc=ezequiel@collabora.com \
    --cc=guoniu.zhou@nxp.com \
    --cc=hverkuil-cisco@xs4all.nl \
    --cc=kernel@pengutronix.de \
    --cc=laurentiu.palcu@nxp.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=mirela.rabulea@nxp.com \
    --cc=p.zabel@pengutronix.de \
    --cc=paul.kocialkowski@bootlin.com \
    --cc=peng.fan@nxp.com \
    --cc=robert.chiras@nxp.com \
    --cc=robh+dt@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.