Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp752279ybl; Fri, 13 Dec 2019 04:08:35 -0800 (PST) X-Google-Smtp-Source: APXvYqxq1qnnw4pEuTg7CPTj9tIIejxEWFTnzPneZ03nmbgeSuQEab/Jah15yyeLC0euNrgIVpj0 X-Received: by 2002:a05:6830:14c7:: with SMTP id t7mr14484334otq.72.1576238915741; Fri, 13 Dec 2019 04:08:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576238915; cv=none; d=google.com; s=arc-20160816; b=NwPZBpik6RtIoLT8zKFfBU7HCcFdsBansu9gkTMXm/Wio6FEzdWXv6I5awbli0FIFU QtN8yHN791GHe2pf9HEPCyIcvYsK3o5/UWBfpB4vX7R7X41W5UeF+DhBmg2cCeZOHOAT ewpvmGBI6+5mSL+Q7VOBLA34LYA0tmNf6ARii/ANYWC28QGeMy58hayg9RS+GiV7gD9K BAhUBgIg66QKorRyOX4UlyjHjhuI720jMNnD+pdxbXFp4IozPVQEIvgFnrDLpmN1dPft 43wEio/WUNlJe2d1gtA3lgh19pryUCUjkdLpT7pYTnJoIQw4EAvT908yoqi5bngHRhnC RhpA== 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=fEyyGq3os1UUAKoPHGUnbrFa1dSY5fkRm2yagoypx7mW7lkB5b8jJQTgVGGcCzVmEF rU/+3WeyFIyCSBTQv4zGeVLNi8uf0n/JszaZiOb2zPDYpi5QUm2dqpWaon3lvA1U7jtS 0Rz/LBD3zr4mI6UJY6mpmGJlqWXyHJikN9jsgiWwp0kIqXa/L8Hbrz4yH3dR+xcmoSbZ i3WBIIljxtXcauG9tIvUlus+XE8GSz8lb69gjXLlvVYUb4fYK8wBsw1XcrJjWmnyjr1n 9nTDR2TRLLedm1ZG3rgdxmvrkPV2+3lzIvPK4oV6p0YLmqCZHvf1CJP2vhXbAimeE72G YCvQ== 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 21si5385533otv.227.2019.12.13.04.08.23; Fri, 13 Dec 2019 04:08:35 -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 S1726996AbfLMMHI (ORCPT + 99 others); Fri, 13 Dec 2019 07:07:08 -0500 Received: from inva021.nxp.com ([92.121.34.21]:39920 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726939AbfLMMHG (ORCPT ); Fri, 13 Dec 2019 07:07:06 -0500 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 03C4B200EAC; Fri, 13 Dec 2019 13:07:04 +0100 (CET) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id E5BB120035B; Fri, 13 Dec 2019 13:07:03 +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 1CC3E203B1; Fri, 13 Dec 2019 13:07:03 +0100 (CET) From: Mirela Rabulea To: mchehab@kernel.org, hverkuil-cisco@xs4all.nl, shawnguo@kernel.org, robh+dt@kernel.org Cc: 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 v3 3/6] media: dt-bindings: Add bindings for i.MX8QXP/QM JPEG driver Date: Fri, 13 Dec 2019 14:06:18 +0200 Message-Id: <1576238781-5911-4-git-send-email-mirela.rabulea@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1576238781-5911-1-git-send-email-mirela.rabulea@nxp.com> References: <1576238781-5911-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