Lines Matching +full:li +full:- +full:ion
1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/supply/lego,ev3-battery.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - David Lechner <david@lechnology.com>
11 - Sebastian Reichel <sre@kernel.org>
14 LEGO MINDSTORMS EV3 has some built-in capability for monitoring the battery.
15 It uses 6 AA batteries or a special Li-ion rechargeable battery pack that is
19 - $ref: power-supply.yaml#
23 const: lego,ev3-battery
25 io-channels:
27 - description: ADC channel for battery voltage
28 - description: ADC channel for battery current
30 io-channel-names:
32 - const: voltage
33 - const: current
35 rechargeable-gpios:
40 - compatible
41 - io-channels
42 - io-channel-names
43 - rechargeable-gpios
48 - |
49 #include <dt-bindings/gpio/gpio.h>
51 compatible = "lego,ev3-battery";
52 io-channels = <&adc 4>, <&adc 3>;
53 io-channel-names = "voltage", "current";
54 rechargeable-gpios = <&gpio 136 GPIO_ACTIVE_LOW>;