Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: hwmon: Add documentation for ltc2992

Add documentation for ltc2992.

Signed-off-by: Alexandru Tachici <alexandru.tachici@analog.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Alexandru Tachici and committed by
Guenter Roeck
fe8c573c 9ca26df1

+80
+80
Documentation/devicetree/bindings/hwmon/adi,ltc2992.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/hwmon/adi,ltc2992.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Linear Technology 2992 Power Monitor 8 + 9 + maintainers: 10 + - Alexandru Tachici <alexandru.tachici@analog.com> 11 + 12 + description: | 13 + Linear Technology 2992 Dual Wide Range Power Monitor 14 + https://www.analog.com/media/en/technical-documentation/data-sheets/ltc2992.pdf 15 + 16 + properties: 17 + compatible: 18 + enum: 19 + - adi,ltc2992 20 + 21 + reg: 22 + maxItems: 1 23 + 24 + '#address-cells': 25 + const: 1 26 + 27 + '#size-cells': 28 + const: 0 29 + 30 + avcc-supply: true 31 + 32 + patternProperties: 33 + "^channel@([0-1])$": 34 + type: object 35 + description: | 36 + Represents the two supplies to be monitored. 37 + 38 + properties: 39 + reg: 40 + description: | 41 + The channel number. LTC2992 can monitor two supplies. 42 + items: 43 + minimum: 0 44 + maximum: 1 45 + 46 + shunt-resistor-micro-ohms: 47 + description: 48 + The value of curent sense resistor in microohms. 49 + 50 + required: 51 + - compatible 52 + - reg 53 + 54 + additionalProperties: false 55 + 56 + examples: 57 + - | 58 + i2c1 { 59 + #address-cells = <1>; 60 + #size-cells = <0>; 61 + 62 + ltc2992@6F { 63 + #address-cells = <1>; 64 + #size-cells = <0>; 65 + 66 + compatible = "adi,ltc2992"; 67 + reg = <0x6F>; 68 + 69 + channel@0 { 70 + reg = <0x0>; 71 + shunt-resistor-micro-ohms = <10000>; 72 + }; 73 + 74 + channel@1 { 75 + reg = <0x1>; 76 + shunt-resistor-micro-ohms = <10000>; 77 + }; 78 + }; 79 + }; 80 + ...