Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754976AbcJIHPE (ORCPT ); Sun, 9 Oct 2016 03:15:04 -0400 Received: from mail-cys01nam02on0045.outbound.protection.outlook.com ([104.47.37.45]:22885 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754754AbcJIHPC (ORCPT ); Sun, 9 Oct 2016 03:15:02 -0400 X-Greylist: delayed 919 seconds by postgrey-1.27 at vger.kernel.org; Sun, 09 Oct 2016 03:15:01 EDT 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; From: Jia Hongtao To: , , , , CC: , , , , Subject: [PATCH V2 4/5] arm64:dt:ls1043a: Add TMU device tree support for LS1043A Date: Sun, 9 Oct 2016 14:47:05 +0800 Message-ID: <1475995626-14049-4-git-send-email-hongtao.jia@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1475995626-14049-1-git-send-email-hongtao.jia@nxp.com> References: <1475995626-14049-1-git-send-email-hongtao.jia@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131204699761863531;(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)(339900001)(199003)(189002)(356003)(7846002)(87936001)(305945005)(50226002)(81166006)(8676002)(2906002)(81156014)(4326007)(11100500001)(33646002)(86362001)(48376002)(8936002)(50466002)(5001770100001)(97736004)(189998001)(36756003)(47776003)(8666005)(76176999)(50986999)(68736007)(586003)(6666003)(104016004)(77096005)(19580405001)(2950100002)(5003940100001)(626004)(106466001)(85426001)(5660300001)(105606002)(7416002)(92566002)(19580395003)(229853001)(7059030)(2101003);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR0301MB2009;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD054;1:ZwEE9/wa6l5yNXIbMTqNLGVUeLKhjEiFVoyQ+1jwcJl+LXgT/i+OKYwUzyUw9NVboyA1jNL6Ub42YtbsyzVQVR1NQmZBJinLOcM8xO/PYwrDo71KqrSg+cbRj+P5EgZZZFwjx88ryDnItyn3maLhcgU88tpJEgEWNmA5srBW9kE79U5FAM3dk5J8aU1a+WhMy9hYaDWluCZVRJ67BYhck5ACIvX+eZdmB4BdsGHZzp63NPhIfq7uEm+0RQed2c+T50uA8AGufWvjl6gtkAMIq4bc5vi/4DTdhmU0FfQ56c3f3BeuSOdxshwMODOnGH00/BKpTTSTzq5q/xdWS4+ZUZl13CinKEgJ095X5/AUArsLhVFcSYWsR+VrZWSwC0ZyAIou5wxHsfegj2/ZYWxI0vke2U5v8ZSBWOzRulvvJ1Fs8P4KQChRIpjL10IHjEHK20wc3YGq2Ly/s5S9utGH2upwBAUhPoE7C1RludOhJ8kez3EipG5uGdpbn3k07nvhhZni/DJQ4klxNccq2ULnakKhBt4Y2d33YPtdzA0LXSWt75RnC/HioOs9lEWZGwS7UCmaLARs4eWSQZkPE908ifW2WNkcaa7qaabe/0Xlg358vsRbCPydDFDjgJLceVX2Oe9blN8pVqwlTNuOSUeTAM3iWELuvNoQw1sC5ClSIHRLcXPb0TpeRDT77ctdNku9Gj5tKd37OsM48gRxQAJHmmSfRaFmKuk/2tqNgFormMlMTwSe+8uCPgtv7I1X63gM6m6Ut7f5p2x2/xzqLbloQA== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 8150efd1-2e38-4312-7f14-08d3f011d48c X-Microsoft-Exchange-Diagnostics: 1;CY1PR0301MB2009;2:CZpMLsLC+nsn/TKAytp6tL06g2fg1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lFKUxpq5GT+zD9AreHehssqfBIYfevboo/cy X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(13018025)(13017025)(13023025)(13015025)(8121501046)(13024025)(5005006)(10201501046)(3002001)(6055026);SRVR:CY1PR0301MB2009;BCL:0;PCL:0;RULEID:(400006);SRVR:CY1PR0301MB2009; X-Forefront-PRVS: 00909363D5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR0301MB2009;23:UNCiPOChReIiI1q47LDrA62H8ZCw0P9c+kfcYHW?= =?us-ascii?Q?PNx/pu1oW2M0oFbK7dwI4WpIbP2qQOoaCSkS2YyiPsFzLyZob1xZUudmJAh9?= =?us-ascii?Q?QFZDXwMNmac5dd4YLHzqR9jY6gFYaz7RoOzVWVeiDiU61gqTc/KZeD3vBo8S?= =?us-ascii?Q?ERKoj5F8aBmRulo8CuCjI7Inptols+lW/pt2NPtFo/3tIP1GZLrHY+9jgHwJ?= =?us-ascii?Q?dagHH2kTU9ys++A1hz29XwH6yAT47BhV5fXdW9fFWB51C3bJRBRp2+naMj1I?= =?us-ascii?Q?FRHqywB8N7+i8AUeDi02nXUVke1AEGVBEIqA0HcD2QCH7+tYK7mdbNX9QX3X?= =?us-ascii?Q?idMFJctSxN3FFOcvvhfqivARVAjEqXruTebz/MXx5U2KxOV/vj0VqjN/iXgx?= =?us-ascii?Q?aE3FKhFWHRJEmbNImot9OHWVpKqT01LOAr53SPXY2AhgPiqZUimZ4qLlh8Oo?= =?us-ascii?Q?j5E7r1z0yMlstfjyoI9TA6BUhU2loLdL6J7pzt+hS6JDcPsHvO3CFaEJg0Hj?= =?us-ascii?Q?Y6seo8dAoJXtWceh5jDGpjr01v1al2T1eF1DF9dhAeO+O5r8ojdJV2oWKImP?= =?us-ascii?Q?/0EjbJhGDJzyY4S91xq0t7FCI5Rl2A2ipunQzE8RiRGt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SRrH3w6iT6I7Qa35XgfdL6NLu8LynPLVKKx0BKS8KwP8OO18PIr;5:Rxy1k0NVEHuH4G0Ayf9YkDAnMuPBtip2rQwLPR3l8IghajwawxTM/LMLadA9mVzUUBptkPWdYdD2+KVd5cbuljl1092DxCfMt3HBNyR+2h1bUiYT3I9883QO36PIOXpvK+Q/245WwN5IWiDr9wYNPEF/M03UTpxJhgms6keZZQghLJUUnPTFD0dEQewu7Oqw;24:FD/qMc4Pl3wV7AzjjxJLPVZ9OKvtUDhDAp1mLiH0xfWwwozLjFyk6P+uL2l8B0Zw14ZX3GouufcdN8Qyu560hT1m4mRLdAVWcAAZRWS+Djs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY1PR0301MB2009;7:xxQqFCSb5C0ENqdfySiFMDsal69gJ1cF+qR/1axNYZIr1hHSO+eAhZqxWAJnjnmbQAysF7+syYcSZhZZ5k+NSmiY65Sk1j5f4siH18HVo6ycYhG7wi+FIjz1AsAzuMLyiO4xmbEN0rAUaz3C/cgy6g3vAwsJMhCFCfKq264WhhEoH5ycJyyQtYUJn3IHhwYiZgcTbndp9m77mjm0bJrPRfpVDm/tlbdx7x4WHJbhQLdVOnpjZodfz4aZ089fUKND/aKcdXl3HN1F4kGvILWyfLfcwDeT8l4AN7nFEGYlxfDjX5FbujziTRXM05HJfM4Mc5Xqabq3NB9/e9PGwaZMaw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2016 06:59:35.8587 (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: CY1PR0301MB2009 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3990 Lines: 145 From: Hongtao Jia Also add nodes and properties for thermal management support. Signed-off-by: Jia Hongtao --- Changes for V2: * Rebase on latest linux-next tree (next-20161006). arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts | 2 +- arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts | 2 +- arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 78 +++++++++++++++++++++++ 3 files changed, 80 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts b/arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts index dd9e919..0989d63 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts @@ -45,7 +45,7 @@ */ /dts-v1/; -/include/ "fsl-ls1043a.dtsi" +#include "fsl-ls1043a.dtsi" / { model = "LS1043A QDS Board"; diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts index d2313e0..c37110b 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts @@ -45,7 +45,7 @@ */ /dts-v1/; -/include/ "fsl-ls1043a.dtsi" +#include "fsl-ls1043a.dtsi" / { model = "LS1043A RDB Board"; diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi index 220ac70..41e5dc1 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi @@ -44,6 +44,8 @@ * OTHER DEALINGS IN THE SOFTWARE. */ +#include + / { compatible = "fsl,ls1043a"; interrupt-parent = <&gic>; @@ -66,6 +68,7 @@ reg = <0x0>; clocks = <&clockgen 1 0>; next-level-cache = <&l2>; + #cooling-cells = <2>; }; cpu1: cpu@1 { @@ -254,6 +257,81 @@ big-endian; }; + 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>; + #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>; + }; + }; + }; + }; + dspi0: dspi@2100000 { compatible = "fsl,ls1043a-dspi", "fsl,ls1021a-v1.0-dspi"; #address-cells = <1>; -- 2.1.0.27.g96db324