xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/richtek,rtq6056.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1*7ef62cebSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*7ef62cebSEmmanuel Vadot%YAML 1.2
3*7ef62cebSEmmanuel Vadot---
4*7ef62cebSEmmanuel Vadot$id: http://devicetree.org/schemas/iio/adc/richtek,rtq6056.yaml#
5*7ef62cebSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*7ef62cebSEmmanuel Vadot
7*7ef62cebSEmmanuel Vadottitle: RTQ6056 Bi-Directional Current and Power Monitor with 16-bit ADC
8*7ef62cebSEmmanuel Vadot
9*7ef62cebSEmmanuel Vadotmaintainers:
10*7ef62cebSEmmanuel Vadot  - ChiYuan Huang <cy_huang@richtek.com>
11*7ef62cebSEmmanuel Vadot
12*7ef62cebSEmmanuel Vadotdescription: |
13*7ef62cebSEmmanuel Vadot  The RTQ6056 is a high accuracy current-sense monitor with I2C and SMBus
14*7ef62cebSEmmanuel Vadot  interface, and the device provides full information for system by reading
15*7ef62cebSEmmanuel Vadot  out the loading current and power.
16*7ef62cebSEmmanuel Vadot
17*7ef62cebSEmmanuel Vadot  The device monitors both of the drops across sense resistor and the BUS
18*7ef62cebSEmmanuel Vadot  voltage, converts into the current in amperes, and power in watts through
19*7ef62cebSEmmanuel Vadot  internal analog-to-digital converter ADC. The programmable calibration,
20*7ef62cebSEmmanuel Vadot  adjustable conversion time, and averaging function are also built in for
21*7ef62cebSEmmanuel Vadot  more design flexibility.
22*7ef62cebSEmmanuel Vadot
23*7ef62cebSEmmanuel Vadot  Datasheet is available at
24*7ef62cebSEmmanuel Vadot  https://www.richtek.com/assets/product_file/RTQ6056/DSQ6056-00.pdf
25*7ef62cebSEmmanuel Vadot
26*7ef62cebSEmmanuel Vadotproperties:
27*7ef62cebSEmmanuel Vadot  compatible:
28*7ef62cebSEmmanuel Vadot    const: richtek,rtq6056
29*7ef62cebSEmmanuel Vadot
30*7ef62cebSEmmanuel Vadot  reg:
31*7ef62cebSEmmanuel Vadot    maxItems: 1
32*7ef62cebSEmmanuel Vadot
33*7ef62cebSEmmanuel Vadot  "#io-channel-cells":
34*7ef62cebSEmmanuel Vadot    const: 1
35*7ef62cebSEmmanuel Vadot
36*7ef62cebSEmmanuel Vadot  shunt-resistor-micro-ohms:
37*7ef62cebSEmmanuel Vadot    description: Shunt IN+/IN- sensing node resistor
38*7ef62cebSEmmanuel Vadot
39*7ef62cebSEmmanuel Vadotrequired:
40*7ef62cebSEmmanuel Vadot  - compatible
41*7ef62cebSEmmanuel Vadot  - reg
42*7ef62cebSEmmanuel Vadot  - "#io-channel-cells"
43*7ef62cebSEmmanuel Vadot
44*7ef62cebSEmmanuel VadotadditionalProperties: false
45*7ef62cebSEmmanuel Vadot
46*7ef62cebSEmmanuel Vadotexamples:
47*7ef62cebSEmmanuel Vadot  - |
48*7ef62cebSEmmanuel Vadot    i2c {
49*7ef62cebSEmmanuel Vadot      #address-cells = <1>;
50*7ef62cebSEmmanuel Vadot      #size-cells = <0>;
51*7ef62cebSEmmanuel Vadot      adc@40 {
52*7ef62cebSEmmanuel Vadot        compatible = "richtek,rtq6056";
53*7ef62cebSEmmanuel Vadot        reg = <0x40>;
54*7ef62cebSEmmanuel Vadot        #io-channel-cells = <1>;
55*7ef62cebSEmmanuel Vadot      };
56*7ef62cebSEmmanuel Vadot    };
57