ti,tmp108.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/hwmon/ti,tmp108.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: TMP108 temperature sensor
  7. maintainers:
  8. - Krzysztof Kozlowski <krzk@kernel.org>
  9. description: |
  10. The TMP108 is a digital-output temperature sensor with a
  11. dynamically-programmable limit window, and under- and overtemperature
  12. alert functions.
  13. Datasheets:
  14. https://www.ti.com/product/TMP108
  15. properties:
  16. compatible:
  17. enum:
  18. - ti,tmp108
  19. interrupts:
  20. items:
  21. - description: alert interrupt
  22. reg:
  23. maxItems: 1
  24. "#thermal-sensor-cells":
  25. const: 0
  26. vcc-supply:
  27. description: phandle to the regulator that provides the V+ supply
  28. required:
  29. - compatible
  30. - reg
  31. additionalProperties: false
  32. examples:
  33. - |
  34. #include <dt-bindings/interrupt-controller/irq.h>
  35. i2c {
  36. #address-cells = <1>;
  37. #size-cells = <0>;
  38. sensor@48 {
  39. compatible = "ti,tmp108";
  40. reg = <0x48>;
  41. interrupt-parent = <&gpio1>;
  42. interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
  43. pinctrl-names = "default";
  44. pinctrl-0 = <&tmp_alrt>;
  45. vcc-supply = <&supply>;
  46. #thermal-sensor-cells = <0>;
  47. };
  48. };