ti,tmp401.yaml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/hwmon/ti,tmp401.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: TMP401, TPM411 and TMP43x temperature sensor
  7. maintainers:
  8. - Guenter Roeck <linux@roeck-us.net>
  9. description: |
  10. ±1°C Remote and Local temperature sensor
  11. Datasheets:
  12. https://www.ti.com/lit/ds/symlink/tmp401.pdf
  13. https://www.ti.com/lit/ds/symlink/tmp411.pdf
  14. https://www.ti.com/lit/ds/symlink/tmp431.pdf
  15. https://www.ti.com/lit/ds/symlink/tmp435.pdf
  16. properties:
  17. compatible:
  18. enum:
  19. - ti,tmp401
  20. - ti,tmp411
  21. - ti,tmp431
  22. - ti,tmp432
  23. - ti,tmp435
  24. reg:
  25. maxItems: 1
  26. ti,extended-range-enable:
  27. description:
  28. When set, this sensor measures over extended temperature range.
  29. type: boolean
  30. ti,n-factor:
  31. description:
  32. value to be used for converting remote channel measurements to
  33. temperature.
  34. $ref: /schemas/types.yaml#/definitions/int32
  35. minimum: -128
  36. maximum: 127
  37. ti,beta-compensation:
  38. description:
  39. value to select beta correction range.
  40. $ref: /schemas/types.yaml#/definitions/uint32
  41. minimum: 0
  42. maximum: 15
  43. allOf:
  44. - if:
  45. properties:
  46. compatible:
  47. contains:
  48. enum:
  49. - ti,tmp401
  50. then:
  51. properties:
  52. ti,n-factor: false
  53. - if:
  54. properties:
  55. compatible:
  56. contains:
  57. enum:
  58. - ti,tmp401
  59. - ti,tmp411
  60. then:
  61. properties:
  62. ti,beta-compensation: false
  63. required:
  64. - compatible
  65. - reg
  66. additionalProperties: false
  67. examples:
  68. - |
  69. i2c {
  70. #address-cells = <1>;
  71. #size-cells = <0>;
  72. sensor@4c {
  73. compatible = "ti,tmp401";
  74. reg = <0x4c>;
  75. };
  76. };
  77. - |
  78. i2c {
  79. #address-cells = <1>;
  80. #size-cells = <0>;
  81. sensor@4c {
  82. compatible = "ti,tmp431";
  83. reg = <0x4c>;
  84. ti,extended-range-enable;
  85. ti,n-factor = <0x3b>;
  86. ti,beta-compensation = <0x7>;
  87. };
  88. };