From patchwork Fri Aug 12 17:45:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akshay Bhat X-Patchwork-Id: 9277537 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 7517D60752 for ; Fri, 12 Aug 2016 17:47:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6879B28AC2 for ; Fri, 12 Aug 2016 17:47:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5D08A28AC4; Fri, 12 Aug 2016 17:47:36 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 849F728AC2 for ; Fri, 12 Aug 2016 17:47:35 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bYGWt-0007yn-F0; Fri, 12 Aug 2016 17:45:59 +0000 Received: from mail-qk0-x22a.google.com ([2607:f8b0:400d:c09::22a]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bYGWn-0007w8-OD for linux-arm-kernel@lists.infradead.org; Fri, 12 Aug 2016 17:45:55 +0000 Received: by mail-qk0-x22a.google.com with SMTP id l2so31779630qkf.3 for ; Fri, 12 Aug 2016 10:45:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timesys-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=3mTyf6qfw2Y3//efZ2/OtpQppPm7ej17MqgSUU/Xgp4=; b=raE2sua0ihjK1vkVQK1TE+m0THP88zAdnE4KVC5xkLKRZhi6GPCneZY8t4synj0zDz PXtmymizjHus22ItllSZhO/iU5zti+Hdhhf7swTpthvIVlOTcy7Te7NMG+HxkKlkXm4P 5D/asoKW3L8OELfgCHxhPi6BTfF5g4SyfQbpog8N2Lez77IqNgg+DmYMRLq579vC0sbM +NrcI2bscbwyBdeXwav8eBjbkXy+CvHnU25fBpPm1S+6EyB+9GR+oKu1btGDVB2ct6FV GqzxqKSZxE4KjC7OUJri1ArBXKEdMHm9B1cRtH4S/9/Yip8o2dYviYBnUPEh26D8ggke ywdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=3mTyf6qfw2Y3//efZ2/OtpQppPm7ej17MqgSUU/Xgp4=; b=XR4SMqXiAOvfo7L9QsVHBqn8dHR2Yfh4RDUXiTKyM5k8ZNAybsCtkA6X47ipKwy6Zl 62LhVrMeBYCTx8uoGXu0l86GLpBUxB+/c/m8/tV3b3ecNoYDudh+JXHzXaulx+VRx/Z9 riteRRIgCAAGg3UbufKMBS8zy89VYLJ94iLsQbxOn77znDP+beBs8DhQfKsuga+Fy6D7 a+aiQnuKubr4OcIG6D+qEdwKCQ4G/gSzqOIzqsF80I3TkuOZ1XpP8ln7/5NNYlMmOVeB 9FtO3Je4BO0NF1/lptyqP2FLAeGJkI1epdWVMZmLFMuItu+6SellvJuWnL+QTga3yO6r U9AA== X-Gm-Message-State: AEkoousXD6SlDmBZmSoQmCHK3754AOOBIM50GeiVUNJlc0WBqPk59bXzwGO14rjMeifkf8BX X-Received: by 10.55.102.75 with SMTP id a72mr19332318qkc.19.1471023932592; Fri, 12 Aug 2016 10:45:32 -0700 (PDT) Received: from timesysab.timesys.com ([96.94.100.129]) by smtp.gmail.com with ESMTPSA id a63sm3706059qkb.26.2016.08.12.10.45.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Aug 2016 10:45:32 -0700 (PDT) From: Akshay Bhat To: shawnguo@kernel.org Subject: [PATCH] ARM: dts: imx6q-bx50v3: configure unused pca953x pins Date: Fri, 12 Aug 2016 13:45:11 -0400 Message-Id: <1471023911-2763-1-git-send-email-akshay.bhat@timesys.com> X-Mailer: git-send-email 2.8.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160812_104553_979074_D2B7E611 X-CRM114-Status: UNSURE ( 8.07 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Akshay Bhat , linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de, Ken Lin 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 From: Ken Lin At power on, pca953x GPIO pins are configured as input and may cause unexpected interrupts. Configure the unused pins as GPO low to avoid unexpected interrupts. Signed-off-by: Ken Lin Signed-off-by: Akshay Bhat --- arch/arm/boot/dts/imx6q-b450v3.dts | 16 +++++++++ arch/arm/boot/dts/imx6q-b650v3.dts | 9 +++++ arch/arm/boot/dts/imx6q-bx50v3.dtsi | 70 +++++++++++++++++++++++++++++++++++++ 3 files changed, 95 insertions(+) diff --git a/arch/arm/boot/dts/imx6q-b450v3.dts b/arch/arm/boot/dts/imx6q-b450v3.dts index f0a2be5..78bfc1a 100644 --- a/arch/arm/boot/dts/imx6q-b450v3.dts +++ b/arch/arm/boot/dts/imx6q-b450v3.dts @@ -89,3 +89,19 @@ }; }; }; + +&pca9539 { + P04 { + gpio-hog; + gpios = <4 0>; + output-low; + line-name = "PCA9539-P04"; + }; + + P05 { + gpio-hog; + gpios = <5 0>; + output-low; + line-name = "PCA9539-P05"; + }; +}; diff --git a/arch/arm/boot/dts/imx6q-b650v3.dts b/arch/arm/boot/dts/imx6q-b650v3.dts index 33cb71a..d853887 100644 --- a/arch/arm/boot/dts/imx6q-b650v3.dts +++ b/arch/arm/boot/dts/imx6q-b650v3.dts @@ -89,3 +89,12 @@ }; }; }; + +&pca9539 { + P05 { + gpio-hog; + gpios = <5 0>; + output-low; + line-name = "PCA9539-P05"; + }; +}; diff --git a/arch/arm/boot/dts/imx6q-bx50v3.dtsi b/arch/arm/boot/dts/imx6q-bx50v3.dtsi index cf3fd31..e4a415f 100644 --- a/arch/arm/boot/dts/imx6q-bx50v3.dtsi +++ b/arch/arm/boot/dts/imx6q-bx50v3.dtsi @@ -183,6 +183,76 @@ interrupt-controller; interrupt-parent = <&gpio2>; interrupts = <3 IRQ_TYPE_LEVEL_LOW>; + + P06 { + gpio-hog; + gpios = <6 0>; + output-low; + line-name = "PCA9539-P06"; + }; + + P07 { + gpio-hog; + gpios = <7 0>; + output-low; + line-name = "PCA9539-P07"; + }; + + P10 { + gpio-hog; + gpios = <8 0>; + output-low; + line-name = "PCA9539-P10"; + }; + + P11 { + gpio-hog; + gpios = <9 0>; + output-low; + line-name = "PCA9539-P11"; + }; + + P12 { + gpio-hog; + gpios = <10 0>; + output-low; + line-name = "PCA9539-P12"; + }; + + P13 { + gpio-hog; + gpios = <11 0>; + output-low; + line-name = "PCA9539-P13"; + }; + + P14 { + gpio-hog; + gpios = <12 0>; + output-low; + line-name = "PCA9539-P14"; + }; + + P15 { + gpio-hog; + gpios = <13 0>; + output-low; + line-name = "PCA9539-P15"; + }; + + P16 { + gpio-hog; + gpios = <14 0>; + output-low; + line-name = "PCA9539-P16"; + }; + + P17 { + gpio-hog; + gpios = <15 0>; + output-low; + line-name = "PCA9539-P17"; + }; }; };