st,stih407-thermal.yaml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/thermal/st,stih407-thermal.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: STMicroelectronics STi digital thermal sensor (DTS)
  7. maintainers:
  8. - Patrice Chotard <patrice.chotard@foss.st.com>
  9. - Lee Jones <lee@kernel.org>
  10. allOf:
  11. - $ref: thermal-sensor.yaml
  12. properties:
  13. compatible:
  14. const: st,stih407-thermal
  15. reg:
  16. maxItems: 1
  17. clocks:
  18. maxItems: 1
  19. clock-names:
  20. items:
  21. - const: thermal
  22. interrupts:
  23. description:
  24. For thermal sensors for which no interrupt has been defined, a polling
  25. delay of 1000ms will be used to read the temperature from device.
  26. maxItems: 1
  27. '#thermal-sensor-cells':
  28. const: 0
  29. required:
  30. - compatible
  31. - reg
  32. - clocks
  33. - clock-names
  34. unevaluatedProperties: false
  35. examples:
  36. - |
  37. #include <dt-bindings/interrupt-controller/arm-gic.h>
  38. temperature-sensor@91a0000 {
  39. compatible = "st,stih407-thermal";
  40. reg = <0x91a0000 0x28>;
  41. clock-names = "thermal";
  42. clocks = <&CLK_SYSIN>;
  43. interrupts = <GIC_SPI 205 IRQ_TYPE_EDGE_RISING>;
  44. #thermal-sensor-cells = <0>;
  45. };
  46. ...