From patchwork Thu Feb 16 18:15:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9578031 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 B0FAE600C5 for ; Thu, 16 Feb 2017 18:27:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A3B99284D1 for ; Thu, 16 Feb 2017 18:27:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 97E6628636; Thu, 16 Feb 2017 18:27:37 +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 4400F284D1 for ; Thu, 16 Feb 2017 18:27:37 +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=x/hvFxkLukxrEZGLutHCmO6qN8OI14bfHmCaiILcr6Y=; b=Y4t70XBigh8sDH59/DDuF2QWai mVwCxpvqjBzygXI6RWD2kj0S0/6QVBVVqzXs9hbU4miOduTwRItWJqKEhbPC2spKckvKrNDjIPg9J 8Q0DbGTqSrcE2p6iBKTLK5dH08xy41/c90/3mQESlpH6DA9/X7YfuIadGjkaXRRPGCx0/kuVht2Q/ J3aeo7lx+dP3j+zzmeZQMUV8c29dHOTBN+PKhqMKqEfuXY/zsCzUweSovaglfTOH+XeFJZYVTkftq REEdPqXnL5GCAWHJtHkJYZRG+r2DnziAiasiykU6W2Y26AL2O6i+C2ZSFLzIAjsLx7DFKt1LxO4Fd axWA/7hw==; 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 1ceQmF-0006J1-Vh; Thu, 16 Feb 2017 18:27:35 +0000 Received: from mail-wr0-x235.google.com ([2a00:1450:400c:c0c::235]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ceQb4-00078v-QM for linux-arm-kernel@lists.infradead.org; Thu, 16 Feb 2017 18:16:05 +0000 Received: by mail-wr0-x235.google.com with SMTP id c4so17364225wrd.2 for ; Thu, 16 Feb 2017 10:15:42 -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=2ANYENz9B1YZihsnvIAYfJgZJUdA243bk7hzY48lsfM=; b=jVcs4UTHXaczzQCxP2m9gNhd3tLRV/j0whokSEQt1mwnoSUBUQdvzHUTzWMOTkuTcW D87JbncMb1A4gH76QeikdHgXB3L5oDpbAA3ANGWAPzz00JoB/r7n2loWNBojSAf2O+v6 yrK3KyuxMUmjaSvxQNRdEGWfBfCtV5JaWSgCWfyGPPSGYmiv2Zg+qS1PTugZvd/7S1Fw oWEqb2K/SUTyNEBQnekzULRpWWuSdnZM49RjORFL/iow0cNAGUZIs6RD22lTG2amuST8 FuzIUuIHrv1cxyq8DDPfdvNepgLKBDZiolvB+enZM1qiWKlBWr7dtb/e/ggqeai8z8CV DS3A== 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=2ANYENz9B1YZihsnvIAYfJgZJUdA243bk7hzY48lsfM=; b=ULQRR/FA9FMIWFXqxeKGwTK9m5d+QEIHdUvSRjie0GIVu9UPn+nw0L6Yy2WKlbmhIl 9bK35USSg8jwWoiNSOBeJ7qiNfSJmdlyg9jG2J3FowMGi1GTZGHfUVXRuV8OEEGxiI6V QJOt1Y33LZ2ys98UzHIU1lK5NVFeY7hnQa/vxcHpgqu8BVsY6guNKY1gXrP+7Z/e7uKe Y5xUf7jc2CqZ57qdgHTBBK9qKtNQjROXtyfCerEgjZX4i2n9M/IK8vtCIwnkgxi6H0rI 1nDjoMpU4DrpwFfhl+K9aaWYy+tWUuO+qM/LeXK+f256xITXBMaGlGCqx00VRdUUpRv1 VBJQ== X-Gm-Message-State: AMke39kZL6SWJGpbmGWl7JEpkybIlAgIff1fHFHSYOsmrhvFeZY5irTKjBebWRjqOEaZUeXF X-Received: by 10.223.173.183 with SMTP id w52mr3964896wrc.164.1487268941082; Thu, 16 Feb 2017 10:15:41 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id q4sm9912983wrc.35.2017.02.16.10.15.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Feb 2017 10:15:40 -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 4/4] ARM: dts: da850-evm: add the UI expander node Date: Thu, 16 Feb 2017 19:15:32 +0100 Message-Id: <1487268932-6469-5-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1487268932-6469-1-git-send-email-bgolaszewski@baylibre.com> References: <1487268932-6469-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170216_101603_188372_7E145C68 X-CRM114-Status: GOOD ( 10.68 ) 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 If we're using the UI board and want vpif capture, we need to select the video capture functionality by driving the sel_c pin low on the tca6416 expander and sel_a & sel_b pins high. Do it statically by hogging relevant GPIOs in the device tree. Signed-off-by: Bartosz Golaszewski --- arch/arm/boot/dts/da850-evm.dts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts index b549861..a90c764 100644 --- a/arch/arm/boot/dts/da850-evm.dts +++ b/arch/arm/boot/dts/da850-evm.dts @@ -9,6 +9,7 @@ */ /dts-v1/; #include "da850.dtsi" +#include / { compatible = "ti,da850-evm", "ti,da850"; @@ -78,7 +79,33 @@ DRVDD-supply = <&vbat>; DVDD-supply = <&vbat>; }; + ui_expander: tca6416@20 { + compatible = "ti,tca6416"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + sel_a { + gpio-hog; + gpios = <7 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "sel_a"; + }; + + sel_b { + gpio-hog; + gpios = <6 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "sel_b"; + }; + + sel_c { + gpio-hog; + gpios = <5 GPIO_ACTIVE_HIGH>; + output-low; + line-name = "sel_c"; + }; + }; }; wdt: wdt@21000 { status = "okay";