Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933175AbcLHD57 (ORCPT ); Wed, 7 Dec 2016 22:57:59 -0500 Received: from mail-dm3nam03on0062.outbound.protection.outlook.com ([104.47.41.62]:35648 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932970AbcLHD54 (ORCPT ); Wed, 7 Dec 2016 22:57:56 -0500 X-Greylist: delayed 958 seconds by postgrey-1.27 at vger.kernel.org; Wed, 07 Dec 2016 22:57:56 EST 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; X-IncomingTopHeaderMarker: OriginalChecksum:;UpperCasedChecksum:;SizeAsReceived:829;Count:10 From: Jia Hongtao To: , , , , CC: , , , Subject: [PATCH 2/2] arm64:dt:ls1012a: Add TMU device tree support for LS1012A Date: Thu, 8 Dec 2016 11:28:26 +0800 Message-ID: <1481167706-44234-2-git-send-email-hongtao.jia@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1481167706-44234-1-git-send-email-hongtao.jia@nxp.com> References: <1481167706-44234-1-git-send-email-hongtao.jia@nxp.com> X-IncomingHeaderCount: 10 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131256421130397987;(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)(39840400002)(39450400003)(39380400002)(39410400002)(39400400002)(39860400002)(39850400002)(2980300002)(1109001)(1110001)(336004)(339900001)(199003)(189002)(626004)(81156014)(104016004)(38730400001)(2201001)(6636002)(6666003)(105606002)(2950100002)(106466001)(5660300001)(356003)(8666005)(50466002)(7846002)(305945005)(81166006)(86362001)(8936002)(50226002)(48376002)(68736007)(77096006)(8676002)(33646002)(36756003)(5003940100001)(47776003)(50986999)(189998001)(76176999)(4326007)(2906002)(85426001)(97736004)(39060400001)(92566002)(5001770100001)(7059030);DIR:OUT;SFP:1101;SCL:1;SRVR:BN1PR0301MB0738;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD014;1:c19gnG5BR8hI2seTY2jGixnIC8zLjblagBWuM1pA0np++MHyndQHoEjTqStxBR5WaDT1g2NrAbDVgnJ95+mf5dSqiNLsaUffbDhX1tf1UVce1VLxB1wHMfA5JBndMdxxxiIw6sNfp+y4oCH3hFCDOPoc3R0XpvklBowWSDtBg6Hbr2SX951RZZXqzzJKZL/MI40FMMinGSgdBxRmv+okYp0P3gEUZJD8IgxpYBdyGc51NodYIs6WnOlFlNx2dPKSUzwPt6ErozxOqzTAFZleNcgXYxQnMJiA6OA0YWzlOIhoLxNXIKnhDnMn25VrqaxPDHbKAlcs2dnUgsvh6HhLsDSaLWZty/WmsxncnhfvallNfgFGXSM0a4hWi+FTjYST1wlKuiYaLEjdmWtiLHdASp3B31PC8WAd41YaRIm+GMAJBmQRQfO4YtiEUNbLWBxRiwyQcOpjlYXJENvjtaSDF7ASwN45HnSoZwnEN4VZ+54jyMpVwZ7Eiy/0cjxvBzi+61NwjftPnHxEUxXBOenzZZ60s+CzjwGPwwwWKFMmWdOKUN5LIqzp6V+6u4jTH+dSsYQkfl56F67IVD8TIOjyAYkgdOPw/g8/gdtgdfowTucx4PHMsgt3WWr53akNP5uWRxYxxSKPjlMu7YtDDgX6l0I/ilTMDyg6FLLw7m8Zi7aCOmot45dLbVZCShO7V82xBIa1U7miGeNjRDe5Y5qBtUKXLj+/yxvZHsQGTT9Z9WFDyqs0F/T7hmhH1fQDk0o7WdSkMI7HrrHAskCwG0sjog== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: f761b97a-5001-4383-bf7c-08d41f1c265d X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:BN1PR0301MB0738; X-Microsoft-Exchange-Diagnostics: 1;BN1PR0301MB0738;3:8NVHO96ZS1gVxKdkTgH8L6fb9hZJnI1RRZGBDy377ofD9Gf+6O9B/Yw1xUOA+CIHnH48vEf36lRMzFvDLBYGnCxG3vxvmc8Q8/EaJUwHswKV+ujKWdeD6KqbenCpKT8eP2btcnyGfeFpGvMStOxmaxke7vORTw7gF7wa+8K6iPEY6F1y6+xmA/WPA4rAJOllreviHwBYRtfNEzu02hLAqaGlh8ALM1jij2WzVCtGWZlqSMrrdaaF8pb53kM0hdfMs+smsGYQj/fmPfxSGkUvXRfukPyywFgvllm9iD5qnXbSnnZPr8AcC0VpYRAC6ddn2lda6ZsK1smw92/gI2OGrERYOxbTs+FHbyH2RqRWF74fhu3zs4WQBz5iAiWl/98s X-Microsoft-Exchange-Diagnostics: 1;BN1PR0301MB0738;25:ZAID/ToohrmqrFy7VeTCvn5i5Ez0k20WBoyGZwvlC/awlt3sa6iSaTNt59ZZrR67XCbPJ0ulZRANLMu/s/QfYDwRJxZtbVau36ZDt6Lcm3CVW7U3KfaVvCL6gfP2FNESRWlFtKzMuzp+df6b6oa2/CMA1betAOzSHh/LqKKrdDT5bxuqTn8AD3Yqp8vRTihe4evluuWTZMIy32KFkZTrJ1vWVZZZC2tcAZg8LHHC35oTrR6a2EK1LbszOM7On9wlZ5XNK6XJmVoZpm+7hgUZXydJUPo9RtJthbnmEZ5sSGCFdssbEeMFK7dYS7kffR+4qEAcNSAGDNJl6LCfWdWYRHELmxOzvU2LDD7xc7hA7TQLNMLl1fS47BXxCE+2H7x6V97TZ345MZUUY1ObNN6zUT3kKv19QWXxpxKB7L/4uENSzsPrdA3DEKcSCDVUJTOzJPOQT/4HI3UQNXzo9fM6IMGPgL7d5mpWNrcaywY8fODCEK0HqwOIHCsZMlIJLqbpaE96fqrs4nodinErHIkUEJUE/vVkw2x9xSMqwF/losqrdd0jd/XH/pluSBfYkxpRpsgSW+HAs+TubAD4H41GaSfYS3/AeHdFtnfybR/SFgsc4SVgsye75MpaAI5Ze+fa05iq4Rb8d4og0XS5Tj5hm72oIMjnTI64PgP+krt7OR7u2mop1AhBkenpd5MTEp5GqxNvkc8/0s6AYXJPol0N+09HUnld5ijjnkJl++BMpHliqp2gvg3H8yD7FRkrkBfWF1hxcebOuGAYLGO2JjzVASvqato/FV/LydMAri9E/8joVX8CnHtFVp9phIveesQRwzOTVlVk7fjgWywzfTy578t0y+i6CK3ZDQboP4dkFLEExGEGSnXVbfOr/wZmN6/l X-Microsoft-Exchange-Diagnostics: 1;BN1PR0301MB0738;31:nQ4PYx5TePEjMEctR7r2NdotOetms63Dp4gIzjgbqMSz6grWS5kfqimH//VqPZZ8E+R2G3DKj+5BRvvB7jp3Urt6oUXOvc0vS/I852/iEvSO0RAxdzkHp4/KoWRJ3/kD8s6iYJaNDHIJBy44Inaa4fq78czR/bEN2zfwLBSUlauSvNqR3N1C6QOfRAp/3lSf4kj4EUXZRskR7BFRuqN8OI7esEnxvoe4cfwm4vwmmgUcL8FwP+UZ4NHJEgM7/sii2ODomxAhn7DzJWbnqzmn4g== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6095060)(601004)(2401047)(13017025)(13015025)(13018025)(13023025)(8121501046)(5005006)(13024025)(10201501046)(3002001)(6055026)(6096035)(20161123556025)(20161123565025)(20161123561025)(20161123563025)(20161123559025);SRVR:BN1PR0301MB0738;BCL:0;PCL:0;RULEID:(400006);SRVR:BN1PR0301MB0738; X-Microsoft-Exchange-Diagnostics: 1;BN1PR0301MB0738;4:j3f29ja+QGBnjoHLAap+HpIGPwaZqM/q5Mh7RagOEAp0/OOxTZr25udPO3RU82EcNbWhHWDwC4PT8FWv8Dy6tIKQ0w/7hXIREtrd+W5wTa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-Diagnostics: 1;BN1PR0301MB0738;7:qsXjBRkxN+Jk+O92huPOht/CEAQ2bcjA8KBbs2p4KVvSdtKMpS3svjXIoJ33+TIpR2LbT6VJsvDbUgL2sdWOwFuE/NeR+xPbtNoPz64DccvVc+JCSx9SkYHP5inil2riqdl2erPgwQc1wOqja9ZeMjr+JF5erKrP7cnpPr4PRSAWK5tTI0h//bdicZycBm4wH5zBFhw219I0YbJu1VM8MSAIGAw4HWKid4LK1FvsuoEpCMz9lM/ZVcLfnExEghmlLCnOILNn/AeDIf3/k7TLqTR7mEhNgvw0G9olJiNmVweUNtLI3YY4t4g48qQTrwZMNdG++kqMbtNVKv7C1j9qsLAFUspJcYCxi9iC6BUQWiA3Zgm0Y618CEOfRKnFxToId5Yh6o425HEc//9zvxN+OSNcx+/i6SRwL0zIGPpWnD0/Uew8vK53VonnQk0G3seGWUGQVvvLo+pUsozBHXd8vA== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Dec 2016 03:41:52.7277 (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: BN1PR0301MB0738 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2905 Lines: 106 Also add nodes and properties for thermal management support. Signed-off-by: Jia Hongtao --- Depend on patch "[v3] arm64: Add DTS support for FSL's LS1012A SoC". https://patchwork.kernel.org/patch/9462399/ arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 76 ++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi index 92e64f3..bc694b4 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi @@ -43,6 +43,7 @@ */ #include +#include / { compatible = "fsl,ls1012a"; @@ -127,6 +128,81 @@ #clock-cells = <2>; clocks = <&sysclk>; }; + 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>; + big-endian; + #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>; + }; + }; + }; + }; i2c0: i2c@2180000 { compatible = "fsl,vf610-i2c"; -- 2.1.0.27.g96db324