From patchwork Wed Feb 22 13:43:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9586857 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 21934600CA for ; Wed, 22 Feb 2017 13:45:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0741222376 for ; Wed, 22 Feb 2017 13:45:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F036E286B5; Wed, 22 Feb 2017 13:45:44 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8F50322376 for ; Wed, 22 Feb 2017 13:45:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=mIXpJGW+ZvBgJrlfJMmnk2L0zZ4ER1/5O+mhvCEWRwA=; b=sJT8WIX1Ke8vGtYjW/1bDF13A6 GZcl/+R0w0wUVEDuqagIn4zrQvB0hlHV4c3mKQdT424JbQyMXZf+d7fjKZvmqNzv6tULDKbIBGLt8 kvucJk67uLTof/Zr4vGFpDoNCWJdCvk5gVbULAM32ulow+XBBYfAc8V9emgo+QlhGD2Nsmz7LWZcT /WluBuPByly/C+2UGmVxEUymPsajiJgfWSMlnSSGJzPXjU/zacfJzuR+81WV4HhDwsmVYeRaMKJVm 0hc+7Q97K9voNvMyq+/VY02+1Df6oKxVYd3MEqZx7sUtPP5mZqBpBQKffJo5CLJFNMcCNW7Qkhw+2 Ju4gMGNA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cgXEk-0005Qm-UW; Wed, 22 Feb 2017 13:45:42 +0000 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cgXDR-00035g-LI for linux-arm-kernel@lists.infradead.org; Wed, 22 Feb 2017 13:44:23 +0000 Received: by mail-wm0-x230.google.com with SMTP id v77so2267398wmv.0 for ; Wed, 22 Feb 2017 05:44:01 -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; bh=l2fNiui1sa33pwhZo+gWTZQbNW0DovLyLVGNbWV9z70=; b=w9o7MzI2HSUj+G5NeHa+vU+qa5jbhZtu4UXDTDYXSy52jfCboE2B8UBvVIXsVX6U7P IKLwhyoZ9cDTzqEYuSg/DNy3eM20uLTVsvls1wjhk//tFUcwuTT2jw02Ot5M9KpbtuWW LSLuyDpwrX5UZrH8RnM3Bp3pp+oS2xRmUw5Ww13h3tQT8NyTG5un0Ca5sF+Uo9RsW5KX UASSbSJDvzVVR+HToNkuvpbPqfFQdOLaW4K6FBrQna/BeChVIPWVWg9XtRIm15JabPIS +U2bsLaeHRyBBH7HJ1X/GPRX1TEExnP7LjO8KaRh+3+NbWauXXsfSaS1wnGDcgj+Jy0U WFnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=l2fNiui1sa33pwhZo+gWTZQbNW0DovLyLVGNbWV9z70=; b=diZBufzBtSOi7XrEGwhgRRANMftJMLbLRoJUbiBuliEhjQf1uKoz+zLE/4Ryj1qtMz CYUu3zy6dN9xZRN6Xr2GLz05y6bHLS+sZS7OIe7M1IsnPfDw7mDImirUPe7DBr7EzOBJ mo+IsgZV+Nh238lDw9nxuv2wIbobqxi5EX8NL4iqPaMXsr6kt5y7N5O0Teid/ORek/4E l5a4MH+Kd0YMMtMjR8I5o/z5Dse3mNp4NyC1gaGMBbZehOPu/0OkPaevrvyX3sFH5cZ4 HEgT66/XRlEodNp+VMyUxHNa6MzI9lc4MQUyDZovH0rseo1vGF7ZBKBDOL7Kxcj1bdg0 AUfQ== X-Gm-Message-State: AMke39mf3ZB72jc6OAhXJETJwt5abGmvf84eBizvgD935tz6Y4r3sYjXTgQeXdmhofC0pgpb X-Received: by 10.28.133.9 with SMTP id h9mr2409575wmd.132.1487771039788; Wed, 22 Feb 2017 05:43:59 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id 32sm1829834wrr.20.2017.02.22.05.43.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Feb 2017 05:43:59 -0800 (PST) From: Bartosz Golaszewski To: Sekhar Nori , David Lechner , Kevin Hilman , Michael Turquette , Patrick Titiano , Laurent Pinchart , Rob Herring , Mark Rutland Subject: [PATCH v2 2/3] media: dt-bindings: vpif: extend the example with an output port Date: Wed, 22 Feb 2017 14:43:46 +0100 Message-Id: <1487771027-7763-3-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1487771027-7763-1-git-send-email-bgolaszewski@baylibre.com> References: <1487771027-7763-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170222_054421_955907_54DBE87B X-CRM114-Status: GOOD ( 13.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This makes the example more or less correspond with the da850-evm hardware setup. Signed-off-by: Bartosz Golaszewski Acked-by: Rob Herring --- .../devicetree/bindings/media/ti,da850-vpif.txt | 40 +++++++++++++++++----- 1 file changed, 32 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/media/ti,da850-vpif.txt b/Documentation/devicetree/bindings/media/ti,da850-vpif.txt index 9c7510b..df7182a 100644 --- a/Documentation/devicetree/bindings/media/ti,da850-vpif.txt +++ b/Documentation/devicetree/bindings/media/ti,da850-vpif.txt @@ -16,8 +16,10 @@ Required properties: 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 +single 16-bit channel. It should contain one or two port child nodes +with child 'endpoint' node. If there are two ports then port@0 must +describe the input and port@1 output channels. 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 @@ -28,19 +30,26 @@ I2C-connected TVP5147 decoder: reg = <0x217000 0x1000>; interrupts = <92>; - port { - vpif_ch0: endpoint@0 { + port@0 { + vpif_input_ch0: endpoint@0 { reg = <0>; bus-width = <8>; - remote-endpoint = <&composite>; + remote-endpoint = <&composite_in>; }; - vpif_ch1: endpoint@1 { + vpif_input_ch1: endpoint@1 { reg = <1>; bus-width = <8>; data-shift = <8>; }; }; + + port@1 { + vpif_output_ch0: endpoint { + bus-width = <8>; + remote-endpoint = <&composite_out>; + }; + }; }; [ ... ] @@ -53,13 +62,28 @@ I2C-connected TVP5147 decoder: status = "okay"; port { - composite: endpoint { + composite_in: endpoint { hsync-active = <1>; vsync-active = <1>; pclk-sample = <0>; /* VPIF channel 0 (lower 8-bits) */ - remote-endpoint = <&vpif_ch0>; + remote-endpoint = <&vpif_input_ch0>; + bus-width = <8>; + }; + }; + }; + + adv7343@2a { + compatible = "adi,adv7343"; + reg = <0x2a>; + + port { + composite_out: endpoint { + adi,dac-enable = <1 1 1>; + adi,sd-dac-enable = <1>; + + remote-endpoint = <&vpif_output_ch0>; bus-width = <8>; }; };