linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: da850: Fix LEGO EV3 battery voltage gpio
@ 2017-12-03 19:29 David Lechner
  2017-12-03 19:56 ` David Lechner
  0 siblings, 1 reply; 2+ messages in thread
From: David Lechner @ 2017-12-03 19:29 UTC (permalink / raw)
  To: linux-arm-kernel; +Cc: David Lechner, Sekhar Nori, linux-kernel

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 <david@lechnology.com>
---
 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 */
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ARM: da850: Fix LEGO EV3 battery voltage gpio
  2017-12-03 19:29 [PATCH] ARM: da850: Fix LEGO EV3 battery voltage gpio David Lechner
@ 2017-12-03 19:56 ` David Lechner
  0 siblings, 0 replies; 2+ messages in thread
From: David Lechner @ 2017-12-03 19:56 UTC (permalink / raw)
  To: linux-arm-kernel; +Cc: Sekhar Nori, linux-kernel


On 12/03/2017 01:29 PM, David Lechner wrote:
> 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 <david@lechnology.com>
> ---

Please disregard this patch. Apparently, pinmuxing on platform devices 
is broken in the linux-davinci master branch, which led me astray.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-03 19:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-03 19:29 [PATCH] ARM: da850: Fix LEGO EV3 battery voltage gpio David Lechner
2017-12-03 19:56 ` David Lechner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).