^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # SPDX-License-Identifier: GPL-2.0-only
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) # Copyright (C) 2020 Renesas Electronics Corp.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) %YAML 1.2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) ---
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) $id: http://devicetree.org/schemas/thermal/rcar-gen3-thermal.yaml#
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) $schema: http://devicetree.org/meta-schemas/core.yaml#
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) title: Renesas R-Car Gen3 Thermal Sensor
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) On R-Car Gen3 SoCs, the thermal sensor controllers (TSC) control the thermal
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) sensors (THS) which are the analog circuits for measuring temperature (Tj)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) inside the LSI.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) maintainers:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) - Niklas Söderlund <niklas.soderlund@ragnatech.se>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) compatible:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) enum:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) - renesas,r8a774a1-thermal # RZ/G2M
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) - renesas,r8a774b1-thermal # RZ/G2N
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) - renesas,r8a774e1-thermal # RZ/G2H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) - renesas,r8a7795-thermal # R-Car H3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) - renesas,r8a7796-thermal # R-Car M3-W
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) - renesas,r8a77961-thermal # R-Car M3-W+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) - renesas,r8a77965-thermal # R-Car M3-N
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) - renesas,r8a77980-thermal # R-Car V3H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) reg:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) minItems: 2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) maxItems: 3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) items:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) - description: TSC1 registers
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) - description: TSC2 registers
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) - description: TSC3 registers
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) interrupts:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) items:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) - description: TEMP1 interrupt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) - description: TEMP2 interrupt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) - description: TEMP3 interrupt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) clocks:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) maxItems: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) power-domains:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) maxItems: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) resets:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) maxItems: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) "#thermal-sensor-cells":
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) const: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) required:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) - compatible
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) - reg
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) - interrupts
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) - clocks
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) - power-domains
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) - resets
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) - "#thermal-sensor-cells"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) additionalProperties: false
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) examples:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) - |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) #include <dt-bindings/clock/r8a7795-cpg-mssr.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) #include <dt-bindings/interrupt-controller/arm-gic.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) #include <dt-bindings/power/r8a7795-sysc.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) tsc: thermal@e6198000 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) compatible = "renesas,r8a7795-thermal";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) reg = <0xe6198000 0x100>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) <0xe61a0000 0x100>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) <0xe61a8000 0x100>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) clocks = <&cpg CPG_MOD 522>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) resets = <&cpg 522>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) #thermal-sensor-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) thermal-zones {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) sensor_thermal: sensor-thermal {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) polling-delay-passive = <250>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) polling-delay = <1000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) thermal-sensors = <&tsc 0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) trips {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) sensor1_crit: sensor1-crit {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) temperature = <90000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) hysteresis = <2000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) type = "critical";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) };