Message ID | 1519459369-29083-1-git-send-email-Anson.Huang@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 B9F1D60209 for <patchwork-linux-arm@patchwork.kernel.org>; Sat, 24 Feb 2018 08:06:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A815C29B40 for <patchwork-linux-arm@patchwork.kernel.org>; Sat, 24 Feb 2018 08:06:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9CBCF29B61; Sat, 24 Feb 2018 08:06:34 +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 2172A29B40 for <patchwork-linux-arm@patchwork.kernel.org>; Sat, 24 Feb 2018 08:06:34 +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=m7OLRUV+IDms/m+nM/CgBGGU/EnNGZjGMfOVg9NNHmU=; b=Z1dzbis4vMoQ7l eb4HCpY0JhHWL+yaEUdm+btoBbMoHvbEAnR8YwGYiIrQSeIPwPm32XvQGyrDywUdNKAKKSH5z57FJ qsN2DwxVYzgVlerz+JiWvQzfZ5w1eA4zFsmSqKP65imFMmnUmisUJleeCqTslcQdYQzlB/AMbR6Dt ux2x8OzTzGoL9pCJwuqSSDkSQGNLAR5xLnfs28m5FCmiTFwER7EWC7fqJ+Qx+qyCvkzLozcCJ8j0x uPVXeVsXorx6E6c+3nMyxCzcWD6SweQF9DDTTaYeDuLrbZrBIld53x09ebP2itq0N6aed2U7ndL0u e67Uh9WWAxchEVlu1V/g==; 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 1epUqb-0001JN-SI; Sat, 24 Feb 2018 08:06:21 +0000 Received: from mail-dm3nam03on0051.outbound.protection.outlook.com ([104.47.41.51] helo=NAM03-DM3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1epUqV-0001I3-WA for linux-arm-kernel@lists.infradead.org; Sat, 24 Feb 2018 08:06:17 +0000 Received: from BN6PR03CA0057.namprd03.prod.outlook.com (10.173.137.19) by CY1PR0301MB0602.namprd03.prod.outlook.com (10.160.142.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.506.18; Sat, 24 Feb 2018 08:06:01 +0000 Received: from BN1BFFO11FD003.protection.gbl (2a01:111:f400:7c10::1:116) by BN6PR03CA0057.outlook.office365.com (2603:10b6:404:4c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.527.15 via Frontend Transport; Sat, 24 Feb 2018 08:06:01 +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 BN1BFFO11FD003.mail.protection.outlook.com (10.58.144.66) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.506.19 via Frontend Transport; Sat, 24 Feb 2018 08:06:00 +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 w1O85us1022349; Sat, 24 Feb 2018 01:05:56 -0700 From: Anson Huang <Anson.Huang@nxp.com> To: <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> Subject: [PATCH V4 1/2] ARM: dts: imx7s: add temperature monitor support Date: Sat, 24 Feb 2018 16:02:48 +0800 Message-ID: <1519459369-29083-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131639331611835627; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:CAL; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(7966004)(39860400002)(396003)(376002)(39380400002)(346002)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(106466001)(105606002)(50226002)(8936002)(26826003)(50466002)(8676002)(2906002)(4326008)(81166006)(81156014)(48376002)(53936002)(97736004)(72206003)(85426001)(104016004)(305945005)(5660300001)(508600001)(36756003)(47776003)(316002)(51416003)(54906003)(110136005)(16586007)(86362001)(6666003)(2201001)(77096007)(26005)(68736007)(336011)(356003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0602; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD003; 1:zOV/6FgKiceRbHgnJ7V7uOZGU+Km5Bjnyn4fXlHCcWf/MKzsYoNLnbhR2bfUOWnfKbh/ZAhKxzYKeJ/bbuymBLjk/+Ce1pLVIEwZMkoVJ6iZDWFJWhNLyyllZWpJxBN/ MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3b28743c-a420-43b7-ba29-08d57b5d71a3 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:CY1PR0301MB0602; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0602; 3:6L0a6AZhL8ClXykiaPoha/n7bIcy6waoVk7qwhEZLfpAwzEAbChOqWqamh3/zNyuQrH4GE6Zi/XsND+E7MH9lN/tlPSIqa0+BKohAuw0lYyo1CQ5uxMmVjbQaoTBvuBpGRaAfoM/nVPbyq3ewyWuJa0WgGz6QZ3usnWY19Ttq79iw7SU61Ue5cMZixuaVFA5phwZ0oatOGUBNGVsXhzd+TddvjCrHhTe+CdANJSPmChWw5lzPT7y7iwQui7rLjam2visAsiBF7lBlZIE6cjcMozkL0ftxuA5zlgrOgxr5kUNn9hOxTvSJzyuYH0s1bW2bkNFn3kp1FbbVtbvxAZwZGAM48wvDyDvWyr+syud7X8=; 25:TgcJQx+6qraIgo3QUAN4GXFL3RAv23CAEF/ujsd/gTpzSkh37sFQXsp4XleT1PuYiMUEwO+M37mm7nCwZkBP07VX5ya2AAjc6GcQvv1GmDM8I1Q7wp++rGQDmXMCk0cuzdubf2zc9Ss4Rzlt8aOJt/UlNAUGl9CbCITgpABL26f0LX9oEhoQIIuMz+p2RHfPUO3Co62CpOZTQS3NmgOHdcjAvb28VfcO3COkcHx1EzxZ05OHjOOs4kxL3zXJze7aDvZKYRiz5yj8klQ36ciwHb1H2To/Xz9qgFStj9oRgmaRkqUPPVCHpX5MwD/paDDMsAY20TRwJHvqEya1z2G6bw== X-MS-TrafficTypeDiagnostic: CY1PR0301MB0602: X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0602; 31:u0mlhE5gY41uzDDl3RwWTVb8z6I1OViy/e9L82dOdRL1vcNAMaqPmG/JWg2ttWaoApzOgCoC/fGU0BDdxiSBbpHZz9WJnBW+kaqj0Yj6eN8l7UNo4y1/DBrj0sjLGl5haVsUTQANDncrMReOb72KQ2s3U6LpSxpNtETHvQMFujOGUSQ36pBTpWdN+3liGVQAouXYd56ENYsYd9PdFWPDKMPS/8oJor7aASJZ5+l+oLE=; 4:/PqOlf6Ijk3V20G+mdeSqAHHu4bmte3r/mBraEzE6B3oTVk+NlmJBwuaJAOPJ2Mjl+JEbCXQZ/s3TC7WF9yAJRFNvB2CdbGB+etnXtZPamt3T1xdhAzOn8wi+94qjJPHCW69XSbJ9kdoujLrlkmOxGJ4BOAnm/XPw5X26CqUyHIlYjVhloskIhMjVlCKGhjGYYcaspU+nwaJfMqSqCobrXq6RUH0g8BAqgqeg0AgxyTzvRvb8KTJCzv8uvdKQfzbAphIQxkS43pUW7q7Us9He0nB375yqI7EwBStIgXW3HBHdX+nLTe7yui4271NQPE4 X-Microsoft-Antispam-PRVS: <CY1PR0301MB0602AC819677DD9E08E2BC2DF5C30@CY1PR0301MB0602.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(3002001)(3231217)(944501161)(52105095)(93006095)(93001095)(10201501046)(6055026)(6096035)(20161123556025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(20161123563025)(20161123561025)(20161123559100)(20161123565025)(201708071742011); SRVR:CY1PR0301MB0602; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB0602; X-Forefront-PRVS: 0593E261C4 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB0602; 23:i8uSqe0vQxmzeXBnx4R453Aoj6/lS9Fmxh85mgt?= =?us-ascii?Q?gCB8XYCSFhMABIsrOj+kRE9uo+jcp4tXt31eqaZGcHGkycp+Zqsx687DhSIx?= =?us-ascii?Q?y/xy41jtGvSkPK7TTxw30VZqMAa1BBoXZKzvIXaGig5OOO12EfR9+nBs69yQ?= =?us-ascii?Q?phxX7Wu2Z8bP2pFfhXCnv4MOgXuJC+2Sem+69w+ZLbvqXw1Kemd0FXKBQn6c?= =?us-ascii?Q?T0GWg0B6fHHUeHdntgN+/4UzxDXxEvK18iG0sNEMzuVXBryQTxkNQdUik3D/?= =?us-ascii?Q?bJatVcQEZvszgg0HtbiDDj+gYPYGgod4rcZzNxsffQVa+PfiNcVeAFLWIOX4?= =?us-ascii?Q?RPdDsUcM4C7vrU5rac4OcRAgbmV6/PTxWlUgoGNJfmZTua1H3TvVlne2DnMD?= =?us-ascii?Q?dUf9vwRh05tVUXoU4uHtKwEwlziAvKc+lCqKLuwEKbN/sCBdEL906yzkY29t?= =?us-ascii?Q?X9G1XiVf1wVRKizSxiXD489hg75Fkmd8qb5QYenKq7N66e/MbGWQmKSg0fK3?= =?us-ascii?Q?bevxoBhNOj+j2mlpVqS6IeZoa59zGOWSBeOmBC/Mx7+OQ2p/WyNQyzwUXq2X?= =?us-ascii?Q?txcqZVqAiRHhREydYPBPT9NFPhJ1cQaBTxdsG617IbTyKmUjPkzIT/ozyj0L?= =?us-ascii?Q?BG+1cHuhLwhs9bZ4FF9kWSWBNhWDe8VNRKOE2xEwBJQ3wY9xJRTCx/8pDlCm?= =?us-ascii?Q?oVxDdzrye0vyb/CDi/0xLE88zQ9gG7L5xtqFb9G5EUNiDp6ghJ4s7cWHa7Rz?= =?us-ascii?Q?QFud1w9SJcLbvDiSs84Y03OMYpuxzzxG0PC++PcksbL9smsflC45QzKEhOw7?= =?us-ascii?Q?pkV1EaGA7dAT/WDmuMj49MgFfG+reOunMw16mjl420l7KT5LbUtGw29fkj0E?= =?us-ascii?Q?cbVSP0lB4ypHD/tHFR/7q9ABuzxlUlyLBm4A3mRz+Oo2IuhAeYoAqgPe6Me+?= =?us-ascii?Q?0LrNxNht71HvBVNT4gaVEsF1NKAvqwE3COJKStcYF9YA1nYBDWZKgCGCXt4b?= =?us-ascii?Q?Qmfs9kMP7GATCkCI7ScmjoZ7QCTDbW8fl/3t4r/Di3HJme4euUtjmcIdMHoS?= =?us-ascii?Q?fzqNN7gwBGmeX19y2kaRnY20JEfygf5y23DEJhUv8OYNbBgkycw=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0602; 6:APiphBbyeVyWx3776IWhDgHNFsDbvROYFc1Wvsf8T9ZURId77nNgweRU1+ozxGcj63Luoax3d7q6UakKdGtYdI5Gse2Q60qaRTSsmKMhpo8wXa9IgcBgj4VUpFgkzUkAk5Sq/IB+K1L75V2aujmbVjZOAWNgaFJTJcKtq/yJQbn6wb847FVTJye4xbA7MF/PUfsOJTV876uXAgDxm3REKjq++NBqV1Y/lPQHLhlmzeWSxHWW7bfVpIvBBQJL2zAlbd6YSQfrQITeTl2iFPppqcgZkmtv0vPYyb07RMnZq+YNrziqXjdNiDeck8gIJVX48mGvvxSd7pd2Syx19i/zLJR/PMPxPaYymjwWmMHSDXU=; 5:YULr4kcFB+9HeNlXMZGyDaXsJrVpIZx6vZ8m6djrz0n95kno3kOcfbY62kBx5BOlVzyvysgRFSMhUwHiXjlQ+zqhVunbsTfONr/NxNau1WSIOQHNA07iIoiIf4qR2cau3K/O4HlFJxFSlnoEDCvmEEovHt4SxfgaFicOvXxww0c=; 24:OpGhkH5hBS2x79pAeM4In9H3GVDQcaY775LLzLuueliKKFjjrYM628UNoxuW3hFvyr2gxF1jOLR7yoziWyupL4to7nQy92FYR8tCkwcBt9I=; 7:G0jhDteAfFvJW8+nKZr7c57+/wuG/20iaj//5ZBSYgbpXfEfq1fpMNB4BhnmSG/Tu4bTBKhk5pu4P34YR6npDv7XAPRiY+4xiol6c20d/4vF0Xk4g27/qW3mZkiRauIn3k+4lVVgfKhqlsUpaQXLy1KIeRkDplRQ3iItQWTudOmjS6F5ToKkRX0vD3EcSqS5x3efQBxsNFIv57nl+NX1bZQ0HiXzYhg08yLtlYEnBF5TVH8XMeReSSYktptzlMzf SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Feb 2018 08:06:00.9963 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3b28743c-a420-43b7-ba29-08d57b5d71a3 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: CY1PR0301MB0602 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180224_000616_121409_4595E36B X-CRM114-Status: GOOD ( 11.80 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
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 = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>; + 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 {
Add i.MX7 temperature monitor support. Signed-off-by: Anson Huang <Anson.Huang@nxp.com> --- changes since V3: use "fsl,imx7d-tempmon" instead of "fsl,imx7-tempmon" as compatible string arch/arm/boot/dts/imx7s.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)