Skip to contentSkip to conversation

ARM: da850: Fix LEGO EV3 battery voltage gpio

PATCH Superseded David Lechner 1 participant 2 messages Dec 3, 2017 Device tree bindings

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: da850: Fix LEGO EV3 battery voltage gpio

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.

---
 arch/arm/boot/dts/da850-lego-ev3.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/da850-lego-ev3.dts +1 -1
index aeb5fb0..9d15982 100644
@@ -463,7 +463,7 @@
 	batt_volt_en {
 		gpio-hog;
 		gpios = <6 GPIO_ACTIVE_HIGH>;
-		output-low;
+		output-high;
 	};
 
 	/* Don't impede Bluetooth clock signal */
Signature · 1 line
2.7.4
#1 lore raw
Quoted 8 lines · David Lechner

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.

---

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