From patchwork Tue Nov 22 01:44: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: 9440425 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 CF39F60235 for ; Tue, 22 Nov 2016 01:44:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D27B828384 for ; Tue, 22 Nov 2016 01:44:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C75F128AEC; Tue, 22 Nov 2016 01:44:33 +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 2320D28384 for ; Tue, 22 Nov 2016 01:44:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754125AbcKVBo1 (ORCPT ); Mon, 21 Nov 2016 20:44:27 -0500 Received: from mail-pg0-f42.google.com ([74.125.83.42]:33883 "EHLO mail-pg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754365AbcKVBoU (ORCPT ); Mon, 21 Nov 2016 20:44:20 -0500 Received: by mail-pg0-f42.google.com with SMTP id x23so1585895pgx.1 for ; Mon, 21 Nov 2016 17:44:15 -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=uEjs8/t3+7nEqB3w/SKBo/0ijinCCptJW9BO/jJm+UE=; b=PBgll5sGSjyBKH7dk0gP6S/U+U6SBWYO+mBIFRJ2KHKbH/c84KsElXbx5FORm2yBBi hYLkrIQRofmZmaJy08Wj+Ll+YXJQoT0BYQU1NlQYqNM2Aw4mfTNsiiAMCB8s1E758LIi 1ypZbf0FbkL/AarCr7o7+/PAI3JekMO4RzLj+1xFrkmIFLOmvQnpyaQUuwHvZG66TdAL wlcazD7KtHdkemlIdWmsFBKkEgIIth+0g180W5tNPTkuZhLympFQfo5TNZX3kwCfdvkS l/dSH0K64DjJ1/ro46LTRBUFXJUoZPsWQZqCAoJBoNk106YIB4fpAjRkOsaPgd+dwA/6 Dbew== 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=uEjs8/t3+7nEqB3w/SKBo/0ijinCCptJW9BO/jJm+UE=; b=kdI0jq7tGhcpBYoeyA4ss12CryUrC8OQwLTfB8XPU9rtJo8ebWYWBKZqYx1iN4SUC0 WyjluFl1TLPAgatav0dXeFlOPkSs9BVReKep2sS0IerdPsVn/ORKCVaUDQkFYpITmMdT agOmT7Wq5nQbeQKDAPCcSoHNJOSAiFua84KT9l+STzsSmWSZroTrlZxozGHI/m9Xk8qJ qDRO572KbWhDfalVU/C15t7sKe9OKaWI093ZeUUiNYKQLXhW4LCO/939THz87mVyDcVh wO236JhiHe6tLed8z0ceUyA1vwNpViEp73PGdgStnbwysIYfWKd80j3Wn64g1Ln562vl Hq5w== X-Gm-Message-State: AKaTC01lNENhcCu7FenuVHBk3P1V90kqCjUCzU16DSXmZjakGaYnaPCRJbc0vR6olt11Ydka X-Received: by 10.99.56.82 with SMTP id h18mr37736944pgn.55.1479779054465; Mon, 21 Nov 2016 17:44:14 -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 s197sm22269847pgc.38.2016.11.21.17.44.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Nov 2016 17:44: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 v2 4/4] [media] dt-bindings: add TI VPIF documentation Date: Mon, 21 Nov 2016 17:44:08 -0800 Message-Id: <20161122014408.22388-5-khilman@baylibre.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161122014408.22388-1-khilman@baylibre.com> References: <20161122014408.22388-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 --- .../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..bdd93267301f --- /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,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;