mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
19785cf93b
Pull thermal SoC updates from Zhang Rui: "Thermal SoC management updates: - imx thermal driver now supports i.MX7 thermal sensor (Anson Huang) - exynos thermal driver dropped support for exynos 5440 (Krzysztof Kozlowski) - rcar_thermal now supports r8a77995 (Yoshihiro Kaneko) - rcar_gen3_thermal now supports r8a77965 (Niklas Söderlund) - qcom-spmi-temp-alarm now supports GEN2 PMIC peripherals (David Collins) - uniphier thermal now supports UniPhier PXs3 (Kunihiko Hayashi) - mediatek thermal now supports MT7622 SoC (Sean Wang) - considerable refactoring of exynos driver (Bartlomiej Zolnierkiewicz) - small fixes all over the place on different drivers" * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal: (50 commits) thermal: qcom: tsens: Allow number of sensors to come from DT thermal: tegra: soctherm: add const to struct thermal_cooling_device_ops thermal: exynos: Reduce severity of too early temperature read thermal: imx: Switch to SPDX identifier thermal: qcom-spmi-temp-alarm: add support for GEN2 PMIC peripherals thermal: ti-soc-thermal: fix incorrect entry in omap5430_adc_to_temp[] thermal: rcar_thermal: add r8a77995 support dt-bindings: thermal: rcar-thermal: add R8A77995 support thermal: mediatek: use of_device_get_match_data() thermal: exynos: remove trip reporting to user-space thermal: exynos: remove unused defines for Exynos5433 thermal: exynos: cleanup code for enabling threshold interrupts thermal: exynos: check return values of ->get_trip_[temp, hyst] methods thermal: exynos: move trips setting to exynos_tmu_initialize() thermal: exynos: set trips in ascending order in exynos7_tmu_initialize() thermal: exynos: do not use trips structure directly in ->tmu_initialize thermal: exynos: add exynos*_tmu_set_[trip,hyst]() helpers thermal: exynos: move IRQs clearing to exynos_tmu_initialize() thermal: exynos: clear IRQs later in exynos4412_tmu_initialize() thermal: exynos: make ->tmu_initialize method void ...
57 lines
1.7 KiB
Plaintext
57 lines
1.7 KiB
Plaintext
* DT bindings for Renesas R-Car Gen3 Thermal Sensor driver
|
|
|
|
On R-Car Gen3 SoCs, the thermal sensor controllers (TSC) control the thermal
|
|
sensors (THS) which are the analog circuits for measuring temperature (Tj)
|
|
inside the LSI.
|
|
|
|
Required properties:
|
|
- compatible : "renesas,<soctype>-thermal",
|
|
Examples with soctypes are:
|
|
- "renesas,r8a7795-thermal" (R-Car H3)
|
|
- "renesas,r8a7796-thermal" (R-Car M3-W)
|
|
- "renesas,r8a77965-thermal" (R-Car M3-N)
|
|
- reg : Address ranges of the thermal registers. Each sensor
|
|
needs one address range. Sorting must be done in
|
|
increasing order according to datasheet, i.e.
|
|
TSC1, TSC2, ...
|
|
- clocks : Must contain a reference to the functional clock.
|
|
- #thermal-sensor-cells : must be <1>.
|
|
|
|
Optional properties:
|
|
|
|
- interrupts : interrupts routed to the TSC (3 for H3, M3-W and M3-N)
|
|
- power-domain : Must contain a reference to the power domain. This
|
|
property is mandatory if the thermal sensor instance
|
|
is part of a controllable power domain.
|
|
|
|
Example:
|
|
|
|
tsc: thermal@e6198000 {
|
|
compatible = "renesas,r8a7795-thermal";
|
|
reg = <0 0xe6198000 0 0x100>,
|
|
<0 0xe61a0000 0 0x100>,
|
|
<0 0xe61a8000 0 0x100>;
|
|
interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
|
|
<GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
|
|
<GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&cpg CPG_MOD 522>;
|
|
power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
|
|
#thermal-sensor-cells = <1>;
|
|
};
|
|
|
|
thermal-zones {
|
|
sensor_thermal1: sensor-thermal1 {
|
|
polling-delay-passive = <250>;
|
|
polling-delay = <1000>;
|
|
thermal-sensors = <&tsc 0>;
|
|
|
|
trips {
|
|
sensor1_crit: sensor1-crit {
|
|
temperature = <90000>;
|
|
hysteresis = <2000>;
|
|
type = "critical";
|
|
};
|
|
};
|
|
};
|
|
};
|