Received: by 10.223.176.46 with SMTP id f43csp2629516wra; Mon, 22 Jan 2018 00:25:39 -0800 (PST) X-Google-Smtp-Source: AH8x2246SHQ6B8EJc1m6TaNvq4KXEhdbpVfKVXvuOSd8wQyFL0j9tVR0KA99a9KX6ohZsvFdpvxC X-Received: by 2002:a17:902:2803:: with SMTP id e3-v6mr109504plb.447.1516609539642; Mon, 22 Jan 2018 00:25:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516609539; cv=none; d=google.com; s=arc-20160816; b=aYdKzceFpwrSiRum/XXZBjQaJhKApnieCphwN4ZNtGomLwt2HInTzLrkFz4YBjQSOa inGZq0+pVMECPBEZzp8/n5WIMN/ByaC2w8xRFV3EUOTDi1x0Q9wk0nxzYiWFBeBiF1KR wkJYMbe4rXXjzfu5FkM9NH0PfxjuQAqUA7LwShzaN/4I6vI5eFkSOPrSnUi7xPBFdPZ4 eSwgUw0EZ0SKAlJB4Y8Nl70TCs/1dIrCo4KgJ0mBonl2x6BddMA6AXDybnCa+XZ8FJsK u1/PR4Fa5kvg77rdlbIAMnE1oyBP6eJDanc9p/XCCHmln2ZC1xH3fsMl2kX/a4grV3nP djcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:to :from:arc-authentication-results; bh=mkzTT5NaQ3oGg+qIT56gfXWcjIxsl87LHYZlmGX+qnA=; b=c5BscQI7PgrjMJXXJIjGwj0XgiMkfi1R/PgYq+MAaplMvaY7m46v4+Q4gW2tD58mda cZ85KB83s7Qx+3hheeQqztp82mFtYi+u/DBsPcZdvpkAImL+0eo3eN2zmERDUHkLOv5U aTfwhXLUYyFRyLaz3GZ64UTcOVmguaiZK5Yd+CV/YF6JJAPFOHSWdh927sd6dxu98li+ ItvSt5oozZtyGeErQokT8PiPrr0Nhbwr+QOVMZwROUHxZmJGN7Ikv5s8ADkDj/9XwbV/ T0oWnLiFgIgPOzt6lylO0oVYAmc/xS4wc2wYYXpL9ERB0yXEaTYdEZXSxwSa7TyWymeS GO8A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a2si15006384pfa.307.2018.01.22.00.25.25; Mon, 22 Jan 2018 00:25:39 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751179AbeAVIY6 (ORCPT + 99 others); Mon, 22 Jan 2018 03:24:58 -0500 Received: from mail-cys01nam02on0040.outbound.protection.outlook.com ([104.47.37.40]:60433 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751034AbeAVIYw (ORCPT ); Mon, 22 Jan 2018 03:24:52 -0500 Received: from BN6PR03CA0018.namprd03.prod.outlook.com (10.168.230.156) by BN6PR03MB2689.namprd03.prod.outlook.com (10.173.144.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Mon, 22 Jan 2018 08:24:50 +0000 Received: from BN1AFFO11FD036.protection.gbl (2a01:111:f400:7c10::188) by BN6PR03CA0018.outlook.office365.com (2603:10b6:404:23::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.428.17 via Frontend Transport; Mon, 22 Jan 2018 08:24:50 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD036.mail.protection.outlook.com (10.58.52.240) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.428.12 via Frontend Transport; Mon, 22 Jan 2018 08:24:48 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id w0M7QR72021564; Mon, 22 Jan 2018 00:26:28 -0700 From: Anson Huang To: , , , , , , , , CC: , , , , , Subject: [PATCH 1/2] ARM: dts: imx7s: add temperature monitor support Date: Mon, 22 Jan 2018 15:25:48 +0800 Message-ID: <1516605949-14663-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131610830901319787;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(39860400002)(376002)(346002)(396003)(39380400002)(2980300002)(1110001)(1109001)(339900001)(189003)(199004)(97736004)(106466001)(68736007)(105606002)(5660300001)(50226002)(2906002)(305945005)(356003)(104016004)(48376002)(50466002)(36756003)(110136005)(51416003)(47776003)(336011)(6636002)(53936002)(6666003)(8676002)(81156014)(26005)(85426001)(4326008)(86362001)(54906003)(16586007)(498600001)(81166006)(316002)(8936002)(450100002)(2201001)(72206003)(77096007);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR03MB2689;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD036;1:fT4fd0Mt5pzbwjdbma0ylFK6A2Xe5xdxqtZoN31z4GrFkIR6oCDdMbaP7cEDARqM/x3Xmpk3jjr3lGQrqgyDqE/luT+kgyJIC8taBkHhRdVUdANnDPvHQeWT0jyKycBT MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: aa066f5a-13a3-4fa5-370a-08d561719aec X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(5600026)(4604075)(2017052603307);SRVR:BN6PR03MB2689; X-Microsoft-Exchange-Diagnostics: 1;BN6PR03MB2689;3:sWatar+eIye0WnGsaZyhblzcntiOidgiKzUmHtcf93FeulyKyP5IQnnUOQuJfbknaTmImkwzHtl6Rg80t9Na8bPoop7/WsV3HSDxg97+6kas2gKY+SS24N1k3tMoSLm0vzk+woJcia/Aq44cldUA+mdbSCvOPmXRteWb1GWeQ7qYgmEiluPcngybxo84nLlXasU7F3wUhc6I6ekv2NtJf9cGUBqgXlrR1xWBe81VUc+yJEpNJ+17QcwXXydwG3xA054gXtjK3+Az1mr1WE6WOQkXIDxXzMY+65qbmdUZFhdUoYkCCBBYPYqAkJcdz76SwvUiZHbafSlOt5EbXgH6SN/t0cBOY3TZDQsrgFlwFTE=;25:kQQA6aa6ifzuQwh4OW4RiqJ/hwm8Df6oENZww0ik5Mwm3hTXqtMdYIBusMJeCUDPJiJHKa0WnUQoLPsGTDPkQnMDJQwQaT6vMPVgaqQBWLJsMSkD8OQ5wuEhzMP0uEgVBApxtZfjOcaSpL3bauIqocD+0ypSQkUXzWHamBLzLU5EVwtx2+0eP0Mvxv1AG0cg2Yu55FGLhrHUtZbojECgRGuN7GEzyyIE2mzqkzu3FpLBptrEoHUivCuwBky98zNRbscRtb21sgSv/NIFFfQKlmDtS5Uft5xpGx7Vp2delUKEXmRFlV5rYUvArR1XzxPFn7JptljVClHWJjUoC6jw9Q== X-MS-TrafficTypeDiagnostic: BN6PR03MB2689: X-Microsoft-Exchange-Diagnostics: 1;BN6PR03MB2689;31:gMUDymuLrk2/Xp8uc1h1Y0WMGxT/mJR8epkO8fy5cdtRcpY8iObPRTn/dLih/RrHem0Wrugbiq0S3WCMbFIpyAcaA5D9jt+oqwiEzMiCAALJd0JDYymKueqIa5d6Pi0TGde9MjKzGWOaltqenuyD1+uGyIt+3SDzZ50NiXab9Pws83AiJhoRWA/g//3sXYcQN05Or1o2MNLDOYjo51gk4r9z0fEABw8xbvtrUEeS9KI=;4:O3AzPBFRbERlXa7BVX3O7FvOLx2yY5z7v+y/WbLSRYwXFFxXHas+wvOoYx9nfxG2X8sGkM1pYCyOgVM9bwwT0tKxSxBleQ5z8U/4pQkqOCewRH1g9kdW0YfCG3n1IkRXefeX5ndOiUeVE+orzFJqQxuc2XVZ0eoGx9/pM8QpZoaE8hwjYpr8+/kEsza8LN7NC/HlDyyrjGw//Aw9wNuPZlPmF1VVP/Ux0KzhmX6F907I9uceZnwzM9wyW1swObH9klHSnVJUmg6T4Wrtyiy4iXmIGdx/nOyK3KS0D7BB0SjLh4icI64WgpwJdntHAO+e X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6095135)(2401047)(5005006)(8121501046)(3231023)(2400081)(944501161)(10201501046)(3002001)(93006095)(93001095)(6055026)(6096035)(20161123559100)(20161123556025)(20161123565025)(20161123561025)(20161123563025)(201703131430075)(201703131433075)(201703131448075)(201703151042153)(201708071742011);SRVR:BN6PR03MB2689;BCL:0;PCL:0;RULEID:(100000803101)(100110400095)(400006);SRVR:BN6PR03MB2689; X-Forefront-PRVS: 0560A2214D X-Microso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HStJN0H2NNnDU3wVmJP5yGRTbMj1eWeslblPzPtu5A8Kpuy98SkQGpKDvwmw+fxf/MW6AMQbgdQp7kOxS0/zCryB+C4KTTEpJT07DOicGeOxlMDjf+lRCIglk4sUqs9fezvUR/r/HQJghG2AQXtSo/iLnfzvhCmkY6ch2h0Xhc3OTCvnG2n4TxB5WM8QEHvNgVqCbRjwiQ9vX85icQg2WaHnK SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jan 2018 08:24:48.6967 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: aa066f5a-13a3-4fa5-370a-08d561719aec X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR03MB2689 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) 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