lm75.yaml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/hwmon/lm75.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: LM75 hwmon sensor
  7. maintainers:
  8. - Jean Delvare <jdelvare@suse.com>
  9. - Guenter Roeck <linux@roeck-us.net>
  10. properties:
  11. compatible:
  12. enum:
  13. - adi,adt75
  14. - ams,as6200
  15. - atmel,at30ts74
  16. - dallas,ds1775
  17. - dallas,ds75
  18. - dallas,ds7505
  19. - gmt,g751
  20. - national,lm75
  21. - national,lm75a
  22. - national,lm75b
  23. - maxim,max6625
  24. - maxim,max6626
  25. - maxim,max31725
  26. - maxim,max31726
  27. - maxim,mcp980x
  28. - nxp,pct2075
  29. - st,stds75
  30. - st,stlm75
  31. - microchip,tcn75
  32. - ti,tmp1075
  33. - ti,tmp100
  34. - ti,tmp101
  35. - ti,tmp105
  36. - ti,tmp112
  37. - ti,tmp175
  38. - ti,tmp275
  39. - ti,tmp75
  40. - ti,tmp75b
  41. - ti,tmp75c
  42. reg:
  43. maxItems: 1
  44. vs-supply:
  45. description: phandle to the regulator that provides the +VS supply
  46. interrupts:
  47. maxItems: 1
  48. required:
  49. - compatible
  50. - reg
  51. allOf:
  52. - $ref: hwmon-common.yaml#
  53. - if:
  54. not:
  55. properties:
  56. compatible:
  57. contains:
  58. enum:
  59. - ams,as6200
  60. - ti,tmp100
  61. - ti,tmp101
  62. - ti,tmp112
  63. then:
  64. properties:
  65. interrupts: false
  66. unevaluatedProperties: false
  67. examples:
  68. - |
  69. i2c {
  70. #address-cells = <1>;
  71. #size-cells = <0>;
  72. sensor@48 {
  73. compatible = "st,stlm75";
  74. reg = <0x48>;
  75. vs-supply = <&vs>;
  76. };
  77. };
  78. - |
  79. #include <dt-bindings/interrupt-controller/irq.h>
  80. i2c {
  81. #address-cells = <1>;
  82. #size-cells = <0>;
  83. temperature-sensor@48 {
  84. compatible = "ams,as6200";
  85. reg = <0x48>;
  86. vs-supply = <&vs>;
  87. interrupt-parent = <&gpio1>;
  88. interrupts = <17 IRQ_TYPE_EDGE_BOTH>;
  89. };
  90. };