~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/hwmon/adi,ltc2947.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  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,ltc2947.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: Analog Devices LTC2947 high precision power and energy monitor
  8 
  9 maintainers:
 10   - Nuno Sá <nuno.sa@analog.com>
 11 
 12 description: |
 13   Analog Devices LTC2947 high precision power and energy monitor over SPI or I2C.
 14 
 15   https://www.analog.com/media/en/technical-documentation/data-sheets/LTC2947.pdf
 16 
 17 properties:
 18   compatible:
 19     enum:
 20       - adi,ltc2947
 21 
 22   reg:
 23     maxItems: 1
 24 
 25   clocks:
 26     description:
 27       The LTC2947 uses either a trimmed internal oscillator or an external clock
 28       as the time base for determining the integration period to represent time,
 29       charge and energy. When an external clock is used, this property must be
 30       set accordingly.
 31     maxItems: 1
 32 
 33   adi,accumulator-ctl-pol:
 34     description:
 35       This property controls the polarity of current that is accumulated to
 36       calculate charge and energy so that, they can be only accumulated for
 37       positive current for example. Since there are two sets of registers for
 38       the accumulated values, this entry can also have two items which sets
 39       energy1/charge1 and energy2/charger2 respectively. Check table 12 of the
 40       datasheet for more information on the supported options.
 41     $ref: /schemas/types.yaml#/definitions/uint32-array
 42     minItems: 2
 43     maxItems: 2
 44     items:
 45       enum: [0, 1, 2, 3]
 46       default: 0
 47 
 48   adi,accumulation-deadband-microamp:
 49     description:
 50       This property controls the Accumulation Dead band which allows to set the
 51       level of current below which no accumulation takes place.
 52     maximum: 255
 53     default: 0
 54 
 55   adi,gpio-out-pol:
 56     description:
 57       This property controls the GPIO polarity. Setting it to one makes the GPIO
 58       active high, setting it to zero makets it active low. When this property
 59       is present, the GPIO is automatically configured as output and set to
 60       control a fan as a function of measured temperature.
 61     $ref: /schemas/types.yaml#/definitions/uint32
 62     enum: [0, 1]
 63     default: 0
 64 
 65   adi,gpio-in-accum:
 66     description:
 67       When set, this property sets the GPIO as input. It is then used to control
 68       the accumulation of charge, energy and time. This function can be
 69       enabled/configured separately for each of the two sets of accumulation
 70       registers. Check table 13 of the datasheet for more information on the
 71       supported options. This property cannot be used together with
 72       adi,gpio-out-pol.
 73     $ref: /schemas/types.yaml#/definitions/uint32-array
 74     minItems: 2
 75     maxItems: 2
 76     items:
 77       enum: [0, 1, 2]
 78       default: 0
 79 
 80 required:
 81   - compatible
 82   - reg
 83 
 84 
 85 additionalProperties: false
 86 
 87 examples:
 88   - |
 89     spi {
 90         #address-cells = <1>;
 91         #size-cells = <0>;
 92 
 93         ltc2947_spi: ltc2947@0 {
 94             compatible = "adi,ltc2947";
 95             reg = <0>;
 96             /* accumulation takes place always for energ1/charge1. */
 97             /* accumulation only on positive current for energy2/charge2. */
 98             adi,accumulator-ctl-pol = <0 1>;
 99         };
100     };
101 ...

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php