Based on kernel version 6.11
. Page generated on 2024-09-24 08:21 EST
.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
| # SPDX-License-Identifier: GPL-2.0
%YAML 1.2
---
$id: http://devicetree.org/schemas/power/supply/lego,ev3-battery.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: LEGO MINDSTORMS EV3 Battery
maintainers:
- David Lechner <david@lechnology.com>
- Sebastian Reichel <sre@kernel.org>
description: |
LEGO MINDSTORMS EV3 has some built-in capability for monitoring the battery.
It uses 6 AA batteries or a special Li-ion rechargeable battery pack that is
detected by a key switch in the battery compartment.
allOf:
- $ref: power-supply.yaml#
properties:
compatible:
const: lego,ev3-battery
io-channels:
items:
- description: ADC channel for battery voltage
- description: ADC channel for battery current
io-channel-names:
items:
- const: voltage
- const: current
rechargeable-gpios:
maxItems: 1
description: Rechargeable battery indication gpio
required:
- compatible
- io-channels
- io-channel-names
- rechargeable-gpios
additionalProperties: false
examples:
- |
#include <dt-bindings/gpio/gpio.h>
battery {
compatible = "lego,ev3-battery";
io-channels = <&adc 4>, <&adc 3>;
io-channel-names = "voltage", "current";
rechargeable-gpios = <&gpio 136 GPIO_ACTIVE_LOW>;
};
|
- << [ power ]
- active-semi,act8945a-charger.yaml
- adc-battery.yaml
- battery.yaml
- bq2415x.yaml
- bq24190.yaml
- bq24257.yaml
- bq24735.yaml
- bq2515x.yaml
- bq256xx.yaml
- bq25890.yaml
- bq25980.yaml
- bq27xxx.yaml
- charger-manager.yaml
- cpcap-battery.yaml
- cpcap-charger.yaml
- cw2015_battery.yaml
- dlg,da9150-charger.yaml
- dlg,da9150-fuel-gauge.yaml
- gpio-charger.yaml
- ingenic,battery.yaml
- isp1704.yaml
- lego,ev3-battery.yaml
- lltc,lt3651-charger.yaml
- lltc,ltc294x.yaml
- ltc4162-l.yaml
- max77650-charger.yaml
- maxim,ds2760.yaml
- maxim,max14577.yaml
- maxim,max14656.yaml
- maxim,max17040.yaml
- maxim,max17042.yaml
- maxim,max17201.yaml
- maxim,max77693.yaml
- maxim,max77976.yaml
- maxim,max8903.yaml
- mediatek,mt6370-charger.yaml
- microchip,ucs1002.yaml
- mitsumi,mm8013.yaml
- mt6360_charger.yaml
- nokia,n900-battery.yaml
- olpc-battery.yaml
- power-supply.yaml
- qcom,pm8916-bms-vm.yaml
- qcom,pm8916-lbc.yaml
- qcom,pm8941-charger.yaml
- qcom,pm8941-coincell.yaml
- qcom,pmi8998-charger.yaml
- richtek,rt5033-battery.yaml
- richtek,rt5033-charger.yaml
- richtek,rt9455.yaml
- richtek,rt9467.yaml
- richtek,rt9471.yaml
- rohm,bd99954.yaml
- samsung,battery.yaml
- sbs,sbs-battery.yaml
- sbs,sbs-charger.yaml
- sbs,sbs-manager.yaml
- sc2731-charger.yaml
- sc27xx-fg.yaml
- stericsson,ab8500-btemp.yaml
- stericsson,ab8500-chargalg.yaml
- stericsson,ab8500-charger.yaml
- stericsson,ab8500-fg.yaml
- summit,smb347-charger.yaml
- ti,lp8727.yaml
- tps65090-charger.yaml
- tps65217-charger.yaml
- twl4030-charger.yaml
- x-powers,axp20x-ac-power-supply.yaml
- x-powers,axp20x-battery-power-supply.yaml
- x-powers,axp20x-usb-power-supply.yaml
-