1*b2d2a78aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2*b2d2a78aSEmmanuel Vadot%YAML 1.2 3*b2d2a78aSEmmanuel Vadot--- 4*b2d2a78aSEmmanuel Vadot$id: http://devicetree.org/schemas/iio/adc/microchip,pac1921.yaml# 5*b2d2a78aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*b2d2a78aSEmmanuel Vadot 7*b2d2a78aSEmmanuel Vadottitle: Microchip PAC1921 High-Side Power/Current Monitor with Anaog Output 8*b2d2a78aSEmmanuel Vadot 9*b2d2a78aSEmmanuel Vadotmaintainers: 10*b2d2a78aSEmmanuel Vadot - Matteo Martelli <matteomartelli3@gmail.com> 11*b2d2a78aSEmmanuel Vadot 12*b2d2a78aSEmmanuel Vadotdescription: | 13*b2d2a78aSEmmanuel Vadot The PAC1921 is a power/current monitoring device with an analog output 14*b2d2a78aSEmmanuel Vadot and I2C/SMBus interface. 15*b2d2a78aSEmmanuel Vadot 16*b2d2a78aSEmmanuel Vadot Datasheet can be found here: 17*b2d2a78aSEmmanuel Vadot https://ww1.microchip.com/downloads/en/DeviceDoc/PAC1921-Data-Sheet-DS20005293E.pdf 18*b2d2a78aSEmmanuel Vadot 19*b2d2a78aSEmmanuel Vadotproperties: 20*b2d2a78aSEmmanuel Vadot compatible: 21*b2d2a78aSEmmanuel Vadot const: microchip,pac1921 22*b2d2a78aSEmmanuel Vadot 23*b2d2a78aSEmmanuel Vadot reg: 24*b2d2a78aSEmmanuel Vadot maxItems: 1 25*b2d2a78aSEmmanuel Vadot 26*b2d2a78aSEmmanuel Vadot vdd-supply: true 27*b2d2a78aSEmmanuel Vadot 28*b2d2a78aSEmmanuel Vadot "#io-channel-cells": 29*b2d2a78aSEmmanuel Vadot const: 1 30*b2d2a78aSEmmanuel Vadot 31*b2d2a78aSEmmanuel Vadot shunt-resistor-micro-ohms: 32*b2d2a78aSEmmanuel Vadot description: 33*b2d2a78aSEmmanuel Vadot Value in micro Ohms of the shunt resistor connected between 34*b2d2a78aSEmmanuel Vadot the SENSE+ and SENSE- inputs, across which the current is measured. 35*b2d2a78aSEmmanuel Vadot Value is needed to compute the scaling of the measured current. 36*b2d2a78aSEmmanuel Vadot 37*b2d2a78aSEmmanuel Vadot label: 38*b2d2a78aSEmmanuel Vadot description: Unique name to identify which device this is. 39*b2d2a78aSEmmanuel Vadot 40*b2d2a78aSEmmanuel Vadot read-integrate-gpios: 41*b2d2a78aSEmmanuel Vadot description: 42*b2d2a78aSEmmanuel Vadot READ/INT input pin to control the current state of the device, either in 43*b2d2a78aSEmmanuel Vadot the INTEGRATE state when driven high, or in the READ state when driven low. 44*b2d2a78aSEmmanuel Vadot When not connected the pin is floating and it can be overridden by the 45*b2d2a78aSEmmanuel Vadot INT_EN register bit after asserting the READ/INT_OVR register bit. 46*b2d2a78aSEmmanuel Vadot maxItems: 1 47*b2d2a78aSEmmanuel Vadot 48*b2d2a78aSEmmanuel Vadotrequired: 49*b2d2a78aSEmmanuel Vadot - compatible 50*b2d2a78aSEmmanuel Vadot - reg 51*b2d2a78aSEmmanuel Vadot - vdd-supply 52*b2d2a78aSEmmanuel Vadot - shunt-resistor-micro-ohms 53*b2d2a78aSEmmanuel Vadot 54*b2d2a78aSEmmanuel VadotadditionalProperties: false 55*b2d2a78aSEmmanuel Vadot 56*b2d2a78aSEmmanuel Vadotexamples: 57*b2d2a78aSEmmanuel Vadot - | 58*b2d2a78aSEmmanuel Vadot i2c { 59*b2d2a78aSEmmanuel Vadot #address-cells = <1>; 60*b2d2a78aSEmmanuel Vadot #size-cells = <0>; 61*b2d2a78aSEmmanuel Vadot 62*b2d2a78aSEmmanuel Vadot adc@4c { 63*b2d2a78aSEmmanuel Vadot compatible = "microchip,pac1921"; 64*b2d2a78aSEmmanuel Vadot reg = <0x4c>; 65*b2d2a78aSEmmanuel Vadot vdd-supply = <&vdd>; 66*b2d2a78aSEmmanuel Vadot #io-channel-cells = <1>; 67*b2d2a78aSEmmanuel Vadot label = "vbat"; 68*b2d2a78aSEmmanuel Vadot shunt-resistor-micro-ohms = <10000>; 69*b2d2a78aSEmmanuel Vadot }; 70*b2d2a78aSEmmanuel Vadot }; 71*b2d2a78aSEmmanuel Vadot... 72