From patchwork Sun Dec 3 19:29:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 10089371 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 252B6600C5 for ; Sun, 3 Dec 2017 19:30:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 19F5928D6E for ; Sun, 3 Dec 2017 19:30:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0EB3328D8E; Sun, 3 Dec 2017 19:30:43 +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 A834428D6E for ; Sun, 3 Dec 2017 19:30:42 +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=3vs+ZjZWQm1BtbAx7dvEcEzLszv+4xR2/QVGJAbh7nM=; b=t65 TSrvIiC5rR68e9cPzQKpC0pp4aVpgnRvYVIKtjtTAhTY8gtHheAfABLWdgZIIvOY93VnR7Omu83hM fCYTKlkinogeafXqWgqBqpwhiq5KSx15DZHvaj0bmxIziPs8j6a5YBOCb8Fp4woXeXO1051jJ3Psw CZY8wRat5vYNeCMr44mI+UT+X89+oGmFICQwwdrVklZjQUm7zg0P/5etiSZRZxbzFTNb5c4k4L9JR bqCnALY5PZOzH5wiE5GvytGySqMrSIAN/E5GMh5ngc+QTgry6x0j03w8xTnDpeM8oT2+uEblsks1V Idivd9ogRi8EYl72BZE9iSj68307FXw==; 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 1eLZyM-0002KQ-Ab; Sun, 03 Dec 2017 19:30:42 +0000 Received: from vern.gendns.com ([206.190.152.46]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eLZyH-0000qM-Ee for linux-arm-kernel@lists.infradead.org; Sun, 03 Dec 2017 19:30:40 +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=9pPwKhE/yDXVx4Td1wFEFmzVmXqqPZhCtpgeFxrqVdw=; b=E7PHReNi2SSjvCJxKPNB95AXee 4RBGAADZ+QZYrhOCqszRY5Qr+JbokBOxHkbrTkycUi6JoB6L2eXwc09Adqlkgd5oH9AsP8yTy6jBR De4l0nLdd0Y5dQRgsvUPdc7vN/2Y6CjlnTsj3hzDO5ejEPED78mSSl4k9Sfw76/zXoYrcHE5xJV9R 6/UHZTbuxDNbKlXQbi31OmhX6TrJ9FZKSXCbVZf5eSqUxBkve2lOkJLWMQD0WNcar8w1VuBSFF+P6 baKQeCSrXKq/qAOEt0foLWvt4UhORSsZ7VthUGE4omD/tFHBw7x5LgbtVWtNJdGV2vwvZD09odHEg dX+ECevQ==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:57006 helo=freyr.lechnology.com) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-SHA256:128) (Exim 4.89) (envelope-from ) id 1eLZvk-001ffK-DF; Sun, 03 Dec 2017 14:28:00 -0500 From: David Lechner To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: da850: Fix LEGO EV3 battery voltage gpio Date: Sun, 3 Dec 2017 13:29:33 -0600 Message-Id: <1512329373-17321-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_113039_098752_40792C77 X-CRM114-Status: UNSURE ( 5.23 ) 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. Signed-off-by: David Lechner --- arch/arm/boot/dts/da850-lego-ev3.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/da850-lego-ev3.dts b/arch/arm/boot/dts/da850-lego-ev3.dts index aeb5fb0..9d15982 100644 --- a/arch/arm/boot/dts/da850-lego-ev3.dts +++ b/arch/arm/boot/dts/da850-lego-ev3.dts @@ -463,7 +463,7 @@ batt_volt_en { gpio-hog; gpios = <6 GPIO_ACTIVE_HIGH>; - output-low; + output-high; }; /* Don't impede Bluetooth clock signal */