ti,tmp102.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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,tmp102.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: TMP102 temperature sensor
  7. maintainers:
  8. - Krzysztof Kozlowski <krzk@kernel.org>
  9. properties:
  10. compatible:
  11. enum:
  12. - ti,tmp102
  13. interrupts:
  14. maxItems: 1
  15. reg:
  16. maxItems: 1
  17. label:
  18. description:
  19. A descriptive name for this channel, like "ambient" or "psu".
  20. "#thermal-sensor-cells":
  21. const: 1
  22. vcc-supply:
  23. description: Power supply for tmp102
  24. required:
  25. - compatible
  26. - reg
  27. additionalProperties: false
  28. examples:
  29. - |
  30. #include <dt-bindings/interrupt-controller/irq.h>
  31. i2c {
  32. #address-cells = <1>;
  33. #size-cells = <0>;
  34. sensor@48 {
  35. compatible = "ti,tmp102";
  36. reg = <0x48>;
  37. interrupt-parent = <&gpio7>;
  38. interrupts = <16 IRQ_TYPE_LEVEL_LOW>;
  39. label = "somelabel";
  40. vcc-supply = <&supply>;
  41. #thermal-sensor-cells = <1>;
  42. };
  43. };