From patchwork Wed Dec 7 18:30:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 9465039 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 0C46B6074E for ; Wed, 7 Dec 2016 18:30:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 047642855A for ; Wed, 7 Dec 2016 18:30:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E5AA128558; Wed, 7 Dec 2016 18:30:40 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 25CE028558 for ; Wed, 7 Dec 2016 18:30:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932575AbcLGSae (ORCPT ); Wed, 7 Dec 2016 13:30:34 -0500 Received: from mail-pf0-f175.google.com ([209.85.192.175]:35539 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932546AbcLGSac (ORCPT ); Wed, 7 Dec 2016 13:30:32 -0500 Received: by mail-pf0-f175.google.com with SMTP id i88so78255035pfk.2 for ; Wed, 07 Dec 2016 10:30:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=m9R5KXg3V9plBSQMotaCtmu3FTvzmN/Q5OpG7bm5uCk=; b=RGVUXjUqbZnj907nR+Wh63hT3stkiz4Gl0IgWRUiOpSLb680IhuDge4Sty1KNJGEjO sx7jmDHe85ldg8OBjygguc0HHEbV8TlWXf7NHs9EO+vS267JC1Gnr4Bdrmn5Q7N71Idk 8WuGAy/pno4G6h1PplQkkFhtE3ig1hfqA+HlZwzJBrtXSGFMlL6KI1do8mXBvPSXOImJ JweHA3URsoWFUNLCT39IPv1qwfID7vm4Cje3eh49jPvEPxTDXWOv5cueq8QSeLIazTTd u9ptn6/5LIcmSoNdAN6d5CqPkSjcGeC7tsoHjMu/ohxjo0Q8K/QTc6HxG8uCHu7I1b/V D5aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=m9R5KXg3V9plBSQMotaCtmu3FTvzmN/Q5OpG7bm5uCk=; b=SbjWoUZGIzCcsKKYqQPCqX+5emrqdXLH8NP+KgqFWfHQWa2/G9D5xzM/VVD5d3LAjZ eg5091TCRylSg5xLIjude/q7NEAmhIGKkfpYHylNUnoDzXgztHBQYQg6bxTg0Udf5d+c BJWlNQoqzs+w6NVm9OSQxLPlkVj3d9gBdXHmTsL0lYGuKVbC8gGxCIzI+C61VC45Fphf lePxDxqyC6pG2MTM2wJISNbc+ZW04ZpXdeWBjzWnJCjuMtAJwIoHOsyVEjE0bVdZvxNw mT5KLEzpC51w1PjqEWHHLHtcrzzdRd4CqpZWjGpv74SsMzaodOp13dypYMd+BT1Qp/gi 4O6w== X-Gm-Message-State: AKaTC0102JoEQd+hHMmgmpb58Jo5rGFV8NdRz6VOcevznrkXwrxJ++G2/Jx/cBHzueJp/v6C X-Received: by 10.98.91.129 with SMTP id p123mr70790401pfb.0.1481135431694; Wed, 07 Dec 2016 10:30:31 -0800 (PST) Received: from localhost (c-98-203-232-209.hsd1.wa.comcast.net. [98.203.232.209]) by smtp.gmail.com with ESMTPSA id 129sm44456943pgj.26.2016.12.07.10.30.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Dec 2016 10:30:31 -0800 (PST) From: Kevin Hilman To: Hans Verkuil , Laurent Pinchart , Sakari Ailus , linux-media@vger.kernel.org Cc: Sekhar Nori , Axel Haslam , =?UTF-8?q?Bartosz=20Go=C5=82aszewski?= , Alexandre Bailon , David Lechner , Patrick Titiano , linux-arm-kernel@lists.infradead.org Subject: [PATCH v6 4/5] [media] dt-bindings: add TI VPIF documentation Date: Wed, 7 Dec 2016 10:30:24 -0800 Message-Id: <20161207183025.20684-5-khilman@baylibre.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161207183025.20684-1-khilman@baylibre.com> References: <20161207183025.20684-1-khilman@baylibre.com> MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Acked-by: Rob Herring Reviewed-by: Laurent Pinchart Signed-off-by: Kevin Hilman --- .../devicetree/bindings/media/ti,da850-vpif.txt | 83 ++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/ti,da850-vpif.txt diff --git a/Documentation/devicetree/bindings/media/ti,da850-vpif.txt b/Documentation/devicetree/bindings/media/ti,da850-vpif.txt new file mode 100644 index 000000000000..6d25d7f23d26 --- /dev/null +++ b/Documentation/devicetree/bindings/media/ti,da850-vpif.txt @@ -0,0 +1,83 @@ +Texas Instruments VPIF +---------------------- + +The TI Video Port InterFace (VPIF) is the primary component for video +capture and display on the DA850/AM18x family of TI DaVinci/Sitara +SoCs. + +TI Document reference: SPRUH82C, Chapter 35 +http://www.ti.com/lit/pdf/spruh82 + +Required properties: +- compatible: must be "ti,da850-vpif" +- reg: physical base address and length of the registers set for the device; +- interrupts: should contain IRQ line for the VPIF + +Video Capture: + +VPIF has a 16-bit parallel bus input, supporting 2 8-bit channels or a +single 16-bit channel. It should contain at least one port child node +with child 'endpoint' node. Please refer to the bindings defined in +Documentation/devicetree/bindings/media/video-interfaces.txt. + +Example using 2 8-bit input channels, one of which is connected to an +I2C-connected TVP5147 decoder: + + vpif: vpif@217000 { + compatible = "ti,da850-vpif"; + reg = <0x217000 0x1000>; + interrupts = <92>; + + port { + vpif_ch0: endpoint@0 { + reg = <0>; + bus-width = <8>; + remote-endpoint = <&composite>; + }; + + vpif_ch1: endpoint@1 { + reg = <1>; + bus-width = <8>; + data-shift = <8>; + }; + }; + }; + +[ ... ] + +&i2c0 { + + tvp5147@5d { + compatible = "ti,tvp5147"; + reg = <0x5d>; + status = "okay"; + + port { + composite: endpoint { + hsync-active = <1>; + vsync-active = <1>; + pclk-sample = <0>; + + /* VPIF channel 0 (lower 8-bits) */ + remote-endpoint = <&vpif_ch0>; + bus-width = <8>; + }; + }; + }; +}; + + +Alternatively, an example when the bus is configured as a single +16-bit input (e.g. for raw-capture mode): + + vpif: vpif@217000 { + compatible = "ti,da850-vpif"; + reg = <0x217000 0x1000>; + interrupts = <92>; + + port { + vpif_ch0: endpoint { + bus-width = <16>; + }; + }; + };