72 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/iio/adc/microchip,pac1921.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Microchip PAC1921 High-Side Power/Current Monitor with Anaog Output8 9maintainers:10 - Matteo Martelli <matteomartelli3@gmail.com>11 12description: |13 The PAC1921 is a power/current monitoring device with an analog output14 and I2C/SMBus interface.15 16 Datasheet can be found here:17 https://ww1.microchip.com/downloads/en/DeviceDoc/PAC1921-Data-Sheet-DS20005293E.pdf18 19properties:20 compatible:21 const: microchip,pac192122 23 reg:24 maxItems: 125 26 vdd-supply: true27 28 "#io-channel-cells":29 const: 130 31 shunt-resistor-micro-ohms:32 description:33 Value in micro Ohms of the shunt resistor connected between34 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 in43 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 the45 INT_EN register bit after asserting the READ/INT_OVR register bit.46 maxItems: 147 48required:49 - compatible50 - reg51 - vdd-supply52 - shunt-resistor-micro-ohms53 54additionalProperties: false55 56examples: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...72