15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 25def4c47SEmmanuel Vadot%YAML 1.2 35def4c47SEmmanuel Vadot--- 45def4c47SEmmanuel Vadot 55def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/hwmon/ti,ina2xx.yaml# 65def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 75def4c47SEmmanuel Vadot 85def4c47SEmmanuel Vadottitle: Texas Instruments INA209 family of power/voltage monitors 95def4c47SEmmanuel Vadot 105def4c47SEmmanuel Vadotmaintainers: 115def4c47SEmmanuel Vadot - Krzysztof Kozlowski <krzk@kernel.org> 125def4c47SEmmanuel Vadot 135def4c47SEmmanuel Vadotdescription: | 145def4c47SEmmanuel Vadot The INA209 is a high-side current shunt and power monitor with 155def4c47SEmmanuel Vadot an I2C interface. 165def4c47SEmmanuel Vadot 175def4c47SEmmanuel Vadot Datasheets: 185def4c47SEmmanuel Vadot https://www.ti.com/product/INA209 195def4c47SEmmanuel Vadot 205def4c47SEmmanuel Vadotproperties: 215def4c47SEmmanuel Vadot compatible: 225def4c47SEmmanuel Vadot enum: 235def4c47SEmmanuel Vadot - ti,ina209 245def4c47SEmmanuel Vadot - ti,ina219 255def4c47SEmmanuel Vadot - ti,ina220 265def4c47SEmmanuel Vadot - ti,ina226 275def4c47SEmmanuel Vadot - ti,ina230 285def4c47SEmmanuel Vadot - ti,ina231 2984943d6fSEmmanuel Vadot - ti,ina237 30e67e8565SEmmanuel Vadot - ti,ina238 3101950c46SEmmanuel Vadot - ti,ina260 325def4c47SEmmanuel Vadot 335def4c47SEmmanuel Vadot reg: 345def4c47SEmmanuel Vadot maxItems: 1 355def4c47SEmmanuel Vadot 3601950c46SEmmanuel Vadot "#io-channel-cells": 3701950c46SEmmanuel Vadot const: 1 3801950c46SEmmanuel Vadot 395def4c47SEmmanuel Vadot shunt-resistor: 405def4c47SEmmanuel Vadot description: 415def4c47SEmmanuel Vadot Shunt resistor value in micro-Ohm. 425def4c47SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 435def4c47SEmmanuel Vadot 44e67e8565SEmmanuel Vadot ti,shunt-gain: 45e67e8565SEmmanuel Vadot description: | 46e67e8565SEmmanuel Vadot Programmable gain divisor for the shunt voltage accuracy and range. This 47e67e8565SEmmanuel Vadot property only applies to devices that have configurable PGA/ADCRANGE. The 48e67e8565SEmmanuel Vadot gain value is used configure the gain and to convert the shunt voltage, 49e67e8565SEmmanuel Vadot current and power register values when reading measurements from the 50e67e8565SEmmanuel Vadot device. 51e67e8565SEmmanuel Vadot 52e67e8565SEmmanuel Vadot For devices that have a configurable PGA (e.g. INA209, INA219, INA220), 53e67e8565SEmmanuel Vadot the gain value maps directly with the PG bits of the config register. 54e67e8565SEmmanuel Vadot 55e67e8565SEmmanuel Vadot For devices that have ADCRANGE configuration (e.g. INA238) a shunt-gain 56e67e8565SEmmanuel Vadot value of 1 maps to ADCRANGE=1 where no gain divisor is applied to the 57e67e8565SEmmanuel Vadot shunt voltage, and a value of 4 maps to ADCRANGE=0 such that a wider 58e67e8565SEmmanuel Vadot voltage range is used. 59e67e8565SEmmanuel Vadot 60e67e8565SEmmanuel Vadot The default value is device dependent, and is defined by the reset value 61e67e8565SEmmanuel Vadot of PGA/ADCRANGE in the respective configuration registers. 62e67e8565SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 63e67e8565SEmmanuel Vadot enum: [1, 2, 4, 8] 64e67e8565SEmmanuel Vadot 65fac71e4eSEmmanuel Vadot vs-supply: 66fac71e4eSEmmanuel Vadot description: phandle to the regulator that provides the VS supply typically 67fac71e4eSEmmanuel Vadot in range from 2.7 V to 5.5 V. 68fac71e4eSEmmanuel Vadot 69*0e8011faSEmmanuel Vadot ti,alert-polarity-active-high: 70*0e8011faSEmmanuel Vadot description: Alert pin is asserted based on the value of Alert polarity Bit 71*0e8011faSEmmanuel Vadot of Mask/Enable register. Default value is Normal (0 which maps to 72*0e8011faSEmmanuel Vadot active-low open collector). The other value is Inverted 73*0e8011faSEmmanuel Vadot (1 which maps to active-high open collector). Specify this property to set 74*0e8011faSEmmanuel Vadot the alert polarity to active-high. 75*0e8011faSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/flag 76*0e8011faSEmmanuel Vadot 775def4c47SEmmanuel Vadotrequired: 785def4c47SEmmanuel Vadot - compatible 795def4c47SEmmanuel Vadot - reg 805def4c47SEmmanuel Vadot 8101950c46SEmmanuel VadotallOf: 8201950c46SEmmanuel Vadot - $ref: hwmon-common.yaml# 8301950c46SEmmanuel Vadot 8401950c46SEmmanuel VadotunevaluatedProperties: false 855def4c47SEmmanuel Vadot 865def4c47SEmmanuel Vadotexamples: 875def4c47SEmmanuel Vadot - | 885def4c47SEmmanuel Vadot i2c { 895def4c47SEmmanuel Vadot #address-cells = <1>; 905def4c47SEmmanuel Vadot #size-cells = <0>; 915def4c47SEmmanuel Vadot 925def4c47SEmmanuel Vadot power-sensor@44 { 935def4c47SEmmanuel Vadot compatible = "ti,ina220"; 945def4c47SEmmanuel Vadot reg = <0x44>; 9501950c46SEmmanuel Vadot #io-channel-cells = <1>; 9601950c46SEmmanuel Vadot label = "vdd_3v0"; 975def4c47SEmmanuel Vadot shunt-resistor = <1000>; 98fac71e4eSEmmanuel Vadot vs-supply = <&vdd_3v0>; 99*0e8011faSEmmanuel Vadot ti,alert-polarity-active-high; 1005def4c47SEmmanuel Vadot }; 1015def4c47SEmmanuel Vadot }; 102