From patchwork Thu Feb 16 18:03:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9577927 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 19DCA60244 for ; Thu, 16 Feb 2017 18:05:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C2C42863A for ; Thu, 16 Feb 2017 18:05:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F2DC228652; Thu, 16 Feb 2017 18:05:03 +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 853792863A for ; Thu, 16 Feb 2017 18:05:03 +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=jClGQbAKWFUJoYvHJ9n7t04EjyK7dDAbsHtUgrFtVgY=; b=U7U+YaZJu/rsB+qx+KLH7RLGfX UR4c7MBVqxCD/6w9VAiRxMkFzBs7/e5yH5w0QMbhTrvMkAi2SnC5iMGyIAOAGBfdTz0PKNI3pQjxa xmvxwwoutyPztLsnG6U0TBF+cnvHD0Aq4KiVLQ0t6mDnHD0w3I0C7f0NXQ5MbUJDzwVU5Lsq52xFt xTY/vqJljCzxlVMtN/dIw4uYVPWtrruADpK70H0WEb7UngKKd0jceSCP0AexcS5tIu3JBJ2cHJnC8 DUoqSqy57pexAh1oAmm12m0KYlwszCD5FcxXN7RDLNKZS3vpZdYfsrkhrmsXm5inS+6DrNaGqJpky hIkO13Hw==; 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 1ceQQI-0008MY-Kf; Thu, 16 Feb 2017 18:04:54 +0000 Received: from mail-wr0-x22f.google.com ([2a00:1450:400c:c0c::22f]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ceQPz-00086v-QJ for linux-arm-kernel@lists.infradead.org; Thu, 16 Feb 2017 18:04:38 +0000 Received: by mail-wr0-x22f.google.com with SMTP id i10so17178481wrb.0 for ; Thu, 16 Feb 2017 10:04:17 -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=plKmpoo8AkYKQFvQHnQdEAeSBdUL0T2TcZeKxVDWXag=; b=rc7hxJi0sahYw1/780dbdJVx7SLTrsmeIWa8PCcoc3GxVGOEkMUN4wLKWGZE1p9FNd apAGtF2xxMP94+cFrgdmWbjIgGw84ch36+MtNarFbHq7tGCSWa/yqdIdQ8M6ss/x5/Sq iXeh4labh6Dp6rFvFa+7xx5J6vWyzuMtYWRD5loxzniTwfjajapYZKlQMn1CkwntPOWv TVAvWiNxLqMJznIGcYrMbOPoHp/+S3enII9rnz6jtZ+pRAccD3gGsl9a/4eO7oNNNNDn 7lq67ExJajmVGz2pbmLbxxDR2mWvHb7J21EhblucpqQ5VG2K2u2yVlV6GmKlzHNcbeIv xlVA== 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=plKmpoo8AkYKQFvQHnQdEAeSBdUL0T2TcZeKxVDWXag=; b=PeYoyztNThm4KtbFsESOmaTuyl59MVltvujkPHw4wCEosmVHOlvoeGScG2wyDcV8zc rnatLI/jyqGvqTC4i5/FcvPsQ26inV5RU2rhPqB+nLCgpwF7+PVBSNznZvcCJlvLW7oA atpEOqyVw9tUx4/VaaxLsCe0Kpon/HwYAV7O44zpVrk1wenpwn+GtHHRm/Ex/owqEs1t Gt2voxkxX5Yk3CnszMxhZYOt9QO+Px1adJ83xXDRlS72iB62pGxmT0XrQV07mToY2Q49 nQIsga0MdrRUubZpd7SwtnMtT3Q2Tk62QmmH87a+ok0AFpFslGN6MJXLyJmN/i4Ws1aa Gx6w== X-Gm-Message-State: AMke39kk7211Q3cov4mK6D5WdZJLG9NmL67V3ToAXhQsEw/tVmqsn81xoo4U4ew4gopsxiGX X-Received: by 10.223.172.210 with SMTP id o76mr3318938wrc.21.1487268256081; Thu, 16 Feb 2017 10:04:16 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id 186sm1162167wmw.24.2017.02.16.10.04.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Feb 2017 10:04:15 -0800 (PST) From: Bartosz Golaszewski To: Sekhar Nori , David Lechner , Kevin Hilman , Michael Turquette , Patrick Titiano , Laurent Pinchart , Rob Herring , Mark Rutland Subject: [PATCH 2/2] media: dt-bindings: vpif: extend the example with an output port Date: Thu, 16 Feb 2017 19:03:57 +0100 Message-Id: <1487268237-4240-3-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1487268237-4240-1-git-send-email-bgolaszewski@baylibre.com> References: <1487268237-4240-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170216_100436_044654_1361A434 X-CRM114-Status: GOOD ( 12.45 ) 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 --- .../devicetree/bindings/media/ti,da850-vpif.txt | 36 +++++++++++++++++----- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/media/ti,da850-vpif.txt b/Documentation/devicetree/bindings/media/ti,da850-vpif.txt index 9c7510b..d6f93a1 100644 --- a/Documentation/devicetree/bindings/media/ti,da850-vpif.txt +++ b/Documentation/devicetree/bindings/media/ti,da850-vpif.txt @@ -16,7 +16,7 @@ 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 +single 16-bit channel. It should contain one or two port child nodes with child 'endpoint' node. Please refer to the bindings defined in Documentation/devicetree/bindings/media/video-interfaces.txt. @@ -28,19 +28,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 +60,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>; }; };