Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/hwmon/adi,ltc2992.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Linear Technology 2992 Power Monitor
0008 
0009 maintainers:
0010   - Alexandru Tachici <alexandru.tachici@analog.com>
0011 
0012 description: |
0013   Linear Technology 2992 Dual Wide Range Power Monitor
0014   https://www.analog.com/media/en/technical-documentation/data-sheets/ltc2992.pdf
0015 
0016 properties:
0017   compatible:
0018     enum:
0019       - adi,ltc2992
0020 
0021   reg:
0022     maxItems: 1
0023 
0024   '#address-cells':
0025     const: 1
0026 
0027   '#size-cells':
0028     const: 0
0029 
0030   avcc-supply: true
0031 
0032 patternProperties:
0033   "^channel@([0-1])$":
0034     type: object
0035     description: |
0036       Represents the two supplies to be monitored.
0037 
0038     properties:
0039       reg:
0040         description: |
0041           The channel number. LTC2992 can monitor two supplies.
0042         items:
0043           minimum: 0
0044           maximum: 1
0045 
0046       shunt-resistor-micro-ohms:
0047         description:
0048           The value of curent sense resistor in microohms.
0049 
0050 required:
0051   - compatible
0052   - reg
0053 
0054 additionalProperties: false
0055 
0056 examples:
0057   - |
0058     i2c1 {
0059         #address-cells = <1>;
0060         #size-cells = <0>;
0061 
0062         ltc2992@6F {
0063                 #address-cells = <1>;
0064                 #size-cells = <0>;
0065 
0066                 compatible = "adi,ltc2992";
0067                 reg = <0x6F>;
0068 
0069                 channel@0 {
0070                         reg = <0x0>;
0071                         shunt-resistor-micro-ohms = <10000>;
0072                 };
0073 
0074                 channel@1 {
0075                         reg = <0x1>;
0076                         shunt-resistor-micro-ohms = <10000>;
0077                 };
0078         };
0079     };
0080 ...