lm75.yaml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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,p3t1750
  29. - nxp,p3t1755
  30. - nxp,pct2075
  31. - st,stds75
  32. - st,stlm75
  33. - microchip,tcn75
  34. - ti,tmp1075
  35. - ti,tmp100
  36. - ti,tmp101
  37. - ti,tmp105
  38. - ti,tmp112
  39. - ti,tmp175
  40. - ti,tmp275
  41. - ti,tmp75
  42. - ti,tmp75b
  43. - ti,tmp75c
  44. reg:
  45. maxItems: 1
  46. vs-supply:
  47. description: phandle to the regulator that provides the +VS supply
  48. interrupts:
  49. maxItems: 1
  50. required:
  51. - compatible
  52. - reg
  53. allOf:
  54. - $ref: hwmon-common.yaml#
  55. - if:
  56. not:
  57. properties:
  58. compatible:
  59. contains:
  60. enum:
  61. - ams,as6200
  62. - ti,tmp100
  63. - ti,tmp101
  64. - ti,tmp112
  65. - ti,tmp75
  66. then:
  67. properties:
  68. interrupts: false
  69. unevaluatedProperties: false
  70. examples:
  71. - |
  72. i2c {
  73. #address-cells = <1>;
  74. #size-cells = <0>;
  75. sensor@48 {
  76. compatible = "st,stlm75";
  77. reg = <0x48>;
  78. vs-supply = <&vs>;
  79. };
  80. };
  81. - |
  82. #include <dt-bindings/interrupt-controller/irq.h>
  83. i2c {
  84. #address-cells = <1>;
  85. #size-cells = <0>;
  86. temperature-sensor@48 {
  87. compatible = "ams,as6200";
  88. reg = <0x48>;
  89. vs-supply = <&vs>;
  90. interrupt-parent = <&gpio1>;
  91. interrupts = <17 IRQ_TYPE_EDGE_BOTH>;
  92. };
  93. };