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/sbs,sbs-manager.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 Binding for sbs-manager
    2 
    3 Required properties:
    4 - compatible: "<vendor>,<part-number>", "sbs,sbs-charger" as fallback. The part
    5   number compatible string might be used in order to take care of vendor
    6   specific registers.
    7 - reg: integer, i2c address of the device. Should be <0xa>.
    8 Optional properties:
    9 - gpio-controller: Marks the port as GPIO controller.
   10   See "gpio-specifier" in .../devicetree/bindings/gpio/gpio.txt.
   11 - #gpio-cells: Should be <2>. The first cell is the pin number, the second cell
   12   is used to specify optional parameters:
   13   See "gpio-specifier" in .../devicetree/bindings/gpio/gpio.txt.
   14 
   15 From OS view the device is basically an i2c-mux used to communicate with up to
   16 four smart battery devices at address 0xb. The driver actually implements this
   17 behaviour. So standard i2c-mux nodes can be used to register up to four slave
   18 batteries. Channels will be numerated starting from 1 to 4.
   19 
   20 Example:
   21 
   22 batman@a {
   23     compatible = "lltc,ltc1760", "sbs,sbs-manager";
   24     reg = <0x0a>;
   25     #address-cells = <1>;
   26     #size-cells = <0>;
   27 
   28     gpio-controller;
   29     #gpio-cells = <2>;
   30 
   31     i2c@1 {
   32         #address-cells = <1>;
   33         #size-cells = <0>;
   34         reg = <1>;
   35 
   36         battery@b {
   37             compatible = "ti,bq2060", "sbs,sbs-battery";
   38             reg = <0x0b>;
   39             sbs,battery-detect-gpios = <&batman 1 1>;
   40         };
   41     };
   42 
   43     i2c@2 {
   44         #address-cells = <1>;
   45         #size-cells = <0>;
   46         reg = <2>;
   47 
   48         battery@b {
   49             compatible = "ti,bq2060", "sbs,sbs-battery";
   50             reg = <0x0b>;
   51             sbs,battery-detect-gpios = <&batman 2 1>;
   52         };
   53     };
   54 
   55     i2c@3 {
   56         #address-cells = <1>;
   57         #size-cells = <0>;
   58         reg = <3>;
   59 
   60         battery@b {
   61             compatible = "ti,bq2060", "sbs,sbs-battery";
   62             reg = <0x0b>;
   63             sbs,battery-detect-gpios = <&batman 3 1>;
   64         };
   65     };
   66 };

Cache object: e0c1bb68e06af92bd52d7435c9dc5fea


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