From patchwork Sat Nov 19 00:32:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 9437705 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 D890B60755 for ; Sat, 19 Nov 2016 00:32:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C8BCA29A5E for ; Sat, 19 Nov 2016 00:32:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BD7B529A6E; Sat, 19 Nov 2016 00:32:24 +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 3B16C29A6D for ; Sat, 19 Nov 2016 00:32:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753050AbcKSAcR (ORCPT ); Fri, 18 Nov 2016 19:32:17 -0500 Received: from mail-pg0-f44.google.com ([74.125.83.44]:36010 "EHLO mail-pg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753425AbcKSAcO (ORCPT ); Fri, 18 Nov 2016 19:32:14 -0500 Received: by mail-pg0-f44.google.com with SMTP id f188so107694672pgc.3 for ; Fri, 18 Nov 2016 16:32:14 -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=ZbXcjFzTHcl2aBA1JUS+I5QU3DFaXFL+7As0d1knXkk=; b=QIfoHRoyMSXc39ZIMNcIS2Q45g7QE5ymbvUFA+hZffHavJ6f9NnKrXZA42+j0preIb 11xjNsRRHqdo0YFv/8svIEpyQlQQJoTDRxMP1MpjpVzDttf8aGZjAmtwt9AnzJYzPY4v uGRYDbDKuPhMZEgt5nr7x9icGqrhPIjEu1L8FhpUo6kjoAgz8zQKgt6yKn/3cxKs5eOH UPuLS3ykMOgy8gcVbyA6txNAq4fkn4ZivHLJudtcWuSZ5libBkbXOWcNMT0v5QZ+uzcq zGufUlxobKuIFJLJ4jYl3X07HbPiwcGtYUIaTnDv2YaifM3+RlW+JWlothuwZDQqkZjN S0iA== 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=ZbXcjFzTHcl2aBA1JUS+I5QU3DFaXFL+7As0d1knXkk=; b=R2bstXmTYeTPd2d5SCB7zva/kMpYGjyYGXlI8jCHX+4VAn9VCn9SqJzg+N5ac+ilFi fuKI50o/9KWd3To5xbBZfjOa5NyuPxYZahvl3GhS1bByDIdb8u6xJ5M2MIklvgP6ymq+ z4Oj849qubQy+Msk0HKgwzejTLuTEoVxNw/e0raFC+RmBOlrw4dCx1RmvH0pFGa3i+Ha yddZk6wf5gtcR41sPLVhlCyPkbbqdD0JQyte69Yj7FwamGHBBJH64fslCH0L1khUOemg x1EZRi4nIRee7txaQVZHBJsXuYq+zHz2fdtsB3BvBX/8OcPWuV57P0aUy+njnAs2Zi+l W9PQ== X-Gm-Message-State: AKaTC02XM5lQf5KRTZt/8i+fkabSJrmX0Yj3hKLJoKmgI04Jbb15FPJiISJ0McKhLXXQyF00 X-Received: by 10.99.147.78 with SMTP id w14mr5083275pgm.144.1479515533674; Fri, 18 Nov 2016 16:32:13 -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 j190sm2373577pgd.23.2016.11.18.16.32.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Nov 2016 16:32:13 -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 , Rob Herring Subject: [PATCH 4/4] [media] dt-bindings: add TI VPIF documentation Date: Fri, 18 Nov 2016 16:32:08 -0800 Message-Id: <20161119003208.10550-4-khilman@baylibre.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161119003208.10550-1-khilman@baylibre.com> References: <20161119003208.10550-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 Cc: Rob Herring Signed-off-by: Kevin Hilman --- .../devicetree/bindings/media/ti,vpif-capture.txt | 65 ++++++++++++++++++++++ .../devicetree/bindings/media/ti,vpif.txt | 8 +++ 2 files changed, 73 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/ti,vpif-capture.txt create mode 100644 Documentation/devicetree/bindings/media/ti,vpif.txt diff --git a/Documentation/devicetree/bindings/media/ti,vpif-capture.txt b/Documentation/devicetree/bindings/media/ti,vpif-capture.txt new file mode 100644 index 000000000000..eaaaa46d3a5e --- /dev/null +++ b/Documentation/devicetree/bindings/media/ti,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 some TI DaVinci family SoCs. + +TI Document number reference: SPRUH82C + +Required properties: +- compatible: must be "ti,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,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,vpif.txt b/Documentation/devicetree/bindings/media/ti,vpif.txt new file mode 100644 index 000000000000..0d5c16531c0e --- /dev/null +++ b/Documentation/devicetree/bindings/media/ti,vpif.txt @@ -0,0 +1,8 @@ +Texas Instruments VPIF +---------------------- + +The Video Port InterFace (VPIF) is the core component for video output +and capture on TI Davinci family SoCs. + +- compatible: must be "ti,vpif" +- reg: physical base address and length of the registers set for the device;