From patchwork Tue Nov 29 23:57:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 9453249 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 ECDFB6071C for ; Tue, 29 Nov 2016 23:57:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E029E2835B for ; Tue, 29 Nov 2016 23:57:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D4AB82846F; Tue, 29 Nov 2016 23:57:29 +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 B39612846C for ; Tue, 29 Nov 2016 23:57:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754987AbcK2X51 (ORCPT ); Tue, 29 Nov 2016 18:57:27 -0500 Received: from mail-pg0-f49.google.com ([74.125.83.49]:34806 "EHLO mail-pg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754949AbcK2X5T (ORCPT ); Tue, 29 Nov 2016 18:57:19 -0500 Received: by mail-pg0-f49.google.com with SMTP id x23so74807134pgx.1 for ; Tue, 29 Nov 2016 15:57:19 -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=lm1QvUyecff6uHPmVKK2Y4MsJPjEUHF8HCOMXelvKK8=; b=AjlSSPmFiL3vbQ6ZXIuK/p1rr9iEkgy1X4Y3drm8yvyk/j+xlGhmHV1qfNZCM5daVm 8KFguz+z229XLsQYSVVjucFauGarfKuxcwhb2uUrRe7QwolAZn0+7LpTN0vQ0nJ89FZD sMEWELST83tRx/cEfOEgyTIosPKbO7qEpxaU9Z+QjY0/W/komhYa8YnEVWqJI+eqGYHd gBg1CSQv8BxVCnyYUKNSh/3lMEqPASPbi4bMWf+zt7kBzXXT6yie1+z5al0evZFX3wCV eRIm33AACPnmtjWodq7i8hVDSakdb6eQkRRZBkHIHq/GmKTQ36RAyvrluFC6/PB17aoR A7hQ== 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=lm1QvUyecff6uHPmVKK2Y4MsJPjEUHF8HCOMXelvKK8=; b=GtkvqmQN1upvqJ8c5SoO03r/BGFTgZCclW4cflIH7LXqARbgV9JQiKpecZ8g69bZMm Ml9gE/LcOafNZCjlAwPmOwW+mhBDwXNN6570hpTHw6IZuMJWX9hvjMHbcZ1xZmWdI56C OMtKY2ojop1Juoab4bwCoZHt85H8qZo6JnbE/GPkkjl/sbQTkIW/fZXcqD2FZWCSzl1i GvVhM/ISBQvYSBKe9XCg1s3j7nlYRbEtW2943h3TLCSj70zlwPsWsiOnnAxqsAF+qmKs LNE9NASjRlGThzNx1qXbIKzdQUrUK/F7XF0m0Z75GzBhtVrBwwjKpnnKAw3SESk2UonA UPGg== X-Gm-Message-State: AKaTC00xt2LK7JRMvi3AvqFuBtpXOGdygq+4oaEybiq1Zhsp7h4zD32toKGIWM6YSLyeqzy1 X-Received: by 10.99.101.65 with SMTP id z62mr55178345pgb.74.1480463838484; Tue, 29 Nov 2016 15:57:18 -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 c128sm97592083pfc.39.2016.11.29.15.57.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Nov 2016 15:57:18 -0800 (PST) From: Kevin Hilman To: linux-media@vger.kernel.org Cc: Hans Verkuil , Laurent Pinchart , Sakari Ailus , linux-arm-kernel@lists.infradead.org, Sekhar Nori , Rob Herring , devicetree@vger.kernel.org Subject: [PATCH v4 4/4] [media] dt-bindings: add TI VPIF documentation Date: Tue, 29 Nov 2016 15:57:12 -0800 Message-Id: <20161129235712.29846-5-khilman@baylibre.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161129235712.29846-1-khilman@baylibre.com> References: <20161129235712.29846-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 Signed-off-by: Kevin Hilman Acked-by: Rob Herring --- .../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>; + }; + }; + }; +};