rcar-gen3-thermal.txt 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. * DT bindings for Renesas R-Car Gen3 Thermal Sensor driver
  2. On R-Car Gen3 SoCs, the thermal sensor controllers (TSC) control the thermal
  3. sensors (THS) which are the analog circuits for measuring temperature (Tj)
  4. inside the LSI.
  5. Required properties:
  6. - compatible : "renesas,<soctype>-thermal",
  7. Examples with soctypes are:
  8. - "renesas,r8a7795-thermal" (R-Car H3)
  9. - "renesas,r8a7796-thermal" (R-Car M3-W)
  10. - "renesas,r8a77965-thermal" (R-Car M3-N)
  11. - reg : Address ranges of the thermal registers. Each sensor
  12. needs one address range. Sorting must be done in
  13. increasing order according to datasheet, i.e.
  14. TSC1, TSC2, ...
  15. - clocks : Must contain a reference to the functional clock.
  16. - #thermal-sensor-cells : must be <1>.
  17. Optional properties:
  18. - interrupts : interrupts routed to the TSC (3 for H3, M3-W and M3-N)
  19. - power-domain : Must contain a reference to the power domain. This
  20. property is mandatory if the thermal sensor instance
  21. is part of a controllable power domain.
  22. Example:
  23. tsc: thermal@e6198000 {
  24. compatible = "renesas,r8a7795-thermal";
  25. reg = <0 0xe6198000 0 0x100>,
  26. <0 0xe61a0000 0 0x100>,
  27. <0 0xe61a8000 0 0x100>;
  28. interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
  29. <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
  30. <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
  31. clocks = <&cpg CPG_MOD 522>;
  32. power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
  33. #thermal-sensor-cells = <1>;
  34. };
  35. thermal-zones {
  36. sensor_thermal1: sensor-thermal1 {
  37. polling-delay-passive = <250>;
  38. polling-delay = <1000>;
  39. thermal-sensors = <&tsc 0>;
  40. trips {
  41. sensor1_crit: sensor1-crit {
  42. temperature = <90000>;
  43. hysteresis = <2000>;
  44. type = "critical";
  45. };
  46. };
  47. };
  48. };