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: 728859 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3vPPDx5mVwz9s7x for ; Fri, 17 Feb 2017 05:04:33 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="rc7hxJi0"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933115AbdBPSEa (ORCPT ); Thu, 16 Feb 2017 13:04:30 -0500 Received: from mail-wr0-f174.google.com ([209.85.128.174]:36628 "EHLO mail-wr0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933304AbdBPSE1 (ORCPT ); Thu, 16 Feb 2017 13:04:27 -0500 Received: by mail-wr0-f174.google.com with SMTP id 89so12624942wrr.3 for ; Thu, 16 Feb 2017 10:04:21 -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=LpZC5i2z8NsiPB8bsTRdClrdTV98TQw6DLBUQtJCKVMjtGixC2bhjq4vxyARpgNd3T 8CObnBDEDC7iALXC5Hu0M2oPEf4Ya+laZTzwU3FDLe/5PlfzraAuEwPJ7QI7Yv6HSw0A cxf7BDrcLzEDBi3RuffZ/on0kdvCwbXg/Fuhz9LHixL9sFwAvk1/7Yf/p1LTwQiBn4zk CgCErO01dZBJSTk3/qRHfrcuwow66zhe3JrCkDBe0H812yqgFo9mPW8AlQOG7wefPCSz sOrvKsboUvkputrRJer4K6aF4ElEIspNO4WQvMnonsfz2xN1UylAHVwKdzRDAXwAZ6k8 9dNQ== X-Gm-Message-State: AMke39k8/D/0OSsnSqDqONV4GfcddgVy7gIBhApEdgiByQ+yPJ2BgAF3U18K5xGBmRZvidQn 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 Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Bartosz Golaszewski 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> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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>; }; };