From patchwork Tue Nov 24 06:52:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongtao Jia X-Patchwork-Id: 7687821 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 67AFA9F1D3 for ; Tue, 24 Nov 2015 07:00:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6C8A320854 for ; Tue, 24 Nov 2015 07:00:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9D90B20850 for ; Tue, 24 Nov 2015 07:00:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752161AbbKXHAU (ORCPT ); Tue, 24 Nov 2015 02:00:20 -0500 Received: from mail-bn1on0136.outbound.protection.outlook.com ([157.56.110.136]:27904 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752119AbbKXHAR (ORCPT ); Tue, 24 Nov 2015 02:00:17 -0500 Received: from BY2PR03CA044.namprd03.prod.outlook.com (10.141.249.17) by BY2PR03MB157.namprd03.prod.outlook.com (10.242.36.12) with Microsoft SMTP Server (TLS) id 15.1.318.15; Tue, 24 Nov 2015 07:00:13 +0000 Received: from BL2FFO11FD005.protection.gbl (2a01:111:f400:7c09::195) by BY2PR03CA044.outlook.office365.com (2a01:111:e400:2c5d::17) with Microsoft SMTP Server (TLS) id 15.1.331.20 via Frontend Transport; Tue, 24 Nov 2015 07:00:13 +0000 Authentication-Results: spf=permerror (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; freescale.mail.onmicrosoft.com; dmarc=none action=none header.from=freescale.com; Received-SPF: PermError (protection.outlook.com: domain of freescale.com used an invalid SPF mechanism) Received: from az84smr01.freescale.net (192.88.158.2) by BL2FFO11FD005.mail.protection.outlook.com (10.173.161.1) with Microsoft SMTP Server (TLS) id 15.1.331.11 via Frontend Transport; Tue, 24 Nov 2015 07:00:12 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id tAO6xofc022023; Tue, 24 Nov 2015 00:00:09 -0700 From: Jia Hongtao To: CC: , , , , Subject: [PATCH V4 5/5] arm/ls1021a: Add TMU device tree support for LS1021A Date: Tue, 24 Nov 2015 14:52:48 +0800 Message-ID: <1448347968-37766-6-git-send-email-hongtao.jia@freescale.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1448347968-37766-1-git-send-email-hongtao.jia@freescale.com> References: <1448347968-37766-1-git-send-email-hongtao.jia@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD005; 1:TqlUrPzUu+vm4i9MG44p3Fotp/yPB3noAsuPrHcv4xxoXCJlH/GVICGuxXTdWf5qqn29Ui0EXcY83hGQithKJhew76yqZFeqVoZcMrL9Qmccq0MoVRWHJXV28T/nkIVOFfudO4K8DlUo8OBWA9dv+uxbueTLR85GUiyvvOKnmJB9ttnVUejejFo90+xdS5r+sm28l0QFGxxVLu9kVraLWBBiyYlmFBnN/lvOSelA9VgzeGC9c9mqAvGkdMCdN7w0SmekcCBMsXu3PKaw3tq9lVrmR/uDfN3ZeiMmyQMji4mEmvsY1eh3k0hc8zCTpzchtM3sWvmqhWmn6yg2f+Mln5wMOtLfK/yfj1KBPzodf/S2hr/iNgYyax+W0nx+3YazN+5yy80UEK0wAlVs5U6I6vYgpQYKIpUOOjVJGnT/tH0= X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(448002)(189002)(199003)(5007970100001)(11100500001)(50226001)(2950100001)(77096005)(586003)(48376002)(85326001)(104016004)(87936001)(6806005)(5008740100001)(47776003)(4001430100002)(106466001)(33646002)(229853001)(5003940100001)(2351001)(92566002)(81156007)(50466002)(5001920100001)(110136002)(5001960100002)(107886002)(97736004)(189998001)(76176999)(50986999)(69596002)(86362001)(36756003)(19580405001)(19580395003); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR03MB157; H:az84smr01.freescale.net; FPR:; SPF:PermError; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB157; 2:atApAVCAJWeWDZrCbIJcOviPF1dmJIxfmiiuBahbA4CRSSMElPyL1Riu15Y82bOeNC1OmTLCCHDGIuYrxp7yak9ZuveItikGEjiIONccXI0BLFK6vcqwQvHWrlqBPN/rmBMzY/qAo3CKTXmGXyK9mjfbQyDhvcUo4h6fryqqiA0=; 3:O8iWq9MHBoyRpkP3zb+4M+qKxMo+mi6lmAQRHMvRW9ki43h44OQOBb2ys5XHG9Wwsx2t5EVxapuhIFEaTyL5V9CY1w2K1jiubAjOejd6tEBW/ehKLzPio9d+SnPFSU7Wx1qyD1lg0GSf5iLDiU5dB7EAe9N2tiH3H4ghPtsBi5J7PeZTDxogV+lQ/lqNlZfpu3S9uDAURM7raQqFdu5GEMg+igJe4iOv0NGgro5VBes=; 25:xDmVnIzqOAkz9JbkOD++kxyJ2qU9j4t0jnoBI2NMGcozZCjBDpELvdTqd1Psp2uk7MXAfcaXBzhLaZfIgRWzbXpWzMuqJUtY4bODhDjcDsZ7D1YdB2+h7qkD5RLunM0dra7EVRwvXW+uYdk/CtpkjoS7//AeWJ1d7feI9mTEDrDHJa52oIcNX9t24cmh7wpH/WkcTUwMbJ44oXHE00R+cdXaMhjcJUgcV44NGdNxNP2frWtkHv2OnmV8MOoGWyzg X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB157; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB157; 20:zh8W6w+6NJpgy26ogKyFiJ9pKo7lUNvCgJJ1X8ketC0BJvphPb1UzGJ1vv/mwbfkxGehQbVUr4tl3gDei4Kidd0e6AJv42eeXsVKYAsZmpAbM3+iFiajc1EWJy204lhxreljcdupwMLgMWv0GlabY4HxFlDAMGpot4OHeUVrNCveZqJ8rKifhULVeusRZjBaE6RoWU18QnTE7rCG/kXrNbJNFxcKtAXl6B9k0FX6aCybDcdSk3B+w/zf63fhckq+HPQ54BYIST77nvT8fTGtiMlfAc7KnIqwJ55ChoqRLDJYRw7UFFuusCEi6UA3puIW1fQjQFxYxQ60p7ctsVw+fa7WyKVbopyaUzLV4sIGK+Y=; 4:zxlCGK0JciYUeiRr2ifkEy/eQX3ANzlhGUKZ2E3yaYgzyse532F6OblZKA6cpFSmbCu2hPWllzElHLKHh7zdkzDlQa4Z+LJ6u21BQd0oCMJs1t+bNKpV6HGYiHmGtqSbQmNXaTw1tyxqHJ5Np5p2Ipmh/dXMeeIPpdZo8X01qOcCtWNsT192RaSOMuAZyGwrFge3iq4Op0uQ+0fwdg9qJVQ0tIy3ukwISvoDKJkaj2C2WEit/JIw2HRzdv2iGXW0VAPtvGaI5UxhP4Stw48+HSzBCXibprYn45q21f6ZOBwgy47LV67uL51zMcF78O1giwq19l48CMTNGl73m1ZdQKPEmCM8tuFKTwLRlx/haZ0/LwO337qwDTevTw8rIJEE X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(101931422205132); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001)(10201501046); SRVR:BY2PR03MB157; BCL:0; PCL:0; RULEID:; SRVR:BY2PR03MB157; X-Forefront-PRVS: 0770F75EA9 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR03MB157; 23:CMhEkiN+Rhc7MFIQtOuTwC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knTvGTpR292Xm60wUpKaSvst4M3PhOIta3LKKJZckEZHKGDdQt1V?= =?us-ascii?Q?CgSlyaKpf+2+FqMBEBuNQ6e9C5d+FJnM7wFksU3yn8K8euywkikOzAEVOp2m?= =?us-ascii?Q?uw6zkjraPcaRPC1OfNmsWOWFK53ZlHzw0IGSjL32HQAlmdVXB9afpjgtt9OO?= =?us-ascii?Q?L6lgFCnPyoKBANgJ5l3I3ypO1PQRAFvS5g/eZ5U/I2T5wyBw=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB157; 5:Brl1bQbWw8aYNPuJOrC1gW8wuVY61hQzoEA5meLYNnv8X86B90otjyga+c23CUiG6IEA95H7EJD05dzLoO0747GyKQLi1wlgQ+AHL5iUdljnA6PHYSOQKRp0oz+bKzmgjsxUwe4uPOiX9q7sqg3y8Q==; 24:+gk4yHXVC6gRsOWdRw5v29FwEd51KGN9kq2GQFb4I/CBKgj6c81v0KKKHfY6+Oe0/V6509csX3CyqgjfwyVnVkXzVkhWqSuujf0VIIteJQ0=; 20:CeiviYfw0NYOM1rC0tujZhCd/SN9Jp5xwVSTkPYmZ18nWfM3WxihjRVO39efbT2cgvnsvid5Vzb9KhqwbteN9A== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Nov 2015 07:00:12.6553 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB157 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Also add nodes and properties for thermal management support. Signed-off-by: Jia Hongtao Reviewed-by: Scott Wood --- 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 9430a99..d31a811 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>; @@ -226,6 +228,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 = <0>; + }; + + thermal-zones { + cpu_thermal: cpu-thermal { + polling-delay-passive = <1000>; + polling-delay = <5000>; + + thermal-sensors = <&tmu>; + + 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>;