Received: by 10.223.176.46 with SMTP id f43csp2279635wra; Thu, 25 Jan 2018 07:33:40 -0800 (PST) X-Google-Smtp-Source: AH8x224WMQuC6jie4fO4fYSftvrZC186PRYFfJ06t5PTiLpGrOEjExc761DOnjvXa+2N6kokFtU2 X-Received: by 2002:a17:902:8d97:: with SMTP id v23-v6mr7310242plo.248.1516894420156; Thu, 25 Jan 2018 07:33:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516894420; cv=none; d=google.com; s=arc-20160816; b=Q3XaRyMH7cDAxwpkwqwjKBHS4Q+3MULy/TObb6+qeCtvh+aN9G8X4XmU68FLT3UVmr 1sUMZ96TLNzDq3MMnXhfytGK0Foe9gJju8qOMTLtIDv36FnyG/c1/wMez9Log9eyS1ul 5uWGofnK/0SV7p/yFTHqKnqthqh1pHtYX2cm8+ZfAGEIVvE9D2Gpzb/0CLrhtvpRwE2X U2V9vJiOCNVUwacdMQPW5e8JW1CId3x4JSzyKTD+crGKNu5dDGSYjtrwYgw7smecOsQS QWYyApKiv6JpoPgiaLH2T/bRDHe1Dpn/OWihP/phhf5VHWzylKjJlPJKYgiFsJSUXOo+ iFaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=Pw+8iU+jhB3sy1MrGQNvb8llJK2lMq5oMZX7WcA8g2o=; b=af2yGwayaQXfXQr3Q0OAK2SZnEeAnp3avRznjJMK3X0nAKHtS8wzaEaIkQHEpnjUFG rJTKfLq84GZxswo69dk3PeJ5kKIRiC3Ztzck9UC1TvABe+dHKOWtGDoTJz32bhgRZYP7 9P2J1wZCcpimRpRLB8NwQM7IRUhJY5u0ffLf8eEVq7VfyodgRI60OW+T07p/E2u8Yj9n c+o8Ze8Ca8oaIcLxqkeGh4a7aV+p9DZ4DFSzzT5WFXF3mF/jFFd7HQvcZ34dcuYbSLVG R+idLcFb5K6H5fnD7FzIdpojQ/pOPNr04+2dF6d1mb1W2kVmPvbKd+fQ5TNzY27XiFhq xXZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ow6GCzdT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n10si1693166pgs.314.2018.01.25.07.33.25; Thu, 25 Jan 2018 07:33:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ow6GCzdT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751112AbeAYPco (ORCPT + 99 others); Thu, 25 Jan 2018 10:32:44 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:38498 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751105AbeAYPcm (ORCPT ); Thu, 25 Jan 2018 10:32:42 -0500 Received: by mail-pg0-f66.google.com with SMTP id y27so5266751pgc.5; Thu, 25 Jan 2018 07:32:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Pw+8iU+jhB3sy1MrGQNvb8llJK2lMq5oMZX7WcA8g2o=; b=Ow6GCzdTZy4JUn4q+NW5AbI0PLUf3uaoQqAWayLatFhLc+YXBpAGl9UMBbVvT5hN69 M6w6OM972egJQCj1prIbhdI8IQKL9nh8v4Uy3EB/j7z3EPVZtElU1kPUfmJw1YJUM78i U1rjxP4FX38ihymaB/VKpxuQHAMs6iNXhm+/iReiflY2b1InXL1a+LdS0rdtl247Hgtv 6xDaUkggmCbd3AmJ8jWobwcFkzNXv+FlEHi+fOyJT6mS6V91o00wG1tohWYi5vwSbSif XTG7RNtD217fqxpGO84glKljSc5nbUG296kFiOLgbFplTAyZww9CX+B8VcjuZnxxEPG/ FnmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Pw+8iU+jhB3sy1MrGQNvb8llJK2lMq5oMZX7WcA8g2o=; b=fVzTsZStw8tBywRUKiicom0NA7oLvG5DBW6B4ALk7NuivdVj1gxQtg6U7cATg/4/fn Oja6g3jJ/kc3qsm55LwQ++3KpP+FHtmJyp2GrJOGAs33FwKcycWTT5OR4Ryr82CMvBbZ FFlPRX5JrafJ1Rico6BgITkFvXibVCV3uV4tHQusT8OMz7bRW6/JT6dPuopXmm6Juudv IRnUXx7zWH1ipLlR39HoKXzXCd5uKYSoXrEcAj12MlUHTq7fjW/jb7mLZa45moMwx/KJ yhql8EzzmVIDNPr3G77m+wTrH2W8Rw2RImBA0K8NDWTNj+MUMUqGotR97H0TPnEH5VYQ ahCA== X-Gm-Message-State: AKwxytf/DQTA+Z3gXIMfqNZrT02k6ojkUlQhGCqF6ji45t1irHqAhBXm CXDN9iH1HHvw+BkVfTEAh9o= X-Received: by 10.99.138.75 with SMTP id y72mr13355342pgd.90.1516894362103; Thu, 25 Jan 2018 07:32:42 -0800 (PST) Received: from b29396-OptiPlex-7040 (gate-zmy3.freescale.com. [192.88.167.1]) by smtp.gmail.com with ESMTPSA id 62sm12996086pfw.129.2018.01.25.07.32.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jan 2018 07:32:40 -0800 (PST) Date: Thu, 25 Jan 2018 23:32:30 +0800 From: Dong Aisheng To: Anson Huang Cc: rui.zhang@intel.com, edubezval@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, kernel@pengutronix.de, fabio.estevam@nxp.com, linux@armlinux.org.uk, ping.bai@nxp.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, aisheng.dong@nxp.com, Linux-imx@nxp.com Subject: Re: [PATCH 1/2] ARM: dts: imx7s: add temperature monitor support Message-ID: <20180125153230.GD24622@b29396-OptiPlex-7040> References: <1516605949-14663-1-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1516605949-14663-1-git-send-email-Anson.Huang@nxp.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 22, 2018 at 03:25:48PM +0800, Anson Huang wrote: > Add i.MX7 temperature monitor support. > > Signed-off-by: Anson Huang > --- > .../devicetree/bindings/thermal/imx-thermal.txt | 5 +++-- > arch/arm/boot/dts/imx7s.dtsi | 20 ++++++++++++++++++++ > 2 files changed, 23 insertions(+), 2 deletions(-) > Acked-by: Dong Aisheng Regards Dong Aisheng > diff --git a/Documentation/devicetree/bindings/thermal/imx-thermal.txt b/Documentation/devicetree/bindings/thermal/imx-thermal.txt > index 28be51a..9575d45 100644 > --- a/Documentation/devicetree/bindings/thermal/imx-thermal.txt > +++ b/Documentation/devicetree/bindings/thermal/imx-thermal.txt > @@ -1,8 +1,9 @@ > * Temperature Monitor (TEMPMON) on Freescale i.MX SoCs > > Required properties: > -- compatible : "fsl,imx6q-tempmon" for i.MX6Q, "fsl,imx6sx-tempmon" for i.MX6SX. > - i.MX6SX has two more IRQs than i.MX6Q, one is IRQ_LOW and the other is IRQ_PANIC, > +- compatible : "fsl,imx6q-tempmon" for i.MX6Q, "fsl,imx6sx-tempmon" for i.MX6SX, > + "fsl,imx7-tempmon" for i.MX7S/D. > + i.MX6SX and i.MX7S/D have two more IRQs than i.MX6Q, one is IRQ_LOW and the other is IRQ_PANIC, > when temperature is below than low threshold, IRQ_LOW will be triggered, when temperature > is higher than panic threshold, system will auto reboot by SRC module. > - fsl,tempmon : phandle pointer to system controller that contains TEMPMON > diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi > index 82ad26e..2e2eda53 100644 > --- a/arch/arm/boot/dts/imx7s.dtsi > +++ b/arch/arm/boot/dts/imx7s.dtsi > @@ -497,9 +497,29 @@ > }; > > ocotp: ocotp-ctrl@30350000 { > + #address-cells = <1>; > + #size-cells = <1>; > compatible = "fsl,imx7d-ocotp", "syscon"; > reg = <0x30350000 0x10000>; > clocks = <&clks IMX7D_OCOTP_CLK>; > + > + tempmon_calib: calib@3c { > + reg = <0x3c 0x4>; > + }; > + > + tempmon_temp_grade: temp-grade@10 { > + reg = <0x10 0x4>; > + }; > + }; > + > + tempmon: tempmon { > + compatible = "fsl,imx7-tempmon"; > + interrupts = ; > + fsl,tempmon =<&anatop>; > + nvmem-cells = <&tempmon_calib>, > + <&tempmon_temp_grade>; > + nvmem-cell-names = "calib", "temp_grade"; > + clocks = <&clks IMX7D_PLL_SYS_MAIN_CLK>; > }; > > anatop: anatop@30360000 { > -- > 2.7.4 >