ti,tmp513.yaml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/hwmon/ti,tmp513.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: TMP513/512 system monitor sensor
  7. maintainers:
  8. - Eric Tremblay <etremblay@distech-controls.com>
  9. description: |
  10. The TMP512 (dual-channel) and TMP513 (triple-channel) are system monitors
  11. that include remote sensors, a local temperature sensor, and a high-side
  12. current shunt monitor. These system monitors have the capability of measuring
  13. remote temperatures, on-chip temperatures, and system voltage/power/current
  14. consumption.
  15. Datasheets:
  16. https://www.ti.com/lit/gpn/tmp513
  17. https://www.ti.com/lit/gpn/tmp512
  18. properties:
  19. compatible:
  20. enum:
  21. - ti,tmp512
  22. - ti,tmp513
  23. reg:
  24. maxItems: 1
  25. shunt-resistor-micro-ohms:
  26. description: |
  27. If 0, the calibration process will be skipped and the current and power
  28. measurement engine will not work. Temperature and voltage measurement
  29. will continue to work. The shunt value also need to respect:
  30. rshunt <= pga-gain * 40 * 1000 * 1000.
  31. If not, it's not possible to compute a valid calibration value.
  32. default: 1000
  33. ti,pga-gain:
  34. description: |
  35. The gain value for the PGA function. This is 8, 4, 2 or 1.
  36. The PGA gain affect the shunt voltage range.
  37. The range will be equal to: pga-gain * 40mV
  38. $ref: /schemas/types.yaml#/definitions/uint32
  39. enum: [1, 2, 4, 8]
  40. default: 8
  41. ti,bus-range-microvolt:
  42. description: |
  43. This is the operating range of the bus voltage in microvolt
  44. enum: [16000000, 32000000]
  45. default: 32000000
  46. ti,nfactor:
  47. description: |
  48. Array of three(TMP513) or two(TMP512) n-Factor value for each remote
  49. temperature channel.
  50. See datasheet Table 11 for n-Factor range list and value interpretation.
  51. $ref: /schemas/types.yaml#/definitions/uint32-array
  52. minItems: 2
  53. maxItems: 3
  54. items:
  55. default: 0x00
  56. minimum: 0x00
  57. maximum: 0xFF
  58. required:
  59. - compatible
  60. - reg
  61. allOf:
  62. - $ref: hwmon-common.yaml#
  63. unevaluatedProperties: false
  64. examples:
  65. - |
  66. i2c {
  67. #address-cells = <1>;
  68. #size-cells = <0>;
  69. tmp513@5c {
  70. compatible = "ti,tmp513";
  71. reg = <0x5c>;
  72. shunt-resistor-micro-ohms = <330000>;
  73. ti,bus-range-microvolt = <32000000>;
  74. ti,pga-gain = <8>;
  75. ti,nfactor = <0x1 0xf3 0x00>;
  76. };
  77. };