Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp379431ybh; Wed, 15 Jul 2020 04:34:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5zAwkWNqammnJ32Wunh0f9EexgaslmNxCA6x8egdXDE1FufRGzHxK8vMMGkl//az2TWa3 X-Received: by 2002:aa7:d7d0:: with SMTP id e16mr9328614eds.10.1594812841495; Wed, 15 Jul 2020 04:34:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594812841; cv=none; d=google.com; s=arc-20160816; b=YMtYyFcYvgd4xDZf8H3F5HTNoiukrgM1iGLt8sXAyux6yM6/5bSj+nL9xH2ge3EcCp y5mTJ+648H82Ninw8Vg/NK6Uh8zH6FWt0Sh08jIMEbZCD6FTkpye4rCGyZ4++UAWD9Fg hdaT9xp9BZv58FfiyA74rjFuWBmC6KGpYAHEfoN+yKR9wZkh0yU2f26gyR1tphNhmzWv LtPCMR1/mYU9zvBfLeuc/malPYiZRcMp5FxeHNfRj0EZvWzzBC8e5e6VWZJvecsC61ic E2BtcBrUiS6lwi3Cuu6+O8n671jBYz0S/TAg94NxhEj20dEvEWLjSPfUIoWhBen6jb5D 7Cjw== 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=pT3I5dzVg6RD8NvThQ2gCCFtS4jjx4HEAD8N+XeFv4U=; b=zQHvOcdWAz8peT7/W4WNNbbxCEi9RAhjk7+weDOe4krUo9L7jLIpm+6+fxvfeeAuG6 D47GzGZjDm/5S4z9mnap9+Tylsql+1hI/qkvLgd3eDAFT4qOGb2MqUzlaOLSLciIOWHt 3hmS8hHBb32AMHtmL1QAed+4BbwTqUWq3CLI6gje7iMXEoEBiRjPj8gjzlm/KWIBIAdm mR4wrdY8RU8cif/AZTewJo5cP7lpaZn+MGJiWDQLJJpyPTAb66Nxpu4ZIgBFl1DCbpLQ qKY74eFivMx4xOsa7/r5vnUMv6FcnLeUuKUbRCEYdqwBSFdiJFQHzE+4NrWWh1CNLauq ClGw== 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 s4si1045743eja.517.2020.07.15.04.33.37; Wed, 15 Jul 2020 04:34:01 -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 S1731504AbgGOLJo (ORCPT + 99 others); Wed, 15 Jul 2020 07:09:44 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:14131 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731489AbgGOLJm (ORCPT ); Wed, 15 Jul 2020 07:09:42 -0400 X-IronPort-AV: E=Sophos;i="5.75,355,1589209200"; d="scan'208";a="51981869" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 15 Jul 2020 20:09:40 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id D1DCB4006DF5; Wed, 15 Jul 2020 20:09:34 +0900 (JST) From: Lad Prabhakar To: Geert Uytterhoeven , Wolfram Sang , Rob Herring , Wolfgang Grandegger , Marc Kleine-Budde , "David S. Miller" , Jakub Kicinski , Mark Brown , Niklas , Zhang Rui , Wim Van Sebroeck , Guenter Roeck , Magnus Damm Cc: Daniel Lezcano , Amit Kucheria , Thomas Gleixner , Laurent Pinchart , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-spi@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-pm@vger.kernel.org, linux-watchdog@vger.kernel.org, Prabhakar , Lad Prabhakar Subject: [PATCH 04/20] arm64: dts: renesas: r8a774e1: Add RZ/G2H thermal support Date: Wed, 15 Jul 2020 12:08:54 +0100 Message-Id: <1594811350-14066-5-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1594811350-14066-1-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <1594811350-14066-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 From: Marian-Cristian Rotariu Add thermal support for R8A774E1 (RZ/G2H) SoC. Based on the work done for r8a774a1 SoC. Signed-off-by: Marian-Cristian Rotariu Signed-off-by: Lad Prabhakar --- arch/arm64/boot/dts/renesas/r8a774e1.dtsi | 81 +++++++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a774e1.dtsi b/arch/arm64/boot/dts/renesas/r8a774e1.dtsi index 588de69734ef..885b2b03fffc 100644 --- a/arch/arm64/boot/dts/renesas/r8a774e1.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a774e1.dtsi @@ -442,6 +442,20 @@ #power-domain-cells = <1>; }; + tsc: thermal@e6198000 { + compatible = "renesas,r8a774e1-thermal"; + reg = <0 0xe6198000 0 0x100>, + <0 0xe61a0000 0 0x100>, + <0 0xe61a8000 0 0x100>; + interrupts = , + , + ; + clocks = <&cpg CPG_MOD 522>; + power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>; + resets = <&cpg 522>; + #thermal-sensor-cells = <1>; + }; + intc_ex: interrupt-controller@e61c0000 { compatible = "renesas,intc-ex-r8a774b1", "renesas,irqc"; #interrupt-cells = <2>; @@ -1003,6 +1017,73 @@ }; }; + thermal-zones { + sensor_thermal1: sensor-thermal1 { + polling-delay-passive = <250>; + polling-delay = <1000>; + thermal-sensors = <&tsc 0>; + sustainable-power = <6313>; + + trips { + sensor1_crit: sensor1-crit { + temperature = <120000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + sensor_thermal2: sensor-thermal2 { + polling-delay-passive = <250>; + polling-delay = <1000>; + thermal-sensors = <&tsc 1>; + sustainable-power = <6313>; + + trips { + sensor2_crit: sensor2-crit { + temperature = <120000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + sensor_thermal3: sensor-thermal3 { + polling-delay-passive = <250>; + polling-delay = <1000>; + thermal-sensors = <&tsc 2>; + sustainable-power = <6313>; + + trips { + target: trip-point1 { + temperature = <100000>; + hysteresis = <1000>; + type = "passive"; + }; + + sensor3_crit: sensor3-crit { + temperature = <120000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&target>; + cooling-device = <&a57_0 0 2>; + contribution = <1024>; + }; + + map1 { + trip = <&target>; + cooling-device = <&a53_0 0 2>; + contribution = <1024>; + }; + }; + }; + }; + timer { compatible = "arm,armv8-timer"; interrupts-extended = <&gic GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, -- 2.17.1