diff options
author | Emmanuel Vadot <manu@FreeBSD.org> | 2023-08-09 13:06:51 +0000 |
---|---|---|
committer | Emmanuel Vadot <manu@FreeBSD.org> | 2023-08-09 13:06:51 +0000 |
commit | 582be9a44380445c18a54b44c2b15720ca139f20 (patch) | |
tree | c0519e26259417a7b6251170e04ae27b77bb3fc3 /Bindings/iio/adc/richtek,rtq6056.yaml | |
parent | 8bf583e1ce183a262b726a119817ffe4b6462794 (diff) | |
download | src-582be9a44380445c18a54b44c2b15720ca139f20.tar.gz src-582be9a44380445c18a54b44c2b15720ca139f20.zip |
Diffstat (limited to 'Bindings/iio/adc/richtek,rtq6056.yaml')
-rw-r--r-- | Bindings/iio/adc/richtek,rtq6056.yaml | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/Bindings/iio/adc/richtek,rtq6056.yaml b/Bindings/iio/adc/richtek,rtq6056.yaml new file mode 100644 index 000000000000..88e008629ea8 --- /dev/null +++ b/Bindings/iio/adc/richtek,rtq6056.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/richtek,rtq6056.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: RTQ6056 Bi-Directional Current and Power Monitor with 16-bit ADC + +maintainers: + - ChiYuan Huang <cy_huang@richtek.com> + +description: | + The RTQ6056 is a high accuracy current-sense monitor with I2C and SMBus + interface, and the device provides full information for system by reading + out the loading current and power. + + The device monitors both of the drops across sense resistor and the BUS + voltage, converts into the current in amperes, and power in watts through + internal analog-to-digital converter ADC. The programmable calibration, + adjustable conversion time, and averaging function are also built in for + more design flexibility. + + Datasheet is available at + https://www.richtek.com/assets/product_file/RTQ6056/DSQ6056-00.pdf + +properties: + compatible: + const: richtek,rtq6056 + + reg: + maxItems: 1 + + "#io-channel-cells": + const: 1 + + shunt-resistor-micro-ohms: + description: Shunt IN+/IN- sensing node resistor + +required: + - compatible + - reg + - "#io-channel-cells" + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + adc@40 { + compatible = "richtek,rtq6056"; + reg = <0x40>; + #io-channel-cells = <1>; + }; + }; |