From patchwork Fri Jun 3 06:57:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jia Hongtao X-Patchwork-Id: 9151977 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 9AAB86074E for ; Fri, 3 Jun 2016 07:22:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8C9A728309 for ; Fri, 3 Jun 2016 07:22:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8026427BFA; Fri, 3 Jun 2016 07:22:48 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 20EBA27BFA for ; Fri, 3 Jun 2016 07:22:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751675AbcFCHW2 (ORCPT ); Fri, 3 Jun 2016 03:22:28 -0400 Received: from mail-by2on0066.outbound.protection.outlook.com ([207.46.100.66]:38720 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751629AbcFCHWZ (ORCPT ); Fri, 3 Jun 2016 03:22:25 -0400 X-Greylist: delayed 873 seconds by postgrey-1.27 at vger.kernel.org; Fri, 03 Jun 2016 03:22:24 EDT Received: from CH1PR03CA009.namprd03.prod.outlook.com (10.255.156.154) by BY2PR0301MB1592.namprd03.prod.outlook.com (10.163.28.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.511.6; Fri, 3 Jun 2016 07:08:04 +0000 Received: from BL2FFO11FD022.protection.gbl (10.255.156.132) by CH1PR03CA009.outlook.office365.com (10.255.156.154) with Microsoft SMTP Server (TLS) id 15.1.501.7 via Frontend Transport; Fri, 3 Jun 2016 07:08:04 +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 BL2FFO11FD022.mail.protection.outlook.com (10.173.161.101) with Microsoft SMTP Server (TLS) id 15.1.497.8 via Frontend Transport; Fri, 3 Jun 2016 07:08:04 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u5377hfa000348; Fri, 3 Jun 2016 00:07:59 -0700 From: Jia Hongtao To: , , , , , CC: , , , , , Subject: [PATCH 5/7] arm64:dt:ls1043a: Add TMU device tree support for LS1043A Date: Fri, 3 Jun 2016 14:57:37 +0800 Message-ID: <1464937059-19349-5-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: 131094112844808955; (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)(50986999)(87936001)(76176999)(81166006)(77096005)(2950100001)(8676002)(47776003)(6806005)(5008740100001)(229853001)(106466001)(104016004)(105606002)(5003940100001)(19580395003)(85426001)(2906002)(19580405001)(48376002)(50466002)(86362001)(33646002)(2201001)(8936002)(8666004)(50226002)(5001770100001)(586003)(36756003)(4326007)(11100500001)(92566002)(189998001)(7059030)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB1592; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD022; 1:y8qt3ui3cg23ONLdYG5oI5MBFOMd4dR9gwdJXuJMXp1PrMC4CdAs3hlAu/8EijlGEGRMDAiwWuC8RaTLIrzZ3xhrnlEfP6f0HF4wFpUf0ufjEZCbgNLpQ9pTFl+2uUbTZlcvpSwZ/LvI2TYx4BeKeL3Ix8zgCUUZbV4BwyNaxGXbBrMxRqRomXHAy28vEmz7nX2PIQcm31kp1Jcn0LN19c0B88FEvlLJHogmhJQVTIt4u0mFyl8Vst5DA1l2Iwa6c3dsz5uTKVcQ0MIBbztKN4K/JkHK1y418zsAmZA4qDoZP6T8cQKtPQrVzJTEou678r5F1zMJ40P5DxvNJCA3iUeA1b8UPDVRRu0j8BWjZJBBCIkvp1da8bQ8CXAUFTK+qkGDOjQpNYs6cfN53rZsyZ9m3NxbqLduG+wxOV1yiKoeAtk3C5UT/66hvijWctCylfvYeK8QZtlV7kudxxTd4KpdH2x5vE2d6ZVYm6qlZlJq1zQxAvJNSiPx/lsw+JV1mPsuW0QFM02m862yYbd9/JCpbyMZOoi9KaVr6moFR9o+Yy8ENDKj2qXlfewn0mLeemCfYyUD7orySyOlh69VTNQrjmypCYCKI8nF2BI1gbu9RfQDzs19HSoncL4PH75fwTUbJgsXet1Sy8KoCaJKKuFLtXsVCqdBivOhk54/23tMHAIjZpKPoQc3ILS8MJfoBubqH3C+l9qifEBnVPfNBNxgVy/o/5kjow/7SsETak8= MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 5bbc4d4f-7f7e-4cb8-b531-08d38b7dcea1 X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1592; 2:+hso8chloU6BO7it+GeEtwaKouxR7aOqOvEGTDB689f0oef38pLnk9NQyQvKM+o+OTTwDu2sDXoXdkKqfQWmSCNGa6TvY+2SfXc+Ud1yh0IKbEvD1lhqbfuTK66dtcz2WHTTbJ7v6uz3dGYWv3cwLXwp0syUIMPQocmRvIi7sAW3TEPsJSN2eGflmDM72CHo; 3:ORL3KUzbJD/uGsViYU1oV2715qHq61OEM3pIAJecunB/xflkeK80W5Fco8lHZEwSNv9/9451I61yKx/1UeAJkXFwDJ9fe7wssuoMgcaRHgfzsvvDRkbmmytg9tnvAYtLNX3k1JPImp0JCyZIRJUrU/RuMMHEpW1PEtsjQDqp9/kspq7cpZNT7js6UIYWWE/J87uwmT8CYYZm955oLIO4e3fKFkUvqKKAV03BtQqVSF4= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB1592; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1592; 25:0bE88NdjtOo+RwYaF9/lJ8F7+4yiXwWiFN77oiFUDlZaEkTcZIcqKLt7hIdCFoILGswPGtRW+X8L5doD1zpSbxalvOsXg/3NyddG1MRqnc6I6JUcA68qVm+9jJrVilvYxG0bRMfLLWOWEa+tFSl/6nLLVpl3jLeTYJFjkXrmzcJMNf06ys4+5095CXSPRhtXB+X1eFQXTIwtueARCZ3TWchVcqK8vklow2Ps5X/Pj/tq1fRbD6TSDcvEBKKIKs+k+2e8B3m+9N3Q0bkaDQxKXSsrpQUchP0OKCO9JclRRgI12LKWFYrEslWpF1WypSTPfNkEAEWftRqJqgnXpVrTkoS76qwURrCrbNfTtofTMqx8SkT4b8/iHxUlebphJ3SCHuZLxxQTGDUtDUsVU2AJQrd+xZQMSPNr7slQ+wKFD04N0VL5LOd4sdN20g7URsnM9abq2bG1VPV0guWhFoFELxTb9A9pUONxzjXj6TVW2Ul9ymnck2C4l/s/d2xqNByAPxwMDi7mG21yhHwx3TsAeuRMwja1BKbHZ5VtDGsK+clw2TW+Zb3spAhKVulgM2xR0LNvtYvJ4jBsx4jQQDp7Zqe+s/W02pLnwPptHv8xWcnv4A65zbWnFsP5CIsBun/AOVKzh6LnF87WNHAxIVtKiV2u9BKq1fTTCgyMaoRtHRvbz9i01VCE55NVU13qr8s7ZBPN8pWnGpmQ9lr6tUFD7+8QgPY/9oEOYq8qYU/svMexKpo2j5RJuUUZRt8S/Ysq X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13017025)(13024025)(13015025)(5005006)(8121501046)(13018025)(13023025)(10201501046)(3002001)(6055026); SRVR:BY2PR0301MB1592; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR0301MB1592; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1592; 4:hkAdDQkapY0qQHRdaqRaP/7UlfnxUr3YUWbciFN9Jp+FvS5p5qFqEoJsRkVrV4iM4A1XgZJTcPvo1aABBexQUvnpaipqDopnDxJdpssXywoaIsQ4LQ8eVFA1MiegTfL49yYSZKD/Ql2P6GgqbVnyeTZ4O31hMANoXQa2mqsPO4gEe1AkTyWd29YluO+PmlAgPliUfjCBQHKm7+Pr6fov8e2jYOETyt9faTgL7sw2scO124o3dei6jErvdY6XRbjp0gxC8fETRlIJXVQB66olnCpBpfzrSEVlPce3BaSuV8Og8bCzkkE5xHbPSmpOp6Rs2FGQh8HQu/emI2jmjiDxLc0iujzocw4U+wfTq5pGCsllmfrFWprxuvZtWQ0SElpesclU2OtyZCpjxMKr9RYJizelK6ShMGV5iyIGhBHfbI4JSLagwC1RdiMhVR3T/S0TOdewzSFUsZb1bHoLhpHMvI3fvwNiliwluJCVtCb4PIXn6Czm/XjVOHm/p/Dfim812Ls82N5PlQKZkpti6emDdA== X-Forefront-PRVS: 0962D394D2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB1592; 23:qrdlbmOfun4TsJGOWmRhcFZ36dR5nnVGsBj5Aod?= =?us-ascii?Q?sQTwfEfyBotMG9/C2Vx8idAthcoVNS1ZWPDB32bPpfx1nuU8k2qwhZu3ZR3T?= =?us-ascii?Q?QCVKp+mVlwHozEboZzKhD32sJyZUyYCCEatq6j/aA/lo5ULeUC/7SoQDPN1u?= =?us-ascii?Q?3d/NYVnwA7PwamnmCYAJPIvDXMhpnM00hSCvgsWr9wNDu0PGF6YK6LxbEIVR?= =?us-ascii?Q?cpMEYV0qIQeE/UFW3Zzgv+wZJxBSbi/QijoUvHINx0XTqmZOKLU+97IBcSdH?= =?us-ascii?Q?map0UZLzKXggVFXv1aUX/BOMwzfGkiybE03lSD8VttymkhLioA+LhUySu0BP?= =?us-ascii?Q?LuQ9Ih+Q81C/EwwuPREl4lZwUaUCu4FoCWe0L/hEwhbVFGp3u3JlA9KAvuD+?= =?us-ascii?Q?gDD02fL3T94rcyptyX1pbYj64FruIKOtu1DPPUMETz0bzu75hokfRkgODuWH?= =?us-ascii?Q?t0jLDJ0TYgMLr1h7NwkAU3ewVdGSEIV0fRakiaTF5klnUMANqetYjD53Cvze?= =?us-ascii?Q?JsYRjirnDW4LH0vvIMd/pZivh14MC01+melmmDf27GvtFNxvZYD5l1Sitdkp?= =?us-ascii?Q?6/46nh7Lx2hDh8cbhtt++8Q4BQ2DeUyTwmDlz1Jjn5BCWl9qr67AcXw3JrWW?= =?us-ascii?Q?qxHUkGLAkkpD//NvQ/S/UpwGj/9Ygw68zjIDkN/thfan/6IdDTw1KYikpDle?= =?us-ascii?Q?OlRLOkcAjw9yUOKL72ebL6jlopHagvktaBsZUeR5XSWmTZh/ncO9RQbMdiby?= =?us-ascii?Q?NciBYhCeOblTlY7mJtfnr/lFwx8t7yHRl9PBAWqt4j5B/SUCxJgk4pTqcPal?= =?us-ascii?Q?pS1yRk9afImXf+oDrBnp7F2Vh7/JZm+LlrK/3XfFFQDQtjWiJ6hP/vSjWBuz?= =?us-ascii?Q?cgmaAghNkE7s38vlT22FJzJSKk2TGVDJEsGt4XF2NNbpwIu0yS9Hj5pyBwSX?= =?us-ascii?Q?oZhhpf7MqoWKCmlAnogxWbFFaHc0xl0SpB07YnbDVnewvgIbAtZcfP/zR383?= =?us-ascii?Q?EvYgoVtwWETpmyc4gMehxQpnNxIT8xMDLWFNJjQfcvPF8RlQjE9p5N/FmENW?= =?us-ascii?Q?rDchvF4IaXMi6lTyE52wHa5wjhhBy7ODi3mH6HSn9oP7ZBo5MvCa6MeVFVWi?= =?us-ascii?Q?bfINWkFiCY8mmPmIcxXXbLnj0rbQf7If4?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1592; 5:Va7X/ihR5lDHbdmJmH/AaS1EEqwpj/yL34hl4U0tto4PIwDzFuXqbkvurI8Pkvoha0E1wpboPxzUf0M+Np5qd/W8B17EP+hF5UQ2/lq2YItSiVhW1FepCJmH/0iEUlBXRuLFzoLmTWk7XQECkaK3uj4yqBvKh4+/q6mDWzM1Owo=; 24:1qO6Uq0Zo9glwQB6nplUH0f0/EsK9t/1TLJVvyjX15cqw+YGbeeaKjv4n3j0VpMvW9++IbNSu6I2g/wIOEMAFfI5IIigzPNx/3U8QOVbWGQ=; 7:XvGRiM7AdGSBjDyMj5eUC/AJs1tHkh53mfIKBeqn3i/qSnv59q8IfynJcXci3N5jhLnP8EkSti4pL15R/8vADBUQgCWA6OBq95Wg2BytstyQU3Tk368xdGjCCvV0bb9G9GLXYJmtUidich5/38P6NtExiRdf/Ds/sbK23hM/QTcUGGwA821hnzBDNegzXFTrw2nBuYzX5Nbg1ytFSJ3GgeFnfefBebYuALFIzlsuk+w= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2016 07:08:04.0440 (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: BY2PR0301MB1592 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Also add nodes and properties for thermal management support. Signed-off-by: Jia Hongtao --- 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 9d3e9fe..fa447b6 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 f895fc0..6015d88 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 de0323b..4004273 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>; @@ -65,6 +67,7 @@ compatible = "arm,cortex-a53"; reg = <0x0 0x0>; clocks = <&clockgen 1 0>; + #cooling-cells = <2>; }; cpu1: cpu@1 { @@ -196,6 +199,81 @@ bus-width = <4>; }; + 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>;