Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932284AbcJIIbW (ORCPT ); Sun, 9 Oct 2016 04:31:22 -0400 Received: from mail-sn1nam01on0073.outbound.protection.outlook.com ([104.47.32.73]:15819 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754478AbcJIIbT (ORCPT ); Sun, 9 Oct 2016 04:31:19 -0400 X-Greylist: delayed 4628 seconds by postgrey-1.27 at vger.kernel.org; Sun, 09 Oct 2016 04:31:18 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 3/5] arm:dt:ls1021a: Add TMU device tree support for LS1021A Date: Sun, 9 Oct 2016 14:47:04 +0800 Message-ID: <1475995626-14049-3-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: 131204699728071987;(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)(1109001)(1110001)(339900001)(199003)(189002)(5003940100001)(7416002)(85426001)(2906002)(48376002)(77096005)(106466001)(105606002)(104016004)(5660300001)(229853001)(356003)(2950100002)(8666005)(50226002)(87936001)(7846002)(68736007)(92566002)(4326007)(50466002)(86362001)(8936002)(305945005)(19580405001)(19580395003)(6666003)(8676002)(50986999)(76176999)(81156014)(189998001)(81166006)(5001770100001)(97736004)(586003)(626004)(11100500001)(36756003)(47776003)(33646002)(7059030)(2101003);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR03MB2440;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD053;1:2sLf3pKpMlqLvRsgoyR4r1gga2TurwABmIZJiDnejIYML3nsXCagLOGmpIckhpfI2+8czSfDGoMWC9S6qIhvcfV3xbXKGl5O3oIGSDQcLQyQjKrV01kF0TVPmslz1vXidwuGuvyJNOGV5tx0e78VVO4+0GVShJdPuMC+9T3WV+bGSrGloZBJSZlZpVOJpHEycD1FODpbgrWa4iL20z/fO+4ngn21nfxljJK/5yV15xAGEEPGXhshAdLmckSZjE5XqGh0g19p0FjI5hbjTZidXXAOekaQggezHLzmvX5PS7SHBciLSw9XAFZxiYQj/18ufQDZCNWNMA4LU6nOeQ4NvJlJaDZ82blGkyIlcY4rMRwu2AXM9p8cSr+xBaGQTGC22WqglpXq/hwhu9UQEAGnY9K8rMfMaR4r43P9SGtI+VTbbd0ngZ4iuJ8+CNZdtSlc0vyUEfjkqX3nZLLYMibyAzXNBqruiCT+ZKwsDwhDP+a7zlyWSGWAZzt4dmplDRh7Sz95/9pZIp+e7gv7O7DMoL9osmx1DV5peB0pRhSO/ldL1zE4acSCLK2KipNZ1qOBj2KK1gxYcy1O2D+VXhp6R4351xybuiclQ7DKfzuGej3xnSDb2qnIgW3t5NwVvPpUQjgD3RzcgSMVpRGaRdURrUyrpePXFWjR1XdMzspd3vISk0B8AN6EHuDJOGKqSoDVR3h9GrjccoPYGpvMZwFrI91f/yP7H69lJF7xZ/+FWBCFrE0KWXJUHdchw8vH4gZVjZV/SdlJSpFsVY46lhthFQ== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 72fa41ad-5d7b-40ff-e0dc-08d3f011d288 X-Microsoft-Exchange-Diagnostics: 1;CY4PR03MB2440;2:jro8ZSgqrqtbpGorTLpU/vkp+uX8r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PoiHm6Gaz1VcyqmBlYWqdPkP4/cEdJgtCT+r4AtJN03Uk9/C9hRd22ZQJbbaabtCOe4B+EIyZkBBopJg1SqzIrC+AUkjL8mCw9ku3TY3Pi8p2XZKNtne0s+Hd5sKuoFrhgQtqu3Azns85HqW9Q7NOS09xivno8YTbmtjTWLdNDbZ2AyNdYfUAACM0wCYyoqw==;4:RF4Uhny8BL+9vV6x2s381pFgYDd8rJdGVCO6t0cE5g3Im62yE/otSirgE/h58rHBqBgR9QvDiPc/BRNAnekZqDocBxrbDRviyJhhkaRbZrUEQmPKQ1T4LQh3lbRX8CrgpWAoWj9+hNQqsRsHTruSYUIL6ReelwbpZK09Kbj/PU8rxGFiQOdIbtMzeCfkwPo2iY66lhqFwkKps3UWVQREGjn5j6AdkGSop64klwFF/IitJxE0E+NTm6VRbCboDeDEsGvYGeO9cHjubRU7ZnGW+IY093lcv9A6J+UhA4rLO043JMys6JmL6/qCRhX9semoZLU3NfnmCiZpyYDPOt6OyUNwYQaN9cO8wHc8ZIAMsH50IvCmC60yx5GMmg86h0Bwc4dB0qDLRfyaoht+Ebb1u54FXs/RQ/ZoIglIGjFRCu4bSND62cGPqgWYu+zRrFrwg3R/sQU11RKSX9rEK8sxOI78rSF3bshCR/vQonqhdp0FrLgNoTDA+hwWzt+dhZCNqN5WIr53wPSgvHVQzz6aQs3nV2qeNe4tiWqsnGHHHavpt4BqnJ5wV9yBhaocwAVm 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)(13015025)(13024025)(13018025)(13017025)(13023025)(8121501046)(5005006)(3002001)(10201501046)(6055026);SRVR:CY4PR03MB2440;BCL:0;PCL:0;RULEID:(400006);SRVR:CY4PR03MB2440; X-Forefront-PRVS: 00909363D5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY4PR03MB2440;23:bfkrqg1RgE5gh3N8+kg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dAKUsyXpx20I9MkjAkMJUKSsnoHN6wGCXVbq30ukU=;7:u0mv2RBkR5iGZ3rZaaJClskcqbt0uC0EeO5KGnQU760TiUZH0yiJBXpLw4SYDbwc0mNWcLkqPTmfYyP9b2oVx9Ce/xCYsGeQguZDbOVqzhVQFDargcDd8OpQyI/KHwS3TaQXi84bMcoiaewl68BASHuTojOno1gF3aqbRI5jPf/jWvb9SkXaFCLqoGKQu5o21v0NsITtjptNrV/PAYr35Qf4XIDuUJU2Zq9FEtlq22i9U4VjaMR74TkuaUUJm5nVqxHGhdKpRA7I4uLrTm+CXdf4Yjj/w7rMC465Ra4VXTTTEdLgqrASiOFLOY8wN+VUPJJzrOvMxFXHT7XLqvR4cw== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2016 06:59:32.4952 (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: CY4PR03MB2440 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3341 Lines: 129 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/arm/boot/dts/ls1021a.dtsi | 84 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 82 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi index 368e219..282d854 100644 --- a/arch/arm/boot/dts/ls1021a.dtsi +++ b/arch/arm/boot/dts/ls1021a.dtsi @@ -47,6 +47,7 @@ #include "skeleton64.dtsi" #include +#include / { compatible = "fsl,ls1021a"; @@ -70,14 +71,15 @@ #address-cells = <1>; #size-cells = <0>; - cpu@f00 { + cpu0: cpu@f00 { compatible = "arm,cortex-a7"; device_type = "cpu"; reg = <0xf00>; clocks = <&cluster1_clk>; + #cooling-cells = <2>; }; - cpu@f01 { + cpu1: cpu@f01 { compatible = "arm,cortex-a7"; device_type = "cpu"; reg = <0xf01>; @@ -251,6 +253,84 @@ }; }; + tmu: tmu@1f00000 { + compatible = "fsl,qoriq-tmu"; + reg = <0x0 0x1f00000 0x0 0x10000>; + interrupts = ; + fsl,tmu-range = <0xb0000 0xa0026 0x80048 0x30061>; + fsl,tmu-calibration = <0x00000000 0x0000000f + 0x00000001 0x00000017 + 0x00000002 0x0000001e + 0x00000003 0x00000026 + 0x00000004 0x0000002e + 0x00000005 0x00000035 + 0x00000006 0x0000003d + 0x00000007 0x00000044 + 0x00000008 0x0000004c + 0x00000009 0x00000053 + 0x0000000a 0x0000005b + 0x0000000b 0x00000064 + + 0x00010000 0x00000011 + 0x00010001 0x0000001c + 0x00010002 0x00000024 + 0x00010003 0x0000002b + 0x00010004 0x00000034 + 0x00010005 0x00000039 + 0x00010006 0x00000042 + 0x00010007 0x0000004c + 0x00010008 0x00000051 + 0x00010009 0x0000005a + 0x0001000a 0x00000063 + + 0x00020000 0x00000013 + 0x00020001 0x00000019 + 0x00020002 0x00000024 + 0x00020003 0x0000002c + 0x00020004 0x00000035 + 0x00020005 0x0000003d + 0x00020006 0x00000046 + 0x00020007 0x00000050 + 0x00020008 0x00000059 + + 0x00030000 0x00000002 + 0x00030001 0x0000000d + 0x00030002 0x00000019 + 0x00030003 0x00000024>; + #thermal-sensor-cells = <1>; + }; + + thermal-zones { + cpu_thermal: cpu-thermal { + polling-delay-passive = <1000>; + polling-delay = <5000>; + + thermal-sensors = <&tmu 0>; + + 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,ls1021a-v1.0-dspi"; #address-cells = <1>; -- 2.1.0.27.g96db324