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/ingenic,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 * Ingenic JZ47xx battery bindings
    2 
    3 Required properties:
    4 
    5 - compatible: Must be "ingenic,jz4740-battery".
    6 - io-channels: phandle and IIO specifier pair to the IIO device.
    7   Format described in iio-bindings.txt.
    8 - monitored-battery: phandle to a "simple-battery" compatible node.
    9 
   10 The "monitored-battery" property must be a phandle to a node using the format
   11 described in battery.txt, with the following properties being required:
   12 
   13 - voltage-min-design-microvolt: Drained battery voltage.
   14 - voltage-max-design-microvolt: Fully charged battery voltage.
   15 
   16 Example:
   17 
   18 #include <dt-bindings/iio/adc/ingenic,adc.h>
   19 
   20 simple_battery: battery {
   21         compatible = "simple-battery";
   22         voltage-min-design-microvolt = <3600000>;
   23         voltage-max-design-microvolt = <4200000>;
   24 };
   25 
   26 ingenic_battery {
   27         compatible = "ingenic,jz4740-battery";
   28         io-channels = <&adc INGENIC_ADC_BATTERY>;
   29         io-channel-names = "battery";
   30         monitored-battery = <&simple_battery>;
   31 };

Cache object: 059e2af863d03b4e24fa43d524bd4504


[ 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.