From patchwork Sat Sep 3 05:28:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khiem Nguyen X-Patchwork-Id: 9311873 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 97F9F60756 for ; Sat, 3 Sep 2016 05:28:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A2D029717 for ; Sat, 3 Sep 2016 05:28:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7E0C329745; Sat, 3 Sep 2016 05:28:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A87C29717 for ; Sat, 3 Sep 2016 05:28:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753276AbcICF20 (ORCPT ); Sat, 3 Sep 2016 01:28:26 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:24089 "EHLO relmlie4.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751690AbcICF2Z (ORCPT ); Sat, 3 Sep 2016 01:28:25 -0400 Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie4.idc.renesas.com with ESMTP; 03 Sep 2016 14:28:23 +0900 Received: from relmlac3.idc.renesas.com (relmlac3.idc.renesas.com [10.200.69.23]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id 642384C688; Sat, 3 Sep 2016 14:28:23 +0900 (JST) Received: by relmlac3.idc.renesas.com (Postfix, from userid 0) id 58D2A1806F; Sat, 3 Sep 2016 14:28:23 +0900 (JST) Received: from relmlac3.idc.renesas.com (localhost [127.0.0.1]) by relmlac3.idc.renesas.com (Postfix) with ESMTP id 5437F1800A; Sat, 3 Sep 2016 14:28:23 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac3.idc.renesas.com with ESMTP id QAD27885; Sat, 3 Sep 2016 14:28:23 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'208";a="218798176" Received: from mail-pu1apc01lp0020.outbound.protection.outlook.com (HELO APC01-PU1-obe.outbound.protection.outlook.com) ([65.55.88.20]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 03 Sep 2016 14:28:21 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Pnh9x59DhVF9/8KcVwu70fUgWoCICAD7nL/ByIx245s=; b=UBAQeVC3RAvRTkwX9HhTTuit6a4qwmSP2pepaxwTa1MS+juxnqhqZDBJO7mnk/X6skJfdfHE26dNcef3irBunw3RZN0PvqKrRA3lsKoVagWP9EvVpOeDXmur18mCCIn3NRZ+XJ8UhlcWH63aIiu7WUSDb5VTnbyOPbHNOrDuqRU= Received: from SIXPR06MB0906.apcprd06.prod.outlook.com (10.162.180.26) by SIXPR06MB0764.apcprd06.prod.outlook.com (10.162.173.156) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.599.9; Sat, 3 Sep 2016 05:28:20 +0000 Received: from SIXPR06MB0906.apcprd06.prod.outlook.com ([10.162.180.26]) by SIXPR06MB0906.apcprd06.prod.outlook.com ([10.162.180.26]) with mapi id 15.01.0587.013; Sat, 3 Sep 2016 05:28:20 +0000 From: Khiem Nguyen To: Kuninori Morimoto CC: Wolfram Sang , Geert Uytterhoeven , Magnus Damm , "Zhang Rui" , Eduardo Valentin , "Rob Herring" , Mark Rutland , "linux-pm@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Thao Phuong Le. Nguyen" , Hien Dang , Toru Oishi , "Khiem Nguyen" Subject: [PATCH 4/5 v2] arm64: dts: r8a7796: Add R-Car Gen3 thermal support Thread-Topic: [PATCH 4/5 v2] arm64: dts: r8a7796: Add R-Car Gen3 thermal support Thread-Index: AdIFo+OsEk/0ApfkRWO+WFrmAWHonA== Date: Sat, 3 Sep 2016 05:28:20 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=khiem.nguyen.xt@renesas.com; x-originating-ip: [218.213.70.132] x-ms-office365-filtering-correlation-id: f95654c4-7bc6-4ba0-8841-08d3d3bb1e00 x-microsoft-exchange-diagnostics: 1; SIXPR06MB0764; 20:b1IemA7il7GfgcrH1wFCvKfa0VD3U0Fju3NvvkhkoRZNdzwZ8L3FFGFBsfseCVVBd/VvsNV69cmToet8maDa//jPnUmAUoqZgxOUXLZrl4MofsRqyD0K7i0BeiCB50tovbBDYhqSpSKQqBTrBqnf7YwSSZ0gQQ2AOwlU1Y75qiM= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SIXPR06MB0764; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:SIXPR06MB0764; BCL:0; PCL:0; RULEID:; SRVR:SIXPR06MB0764; x-forefront-prvs: 00540983E2 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(7916002)(199003)(189002)(92566002)(9686002)(189998001)(11100500001)(7736002)(81166006)(97736004)(33656002)(50986999)(7846002)(54356999)(19580405001)(81156014)(7696003)(229853001)(4326007)(19580395003)(10400500002)(4001450100002)(8936002)(3280700002)(305945005)(586003)(66066001)(68736007)(5660300001)(7416002)(102836003)(8676002)(3846002)(2906002)(6116002)(105586002)(106356001)(122556002)(87936001)(86362001)(2900100001)(5002640100001)(101416001)(74316002)(107886002)(76576001)(3660700001)(110136002)(4001430100002)(77096005); DIR:OUT; SFP:1102; SCL:1; SRVR:SIXPR06MB0764; H:SIXPR06MB0906.apcprd06.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Sep 2016 05:28:20.3807 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: SIXPR06MB0764 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Khiem Nguyen --- v2: * Add newly. arch/arm64/boot/dts/renesas/r8a7796.dtsi | 83 ++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) -- 1.9.1 diff --git a/arch/arm64/boot/dts/renesas/r8a7796.dtsi b/arch/arm64/boot/dts/renesas/r8a7796.dtsi index 3aae29f..c7491b0 100644 --- a/arch/arm64/boot/dts/renesas/r8a7796.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a7796.dtsi @@ -293,5 +293,88 @@ cap-mmc-highspeed; status = "disabled"; }; + + tsc1: thermal@e6198000 { + compatible = "renesas,r8a7796-thermal"; + reg = <0 0xe6198000 0 0x5c>; + interrupts = , + ; + clocks = <&cpg CPG_MOD 522>; + power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; + #thermal-sensor-cells = <0>; + status = "okay"; + }; + + tsc2: thermal@e61a0000 { + compatible = "renesas,r8a7796-thermal"; + reg = <0 0xe61a0000 0 0x5c>; + interrupts = , + ; + clocks = <&cpg CPG_MOD 522>; + power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; + #thermal-sensor-cells = <0>; + status = "okay"; + }; + + tsc3: thermal@e61a8000 { + compatible = "renesas,r8a7796-thermal"; + reg = <0 0xe61a8000 0 0x5c>; + interrupts = , + ; + clocks = <&cpg CPG_MOD 522>; + power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; + #thermal-sensor-cells = <0>; + status = "okay"; + }; + + thermal-zones { + sensor_thermal1: sensor-thermal1 { + polling-delay-passive = <250>; + polling-delay = <1000>; + + /* sensor ID */ + thermal-sensors = <&tsc1>; + + trips { + sensor1_crit: sensor1-crit { + temperature = <90000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + sensor_thermal2: sensor-thermal2 { + polling-delay-passive = <250>; + polling-delay = <1000>; + + /* sensor ID */ + thermal-sensors = <&tsc2>; + + trips { + sensor2_crit: sensor2-crit { + temperature = <90000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + sensor_thermal3: sensor-thermal3 { + polling-delay-passive = <250>; + polling-delay = <1000>; + + /* sensor ID */ + thermal-sensors = <&tsc3>; + + trips { + sensor3_crit: sensor3-crit { + temperature = <90000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + }; }; };