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/stericsson,ab8500-btemp.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 # Copyright (C) 2021 Sebastian Reichel
    3 %YAML 1.2
    4 ---
    5 $id: http://devicetree.org/schemas/power/supply/stericsson,ab8500-btemp.yaml#
    6 $schema: http://devicetree.org/meta-schemas/core.yaml#
    7 
    8 title: AB8500 Battery Temperature Monitor
    9 
   10 maintainers:
   11   - Sebastian Reichel <sre@kernel.org>
   12 
   13 allOf:
   14   - $ref: power-supply.yaml#
   15 
   16 properties:
   17   compatible:
   18     const: stericsson,ab8500-btemp
   19 
   20   monitored-battery:
   21     $ref: /schemas/types.yaml#/definitions/phandle
   22     description: phandle to battery node
   23 
   24   battery:
   25     $ref: /schemas/types.yaml#/definitions/phandle
   26     deprecated: true
   27 
   28   interrupts:
   29     maxItems: 5
   30 
   31   interrupt-names:
   32     items:
   33       - const: BAT_CTRL_INDB
   34       - const: BTEMP_LOW
   35       - const: BTEMP_HIGH
   36       - const: BTEMP_LOW_MEDIUM
   37       - const: BTEMP_MEDIUM_HIGH
   38 
   39   io-channels:
   40     maxItems: 2
   41 
   42   io-channel-names:
   43     items:
   44       - const: btemp_ball
   45       - const: bat_ctrl
   46 
   47 required:
   48   - compatible
   49   - monitored-battery
   50   - interrupts
   51   - interrupt-names
   52   - io-channels
   53   - io-channel-names
   54 
   55 additionalProperties: false
   56 
   57 examples:
   58   - |
   59     #include <dt-bindings/interrupt-controller/irq.h>
   60     pmic {
   61       battery-temperature {
   62         compatible = "stericsson,ab8500-btemp";
   63         monitored-battery = <&battery>;
   64         interrupts = <20 IRQ_TYPE_LEVEL_HIGH>,
   65                      <80 IRQ_TYPE_LEVEL_HIGH>,
   66                      <83 IRQ_TYPE_LEVEL_HIGH>,
   67                      <81 IRQ_TYPE_LEVEL_HIGH>,
   68                      <82 IRQ_TYPE_LEVEL_HIGH>;
   69         interrupt-names = "BAT_CTRL_INDB",
   70                           "BTEMP_LOW",
   71                           "BTEMP_HIGH",
   72                           "BTEMP_LOW_MEDIUM",
   73                           "BTEMP_MEDIUM_HIGH";
   74         io-channels = <&gpadc 0x02>, <&gpadc 0x01>;
   75         io-channel-names = "btemp_ball", "bat_ctrl";
   76       };
   77     };

Cache object: 658ac2eaaef2e9e7c03e79c478c52a80


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