ti,tmp102.yaml 860 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. "#thermal-sensor-cells":
  18. const: 1
  19. required:
  20. - compatible
  21. - reg
  22. additionalProperties: false
  23. examples:
  24. - |
  25. #include <dt-bindings/interrupt-controller/irq.h>
  26. i2c {
  27. #address-cells = <1>;
  28. #size-cells = <0>;
  29. sensor@48 {
  30. compatible = "ti,tmp102";
  31. reg = <0x48>;
  32. interrupt-parent = <&gpio7>;
  33. interrupts = <16 IRQ_TYPE_LEVEL_LOW>;
  34. #thermal-sensor-cells = <1>;
  35. };
  36. };