amlogic,thermal.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/thermal/amlogic,thermal.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Amlogic Thermal
  7. maintainers:
  8. - Guillaume La Roque <glaroque@baylibre.com>
  9. description: Binding for Amlogic Thermal
  10. $ref: thermal-sensor.yaml#
  11. properties:
  12. compatible:
  13. oneOf:
  14. - items:
  15. - enum:
  16. - amlogic,g12a-cpu-thermal
  17. - amlogic,g12a-ddr-thermal
  18. - const: amlogic,g12a-thermal
  19. - const: amlogic,a1-cpu-thermal
  20. reg:
  21. maxItems: 1
  22. interrupts:
  23. maxItems: 1
  24. clocks:
  25. maxItems: 1
  26. power-domains:
  27. maxItems: 1
  28. amlogic,ao-secure:
  29. description: phandle to the ao-secure syscon
  30. $ref: /schemas/types.yaml#/definitions/phandle
  31. '#thermal-sensor-cells':
  32. const: 0
  33. required:
  34. - compatible
  35. - reg
  36. - interrupts
  37. - clocks
  38. - amlogic,ao-secure
  39. unevaluatedProperties: false
  40. examples:
  41. - |
  42. temperature-sensor@ff634800 {
  43. compatible = "amlogic,g12a-cpu-thermal",
  44. "amlogic,g12a-thermal";
  45. reg = <0xff634800 0x50>;
  46. interrupts = <0x0 0x24 0x0>;
  47. clocks = <&clk 164>;
  48. #thermal-sensor-cells = <0>;
  49. amlogic,ao-secure = <&sec_AO>;
  50. };
  51. ...