Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c5a88cd

Browse files
dlechnsekhar
authored andcommitted
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 <[email protected]> Signed-off-by: Sekhar Nori <[email protected]>
1 parent 621f96b commit c5a88cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm/boot/dts/da850-lego-ev3.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
*/
179179
battery {
180180
pinctrl-names = "default";
181-
pintctrl-0 = <&battery_pins>;
181+
pinctrl-0 = <&battery_pins>;
182182
compatible = "lego,ev3-battery";
183183
io-channels = <&adc 4>, <&adc 3>;
184184
io-channel-names = "voltage", "current";
@@ -392,7 +392,7 @@
392392
batt_volt_en {
393393
gpio-hog;
394394
gpios = <6 GPIO_ACTIVE_HIGH>;
395-
output-low;
395+
output-high;
396396
};
397397
};
398398

0 commit comments

Comments
 (0)