From patchwork Sun Jun 19 03:33:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: khiemnguyen X-Patchwork-Id: 9186015 X-Patchwork-Delegate: rui.zhang@intel.com 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 AB0C4601C0 for ; Sun, 19 Jun 2016 03:33:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0E0B2723E for ; Sun, 19 Jun 2016 03:33:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9522225D97; Sun, 19 Jun 2016 03:33:45 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 9EBEA25D97 for ; Sun, 19 Jun 2016 03:33:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751343AbcFSDdl (ORCPT ); Sat, 18 Jun 2016 23:33:41 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:48064 "EHLO relmlie4.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751186AbcFSDdk (ORCPT ); Sat, 18 Jun 2016 23:33:40 -0400 Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie4.idc.renesas.com with ESMTP; 19 Jun 2016 12:33:38 +0900 Received: from relmlac3.idc.renesas.com (relmlac3.idc.renesas.com [10.200.69.23]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id 6A143484C2; Sun, 19 Jun 2016 12:33:38 +0900 (JST) Received: by relmlac3.idc.renesas.com (Postfix, from userid 0) id 54A411800A; Sun, 19 Jun 2016 12:33:38 +0900 (JST) Received: from relmlac3.idc.renesas.com (localhost [127.0.0.1]) by relmlac3.idc.renesas.com (Postfix) with ESMTP id 5393D18070; Sun, 19 Jun 2016 12:33:38 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac3.idc.renesas.com with ESMTP id NAE19723; Sun, 19 Jun 2016 12:33:38 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'208";a="213737163" Received: from unknown (HELO outside-ironport.rvc.renesas.com) ([172.29.139.110]) by relmlii2.idc.renesas.com with ESMTP; 19 Jun 2016 12:33:37 +0900 Received: from rvc-hts-01.rvc.renesas.com ([172.29.139.122]) by inside-ironport.rvc.renesas.com with ESMTP; 19 Jun 2016 10:33:37 +0700 Received: from [172.29.157.15] (172.29.157.15) by rvc-hts-01.rvc.renesas.com (172.29.139.120) with Microsoft SMTP Server id 8.3.83.0; Sun, 19 Jun 2016 10:33:37 +0700 Subject: [PATCH 1/4] thermal: rcar_gen3_thermal: Document the R-Car Gen3 thermal bindings To: Kuninori Morimoto References: <57661211.7010900@rvc.renesas.com> 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 Duy. Dang" , Toru Oishi , "Khiem Trong. Nguyen" From: Khiem Nguyen Message-ID: <57661290.9000501@rvc.renesas.com> Date: Sun, 19 Jun 2016 10:33:36 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <57661211.7010900@rvc.renesas.com> 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: Hien Dang Signed-off-by: Khiem Nguyen --- .../bindings/thermal/rcar-gen3-thermal.txt | 79 ++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.txt diff --git a/Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.txt b/Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.txt new file mode 100644 index 0000000..ed6ce45 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.txt @@ -0,0 +1,79 @@ +* DT bindings for Renesas R-Car Gen3 Thermal Sensor driver + +Required properties: +- compatible : "renesas,thermal-", + Examples with soctypes are: + - "renesas,thermal-r8a7795" (R-Car H3) + - "renesas,thermal-r8a7796" (R-Car M3) + - "renesas,rcar-gen3-thermal" as fallback +- reg : Address range of the thermal registers. +- clocks : Must contain a reference to the functional clock. +- #thermal-sensor-cells : Please see ./thermal.txt + +Option properties: + +- interrupts : Use interrupt +- 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 (non interrupt support): + + tsc1: thermal@e6198000 { + compatible = "renesas,thermal-r8a7795", + "renesas,rcar-gen3-thermal"; + reg = <0 0xe6198000 0 0x5c>; + clocks = <&cpg CPG_MOD 522>; + power-domains = <&sysc R8A7795_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"; + }; + }; + }; + }; + +Example (interrupt support): + + tsc1: thermal@e6198000 { + compatible = "renesas,thermal-r8a7795", + "renesas,rcar-gen3-thermal"; + reg = <0 0xe6198000 0 0x5c>; + interrupts = ; + clocks = <&cpg CPG_MOD 522>; + power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; + #thermal-sensor-cells = <0>; + status = "okay"; + }; + + thermal-zones { + sensor_thermal1: sensor-thermal1 { + polling-delay-passive = <250>; + polling-delay = <0>; + + /* sensor ID */ + thermal-sensors = <&tsc1>; + + trips { + sensor1_crit: sensor1-crit { + temperature = <90000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + };