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

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 # SPDX-License-Identifier: GPL-2.0
    2 %YAML 1.2
    3 ---
    4 $id: http://devicetree.org/schemas/power/supply/sbs,sbs-manager.yaml#
    5 $schema: http://devicetree.org/meta-schemas/core.yaml#
    6 
    7 title: SBS compliant manger
    8 
    9 maintainers:
   10   - Sebastian Reichel <sre@kernel.org>
   11 
   12 allOf:
   13   - $ref: power-supply.yaml#
   14 
   15 properties:
   16   compatible:
   17     oneOf:
   18       - items:
   19           - enum:
   20               - lltc,ltc1760
   21           - enum:
   22               - sbs,sbs-manager
   23       - items:
   24           - const: sbs,sbs-manager
   25 
   26   reg:
   27     const: 0xa
   28 
   29   "#address-cells":
   30     const: 1
   31 
   32   "#size-cells":
   33     const: 0
   34 
   35   gpio-controller: true
   36 
   37   "#gpio-cells":
   38     const: 2
   39 
   40 required:
   41   - compatible
   42   - reg
   43 
   44 additionalProperties: false
   45 
   46 patternProperties:
   47   "^i2c@[1-4]$":
   48     type: object
   49     $ref: /schemas/i2c/i2c-controller.yaml#
   50 
   51 examples:
   52   - |
   53     #include <dt-bindings/interrupt-controller/irq.h>
   54     #include <dt-bindings/gpio/gpio.h>
   55 
   56     i2c {
   57       #address-cells = <1>;
   58       #size-cells = <0>;
   59 
   60       batman: battery-manager@a {
   61         compatible = "lltc,ltc1760", "sbs,sbs-manager";
   62         reg = <0x0a>;
   63         #address-cells = <1>;
   64         #size-cells = <0>;
   65 
   66         gpio-controller;
   67         #gpio-cells = <2>;
   68 
   69         i2c@1 {
   70           #address-cells = <1>;
   71           #size-cells = <0>;
   72           reg = <1>;
   73 
   74           battery@b {
   75             compatible = "ti,bq20z65", "sbs,sbs-battery";
   76             reg = <0x0b>;
   77             sbs,battery-detect-gpios = <&batman 1 1>;
   78           };
   79         };
   80 
   81         i2c@2 {
   82           #address-cells = <1>;
   83           #size-cells = <0>;
   84           reg = <2>;
   85 
   86           battery@b {
   87             compatible = "ti,bq20z65", "sbs,sbs-battery";
   88             reg = <0x0b>;
   89             sbs,battery-detect-gpios = <&batman 2 1>;
   90           };
   91         };
   92 
   93         i2c@3 {
   94           #address-cells = <1>;
   95           #size-cells = <0>;
   96           reg = <3>;
   97 
   98           battery@b {
   99             compatible = "ti,bq20z65", "sbs,sbs-battery";
  100             reg = <0x0b>;
  101             sbs,battery-detect-gpios = <&batman 3 1>;
  102           };
  103         };
  104       };
  105     };

Cache object: d5234e6a3b534446110682eb73829443


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