From patchwork Wed Dec 7 05:08:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 9463945 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 249AC6022E for ; Wed, 7 Dec 2016 05:14:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 16FFD284A1 for ; Wed, 7 Dec 2016 05:14:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 094CC284BD; Wed, 7 Dec 2016 05:14:52 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AD9BD284A1 for ; Wed, 7 Dec 2016 05:14:51 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEUUq-0002Fz-Hn; Wed, 07 Dec 2016 05:10:24 +0000 Received: from mail-pg0-x235.google.com ([2607:f8b0:400e:c05::235]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEUTe-0000id-JB for linux-arm-kernel@lists.infradead.org; Wed, 07 Dec 2016 05:09:14 +0000 Received: by mail-pg0-x235.google.com with SMTP id f188so157036740pgc.3 for ; Tue, 06 Dec 2016 21:08:50 -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=EFNIa+bLO9pebyEv4J1qQCPc6d49qhsfLVB270h2lUI=; b=Jcq8vZRuxV5ELBPrbAroYGCOFW1ll7skK3eb+eoqp1QsbgajRNDUkiLhfOSi8n/K5t Ozka+s3ZyMjQu4pGgQv9Jfxo/fnmwO5+Nbi3ppOny5ghgk3max9UQGE72v+JcD/afLNw kysMC+FKFdGvbvVw9kW9CHAn2AP7OOhObV+MZyI+yTColkELfuKgpdk8u91AfEGW+aJg 1oP8wzVSsedu7z8ndbr7gIbBdLM9WSypBE18owvsv6dsL0xHkovXw8puKg3ijeUYIfxG 1sF43sTYW5mfTl9eI/f8k7SjL/jWYgw/2nCOTQCbi+VSF8jZGBaBYNW0a4C+STATQTKn Grqw== 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=EFNIa+bLO9pebyEv4J1qQCPc6d49qhsfLVB270h2lUI=; b=lwQJvfvMJUpBwdc2ZB6B4SDiEyKIT7n0dm/BpOwIUsQAyu52J00xVAA/7HOqzXllUZ /xcVH+QT3ovjWWlOGGgSnYm0phPjKd1wIudEhkmBDLoEYJdO0eJzd0I8pXX1u88+4onD kjLc+Q30gURK+bnU3l0Bntgcatin+zurNAlAdmC7GthQp5D1GbZn5H/waucv/RWLc63O SMY93VN8wlrDoVn/jp/Nh/NfyQi3Cq2gDWjj7DxNZSwczFkH9HN0V9IZdcxvYRd/phj5 pVbMZT2ov7O8EozwM2VEZbWb1+U+PcBxVSCGxZHK//CjS+hyGqxgUMlZv71xJXI7wjI2 1gJA== X-Gm-Message-State: AKaTC02U9ekKcjSJEIYk63+0Z+8zD/HMmEnemf/zH7EgivUg9bRpL3lVV61FpZW/xYmrg3q+ X-Received: by 10.98.59.82 with SMTP id i79mr66314727pfa.147.1481087329667; Tue, 06 Dec 2016 21:08:49 -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 v82sm38582915pfi.6.2016.12.06.21.08.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Dec 2016 21:08:49 -0800 (PST) From: Kevin Hilman To: Hans Verkuil , Laurent Pinchart , Sakari Ailus , linux-media@vger.kernel.org Subject: [PATCH v5 4/5] [media] dt-bindings: add TI VPIF documentation Date: Tue, 6 Dec 2016 21:08:25 -0800 Message-Id: <20161207050826.23174-5-khilman@baylibre.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161207050826.23174-1-khilman@baylibre.com> References: <20161207050826.23174-1-khilman@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161206_210910_949704_6851CD86 X-CRM114-Status: GOOD ( 13.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Lechner , Axel Haslam , Sekhar Nori , =?UTF-8?q?Bartosz=20Go=C5=82aszewski?= , Alexandre Bailon , Patrick Titiano , linux-arm-kernel@lists.infradead.org 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 Acked-by: Rob Herring Signed-off-by: Kevin Hilman Reviewed-by: Laurent Pinchart --- .../devicetree/bindings/media/ti,da850-vpif.txt | 67 ++++++++++++++++++++++ 1 file changed, 67 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..fa06dfdb6898 --- /dev/null +++ b/Documentation/devicetree/bindings/media/ti,da850-vpif.txt @@ -0,0 +1,67 @@ +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>; + }; + }; + }; +};