Re: [PATCH 1/2] ARM: tegra: Hook up edp interrupt on Tegra124 SOCTHERM

Nicolas Chauvet
2020-11-20T20:52:44Z

Le ven. 20 nov. 2020 à 17:14, Thierry Reding
<thierry.reding@gmail.com> a écrit :
>
> From: Thierry Reding <treding@nvidia.com>
>
> For some reason this was never hooked up. Do it now so that over-current
> interrupts can be logged.
>
> Reported-by: Nicolas Chauvet <kwizart@gmail.com>
> Suggested-by: Jon Hunter <jonathanh@nvidia.com>
> Signed-off-by: Thierry Reding <treding@nvidia.com>
> ---
> arch/arm/boot/dts/tegra124.dtsi | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/dts/tegra124.dtsi b/arch/arm/boot/dts/tegra124.dtsi
> index 64f488ba1e72..d2714419d823 100644
> --- a/arch/arm/boot/dts/tegra124.dtsi
> +++ b/arch/arm/boot/dts/tegra124.dtsi
> @@ -898,7 +898,9 @@ soctherm: thermal-sensor@700e2000 {
> reg = <0x0 0x700e2000 0x0 0x600>, /* SOC_THERM reg_base */
> <0x0 0x60006000 0x0 0x400>; /* CAR reg_base */
> reg-names = "soctherm-reg", "car-reg";
> - interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
> + interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
> + interrupt-names = "thermal", "edp";
> clocks = <&tegra_car TEGRA124_CLK_TSENSOR>,
> <&tegra_car TEGRA124_CLK_SOC_THERM>;
> clock-names = "tsensor", "soctherm";

Thanks for the fix. I confirm the interrupt is present on jetson-tk1.
cat /proc/interrupts |grep therm
101: 0 0 0 0 LIC 48 Level
700e2000.thermal-sensor
102: 0 0 0 0 LIC 51 Level
soctherm_edp