Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932568AbcLHE4a (ORCPT ); Wed, 7 Dec 2016 23:56:30 -0500 Received: from mail-by2nam03on0051.outbound.protection.outlook.com ([104.47.42.51]:43639 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752142AbcLHE42 (ORCPT ); Wed, 7 Dec 2016 23:56:28 -0500 X-Greylist: delayed 3575 seconds by postgrey-1.27 at vger.kernel.org; Wed, 07 Dec 2016 23:56:28 EST Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com;nxp.com; dkim=none (message not signed) header.d=none; X-IncomingTopHeaderMarker: OriginalChecksum:;UpperCasedChecksum:;SizeAsReceived:690;Count:8 From: Jia Hongtao To: , , , , CC: , , , Subject: [PATCH 1/2] arm64:dt:ls1046a: Add TMU device tree support for LS1046A Date: Thu, 8 Dec 2016 11:28:25 +0800 Message-ID: <1481167706-44234-1-git-send-email-hongtao.jia@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-IncomingHeaderCount: 8 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131256421100241256;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(7916002)(2980300002)(1110001)(1109001)(336004)(339900001)(189002)(199003)(7846002)(47776003)(2906002)(97736004)(104016004)(50986999)(39060400001)(5660300001)(4326007)(6636002)(77096006)(5003940100001)(626004)(105606002)(6666003)(85426001)(38730400001)(356003)(106466001)(8666005)(50226002)(86362001)(48376002)(50466002)(8936002)(92566002)(81156014)(2201001)(68736007)(305945005)(81166006)(189998001)(8676002)(33646002)(36756003)(5001770100001)(7059030);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR03MB2470;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD028;1:kyj1reIhI7OVAkGUU5u9M4k2Mp9Fb10UzrRtwLs2pnsbW6p+DnMZrPNwAmxJjLFUs7ZfJtIQS+o+lk7qAXggQXVXh1Qs/jmPyPvgsr4j22hn4bJyPVx2xfvi3MLHrwrvKRV09V7UoRsPakcdGaZ9gv1qmhIIKMZrTK2O+IFKQtTcE4gcvnsziBfD7x4dVoBvG0axDdCMbWeKp3TM6YWxc1iZE9nDSfZEESxSedY+LECBWIXVEE5fYQOGv3P29f0b5SappdvnpJh3hdAqC5a6AKmNe9v6AKSzpRxd2w6QtROPnpXJAIG3XAb3f18Q9smCrQdxFg1mazx6mYTZ071vW9gYxMESIu24AmsjgeYgLNTpksb2CVQ5hdk+7hLrkxYK2b+mDGpVQngXryp5gkc/iy8+Lolcmm/F2IRNiDiRcc7tWfgQhihIa8bEACzXacNzGYSm4Zpz6KQBKNpVqvb0YPB20jjxbhiPLVi18aGmY3BNlcgGIPBqeGGIPDNOl8VwzuSPKEQP93n21/kg8BmdsBZpnMaCjrazwkCRc5e8z1A1/B+5vCbAGRoSzHXIz0zV0D42RzD+yghRanheI00OWJG2VgAf04imD/8h4Kv3kVyfUKfJ8sMCyaoTP/AeEq/o8nFjudad/AqMx/xfpy1rEjMKfnHvFXg2VkCx3twX6RH5iM2n9s3UsATrZKGnMoG2jTucJu1XQVQAg7nGgP8dw0sN3pKO1FWK76gGWlPMgPzZhOZcqkgoqi3GStaSV76mdrGwuNLt6S2cil0ghtfiTw== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: b2933c28-27a2-400e-e007-08d41f1c249f X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:CY4PR03MB2470; X-Microsoft-Exchange-Diagnostics: 1;CY4PR03MB2470;3:E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yvw2z1+g01f0A4zeVjYaEdk40qxNat3p/l7sc6Ti8EiqXmBvfmiXH7QqryMbfDinmTbfEj4IjwRNXgJOZwN6Q== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6095060)(601004)(2401047)(13017025)(13015025)(13024025)(13018025)(13023025)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6096035)(20161123556025)(20161123561025)(20161123563025)(20161123565025)(20161123559025);SRVR:CY4PR03MB2470;BCL:0;PCL:0;RULEID:(400006);SRVR:CY4PR03MB2470; X-Microsoft-Exchange-Diagnostics: 1;CY4PR03MB2470;4:VLhIrGOG9kWVCTjXeq6Os2aEo+qjteNosuAikmQJDfRvMxnNWsWKd2K6gFHcpvaCacjevxkX2+RCWMKKGZD5Eny0L9FPr99Pou2q0FOBUYsllODDtDwH3aeJwXIR5pZfabtoC5re9iPEURY64RBKKalhOePmpTsZWWP6c7MaAEehlJSYJndGv8ySoyeXeCyo5ttIXKnp4PSYvx9u1jaDsl2KAd04ZQeLEO7lRUemK3LX0Ufoe8aqGRJNW2m36MzV/PKEFwXZHrdYq+BBm1bEU6Emen0XOuxd/gd0u9wqvFi06b4/q4zAmXfvmnsrVJDXyejlvvOxXgHko09fjHww8qCiwRqoItkk6p8h8iNULjsl4+ekA/a+6CfP6hj9FoddpE15/fJkfQfkCAT5AxdLOnLyG5BzSXsjXBWKwrad3EUjcnQ6WMGhrCi7xC7gSdp4pW0OsJHc7xeQiSaN2i9XuB25HUzVXVtkGjcESeNRVRwLCAhgKl6pXl8zvbG7/qJ/ZTUofDLLA0as9fZx3ePTkE8AeBJkvKMfJwzh9hcIKRYziovynI2Q40rLxGy7tO/KDCde0NHWA/mDmjChQge5/NfSkXK/Zeguot/pR5d2lyQvmXxHiBfHDw41CU46EvBDbT0G2X0wr1QhkL9dNjcWal5K4gTuiknZ60pE6RJMD6wIwSSwGk9UcCgmp/IqClD18AnyM+GhewNiUl7PfdNzwwM7ryKSXyBnCI3clACzsqAr8HT5uQkGxWhDdx38oLnc X-Forefront-PRVS: 0150F3F97D X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY4PR03MB2470;23:rZEbI40VPyFGwUVSCkCkW/ipAd79Qwbn0LRzT/UAx?= =?us-ascii?Q?H6k6XTwwLdyfe7oaCi7yhIMzb6CKc78T3uvnFE3o+4gOfKqhn3vifKDvIUvL?= =?us-ascii?Q?XfV3Xa1PUthq8XfVi75F2KX4eqPV51olWEJ88kUJ0CIfS7PBwhJRM9DH9L99?= =?us-ascii?Q?djiE6JFoU5vHRjgilYhA8rRJdxZ4L62ZLHnJVPkxhZ/si6vsMZKuh+x9uHQy?= =?us-ascii?Q?KRzFscNHLznWyo0KX/XAduKWOIf4KnE4okIZoUBvgNMk/UlB18IFoVwAiRaX?= =?us-ascii?Q?XXXPejqabGa96KYGyuXDZA7DPU5NsYQIouJVgFsbVS1ToJXUR7KhE/dvIxYw?= =?us-ascii?Q?oR31bQutd+YWbGjB9VObt+mYhchn1XQfQqBXKUh1xgZGQR0iE7hkHL5WaF+f?= =?us-ascii?Q?hrqR0kd5gCo5sf2leUiKG+GaW0Kyux3w+ATZbTQgj6R6G2jK1poU6kEbb0tM?= =?us-ascii?Q?QUTZWjKNIHavZ2+O5kr+XnqvV1o+BcKIA23GpSqHljgp5OWd39z7t8KXQDcf?= =?us-ascii?Q?gSSlE51jAbqrrmP2X7ZiKmplS05cquwrelkfcIoWqCpomy8yfO/mSRw0mGjq?= =?us-ascii?Q?jwbSZKHbi98TUyJar5tA3ib0QQnxjgVT7fzaAApQmwcXmhyqyY8qDfN5dVRl?= =?us-ascii?Q?V8ndcya5BCL6tXvl2CXCh2GI22AEVOrISRedBOJZ2LcVV+z6XH4yQ9bZiqHF?= =?us-ascii?Q?3BJ0ptSskgjUqNYhbRQCMlxWZorvTTENUa+ksde3XBvkgSS7emkxTiUCa8Y9?= =?us-ascii?Q?Aq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MpjGWpCS7Tovza8apQxhk1U8TQZ/Ke;24:RbMGDonw3425oSmAcitpUHdOoivdB4Pr8t0npNyffTGEahGGx21mMXcO3aL0sUjSsHhlFrel17f6vULiMkxlhTf0kIv4QWF93FzPhwvlSA0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY4PR03MB2470;7:HJuthe8QyKeVPU1FC+h5KvDlIE1kmJO85wpWcqEyX+zkeoAAMjcr9H9X7nZbyr2Qe/oPihsVH2J69giyT+K1CydLYCB6UTtviN0cMNy5nk/ZI8UkjIXUMcKawaW5tozYdooVouBp0q1zavA/PyQtNvVxEDyZmJ/w2/IWfL7K6inkwEdcZw21zBW4e8WutRcQRw7AepO7qEnLxLyC9jYp5B13Eh+AQQD3eTjqyC1O+/qAvIZ7oT+sfiWGSLTMoD+HkNfaWLT3uHihlwghz2BRw0TDU7H6H5hlz6EEzHlRgzzPyqo4kwoVSkbrVNeZB/kyH8M/ys7C5YZx1wnj1xEnjWEoocDv2JkvOBYCeZOiXjZpuk3Wa5nf38urCjP1MhJ5AAyrPQYeB4KzGqSbNV7xuS1+Kzsq5PSApWUqUzWrLA+kvB1SGzWbY8fi6eYiNa4sR+fu6u0zGwcgDRZ7Vxi0+Q==;23:hu5k2o++C6tBMmXZkfdZX9OqmMRjxlnZIV+auOUbNYC/HGf0yr2eSRZarxd4VN+XmsVJZ0t6C0dwRTbRaaBX2hHiorcTHWQsx7KwHLdS7vDpfmuy4mBa6Q/IDyOtrsRo X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Dec 2016 03:41:49.8213 (UTC) 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: CY4PR03MB2470 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2974 Lines: 113 Also add nodes and properties for thermal management support. Signed-off-by: Jia Hongtao --- arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 79 ++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi index 38806ca..40604e9 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi @@ -45,6 +45,8 @@ */ #include +#include + / { compatible = "fsl,ls1046a"; @@ -67,6 +69,7 @@ clocks = <&clockgen 1 0>; next-level-cache = <&l2>; cpu-idle-states = <&CPU_PH20>; + #cooling-cells = <2>; }; cpu1: cpu@1 { @@ -279,6 +282,82 @@ clocks = <&sysclk>; }; + tmu: tmu@1f00000 { + compatible = "fsl,qoriq-tmu"; + reg = <0x0 0x1f00000 0x0 0x10000>; + interrupts = <0 33 0x4>; + fsl,tmu-range = <0xb0000 0x9002a 0x6004c 0x30062>; + fsl,tmu-calibration = <0x00000000 0x00000026 + 0x00000001 0x0000002d + 0x00000002 0x00000032 + 0x00000003 0x00000039 + 0x00000004 0x0000003f + 0x00000005 0x00000046 + 0x00000006 0x0000004d + 0x00000007 0x00000054 + 0x00000008 0x0000005a + 0x00000009 0x00000061 + 0x0000000a 0x0000006a + 0x0000000b 0x00000071 + + 0x00010000 0x00000025 + 0x00010001 0x0000002c + 0x00010002 0x00000035 + 0x00010003 0x0000003d + 0x00010004 0x00000045 + 0x00010005 0x0000004e + 0x00010006 0x00000057 + 0x00010007 0x00000061 + 0x00010008 0x0000006b + 0x00010009 0x00000076 + + 0x00020000 0x00000029 + 0x00020001 0x00000033 + 0x00020002 0x0000003d + 0x00020003 0x00000049 + 0x00020004 0x00000056 + 0x00020005 0x00000061 + 0x00020006 0x0000006d + + 0x00030000 0x00000021 + 0x00030001 0x0000002a + 0x00030002 0x0000003c + 0x00030003 0x0000004e>; + big-endian; + #thermal-sensor-cells = <1>; + }; + + thermal-zones { + cpu_thermal: cpu-thermal { + polling-delay-passive = <1000>; + polling-delay = <5000>; + + thermal-sensors = <&tmu 3>; + + trips { + cpu_alert: cpu-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + cpu_crit: cpu-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&cpu_alert>; + cooling-device = + <&cpu0 THERMAL_NO_LIMIT + THERMAL_NO_LIMIT>; + }; + }; + }; + }; + dspi: dspi@2100000 { compatible = "fsl,ls1021a-v1.0-dspi"; #address-cells = <1>; -- 2.1.0.27.g96db324