sprd-thermal.yaml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/thermal/sprd-thermal.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Spreadtrum thermal sensor controller
  7. maintainers:
  8. - Orson Zhai <orsonzhai@gmail.com>
  9. - Baolin Wang <baolin.wang7@gmail.com>
  10. - Chunyan Zhang <zhang.lyra@gmail.com>
  11. $ref: thermal-sensor.yaml#
  12. properties:
  13. compatible:
  14. const: sprd,ums512-thermal
  15. reg:
  16. maxItems: 1
  17. clocks:
  18. maxItems: 1
  19. clock-names:
  20. items:
  21. - const: enable
  22. nvmem-cells:
  23. maxItems: 2
  24. description:
  25. Reference to nvmem nodes for the calibration data.
  26. nvmem-cell-names:
  27. items:
  28. - const: thm_sign_cal
  29. - const: thm_ratio_cal
  30. "#thermal-sensor-cells":
  31. const: 1
  32. "#address-cells":
  33. const: 1
  34. "#size-cells":
  35. const: 0
  36. patternProperties:
  37. "^([a-z]*-)?sensor(-section)?@[0-9]+$":
  38. type: object
  39. description:
  40. Represent one thermal sensor.
  41. properties:
  42. reg:
  43. description: Specify the sensor id.
  44. maxItems: 1
  45. nvmem-cells:
  46. maxItems: 1
  47. description:
  48. Reference to an nvmem node for the calibration data.
  49. nvmem-cell-names:
  50. const: sen_delta_cal
  51. required:
  52. - reg
  53. - nvmem-cells
  54. - nvmem-cell-names
  55. additionalProperties: false
  56. required:
  57. - compatible
  58. - reg
  59. - clocks
  60. - clock-names
  61. - nvmem-cells
  62. - nvmem-cell-names
  63. - "#address-cells"
  64. - "#size-cells"
  65. unevaluatedProperties: false
  66. examples:
  67. - |
  68. thermal@32200000 {
  69. compatible = "sprd,ums512-thermal";
  70. reg = <0x32200000 0x10000>;
  71. clock-names = "enable";
  72. clocks = <&aonapb_gate 32>;
  73. #thermal-sensor-cells = <1>;
  74. nvmem-cells = <&thm0_sign>, <&thm0_ratio>;
  75. nvmem-cell-names = "thm_sign_cal", "thm_ratio_cal";
  76. #address-cells = <1>;
  77. #size-cells = <0>;
  78. prometheus-sensor@0 {
  79. reg = <0>;
  80. nvmem-cells = <&thm0_sen0>;
  81. nvmem-cell-names = "sen_delta_cal";
  82. };
  83. ank-sensor@1 {
  84. reg = <1>;
  85. nvmem-cells = <&thm0_sen1>;
  86. nvmem-cell-names = "sen_delta_cal";
  87. };
  88. };
  89. ...