Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp1033801ybm; Wed, 27 May 2020 14:23:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFf/AuGLFOIft5wJMPm1sFJcqUEC7SL5pDxe5iRdA2FaI+sEBMLQY7/JRZ9IKnO9LRZmV5 X-Received: by 2002:aa7:d90e:: with SMTP id a14mr109618edr.284.1590614638760; Wed, 27 May 2020 14:23:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590614638; cv=none; d=google.com; s=arc-20160816; b=XAgZKI6MS4NGQuCkkUUiXvH0NlKFES0+Y0OotB1Goh8Ac2tvWkwlkR5mWApdpz2ZkA /T/MgL1bGAqTTVTGlwBm5WCm4NwgTyrgi6ttVxcERVefVCFRYAQp+dlv4OTSNi/QyeH+ fHcVp1l7rMaLJ0GzuupAZrOwVRGYlU4VJpGLKtLz5+V4+zub9sdKrpI9lJfzZYdgjbLB oPay27RbqUZRLt6JoI/Lb6TJ+uYlCKuRPVmp2FMB90JoLu0cnvbIAx8SGC/vXWdPaSgm Acyu+WPdqY3bABJP272249T7zw+QVfRY25enKjzCml05u0Bb+AAyYHNP+KEvNafrYtOW M5SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=ee15JwRAD9/GuqZ2SPlReJWJ6HIPW8E8EUYbHUKh/rY=; b=NEBY8SvQtxipRnGCD/Cosai9NEjxWbxXm9iNWtBM3L+wChjBGHAHk0JovPLYV8elNc izw8DSa5oUjoNs0ABi11W7YEWrKHq/UWDhkIPtfBugIx9l7DjzROLMXvBiMO2iRIXlIT jB1bJwPy5490cQl95GCxide3QaOhRqqRvgvPpx/ZMVcXn2PTgkbqv/DcdQXY2vfunDud /8ApAbl7XAWOOrSVcHqIUpjPHHhIyYnzOU0lnBZvmXmJGEBVzscGaym4AX5IODKg5bqW y2G/AvRRkIi9qFsEhjQO+DbgOeqjTXjBeRLeppVZTbxrnAzes+PfEceiLyMTHqv3tcKO H0Bg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sb26si2725569ejb.196.2020.05.27.14.23.30; Wed, 27 May 2020 14:23:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728730AbgE0VTd (ORCPT + 99 others); Wed, 27 May 2020 17:19:33 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:5763 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726482AbgE0VTc (ORCPT ); Wed, 27 May 2020 17:19:32 -0400 X-IronPort-AV: E=Sophos;i="5.73,442,1583161200"; d="scan'208";a="47965372" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 28 May 2020 06:19:31 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 0F1D0400C4CB; Thu, 28 May 2020 06:19:29 +0900 (JST) From: Lad Prabhakar To: Geert Uytterhoeven , Magnus Damm , Rob Herring Cc: linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Prabhakar , Lad Prabhakar Subject: [PATCH 2/4] ARM: dts: r8a7742: Add thermal device to DT Date: Wed, 27 May 2020 22:18:38 +0100 Message-Id: <1590614320-30160-3-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590614320-30160-1-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <1590614320-30160-1-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch instantiates the thermal sensor module with thermal-zone support. Signed-off-by: Lad Prabhakar Reviewed-by: Marian-Cristian Rotariu --- arch/arm/boot/dts/r8a7742.dtsi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/r8a7742.dtsi b/arch/arm/boot/dts/r8a7742.dtsi index 3ed05c6..f57db05 100644 --- a/arch/arm/boot/dts/r8a7742.dtsi +++ b/arch/arm/boot/dts/r8a7742.dtsi @@ -375,6 +375,17 @@ resets = <&cpg 407>; }; + thermal: thermal@e61f0000 { + compatible = "renesas,thermal-r8a7742", + "renesas,rcar-gen2-thermal"; + reg = <0 0xe61f0000 0 0x10>, <0 0xe61f0100 0 0x38>; + interrupts = ; + clocks = <&cpg CPG_MOD 522>; + power-domains = <&sysc R8A7742_PD_ALWAYS_ON>; + resets = <&cpg 522>; + #thermal-sensor-cells = <0>; + }; + icram0: sram@e63a0000 { compatible = "mmio-sram"; reg = <0 0xe63a0000 0 0x12000>; @@ -1359,6 +1370,25 @@ }; }; + thermal-zones { + cpu_thermal: cpu-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + thermal-sensors = <&thermal>; + + trips { + cpu-crit { + temperature = <95000>; + hysteresis = <0>; + type = "critical"; + }; + }; + cooling-maps { + }; + }; + }; + timer { compatible = "arm,armv7-timer"; interrupts-extended = <&gic GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, -- 2.7.4