From patchwork Tue Nov 22 15:52:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 697757 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3tNVNz383pz9sxS for ; Wed, 23 Nov 2016 02:53:07 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="eL56Gr3S"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932631AbcKVPw4 (ORCPT ); Tue, 22 Nov 2016 10:52:56 -0500 Received: from mail-pg0-f51.google.com ([74.125.83.51]:35687 "EHLO mail-pg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755718AbcKVPwv (ORCPT ); Tue, 22 Nov 2016 10:52:51 -0500 Received: by mail-pg0-f51.google.com with SMTP id p66so8868202pga.2 for ; Tue, 22 Nov 2016 07:52: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=sOvHqZ25OBuDP++p3PodfSLKR2rSTWogjBXZQM6zLWo=; b=eL56Gr3SNhRWwtP4VT+IRvTDDPz3agwU5S7qwhYASpmqsv0Uckq5wylKqtRjE30p36 sXpXScM5uKOBuGWzAjbQ3wHutycDKdbmJzbrGpWXywcMmt8BBiZ5+OJeir1lcrqA/gl9 4sP6nmSmhSQ1yi47AWCIj/yBdwLg7i0x2ruyKBNdPnFAZ5kl6U3faZdYpw4Av9nxP21H KwoCji0UB0Mg+tKLu4ETIhOgoItx5HPnUUzuuwN1RUg7C4+ji5za2iAugnXoXLe3dtSS YB+B/dRTZDxsVODzbp1PJxN+p1vmDF0Rfqrl64T69MnJO6ThAsrHWhOuRfFKDnUZyBEF sIjA== 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=sOvHqZ25OBuDP++p3PodfSLKR2rSTWogjBXZQM6zLWo=; b=kdR8BgEsKLyGQ1zIB7dqNRU7mLmY0etwlHpIBw0lrQ1q/d+NmEF27WkmSRX0HHo25Y no8Tk1Du5VFNtYJhss8SwtXpFnjIU5sVowmk5q+BPxqilstC1vapPdfltD7tYoClnmbz svsaJcimbv08tukDcTZ+cky5t1FQO7TNKEe/y7h/8MYz6BM6szprqR6N7su6ISZKnWjz eydruFSVbyPpei9mr6i3wvlhkUcbcnaLdq0Bc0bDhwX0udPQKVuh7Vnyh9i6fd7O/ZS2 jt+c97NTV4aVdnq67nt0HLcXZUA0BKVO7WWF8y/kfUqWyeXBlsUoqQua5rrNBENdyFhX DGyg== X-Gm-Message-State: AKaTC00AtWcT9N3XpeZsgBPVzQf7YG1KGCTi+rup0N+DA1/0tap+HezZOaZpsgvrH/cdLW58 X-Received: by 10.99.45.134 with SMTP id t128mr43863577pgt.86.1479829970145; Tue, 22 Nov 2016 07:52:50 -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 n24sm46247862pfb.0.2016.11.22.07.52.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Nov 2016 07:52:49 -0800 (PST) From: Kevin Hilman To: linux-media@vger.kernel.org, Hans Verkuil Cc: devicetree@vger.kernel.org, Sekhar Nori , Axel Haslam , =?UTF-8?q?Bartosz=20Go=C5=82aszewski?= , Alexandre Bailon , David Lechner Subject: [PATCH v3 4/4] [media] dt-bindings: add TI VPIF documentation Date: Tue, 22 Nov 2016 07:52:44 -0800 Message-Id: <20161122155244.802-5-khilman@baylibre.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161122155244.802-1-khilman@baylibre.com> References: <20161122155244.802-1-khilman@baylibre.com> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Signed-off-by: Kevin Hilman --- .../bindings/media/ti,da850-vpif-capture.txt | 65 ++++++++++++++++++++++ .../devicetree/bindings/media/ti,da850-vpif.txt | 8 +++ 2 files changed, 73 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/ti,da850-vpif-capture.txt create mode 100644 Documentation/devicetree/bindings/media/ti,da850-vpif.txt diff --git a/Documentation/devicetree/bindings/media/ti,da850-vpif-capture.txt b/Documentation/devicetree/bindings/media/ti,da850-vpif-capture.txt new file mode 100644 index 000000000000..c447ac482c1d --- /dev/null +++ b/Documentation/devicetree/bindings/media/ti,da850-vpif-capture.txt @@ -0,0 +1,65 @@ +Texas Instruments VPIF Capture +------------------------------ + +The TI Video Port InterFace (VPIF) capture component is the primary +component for video capture on the DA850 family of TI DaVinci SoCs. + +TI Document number reference: SPRUH82C + +Required properties: +- compatible: must be "ti,da850-vpif-capture" +- reg: physical base address and length of the registers set for the device; +- interrupts: should contain IRQ line for the VPIF + +VPIF capture 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_capture: video-capture@0x00217000 { + compatible = "ti,da850-vpif-capture"; + reg = <0x00217000 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>; + }; + }; + }; + +}; 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..d004e600aabe --- /dev/null +++ b/Documentation/devicetree/bindings/media/ti,da850-vpif.txt @@ -0,0 +1,8 @@ +Texas Instruments VPIF +---------------------- + +The Video Port InterFace (VPIF) is the core component for video output +and capture on DA850 TI Davinci SoCs. + +- compatible: must be "ti,da850-vpif" +- reg: physical base address and length of the registers set for the device;