From patchwork Wed Feb 22 14:01:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9586885 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 9E28A6020B for ; Wed, 22 Feb 2017 14:05:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B07662780C for ; Wed, 22 Feb 2017 14:05:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A52EE2869B; Wed, 22 Feb 2017 14:05:16 +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=ham 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 69AE82780C for ; Wed, 22 Feb 2017 14:05:15 +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=8YtIXILH8LxlUVRYfvCGIQIPENbP0Pcz6PpM1RNMCsg=; b=Qn8bc8/tE+yF9sC80PMndBqHfv EIFpkaJs+xvkoGducPzUElFh+fBLPhpsCq5luaFHjXusz715hq+wYNaVoBps2QPbJP7grI4QRdiXg PwfTiKuBb6EaksVrmnnMBpndhfWmkylCj2BDDMt/92geLbjoFuG6tRLH2H0S5HHiSQaGFj0n1lYbs +/JqbZdO/kclX9xFEqraSU2ZQ7s5rBY4W0iaFEDl478QrftbChZEyW8A+IbkhlykfCMKieHAdUODW /LV0g//rKbN982kBo3ztYjxGjIR/TNFIF5ZMKtE9DQulUXHs5rFOKahbYYGklzBeDPMdU+XmFsnVU poEtpKAw==; 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 1cgXXX-0004xM-VS; Wed, 22 Feb 2017 14:05:08 +0000 Received: from mail-wr0-x234.google.com ([2a00:1450:400c:c0c::234]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cgXUt-0003gf-J4 for linux-arm-kernel@lists.infradead.org; Wed, 22 Feb 2017 14:02:29 +0000 Received: by mail-wr0-x234.google.com with SMTP id z61so2590282wrc.1 for ; Wed, 22 Feb 2017 06:02:03 -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=24hCmPJpo5+d14TqlxBd3wHkBTblgUQhVtHBuD4W4zs=; b=mE3XxAfj4ic9nN0N40Lo7FNWDMdrvMi05E75erEYBbb/NOwNNObrlI2/h1x8X/sezR Q3xMuGEefA7BUDrUKbky6ecyjmi5e2ahPZw7ZCR2OeuRTlqh5K/Yb5J9XvO9mlbYF4YB F4dWY2sMSFOpcFwM6eMyyw9lsmZkXEgSzXJdPQAQDaoCXcsBgJ+en+XgGcE4OSC8hBak PJ0R19vRVbg5334k5XZH/o219KLg+ZyIKhuDmrgijbsX7Va8EONINdRG/sLHOlfeQfXP RWkdsnqSwOG7aoodTsXthH8Rfp4TzOrgpcoDunMzIAL2i10DYBmBNGISaG2TsreykRfX L8Tw== 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=24hCmPJpo5+d14TqlxBd3wHkBTblgUQhVtHBuD4W4zs=; b=mb2L5irKXVKdH1MeEvAiHFZcrRtg9nSbiIndL821KtQjU47zvHNW0zQXzLz/fuv7N1 6fozyY9MubWyxz4vL9LQs91He/8ex+XPzbtuzVuWE0sbkELP25/IDE/8R867s5438wOy GHMhwtWDncQBlaiuYIP0WqidUGHeItMD/5Tf9ezER8C0F5iP11ecwtUsb7zRsy72J+5Y XjMhcV1m2gF0R9v9HxsKms0u3tro/xmYAm10o9uCdW4QyVwz/yjmHUHhMhUvvZYaeqGw ph+glvEbSNSsoBedTduAsu8FMO8FjOFDXLPdZTaUdxI9Lfqb+lTp3n4H6LIoS34Jt6H3 +gTg== X-Gm-Message-State: AMke39nkMVzqIQdCCSn09OBkZYLOk7jOs2LGkVmCqP8rkcHdFerCMgalSFoMlH/iow9ACGNO X-Received: by 10.223.154.72 with SMTP id z66mr24365874wrb.76.1487772122098; Wed, 22 Feb 2017 06:02:02 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id r195sm2671156wme.25.2017.02.22.06.02.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Feb 2017 06:02:01 -0800 (PST) From: Bartosz Golaszewski To: Sekhar Nori , David Lechner , Kevin Hilman , Michael Turquette , Patrick Titiano , Laurent Pinchart , Rob Herring , Mark Rutland , Russell King Subject: [PATCH v2 4/4] ARM: dts: da850-evm: add the output port to the vpif node Date: Wed, 22 Feb 2017 15:01:49 +0100 Message-Id: <1487772109-10014-5-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1487772109-10014-1-git-send-email-bgolaszewski@baylibre.com> References: <1487772109-10014-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170222_060223_975548_558CAE44 X-CRM114-Status: GOOD ( 13.72 ) 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 Extend the vpif node with an output port with a single channel. NOTE: this is still mostly just hardware description - the actual driver is registered using pdata-quirks. We need the node however for correct pin control function selection. Signed-off-by: Bartosz Golaszewski --- arch/arm/boot/dts/da850-evm.dts | 19 +++++++++++++++---- arch/arm/boot/dts/da850.dtsi | 8 +++++++- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts index 3968a18..0298734 100644 --- a/arch/arm/boot/dts/da850-evm.dts +++ b/arch/arm/boot/dts/da850-evm.dts @@ -300,20 +300,31 @@ &vpif { pinctrl-names = "default"; - pinctrl-0 = <&vpif_capture_pins>; + pinctrl-0 = <&vpif_capture_pins>, <&vpif_display_pins>; status = "okay"; + enable-gpios = <&tca6416 7 GPIO_ACTIVE_HIGH + &tca6416 6 GPIO_ACTIVE_HIGH + &tca6416 5 GPIO_ACTIVE_LOW>; + /* VPIF capture port */ - port { - vpif_ch0: endpoint@0 { + port@0 { + vpif_input_ch0: endpoint@0 { reg = <0>; bus-width = <8>; }; - vpif_ch1: endpoint@1 { + vpif_input_ch1: endpoint@1 { reg = <1>; bus-width = <8>; data-shift = <8>; }; }; + + /* VPIF display port */ + port@1 { + vpif_output_ch0: endpoint { + bus-width = <8>; + }; + }; }; diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index 5150331..c708155 100644 --- a/arch/arm/boot/dts/da850.dtsi +++ b/arch/arm/boot/dts/da850.dtsi @@ -358,7 +358,13 @@ status = "disabled"; /* VPIF capture port */ - port { + port@0 { + #address-cells = <1>; + #size-cells = <0>; + }; + + /* VPIF display port */ + port@1 { #address-cells = <1>; #size-cells = <0>; };