Message ID | 1519955970-11365-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 93B7760291 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 2 Mar 2018 02:02:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 80A2128696 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 2 Mar 2018 02:02:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 75073286B4; Fri, 2 Mar 2018 02:02:43 +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 DEECB28696 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 2 Mar 2018 02:02:42 +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=OejJ+9Gj4WVAMERLOMY7XVZK1u9uACS3JnrmYrCyz8g=; b=N/h+ZrFsE196Nc 2v5ZzWWvFryCiOgTc91Emp6ldW6aURYrz6ZriWh5TsypUwtqGmGUqha1okUDwcykw2ySsYXwwE8sn MU86TlX6BNBn86jxa0T5t/MGIYJssjMU5Q/I+r0X+gh1tsximQ8MeLR2XGYzVyxxhLFNUCkRTL139 FmULZcL8m5Ezusdh+dQs57tB4fzBR5Q0vzIrclmn1V/AQ2NF0nC9GatqG3XzikbSGmX8L4JgiSBDI RX4u8d82A9j6U+KzQra9UVqe1DrSvKZEJ1EibRPVOyC4N7wuuYK3q5EEDELyfphILgkOCzZW2L3m5 1GzPIs6nlsqIF7F4Z2IQ==; 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 1era1q-00062k-3Z; Fri, 02 Mar 2018 02:02:34 +0000 Received: from mail-sn1nam01on0078.outbound.protection.outlook.com ([104.47.32.78] helo=NAM01-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1era1l-0005zr-PY for linux-arm-kernel@lists.infradead.org; Fri, 02 Mar 2018 02:02:31 +0000 Received: from BN6PR03CA0019.namprd03.prod.outlook.com (2603:10b6:404:23::29) by BLUPR03MB472.namprd03.prod.outlook.com (2a01:111:e400:885::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.527.15; Fri, 2 Mar 2018 02:02:15 +0000 Received: from BY2FFO11OLC012.protection.gbl (2a01:111:f400:7c0c::162) by BN6PR03CA0019.outlook.office365.com (2603:10b6:404:23::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.548.13 via Frontend Transport; Fri, 2 Mar 2018 02:02:15 +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 BY2FFO11OLC012.mail.protection.outlook.com (10.1.15.23) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.506.19 via Frontend Transport; Fri, 2 Mar 2018 02:02:14 +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 w222294f008053; Thu, 1 Mar 2018 19:02:09 -0700 From: Anson Huang <Anson.Huang@nxp.com> To: <leonard.crestez@nxp.com>, <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 V6 1/2] ARM: dts: imx7s: add temperature monitor support Date: Fri, 2 Mar 2018 09:59:29 +0800 Message-ID: <1519955970-11365-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131644297352601132; (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)(39860400002)(39380400002)(346002)(376002)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(5660300001)(72206003)(4326008)(498600001)(104016004)(26826003)(105606002)(48376002)(68736007)(50466002)(2906002)(106466001)(356003)(16586007)(6666003)(305945005)(50226002)(2201001)(77096007)(26005)(85426001)(36756003)(54906003)(316002)(97736004)(51416003)(53936002)(336012)(8676002)(86362001)(8936002)(110136005)(47776003)(81156014)(81166006); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB472; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC012; 1:K3MMudwESIGUwhna5hnhVwoiTPr07vBmz58rVp1IuVjCrBs0MJLCAdTSoYu1WxTcKfAzo7tg+FuGMx6i8yqK+cCFQSTAE2sA4QBM12w8roXZqlX8dMO8Y0LBXYbWTXJb MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4a0398f1-31b3-4d39-f1de-08d57fe19ec9 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:BLUPR03MB472; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB472; 3:QWfVCdwIYuAqHQWArq42QlLudIKD9DffUnDvX9oOc+bRBCVSXFuLslu7HWCnMcY3SR29Y0pGS8UPYALwmlGpDlQ+zFhsEAg7zAy4nBAmTi3e/smaD9Ux+RSf819Ub/prygoPQbN6TJe4ZU9+2EcUg8Z3mQ94cZ6s4T2EjZ6nAqWx/DggjL4AYWP1sYGD36glXmtsJ4Gwhu+xsjqAxiFqiz4TGfxxCp3eUA2+6srFVvYrVWcRLwP5DovY6yNmtORGUrihKe6tFEakBMuojFKWnJn3OAzfCRAO0U0iKZhGDDnfhTqiI9PJcz0wmK60Cc+PpVp6QPeLfHPhiCUqCW9pNX/Np7/C2pLPJJPPfh4tM+E=; 25:hV83RAEgCL0brM/kY1RJaybet1K2zEBvVW3I7BFINRSBz0GF/kwC9NoIHGlJNxo+ezWrb0Gm6OLuaztlFISHyds7YZbQrSJsm8gm71xnC5bdWu9zSsm6TKeL60Yya/lE1jRDb9xF7oApnCTnoXtYDDo55ZaGXVmrfRYNQ5r3HKWr6OtJTc44dxq/ihEcaiKC/d5ItADtfguXonC4wn4pyNizjjwwBpTGlDQpLhGEh5REdwCFYSIUSr29pG8yA8LkhxaQYtUsScniARwxQJNZFvBNEY0x9sfz8bZstNf72aNTK0705n+vOhKBVgFm/yLY3sbNbW1tw6bow/3O6jMa7g== X-MS-TrafficTypeDiagnostic: BLUPR03MB472: X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB472; 31:N3etcwV/NNIPkbfMb8ND8eVlMNnyODZL3j//QpAyL8qJGXuBAO6cdOT2+lo2U1b4KuZxkh7SOlutdkeuGeg3dTBaYFYWQIaXzQACtNp1Vtqs8oEme1DtlZQ5OBiQppDyRBhFbNC6KQS3tPj8sfhwqxNK6ippgGsnrbSq2vq3pBEiCV9FOKDpHAQ/aU8T43NWdfShTF1jDObuh3URW+Ns41O1pJw/DxasKKMA+hxBqbI=; 4:vIQaO3RrQZsNIuSyY4v6g7M52dIKcRnGbtvUxxbJ1F0tUjlGCDiGowMRWYouMsAKtAaHdugXyUpHw0XZXa9eGjgY/ggVjb9PQNVxNC23VQs5wVNcjOGvlJdSY/ULJNvXhT9ZUmB4l0ohIPzYnBO0rsB3UrSFgVcvIlh6xmNHh2gSvKG5OevbEQXUQWVW01ENXwqOsPWZbJXNkhROgXz3RVEj57jWMYHiAqfBsMNlWKePdwL6BjUwQxO6u6ydSAMc4EwGVlrQeN3Od3wmMqplAhECnyRuZeeFcSojZD9qlBJez+q6m7zfSD9JRx5BITIF X-Microsoft-Antispam-PRVS: <BLUPR03MB4725BA94ECF726540002504F5C50@BLUPR03MB472.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231220)(944501224)(52105095)(93006095)(93001095)(6055026)(6096035)(20161123565025)(201703131430075)(201703131448075)(201703131433075)(201703151042153)(20161123556025)(20161123559100)(20161123563025)(20161123561025)(201708071742011); SRVR:BLUPR03MB472; BCL:0; PCL:0; RULEID:(400006); SRVR:BLUPR03MB472; X-Forefront-PRVS: 05991796DF X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB472; 23:iNRpDVXbmSIktt+LBKzE2E5D2UeyKVq82deA4d8r8y?= =?us-ascii?Q?hN3LK+4l+VEUOdxIIEPicgFq57cOKieimw4MquofxD+h0IGGN4/iRmGYKI31?= =?us-ascii?Q?/pdCKOwxDKjZlPVtp0SEr31ex9L+HdyIrObu2/OXELThR75hcVmH3Xj6fpsl?= =?us-ascii?Q?hkW7a44Ve7AHZeTKYbr2WXtn9s0q9BLrNYCNQomZLo9ADzXYDhdWrIhsy3iK?= =?us-ascii?Q?7EC3/RnnglHgYGGL1oy1LSO5Jpju+8GwjCeisk+Zm5tR9NJCIWCviCxOu9zi?= =?us-ascii?Q?J5YbufBbzr1GMR3vPgE6g+gMtYvkdETDBp1+2wGJGP7cwE2JhmdRI4X59O/I?= =?us-ascii?Q?fkus6lZW5FtOzs5u7g5hOeKlppI1rsuDDMVyohxPNt8u1zekxRtboPguZctz?= =?us-ascii?Q?JHQAMADRnJZvBEWt3j70wAyMx7XwaiPLtH2b933ksDo7a7z/hPiV2qxUomMH?= =?us-ascii?Q?0yg4oFQydjt0zNY7G613v6AUQHE8HoeGnbcIxIWWHp9uRaMZQJaOAm3q97bI?= =?us-ascii?Q?P9atlN1YVUbCwJ97bNyUy5dCZK5fSpG3uuGxtGsQC/Gf/uDrePYkDNhkrXvK?= =?us-ascii?Q?iM2OuEV3YkwHOEHkKW9rDaEqkTa88uKJ0obfJ+7TcMmdZDqZN+BpnMLSR/Ks?= =?us-ascii?Q?vJ3F9OhfWFoAUyDZek9v6mSk+hUS1re4H6c5101oSHBL+yVitgdxvETP8Kxe?= =?us-ascii?Q?4zoCLm2PsX1NMgnRPbeOxhiuEWt4Hwh/OaFIeJcZDl7KMZCQNBXNeVDN5H3C?= =?us-ascii?Q?aEc+hMmffVwTFY+X2cXkCya6Lj2c3/z+DZYT2e8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LX6lurESTawaEjK1bWGo0TnlxeaZO18ffl1zJg4MMkEHEgQ12lNjX7F2gOBd4L34ZNgbPOy1oCYbDNPs9dejnxpkU9lslzMjWRtUQkyS/GT5owplPSpHX5kX7tcZt+31O7j4IFG9ddNMBeNHzheqoqcr5o9IfXrEF7Yq1U1PmsJKdRwa+YtmEB1Mkdeib4++WeOMjAcGh+gV3jL2aQ0H8WkzUA+GRD3BMZSdE8SmIRRzw SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Mar 2018 02:02:14.9481 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4a0398f1-31b3-4d39-f1de-08d57fe19ec9 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: BLUPR03MB472 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180301_180229_885770_DB636663 X-CRM114-Status: GOOD ( 13.77 ) 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 |
On Fri, Mar 02, 2018 at 09:59:29AM +0800, Anson Huang wrote: > Add i.MX7 temperature monitor support. > > Signed-off-by: Anson Huang <Anson.Huang@nxp.com> > Acked-by: Dong Aisheng <aisheng.dong@nxp.com> > Acked-by: Shawn Guo <shawnguo@kernel.org> > Reviewed-by: Rob Herring <robh@kernel.org> Applied this dts patch, thanks.
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 {