From patchwork Fri Jun 3 06:57:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jia Hongtao X-Patchwork-Id: 9151949 Return-Path: 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 6DE7E6074E for ; Fri, 3 Jun 2016 07:10:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5D36E282E8 for ; Fri, 3 Jun 2016 07:10:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5032628309; Fri, 3 Jun 2016 07:10:03 +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=-4.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EE8EE282E8 for ; Fri, 3 Jun 2016 07:10:02 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1b8jDi-0004eb-EX; Fri, 03 Jun 2016 07:08:38 +0000 Received: from mail-by2on0086.outbound.protection.outlook.com ([207.46.100.86] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b8jDS-0004V5-Ba for linux-arm-kernel@lists.infradead.org; Fri, 03 Jun 2016 07:08:23 +0000 Received: from BLUPR0301CA0031.namprd03.prod.outlook.com (10.162.113.169) by BY2PR03MB206.namprd03.prod.outlook.com (10.242.36.152) with Microsoft SMTP Server (TLS) id 15.1.485.9; Fri, 3 Jun 2016 07:08:01 +0000 Received: from BN1AFFO11FD024.protection.gbl (2a01:111:f400:7c10::171) by BLUPR0301CA0031.outlook.office365.com (2a01:111:e400:5259::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.506.9 via Frontend Transport; Fri, 3 Jun 2016 07:08:00 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1AFFO11FD024.mail.protection.outlook.com (10.58.52.84) with Microsoft SMTP Server (TLS) id 15.1.497.8 via Frontend Transport; Fri, 3 Jun 2016 07:08:00 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u5377hfZ000348; Fri, 3 Jun 2016 00:07:56 -0700 From: Jia Hongtao To: , , , , , Subject: [PATCH 4/7] arm:dt:ls1021a: Add TMU device tree support for LS1021A Date: Fri, 3 Jun 2016 14:57:36 +0800 Message-ID: <1464937059-19349-4-git-send-email-hongtao.jia@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1464937059-19349-1-git-send-email-hongtao.jia@nxp.com> References: <1464937059-19349-1-git-send-email-hongtao.jia@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131094112803220505; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(9170700003)(104016004)(106466001)(5008740100001)(229853001)(8666004)(2950100001)(4326007)(48376002)(19580395003)(50226002)(81166006)(5003940100001)(6806005)(2906002)(8936002)(77096005)(47776003)(36756003)(92566002)(11100500001)(87936001)(33646002)(105606002)(586003)(86362001)(189998001)(5001770100001)(85426001)(19580405001)(8676002)(2201001)(76176999)(50466002)(50986999)(7059030)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR03MB206; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD024; 1:JGgfupkG0oHZy6kGvt8iy/z+gSmaHhn+PCwtmZFxBQTW0JQE2nf7leDqd85s5HM9dE0KhCPOQgK5io40Qc/8JaahUkiwN1PTsqch/Ej6oSO1G8GatqHJ7Th2WYuN6ely0aWYRp+b6G6wMPIBUPrekRBkCkrwbblKRQ9CKW/UQ0hLUlKhqYo/yoMvMZhJw9cP6i0O/PZCov/XS4yHylAX0jLFI3ECfatcCEgOo+ZcibLQLPUaNM4P9MFPT0YhcYefe2AyaYKPQRNcIvp+aDIr2qEEetimRaSw6xcQLVR/Iz96Ew3WQ8jb9AoxCMQl5PXouJjtQjrSxWr+tM3EHswyMxoaxdan6ydywYwve7ECZqwdMJM+lehz2TXTBWRDJTzT/3DEhPyKMkfyX4oYQu1Q0mJb+BCgIVsZelXeXdPRvq/3UEg2xs+orEvWwPPeCpT+B3FBJ+sH0xKJmKhIy0nhq0n/v/FPj4/ZDaYVQnK6KIIslkZXdbJ+Yzs+P3l2edUe5s0/aZuKFvpQJSEJLjSDSZawD2ZfwWRtumEkDCSRV3sOK/p/At3Jm9Q0Fu/WIbm/3rGhAmq7VSTv6CkFz0qIlwf2x+DBjgzUrfG82R8GWhD25b47cApefoiHVJtPnpaDcd+6gZZ+3G1extrTR4mY+xL4G8FNxagVCcByXaraDYjppi1xno8wL+0NGCgw2q1nFDTYgLcdaXiRdivmNB0x1FoyBBixai5VelG9c4R+/OY= MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 5846b9b3-6819-464b-8ab8-08d38b7dcc3c X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB206; 2:mpyEl264nTtfxeA7GhzhPx7pVsSk8u98L6unt95B1P3109jMyTD07KVmlpGJ96OqIQ/zn+0oDipcv2bF9A2+eD0qx27rDMCCeaEOqIIwfnQfiXLabPn0ub3ygJYrQdx0jpY/QmBAKVwaEYP9HqavqrA9C21nv9cVW6RDRX7/Svoz1gSkh2J5zVLRgoKT5pNP; 3:rpmLhZ0xSVUNnaxfKSXIwpMIxc9KncGEXIBm9PE9jgkYHtfvrhyhOmKN7gIP+C1ipHsxAqh45FVOiGgpVQF/y0B6grAj23WA25NtVxdWEIsZOSgRGFAFRFJKlVsvbYxUxEFTWeArk7oxI6LLzBvLl5YljDFHgQSEkxKmChhbTFBCMTdq9iU5wJIshSz6tOJm2S4UIbPny1fXLoaM6YkOr1YcFveokPfKE+GcTIw2uFM=; 25:IF26S64I+NVNASRXajJPpoZK68+WgEdrfUITIcQnH0SBtf6SaW27l831LeRX53Qe+fDL/MBsg4OuBj2iKavo8bdPTx5tiij4UlwNcNNf8fHVq2fyitCoC3ASZoE0awzijbalrtA21K5/eY1huPSvLccj6dApkheSr3PrRgs7VrH2V0OMdh+iKPGQOF/fXFWDubYV2Ioo7iZkN5MPK8gEn9PhZWiJiPcGnzZ6st06fK0r6D1P2dK3iloQP66+J5jnxrWe9ZUJP8W8EmCDv7cz9El5Qs+Mmnr/1amzsP8rU9dQIpmXmKUGJQ0h9RdXk6RnHid6iamHfZmmWzUZSYXQbr4ZVK+dZvlyZcRObLpUiOhms1+GThw481Ww0QbmJ6j2ObzjX6vVGFaCPmlTBlHEgQxb0Et1aFGesDU9NZls/2k= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB206; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(13023025)(13024025)(13015025)(13017025)(5005006)(13018025)(10201501046)(3002001)(6055026); SRVR:BY2PR03MB206; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR03MB206; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB206; 4:QIK6xWjdfg/WGJFCXbGYAjcS80mXzqM+5KMurt0OWOs7Y0zLWFN/7j+/g2C2hGaYc3n9gxPiMX67DKFXKHKNXtaNPzWeee68KNytVUVovyNJ1KCA9fbi+jjO9VRPUk0GvfDfFOyfbkMEwEBDNW+p5UDrYqY9mwu6eyTdMSdUYcUg8s9+CYu2FPmgKkDwg+2+C1JUx/1r6ri+GlFeIY9efjNAMn28vqKCPrU8O8zYyMyA0AudUnqLJM+CWpBL/2afNTV+KGudz8d10AyzQcSwMlNPfoLSXaihocL7ZRtbDZy/lsEa5JrZgm40/fUQIn3mftomUTXM4imIdMJasbRSaXUcUeyb4zQmGiPL5MAa58+D4TKDCKO2fnqWyShqRf2UfWsiENyMS70cxJk9ltw3Ar70eNMCylhh0BuKvpUFJUTPAoDjpTd+DgCPhsz4cGMfNxu4+cYA9m3p3uKD7jyzG+FV/GDKiY8gnjTX4E4/UL729MDI3BCfl8qmIJ3P2tH5mQ5IxF+SpQXpPOv1OUS5/Q== X-Forefront-PRVS: 0962D394D2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR03MB206; 23:MRspHjKhiODBIMawqTlTZKKudeHlx5GesMilU79vDf?= =?us-ascii?Q?ePRd2LStLhDoyGPhS2riaIFXQY/naI2zcPf9w/0xg9G5dhj9w+eggFl2aaDj?= =?us-ascii?Q?nXcOyPkQTK3B+4Kdqclx3MWuHh7xhXx51B9jQGgq0o3dR2Vz+rjKNNhMZtzs?= =?us-ascii?Q?s9BMUYujf02G9jGJyYmcIBvbBi0k5RIuUHud2c+00aeEe4k+FPxfqemKYe8v?= =?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T2qwkmWqm0hDxztPd6n50Ybx?= =?us-ascii?Q?JFcr39IH/Y03zEPmkIjr1CWFy8ed9A?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB206; 5:t35ZOjwoij8zD5Xl9SneChOfU83Q3K+pw7ECLBm3csGD8zbHYk7YN/viAiaMNkyDUc+28yJKAzty99rt/jlus1IlXbVA8HQyg0IsEUkk6P/qUswbjv9RxmqkRns1dFUZyeTo199WIrlJ40utLd//cl0SgBPIOATGRBQEDpRVPck=; 24:ssBJMwawnBmq8mDu41F3PlhU3a1mDgkI46gKq/56WHw8eCs8vaPbQd5de9TA6naWGnBi1D7i53mJN9GzSGnW81oU8modFbb4GUidtBuDL7g=; 7:2+QwKJAJ4JBrTuMUmbI0vpF/qrlD5K7RIdTlMlY6bVDBN9pi04TYAIFJRXpYlxv+/L6Y1Dx9N9pAvd7qDHer4pIst0hOfBBPgGWaDZskx/GF6kqcv24ISxKYOeg1wZf5m1tFzLX/NzL/vkKhNtCQFRY8xvc4msEiGY9CMcZagcO/2VPJj7os617HI5Re44069loaNJD6LyxVEGPTim6aU1JfwnE3GKSUpoUoOL0x6y0= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2016 07:08:00.0880 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB206 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160603_000822_504371_E716F1A2 X-CRM114-Status: GOOD ( 10.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, hongtao.jia@nxp.com, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Also add nodes and properties for thermal management support. Signed-off-by: Jia Hongtao --- 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 5ae8e92..1bac9d8 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>;