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