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/hwmon/ti,ina2xx.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 OR BSD-2-Clause)
    2 %YAML 1.2
    3 ---
    4 
    5 $id: http://devicetree.org/schemas/hwmon/ti,ina2xx.yaml#
    6 $schema: http://devicetree.org/meta-schemas/core.yaml#
    7 
    8 title: Texas Instruments INA209 family of power/voltage monitors
    9 
   10 maintainers:
   11   - Krzysztof Kozlowski <krzk@kernel.org>
   12 
   13 description: |
   14   The INA209 is a high-side current shunt and power monitor with
   15   an I2C interface.
   16 
   17   Datasheets:
   18     https://www.ti.com/product/INA209
   19 
   20 properties:
   21   compatible:
   22     enum:
   23       - ti,ina209
   24       - ti,ina219
   25       - ti,ina220
   26       - ti,ina226
   27       - ti,ina230
   28       - ti,ina231
   29       - ti,ina238
   30 
   31   reg:
   32     maxItems: 1
   33 
   34   shunt-resistor:
   35     description:
   36       Shunt resistor value in micro-Ohm.
   37     $ref: /schemas/types.yaml#/definitions/uint32
   38 
   39   ti,shunt-gain:
   40     description: |
   41       Programmable gain divisor for the shunt voltage accuracy and range. This
   42       property only applies to devices that have configurable PGA/ADCRANGE. The
   43       gain value is used configure the gain and to convert the shunt voltage,
   44       current and power register values when reading measurements from the
   45       device.
   46 
   47       For devices that have a configurable PGA (e.g. INA209, INA219, INA220),
   48       the gain value maps directly with the PG bits of the config register.
   49 
   50       For devices that have ADCRANGE configuration (e.g. INA238) a shunt-gain
   51       value of 1 maps to ADCRANGE=1 where no gain divisor is applied to the
   52       shunt voltage, and a value of 4 maps to ADCRANGE=0 such that a wider
   53       voltage range is used.
   54 
   55       The default value is device dependent, and is defined by the reset value
   56       of PGA/ADCRANGE in the respective configuration registers.
   57     $ref: /schemas/types.yaml#/definitions/uint32
   58     enum: [1, 2, 4, 8]
   59 
   60 required:
   61   - compatible
   62   - reg
   63 
   64 additionalProperties: false
   65 
   66 examples:
   67   - |
   68     i2c {
   69         #address-cells = <1>;
   70         #size-cells = <0>;
   71 
   72         power-sensor@44 {
   73             compatible = "ti,ina220";
   74             reg = <0x44>;
   75             shunt-resistor = <1000>;
   76         };
   77     };

Cache object: 469d822b9ab76e57ee1abbb94481e879


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