From patchwork Wed Feb 28 23:09:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10250071 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 8A74560362 for ; Wed, 28 Feb 2018 23:12:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F55028996 for ; Wed, 28 Feb 2018 23:12:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 742D7289B2; Wed, 28 Feb 2018 23:12:50 +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=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B9E7328996 for ; Wed, 28 Feb 2018 23:12:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Wp3Yzi9wsScoEbBBWHPhHci+QQb1gmWiG7Iviy98WjY=; b=pdmFFO7g6N+Yw+ 2gTLiyU8mCTJ2V0KTEP55HCIcMlFO4X4SD5gelM6AE+G0ovO9etwRy82fKVo4GehCTz7SwqOdlJ7k IEbxRIX4cGbt5NVC7o5YmMM8/phSGAgB3c/b807NVIJF47ois2e+TJYj9QCYSF2Va+BuIGlMVKUB+ UPucRxn0lMCytr3aTGFtV8SCDAmCR71O2ojqCjw4+6GNGKvFZhCs+IgbPTj9mBuj5HmyIR0OHVhFk 7gTZmoiU3GLjiecKRH2t0Cbv1lmVBs0sk+tNVZnUd7AT8QtfCxcID9++i/iJNajTrOS8EcL2bxPQ+ tcWQnBaf/2p1iac4SWhg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1erAtu-0003Ck-GZ; Wed, 28 Feb 2018 23:12:42 +0000 Received: from mail-co1nam03on0078.outbound.protection.outlook.com ([104.47.40.78] helo=NAM03-CO1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1erAtp-00036n-TK for linux-arm-kernel@lists.infradead.org; Wed, 28 Feb 2018 23:12:39 +0000 Received: from BYAPR03CA0014.namprd03.prod.outlook.com (52.135.212.27) by BY2PR0301MB0728.namprd03.prod.outlook.com (10.160.63.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.527.15; Wed, 28 Feb 2018 23:12:24 +0000 Received: from BN1AFFO11FD029.protection.gbl (2a01:111:f400:7c10::132) by BYAPR03CA0014.outlook.office365.com (2603:10b6:a02:a8::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.548.13 via Frontend Transport; Wed, 28 Feb 2018 23:12:24 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.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 BN1AFFO11FD029.mail.protection.outlook.com (10.58.52.184) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.506.19 via Frontend Transport; Wed, 28 Feb 2018 23:12:23 +0000 Received: from anson-OptiPlex-790.ap.freescale.net (anson-OptiPlex-790.ap.freescale.net [10.192.242.177]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id w1SNCImZ014626; Wed, 28 Feb 2018 16:12:18 -0700 From: Anson Huang To: , , , , , , , , Subject: [PATCH V5 1/2] ARM: dts: imx7s: add temperature monitor support Date: Thu, 1 Mar 2018 07:09:39 +0800 Message-ID: <1519859380-15878-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131643331433382039; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:CAL; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(396003)(346002)(376002)(39860400002)(39380400002)(2980300002)(1110001)(1109001)(339900001)(189003)(199004)(106466001)(81156014)(104016004)(2906002)(8676002)(47776003)(50466002)(8936002)(305945005)(68736007)(356003)(48376002)(81166006)(26826003)(50226002)(77096007)(53936002)(498600001)(336011)(97736004)(36756003)(105606002)(16586007)(4326008)(110136005)(51416003)(316002)(52396003)(54906003)(72206003)(5660300001)(26005)(86362001)(85426001)(6666003)(2201001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB0728; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD029; 1:xFu9LyH7wiSjPm66FAbsucL9YGKMAWENIGJM6uWXPLfzkLqjG9JhwrgpkhDPGdmLOMYWvEjSj/zPS3vcxiWjaMY0azwWDVqwinPDiFLfup2m3dTvt2alqCi1yiYlpNqh MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e1349d29-0438-43a4-5f37-08d57f00b997 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:BY2PR0301MB0728; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0728; 3:ST5YUaVBq+lfPa30z/s9abtJ9/ixksHYVUgc9E5nP9ikaT9rM8f+2kQLHV3IXkS228UiBpi4nobOlgurvQ4VJcDfS33owXR8WgA3W1s/t8p3QArzYB+NTYN0vaqttSV4Z9m5O1xV6j9pk89lO/VePzqLmUu0RWOI9MyFyCpyO0vSS8L4hiLUBFEc/PPx3ql14nyAqUFUmLH+nb+Sog3lNzogVDqFMZFNK326IbbGVNjL2kpgwd8Asfrcv9vKFcXQonIKOlH0kCd4C8vy0hhCy/cxiQMIC98MdKZvSfMjI/DF1CmZxlOPo7IrcR3Dg0a3wwkEK3Xujw+UfZqUAYkMpnlshA9h0YDUT9G6Xpt2ag8=; 25:gDAC+FUGJ6532IApluuQ3JgkRJYfhvCFiIv6baOQOkPQte5WOzedjXQSoDuyE8KLPbI7KC1ZefZ8xr0+oVd7AIf/Yk4LddDl3ZeEBGs5oL1o1wjEf0TD/1WbbWNW32KuoS8qNW2plbhYR6brKYTmOnfmBwRxbofLYoMq9nk1heWrvJZp2XRSEJ0vwQLwCgTuI/9QMouN7CzcowL90Jcer80LoUFFA7sHnOfXEVtV+aPseRynv44WXDJvKnOGSCHj8J7gzxdyRvY8zpJKpdjSU6SJ5RMh84aeEFQt9+rL52Q8cH915efbyVvTuBvJJNcrlCNbGZBhc8zdGRLOsEeRQXistPw9YKof24t86j7d6A8= X-MS-TrafficTypeDiagnostic: BY2PR0301MB0728: X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0728; 31:9tjD40dmr+qP74TA2TjOcj4g/XxIcLt/TOVyxt/YewliR0FTesd44uM+ijnXx79ukShEQfh6HbLVWwMU7hVY4wCZ7vpX49jiJQvYhQJaRc+GpCoojLqGjDrsmCg/RqiYPelHYe6mAexN5St7EWzyxY/ZufYZ/+8PdXfaxxb88XuBvBvOpNOdghw+2cjShw/lgzoU2jk/OKiqUbNw1SXWofYRmAjliQHonxeP4t4E1ic=; 4:kf69Xn54i0A7+/Wu912JK6ITP3nUbn1dqdzxrkEWUqa3Qfp7U/Nw+YasgHreSYgq3EZXvclJHh/2fkXZXHqOhgYjL+RsrLwIQIYAnaI8cQGc/cdoBQibdHzvve+RgzVBIaDvg8NWr9oXyFU4AhJU14W4UD/Soxy+kMEpkwomkcfVV+SNT+yZAvvFq70ugfSsY+XOokmPhwIMwX5thBiVK1nQ6LjSgamyhaRi858bTg8C5WC3RWz/Ww/AlnPHv0/KtDFjflcmxcuqSw/TXKpw5eLRxGqA0JLvD6uzcG9qd0G3FYUs/Rv70NJnbJ2MhFfA X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(3231220)(944501161)(52105095)(6055026)(6096035)(20161123561025)(20161123563025)(201703131430075)(201703131448075)(201703131433075)(201703151042153)(20161123565025)(20161123559100)(20161123556025)(201708071742011); SRVR:BY2PR0301MB0728; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR0301MB0728; X-Forefront-PRVS: 0597911EE1 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB0728; 23:Tf19sTGXE1mXGo1E4CU5FVLmKann0bMFbF1XMtI?= =?us-ascii?Q?IzeElrHGnqkzz95knFCVoVORWNbxWsItSZxPKJ10BiNbgJkCdc/FGkIZgQo3?= =?us-ascii?Q?LQDFkeO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3VZgqEnM9KcNq8rlqpeengPg79JPebXZcrRgtzFjkJzRe SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2018 23:12:23.1822 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e1349d29-0438-43a4-5f37-08d57f00b997 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: BY2PR0301MB0728 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180228_151237_985605_8FD2EF9F X-CRM114-Status: GOOD ( 13.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Linux-imx@nxp.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add i.MX7 temperature monitor support. Signed-off-by: Anson Huang Acked-by: Dong Aisheng Acked-by: Shawn Guo --- No changes since V4. arch/arm/boot/dts/imx7s.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi index 9aa2bb9..6a5c1bf 100644 --- a/arch/arm/boot/dts/imx7s.dtsi +++ b/arch/arm/boot/dts/imx7s.dtsi @@ -511,9 +511,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,imx7d-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 {