From patchwork Sun Dec 3 21:58:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 10089445 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 E269A600C5 for ; Sun, 3 Dec 2017 21:58:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CF88628D99 for ; Sun, 3 Dec 2017 21:58:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C322428DD8; Sun, 3 Dec 2017 21:58:39 +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.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED 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 58AAB28D99 for ; Sun, 3 Dec 2017 21:58:38 +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: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:In-Reply-To: References:List-Owner; bh=nKIfrBTZluRj9TidXPCKCQ5LJZ2WCYbl4TB2V9IFZzI=; b=rnG 6bf89ZI0k1uGaOrCzVPhX514Qpbq2I/fACz967JOs4ymQVUIv8ZQ5tBy/W/I7C0o0khk1BQSA+L4/ bryXgE6RzmZ3w5AtAak3hEtcKYGtURacPVE6QLnzVBdUD+323wJyTh/Mx1pCslwolLucCQKXcOyeO mp/Ix1vqXvR0GS1bapmAs8gF1gwSezKfGy7oID6ILjDM38ysKGQpFJsW8M7Oi+fcvcWu0/emdSJB6 wZPvMfnP5JaYXt7G8OkKEfwk5rE6gZJJjWtmQBhQL+xUY4R9d1vaAHrAvOZqpi/xJ4ydbMdGlmstu MKFXL8GDIxguH2XzLIjcYZkFfTV607Q==; 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 1eLcHU-0006ua-Rr; Sun, 03 Dec 2017 21:58:36 +0000 Received: from vern.gendns.com ([206.190.152.46]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eLcHR-0006sp-Qd for linux-arm-kernel@lists.infradead.org; Sun, 03 Dec 2017 21:58:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Message-Id:Date:Subject:Cc:To:From:Sender: Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=HU0vrDI4H7hHn+S+2y8o0gkkyUhbHKKuCFmBQ93XH2c=; b=Mvd3gbPjU4Y/THJa1p/+HX7mdN I5oxjeXZk8KrODU/i2avFKMM5EB46jArJa1qAYEPhiKzTM+SYUhRJRp7mmuQLuAswGmy5fnsufohs 4bUhSan+TzU7gjef5P0eq7iKxEBzdCp69pHRti3rDByOHTacuasrLnS4+uQEt3ubHt36GiFqLIViA 9vJHKNv+CZLA4JgF9pqO52tmVMQN246r9sB3MYTRy1KGwKChiQ7iZTQ3o2XehggS527kTSFd7WFDP CokKpPO6gzytOZVTe6PXXjOctjKJZ4QpkJXObxQ1BccBAu/qJTVSxIHJlFDXNti5dxKBSoefmK2+r Np6Gsf1Q==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:60456 helo=freyr.lechnology.com) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-SHA256:128) (Exim 4.89) (envelope-from ) id 1eLcFa-001wdM-J8; Sun, 03 Dec 2017 16:56:38 -0500 From: David Lechner To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2] ARM: da850: Fix LEGO EV3 battery voltage gpio Date: Sun, 3 Dec 2017 15:58:15 -0600 Message-Id: <1512338295-10633-1-git-send-email-david@lechnology.com> X-Mailer: git-send-email 2.7.4 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - lists.infradead.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171203_135833_920637_23D39563 X-CRM114-Status: UNSURE ( 6.60 ) X-CRM114-Notice: Please train this message. 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: Sekhar Nori , David Lechner , linux-kernel@vger.kernel.org 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 fixes the battery voltage monitoring gpio-hog settings. When the gpio is low, it turns off the battery voltage to the ADC chip. However, this needs to be on all of the time so that we can monitor battery voltage. Also, there was a typo that prevented pinmuxing from working correctly. Signed-off-by: David Lechner --- arch/arm/boot/dts/da850-lego-ev3.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/da850-lego-ev3.dts b/arch/arm/boot/dts/da850-lego-ev3.dts index 65ceaa3..a4ee12f 100644 --- a/arch/arm/boot/dts/da850-lego-ev3.dts +++ b/arch/arm/boot/dts/da850-lego-ev3.dts @@ -178,7 +178,7 @@ */ battery { pinctrl-names = "default"; - pintctrl-0 = <&battery_pins>; + pinctrl-0 = <&battery_pins>; compatible = "lego,ev3-battery"; io-channels = <&adc 4>, <&adc 3>; io-channel-names = "voltage", "current"; @@ -465,7 +465,7 @@ batt_volt_en { gpio-hog; gpios = <6 GPIO_ACTIVE_HIGH>; - output-low; + output-high; }; /* Don't impede Bluetooth clock signal */