Skip to content

Commit

Permalink
ARM: dts: da850-lego-ev3: Fix battery voltage gpio
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Sekhar Nori <[email protected]>
  • Loading branch information
dlech authored and nsekhar committed Dec 7, 2017
1 parent 621f96b commit c5a88cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/boot/dts/da850-lego-ev3.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -392,7 +392,7 @@
batt_volt_en {
gpio-hog;
gpios = <6 GPIO_ACTIVE_HIGH>;
output-low;
output-high;
};
};

Expand Down

0 comments on commit c5a88cd

Please sign in to comment.