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: 9441395 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 6688F6075F for ; Tue, 22 Nov 2016 15:53:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5BD9A285A1 for ; Tue, 22 Nov 2016 15:53:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 50C9C285BF; Tue, 22 Nov 2016 15:53:09 +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 43454285C3 for ; Tue, 22 Nov 2016 15:53:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932998AbcKVPw4 (ORCPT ); Tue, 22 Nov 2016 10:52:56 -0500 Received: from mail-pg0-f53.google.com ([74.125.83.53]:33508 "EHLO mail-pg0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755692AbcKVPwu (ORCPT ); Tue, 22 Nov 2016 10:52:50 -0500 Received: by mail-pg0-f53.google.com with SMTP id 3so8905992pgd.0 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=fO6BOP8UUCsRVow2ZJ3GCgOOhG4dxBAURopBK5d9y62Bqa4eWc3cKrotmwwQ9/n1Ns fuw18IVqy/E5JHijp5cVEO9ivBrRLScRCHsrYWo4SfqWzhOLL3wCF00e0HkJh2hOrcwS 8vyXxAk62vk+nfSsNt2HkH0qBxtnQ6zW7t72jbqmNbQj5zk6FQO1+dTrpxCFtSo+HFmy BeDWxTgBlpcJ+v9Mu9xo6tt0GmcekEuGrhQm4pBihJzB1JDgNcZyHT+OVaS78yzX/CFO iYB9mTNhZqk68XG+ErkxzUREgyGA0lOAerc+D5BuGpqf3cyd42bZgPB3k2HdC3cCEW5p ryXg== X-Gm-Message-State: AKaTC0074pzcFfVdVkPBpTN5J+JDSFOcZLUgAncqQ47qsBQWK7FoWgNSjKERWicrGeIBDNk7 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: 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 --- .../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;