ti,tmp464.yaml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/hwmon/ti,tmp464.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: TMP464 and TMP468 temperature sensors
  7. maintainers:
  8. - Guenter Roeck <linux@roeck-us.net>
  9. description: |
  10. ±0.0625°C Remote and Local temperature sensor
  11. https://www.ti.com/lit/ds/symlink/tmp464.pdf
  12. https://www.ti.com/lit/ds/symlink/tmp468.pdf
  13. properties:
  14. compatible:
  15. enum:
  16. - ti,tmp464
  17. - ti,tmp468
  18. reg:
  19. maxItems: 1
  20. '#address-cells':
  21. const: 1
  22. '#size-cells':
  23. const: 0
  24. required:
  25. - compatible
  26. - reg
  27. additionalProperties: false
  28. patternProperties:
  29. "^channel@([0-8])$":
  30. type: object
  31. description: |
  32. Represents channels of the device and their specific configuration.
  33. properties:
  34. reg:
  35. description: |
  36. The channel number. 0 is local channel, 1-8 are remote channels.
  37. items:
  38. minimum: 0
  39. maximum: 8
  40. label:
  41. description: |
  42. A descriptive name for this channel, like "ambient" or "psu".
  43. ti,n-factor:
  44. description: |
  45. The value (two's complement) to be programmed in the channel specific N correction register.
  46. For remote channels only.
  47. $ref: /schemas/types.yaml#/definitions/int32
  48. minimum: -128
  49. maximum: 127
  50. required:
  51. - reg
  52. additionalProperties: false
  53. examples:
  54. - |
  55. i2c {
  56. #address-cells = <1>;
  57. #size-cells = <0>;
  58. sensor@4b {
  59. compatible = "ti,tmp464";
  60. reg = <0x4b>;
  61. };
  62. };
  63. - |
  64. i2c {
  65. #address-cells = <1>;
  66. #size-cells = <0>;
  67. sensor@4b {
  68. compatible = "ti,tmp464";
  69. reg = <0x4b>;
  70. #address-cells = <1>;
  71. #size-cells = <0>;
  72. channel@0 {
  73. reg = <0x0>;
  74. label = "local";
  75. };
  76. channel@1 {
  77. reg = <0x1>;
  78. ti,n-factor = <(-10)>;
  79. label = "external";
  80. };
  81. channel@2 {
  82. reg = <0x2>;
  83. ti,n-factor = <0x10>;
  84. label = "somelabel";
  85. };
  86. channel@3 {
  87. reg = <0x3>;
  88. status = "disabled";
  89. };
  90. };
  91. };