From patchwork Thu May 25 00:29:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Longerbeam X-Patchwork-Id: 9747265 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 55C2A60224 for ; Thu, 25 May 2017 00:30:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 32AB626C9B for ; Thu, 25 May 2017 00:30:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 13B3826E69; Thu, 25 May 2017 00:30:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 697A326C9B for ; Thu, 25 May 2017 00:30:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=lhK1b12UXxByCt75g3NHkYtTBj+yMezEDGxQVwpxv9o=; b=AwGxMMcCnsDwBxBVoUQh2KPkUR +XHd5Mewhp9qlqE/ChVhnBE2A1koZKVwVxSsfXhCiy8HBavrsmWE8kxXdUv9cpdJ/+ULlfVoGQCsT C2SywBmr9vNEeQ38qt3sUUuyL5HZzLK+6n5KJijZFecrksM779+tV1FELp5BiCmZMPVMAmyFr5HeE KFMwMRe08+Au/j9dZBVpnxgPHNFmNUx6WJld+SxrcVkeTCAUG2kedWo+S5vLsw1Vt0tAJQv62YITR rpgYwJ3dJ6rtHu9wPR0YDdZA7MP0Bk6r8St6I5jTw3LYYAa9pfjcd4Fali7nW99HsBTP2AGHh2tgM X4P3FLxQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dDgfZ-0007ua-Lv; Thu, 25 May 2017 00:30:25 +0000 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dDgfW-0007XX-9z for linux-arm-kernel@lists.infradead.org; Thu, 25 May 2017 00:30:24 +0000 Received: by mail-pf0-x241.google.com with SMTP id w69so35348483pfk.1 for ; Wed, 24 May 2017 17:30:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=o5u8Fq/Khx53KZM9a5BgOpu2odtKeu6xwFxFgb/Xlp0=; b=mJ4yIOdh53dRbrH2nLYYFNNODihEQHNXhCu1H77zWTWYQwDu1UPJkit56OmoyDtFDU L6gzJJJ1jLXMzyfCU7rfz4CyHzIqiineMD1zTQCJfNsiBrJ1h77yBy21PQUn4ORkBttk 7Xo0nKAOkJHcUExHhaOgDgHpoT69MDFE1AAzO/N57II2ykz/WsdtIiiFo8p21H7t3Xeb jm6b/hYivUDDvugDyAZdNR46BTxQsVdWJ8/fb2H76jtSnrg2kjN6UFFNA+xBAfdLxA8n DyKl5VWoG/Ms5PT5aGizIXUEBdVNkvaYZqq1CXjtA+NDZpKVlFHWOvTwC/OujQwmvpIz Jy5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=o5u8Fq/Khx53KZM9a5BgOpu2odtKeu6xwFxFgb/Xlp0=; b=D533JYbkgBID+X2oRaDs4qPmsi+kt3yVsfaNlns2ntUg1KNRMURG7jgHrCXwZBEk1L cI1IAKiM0i2gZB086aSS9r3JQ+nUjjlqjzSTErBqBetgJVXP66qT+q7s69A2QyXcGVPG Deq0JlbxdhumuXAqyu/jgYyxjuipHlKYkxEiQPi0XBMU5mD6JsoPaGM48Vgqw3sXKUqD TImDrFkKV3Pkt8OgtFblbOLNIHHxt6YTNyNfei255wl1w/vIlNDgRsAEg0MtD9E8aGgd Vu7Gcs/oEkp5JHgf4TY+S3Qd0p91KlTeZuA7UE/UPhv/w5ZmbMt6beeQq6ztGr3lsu9Y V7RA== X-Gm-Message-State: AODbwcAIasZF/I2kgHRRGuft1psH14pWrA3aAvW+xkFfOtow68/OuzzH uKhYm5u5i2Puww== X-Received: by 10.99.112.3 with SMTP id l3mr1523127pgc.13.1495672205657; Wed, 24 May 2017 17:30:05 -0700 (PDT) Received: from mappy.sklembedded.com (c-98-210-181-167.hsd1.ca.comcast.net. [98.210.181.167]) by smtp.googlemail.com with ESMTPSA id q27sm10605716pfk.4.2017.05.24.17.30.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 May 2017 17:30:04 -0700 (PDT) From: Steve Longerbeam X-Google-Original-From: Steve Longerbeam To: robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, kernel@pengutronix.de, fabio.estevam@nxp.com, linux@armlinux.org.uk, mchehab@kernel.org, hverkuil@xs4all.nl, nick@shmanahar.org, markus.heiser@darmarIT.de, p.zabel@pengutronix.de, laurent.pinchart+renesas@ideasonboard.com, bparrot@ti.com, geert@linux-m68k.org, arnd@arndb.de, sudipm.mukherjee@gmail.com, minghsiu.tsai@mediatek.com, tiffany.lin@mediatek.com, jean-christophe.trotin@st.com, horms+renesas@verge.net.au, niklas.soderlund+renesas@ragnatech.se, robert.jarzmik@free.fr, songjun.wu@microchip.com, andrew-ct.chen@mediatek.com, gregkh@linuxfoundation.org, shuah@kernel.org, sakari.ailus@linux.intel.com, pavel@ucw.cz Subject: [PATCH v7 02/34] [media] dt-bindings: Add bindings for i.MX media driver Date: Wed, 24 May 2017 17:29:17 -0700 Message-Id: <1495672189-29164-3-git-send-email-steve_longerbeam@mentor.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1495672189-29164-1-git-send-email-steve_longerbeam@mentor.com> References: <1495672189-29164-1-git-send-email-steve_longerbeam@mentor.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170524_173022_399675_61DD1168 X-CRM114-Status: GOOD ( 14.99 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, devicetree@vger.kernel.org, Steve Longerbeam , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add bindings documentation for the i.MX media driver. Signed-off-by: Steve Longerbeam --- Documentation/devicetree/bindings/media/imx.txt | 74 +++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/imx.txt diff --git a/Documentation/devicetree/bindings/media/imx.txt b/Documentation/devicetree/bindings/media/imx.txt new file mode 100644 index 0000000..3059c06 --- /dev/null +++ b/Documentation/devicetree/bindings/media/imx.txt @@ -0,0 +1,74 @@ +Freescale i.MX Media Video Device +================================= + +Video Media Controller node +--------------------------- + +This is the media controller node for video capture support. It is a +virtual device that lists the camera serial interface nodes that the +media device will control. + +Required properties: +- compatible : "fsl,imx-capture-subsystem"; +- ports : Should contain a list of phandles pointing to camera + sensor interface ports of IPU devices + +example: + +capture-subsystem { + compatible = "fsl,imx-capture-subsystem"; + ports = <&ipu1_csi0>, <&ipu1_csi1>; +}; + +fim child node +-------------- + +This is an optional child node of the ipu_csi port nodes. If present and +available, it enables the Frame Interval Monitor. Its properties can be +used to modify the method in which the FIM measures frame intervals. +Refer to Documentation/media/v4l-drivers/imx.rst for more info on the +Frame Interval Monitor. + +Optional properties: +- fsl,input-capture-channel: an input capture channel and channel flags, + specified as . The channel number + must be 0 or 1. The flags can be + IRQ_TYPE_EDGE_RISING, IRQ_TYPE_EDGE_FALLING, or + IRQ_TYPE_EDGE_BOTH, and specify which input + capture signal edge will trigger the input + capture event. If an input capture channel is + specified, the FIM will use this method to + measure frame intervals instead of via the EOF + interrupt. The input capture method is much + preferred over EOF as it is not subject to + interrupt latency errors. However it requires + routing the VSYNC or FIELD output signals of + the camera sensor to one of the i.MX input + capture pads (SD1_DAT0, SD1_DAT1), which also + gives up support for SD1. + + +mipi_csi2 node +-------------- + +This is the device node for the MIPI CSI-2 Receiver, required for MIPI +CSI-2 sensors. + +Required properties: +- compatible : "fsl,imx6-mipi-csi2", "snps,dw-mipi-csi2"; +- reg : physical base address and length of the register set; +- clocks : the MIPI CSI-2 receiver requires three clocks: hsi_tx + (the D-PHY clock), video_27m (D-PHY PLL reference + clock), and eim_podf; +- clock-names : must contain "dphy", "ref", "pix"; +- port@* : five port nodes must exist, containing endpoints + connecting to the source and sink devices according to + of_graph bindings. The first port is an input port, + connecting with a MIPI CSI-2 source, and ports 1 + through 4 are output ports connecting with parallel + bus sink endpoint nodes and correspond to the four + MIPI CSI-2 virtual channel outputs. + +Optional properties: +- interrupts : must contain two level-triggered interrupts, + in order: 100 and 101;