Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp718495ybx; Wed, 6 Nov 2019 07:25:06 -0800 (PST) X-Google-Smtp-Source: APXvYqzjT8bCH0V0c9b/T6arxmsIZxecEt9cwpfLp4M3xeVx96p5AS/rCYOGHxqpc4TPOLl9UTod X-Received: by 2002:aa7:c2c7:: with SMTP id m7mr3298756edp.295.1573053906170; Wed, 06 Nov 2019 07:25:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573053906; cv=none; d=google.com; s=arc-20160816; b=RFbqHt/LtCs8iLjUKeKkF8hjKrstRcVEhqzURFitjrmvfasLTKYhdvAp1Jr74e9VhU ZGCqGNgAYm9/X4dC05ZOPqCG8OR7L4Bb/VEZixhSNFYX4BiOx3Fuw/NWqWbNGWe/SFnl kZAbF3W+0J5emyNjGz/MyrtCzaT1F49EYtsti1BmGHi0bfWF0ZmDOQw93KGkgjWZpsaz iaKPZ7YFP8HsLWCQAHVLYFQ++FZDyPjxHEpHU1oKRXn0YeFK2wqX4a5uAFP0CheeIb8y HL6vuJ9JikqwC5bD3lz0zTw+nt3y96v6zUBPkxdpPoUw93K4RjAhWLkClTkaepFBUliB Ytxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=vFV2Vn743nTca1/TbuSUWvCLbuwG5GMcN/m5nsGHZFo=; b=lyxhPAJANj7CAXHYLTjjzQ32cNk294eSV2eVNwGAfy/BXAfHolqR2ObtqIt2eNjc96 rKGrDHANv1ymGL5Ojrz7EUdDdsGQD+SEaY1aZ3R2Z1DCeQQdxzQr0TUbCS51z0V0YXBO eX/8YokV4klnIeiaSbbG3dBIAHT5siOIZ9LMnKJF/H0gvc8Rt4fS6d1ALEqcXTRtdfKd E8fQiOt79VbM3gglh9ZQeY5RszQMIcoD6JrXCCslOfNf5Y8UXbqOtc6GKWa3wKiDBW31 vyFOOg93tJZi63ChwDlHXZJuib8GduPdzX0eS3qwnoajHXOJPnW2simQJhpQPGuJEcDA 7qyQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n27si1260382ejl.272.2019.11.06.07.24.42; Wed, 06 Nov 2019 07:25:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732068AbfKFPVM (ORCPT + 99 others); Wed, 6 Nov 2019 10:21:12 -0500 Received: from inva020.nxp.com ([92.121.34.13]:33548 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732033AbfKFPVL (ORCPT ); Wed, 6 Nov 2019 10:21:11 -0500 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 203A91A0BBA; Wed, 6 Nov 2019 16:21:08 +0100 (CET) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 13B501A0B8A; Wed, 6 Nov 2019 16:21:08 +0100 (CET) Received: from fsr-ub1664-134.ea.freescale.net (fsr-ub1664-134.ea.freescale.net [10.171.74.111]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 4871D205EB; Wed, 6 Nov 2019 16:21:07 +0100 (CET) From: Mirela Rabulea To: mchehab@kernel.org, shawnguo@kernel.org, robh+dt@kernel.org Cc: hverkuil-cisco@xs4all.nl, paul.kocialkowski@bootlin.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, s.hauer@pengutronix.de, aisheng.dong@nxp.com, daniel.baluta@nxp.com, leonard.crestez@nxp.com, robert.chiras@nxp.com, laurentiu.palcu@nxp.com, mark.rutland@arm.com, devicetree@vger.kernel.org, p.zabel@pengutronix.de, laurent.pinchart+renesas@ideasonboard.com, niklas.soderlund+renesas@ragnatech.se, dafna.hirschfeld@collabora.com, Mirela Rabulea Subject: [PATCH 3/5] media: dt-bindings: Add bindings for i.MX8QXP/QM JPEG driver Date: Wed, 6 Nov 2019 17:20:31 +0200 Message-Id: <1573053633-21437-4-git-send-email-mirela.rabulea@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1573053633-21437-1-git-send-email-mirela.rabulea@nxp.com> References: <1573053633-21437-1-git-send-email-mirela.rabulea@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add bindings documentation for i.MX8QXP/QM JPEG decoder & encoder driver. Signed-off-by: Mirela Rabulea --- .../devicetree/bindings/media/imx8-jpeg.yaml | 83 ++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/imx8-jpeg.yaml diff --git a/Documentation/devicetree/bindings/media/imx8-jpeg.yaml b/Documentation/devicetree/bindings/media/imx8-jpeg.yaml new file mode 100644 index 0000000..2df538d --- /dev/null +++ b/Documentation/devicetree/bindings/media/imx8-jpeg.yaml @@ -0,0 +1,83 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/imx8-jpeg.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: i.MX8QXP/QM JPEG decoder/encoder Device Tree Bindings + +maintainers: + - Mirela Rabulea + +description: |- + The JPEG decoder/encoder present in.MXQXP/QM SoC is an + ISO/IEC 10918-1 JPEG standard compliant decoder/encoder, for Baseline + and Extended Sequential DCT modes. + +properties: + compatible: + items: + - enum: + # JPEG decoder + - fsl,imx8-jpgdec + # JPEG encoder + - fsl,imx8-jpgenc + + reg: + maxItems: 1 + + interrupts: + description: | + There are 4 slots available in the IP + If a certain slot is used, it should have an associated interrupt + minItems: 1 # At least one slot should be available + maxItems: 4 # The IP has 4 slots available for use + + power-domains: + description: + List of phandle and PM domain specifier as documented in + Documentation/devicetree/bindings/power/power_domain.txt + minItems: 2 # Wrapper and 1 slot + maxItems: 5 # Wrapper and 4 slots + +required: + - compatible + - reg + - interrupts + - power-domains + +additionalProperties: false + +examples: + - | + #include + #include + + jpegdec: jpegdec@58400000 { + compatible = "fsl,imx8-jpgdec"; + reg = <0x58400000 0x00050000 >; + interrupts = , + , + , + ; + power-domains = <&pd IMX_SC_R_MJPEG_DEC_MP>, + <&pd IMX_SC_R_MJPEG_DEC_S0>, + <&pd IMX_SC_R_MJPEG_DEC_S1>, + <&pd IMX_SC_R_MJPEG_DEC_S2>, + <&pd IMX_SC_R_MJPEG_DEC_S3>; + }; + + jpegenc: jpegenc@58450000 { + compatible = "fsl,imx8-jpgenc"; + reg = <0x58450000 0x00050000 >; + interrupts = , + , + , + ; + power-domains = <&pd IMX_SC_R_MJPEG_ENC_MP>, + <&pd IMX_SC_R_MJPEG_ENC_S0>, + <&pd IMX_SC_R_MJPEG_ENC_S1>, + <&pd IMX_SC_R_MJPEG_ENC_S2>, + <&pd IMX_SC_R_MJPEG_ENC_S3>; + }; +... -- 2.7.4