The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/Bindings/power/supply/lego_ev3_battery.txt

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 LEGO MINDSTORMS EV3 Battery
    2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    3 
    4 LEGO MINDSTORMS EV3 has some built-in capability for monitoring the battery.
    5 It uses 6 AA batteries or a special Li-ion rechargeable battery pack that is
    6 detected by a key switch in the battery compartment.
    7 
    8 Required properties:
    9  - compatible: Must be "lego,ev3-battery"
   10  - io-channels: phandles to analog inputs for reading voltage and current
   11  - io-channel-names: Must be "voltage", "current"
   12  - rechargeable-gpios: phandle to the rechargeable battery indication gpio
   13 
   14 Example:
   15 
   16         battery {
   17                 compatible = "lego,ev3-battery";
   18                 io-channels = <&adc 4>, <&adc 3>;
   19                 io-channel-names = "voltage", "current";
   20                 rechargeable-gpios = <&gpio 136 GPIO_ACTIVE_LOW>;
   21         };

Cache object: 1bd63e4ce499f3ea0d5055ff30a97906


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.