From patchwork Sun Dec 3 22:04:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 10089449 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 040096035E for ; Sun, 3 Dec 2017 22:05:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E7BC1283AD for ; Sun, 3 Dec 2017 22:05:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DBFD328DFA; Sun, 3 Dec 2017 22:05:14 +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 73EA0283AD for ; Sun, 3 Dec 2017 22:05:14 +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=6P2wvu2SGL9is9eu6lQN5P67KEj7yp40e5cbvSzlx4A=; b=Sfp bgi04zhXcaE2hF+6oEuVscFvS9CjP8VVsshRqw6ROWcApXhB1nOLRJVR1pVvbExV/QFBSJq00MLaT AlW12vDK2s7mkUJWAULjyuU4w2LnkAWZhxbTSeYRxaXON/Vt+XYRerWSNEhZGJL7WINals724Iula EBw4/2Yqa7Nec3Af4rRPoff/vWWs2wlteluR0VmNchoSiEkD5oXxgfAj86bDWGHhqolK/MTOBbZ98 6QFLuGxFUVouw+whi1WuCAF9uQOLM0BvNEnD9hjKdx/dxkcZzEi/+QUQZDXYWYyRJMsPz/evcXhFq 8Pbrj0ftxWVy4HK2fdA+klV7nGA+QWw==; 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 1eLcNt-0001sc-Vk; Sun, 03 Dec 2017 22:05:13 +0000 Received: from vern.gendns.com ([206.190.152.46]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eLcNq-0000em-JI for linux-arm-kernel@lists.infradead.org; Sun, 03 Dec 2017 22:05:12 +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=4lUnsiwy4CVjDUn1Cwy1f1XkuOiL15ZjMFvjMfaQF0s=; b=zvJ2Ijz8De9Wg+GmDVMrjwimZw oqH/0MkqaM9U5w2T/CfBjpkQf43zOiYqyjKmwgH5X6rNyaOIUaKMYcEbU5F2JVe5rynaBroNq0SAG FBRZfSoed9LkxFjW/Dy3pxbC5h41SFLOwhWNZTMw7rKsz/ZaXaHOnHEgRqLAwc6m1TxrmdDsOP72M qsO8AvHBN/m2vTqtz82wiDsEZ89uU+n3sGq1UOXFqSMbe67jSaTRbYTjy/qxn3o9z3BU9cNzwXdhC ii604Xr0sC8ru9WHw7bT6zGnxGl6mtRojW7gA7jami4FFNM+gI7pH60IqQB4SP+M5u+cm23aYTX8A f//ZzCig==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:60590 helo=freyr.lechnology.com) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-SHA256:128) (Exim 4.89) (envelope-from ) id 1eLcM0-001xRU-9A; Sun, 03 Dec 2017 17:03:16 -0500 From: David Lechner To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v3] ARM: da850: Fix LEGO EV3 battery voltage gpio Date: Sun, 3 Dec 2017 16:04:53 -0600 Message-Id: <1512338693-16781-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_140510_765741_B5C72150 X-CRM114-Status: UNSURE ( 6.63 ) 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 --- v3 changes: * Rebased patch so that it applies cleanly to mainline v2 changes: * Fixed pinctrl typo 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 413dbd5..81942ae 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"; @@ -392,7 +392,7 @@ batt_volt_en { gpio-hog; gpios = <6 GPIO_ACTIVE_HIGH>; - output-low; + output-high; }; };