diff options
author | David Lechner <david@lechnology.com> | 2017-12-04 01:04:53 +0300 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2017-12-07 10:33:11 +0300 |
commit | c5a88cd2e1c508868922bafa0a5c3365986b98e5 (patch) | |
tree | 69f6f8f8377ee0483d7f6cf7ccce985e22d7e2d1 /arch/arm/boot/dts/da850-lego-ev3.dts | |
parent | 621f96bcb49412010876a1e6e006f748b91d9e75 (diff) | |
download | linux-c5a88cd2e1c508868922bafa0a5c3365986b98e5.tar.xz |
ARM: dts: da850-lego-ev3: Fix 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.
Also, there was a typo that prevented pinmuxing from working correctly.
Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'arch/arm/boot/dts/da850-lego-ev3.dts')
-rw-r--r-- | arch/arm/boot/dts/da850-lego-ev3.dts | 4 |
1 files 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 413dbd5d9f64..81942ae83e1f 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; }; }; |