Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp249553imp; Tue, 19 Feb 2019 22:55:19 -0800 (PST) X-Google-Smtp-Source: AHgI3IaKYhdJLVi6WikWdcCDfPKcAFGK+RUaFuPPJOq7kchNFfo7HpfXmLfUhYAjDWn8Pe2Bcxaq X-Received: by 2002:a17:902:8e8b:: with SMTP id bg11mr35675207plb.332.1550645719778; Tue, 19 Feb 2019 22:55:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550645719; cv=none; d=google.com; s=arc-20160816; b=YBkbk9ydK8UQswW4WIicpQ9n2KafW/aaRHeum5lKtJlbTUajZHWYb+TgLlnsGqkqcB qVZs9TZDtWaG0XqwqHvOQ12J/jtL1pjBmnDTcRV2//WDNt2hk6MpLQ3LIBU+6dkMVve3 wphT8K7oq1X79doJAbcX6K/fvGbGYZx93Ml1RhiAqq/saW4+xn3vikIw1C8iUMPaH6DK 6Nj376XuGeMF9rwtKp23rPlxTE7Xvk0VFGuXpR7d1Rs8VLNCDqYv2nVFrxbf/n0AXJhP iIeALBdkJJvMMd0Imoliegz07KpSYDGekvGXAWDNQbb+m/Ap37HXIjdzONB+HVd05Xe6 EwHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=x7vvJpUc8AzJ2+iBl+Ug3+Ov8umi01/juNghnVDL2U0=; b=lhVeMaCM46/HG/tJhgwX4wbEcW2x0p/j1K7HmQXqtECKVOIPYkj/t6kUyeMILd4aY0 oyA6NmXkJ5fefFC/cd5aUU+Ojij68XuAWBTqTVgwIuZjjA8+gWnTz0n43oKdPUIcDvbQ HqE/FDC6nQ8aGloaujviHGXnsh5f68qHW4nxypTrIDYKrOSVbqmW3zvitefClizYnO8e /XluCr438BGMyq46fXssF08P3RfweIYAHLDY2WNFDP5T2QFU2YFJsI7y2wmlP+0Uc2oq ADoT54eYc+u15XnVRQldBzXLDGaf2DsICHZ4OQmqNm9UqfDFVNGbULicipoEKqT8RK/T B4xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=UJyOOrK4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b11si12382416pgk.77.2019.02.19.22.55.04; Tue, 19 Feb 2019 22:55:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=UJyOOrK4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730541AbfBTGyC (ORCPT + 99 others); Wed, 20 Feb 2019 01:54:02 -0500 Received: from mail-eopbgr40062.outbound.protection.outlook.com ([40.107.4.62]:56736 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726210AbfBTGyC (ORCPT ); Wed, 20 Feb 2019 01:54:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=x7vvJpUc8AzJ2+iBl+Ug3+Ov8umi01/juNghnVDL2U0=; b=UJyOOrK4FfnO5tIj1oiJjcpgf2YCrzXA6AH1W7gn6kWRHLf1vgjy8dgX7yBEtBnhcrI3T20yjvjf5Y56Wx9cJFksCg1INpmWahphGtM+xsi1AvaunA09yhoOqj4iRT3xkPOL2po2lvMJnTyTVPxuO2XRYwrvXheAuoOscj4SN0o= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3883.eurprd04.prod.outlook.com (52.134.71.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.19; Wed, 20 Feb 2019 06:53:58 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::14e8:6d2e:fe21:4fd5]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::14e8:6d2e:fe21:4fd5%3]) with mapi id 15.20.1601.023; Wed, 20 Feb 2019 06:53:58 +0000 From: Anson Huang To: "mark.rutland@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , "rui.zhang@intel.com" , "edubezval@gmail.com" , "daniel.lezcano@linaro.org" , Aisheng Dong , "ulf.hansson@linaro.org" , Daniel Baluta , "horms+renesas@verge.net.au" , Andy Gross , "heiko@sntech.de" , "arnd@arndb.de" , "olof@lixom.net" , "bjorn.andersson@linaro.org" , "jagan@amarulasolutions.com" , "enric.balletbo@collabora.com" , "marc.w.gonzalez@free.fr" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-pm@vger.kernel.org" CC: dl-linux-imx Subject: [PATCH V7 4/4] arm64: dts: imx: add i.MX8QXP thermal support Thread-Topic: [PATCH V7 4/4] arm64: dts: imx: add i.MX8QXP thermal support Thread-Index: AQHUyOkNAaRgvbqSq0aZKEZTC700Lg== Date: Wed, 20 Feb 2019 06:53:58 +0000 Message-ID: <1550645332-2907-4-git-send-email-Anson.Huang@nxp.com> References: <1550645332-2907-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1550645332-2907-1-git-send-email-Anson.Huang@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK2PR04CA0050.apcprd04.prod.outlook.com (2603:1096:202:14::18) To DB3PR0402MB3916.eurprd04.prod.outlook.com (2603:10a6:8:10::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e27d52e2-2d34-4a52-5121-08d697002fe2 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020);SRVR:DB3PR0402MB3883; x-ms-traffictypediagnostic: DB3PR0402MB3883: x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1;DB3PR0402MB3883;23:raHSPdV4Pv12RvAHwYMnJnzKrnt2hc9PA8q6N?= =?iso-8859-1?Q?dDlMnRuQpefO+KJgvbPdEbTAnLkwevuOaJL08oTS5CKyfqH4zx0+BRlY27?= =?iso-8859-1?Q?kjxR4o0+dbX3dFx+5T9wdyNKJ7rbwz2/Zf5ujF65nUofoB5IPhJXLb3ppd?= =?iso-8859-1?Q?FCLB+WV94KLIOm80P92S36OsVenCx7Ib7Po7LLVamtvgcKWFcp+CswAw5m?= =?iso-8859-1?Q?NQA6QorwSWkx9ASInPHu8vGOHxEqfNoy7JZnv1SpvZOQgNbgEV7YDNaOMx?= =?iso-8859-1?Q?XYxtQuHLI870piyDRopliB10QHuL/EcWKv5V19QldMCTdnE5AnS/ee4MUJ?= =?iso-8859-1?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HDro1XwC+mvVE3RbOW?= =?iso-8859-1?Q?EoSrNpyUxRxyUBjzu6y3bM8se5RZq3g/ETgCA/nnTM1pAHu9HH1vw/izqz?= =?iso-8859-1?Q?DHK7qb8t1vw2wPVEktgGwvGAK?= x-microsoft-antispam-prvs: x-forefront-prvs: 0954EE4910 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(39860400002)(366004)(346002)(396003)(376002)(199004)(189003)(81156014)(2906002)(81166006)(386003)(105586002)(50226002)(2201001)(2501003)(8936002)(5660300002)(102836004)(106356001)(8676002)(6506007)(476003)(2616005)(99286004)(86362001)(4326008)(52116002)(25786009)(3846002)(11346002)(6116002)(446003)(71190400001)(71200400001)(110136005)(486006)(76176011)(316002)(68736007)(6512007)(6436002)(256004)(14444005)(53936002)(7736002)(478600001)(66066001)(97736004)(186003)(14454004)(6486002)(26005)(305945005)(7416002)(36756003)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3883;H:DB3PR0402MB3916.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: voU1rMjrX0Pq62dMzV0zcMBD2HzZ4smKpB1/fOD7hP9X8wr4TeDeMlvAwpeApVZxdbeg1ekRqUEspfFOSh8YJ/loosk6DilAD9rZv9k+Ai5Sx9qfHRZ/AFgXtnS9e5vrZgrmxf33Ejtnct88QqV8+HAWjRig3lY90JhCIVgPG3L3OgOKIi/cZB1u6Rp1V2n3QSiI5uCCEHE4pdoEU68iufFEtv/E7AGSG/4mJKJ5atsZP+CLD2oln+Me+d3yLwfm+lXfu/LMMAkILuhsA6rVdb+uKKpjxT9Z4eiGEdDpPhBqt6R9q88AowHuBOv2zL6YhE+LCr7OKBC6GBg6u0Hkvep1k2W6mUvg42OaCsULqhje+1O6gjCw54pBk6Q+U0ZGVQIC2nCCBhtC4UbzA5/Ln9mtUNZuVBZIflsSS79X08E= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e27d52e2-2d34-4a52-5121-08d697002fe2 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Feb 2019 06:53:49.5580 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3883 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add i.MX8QXP CPU thermal zone support. Signed-off-by: Anson Huang --- Changes since V6: - add fallback compatible string "fsl,imx-sc-thermal" according to i.MX SC= thermal driver update. --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 28 ++++++++++++++++++++++++++= ++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/d= ts/freescale/imx8qxp.dtsi index 4c3dd95..24b03d6 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi @@ -10,6 +10,7 @@ #include #include #include +#include =20 / { interrupt-parent =3D <&gic>; @@ -116,6 +117,12 @@ rtc: rtc { compatible =3D "fsl,imx8qxp-sc-rtc"; }; + + tsens: thermal-sensor { + compatible =3D "fsl,imx8qxp-sc-thermal", "fsl,imx-sc-thermal"; + tsens-num =3D <1>; + #thermal-sensor-cells =3D <1>; + }; }; =20 timer { @@ -443,4 +450,25 @@ power-domains =3D <&pd IMX_SC_R_GPIO_7>; }; }; + + thermal_zones: thermal-zones { + cpu-thermal0 { + polling-delay-passive =3D <250>; + polling-delay =3D <2000>; + thermal-sensors =3D <&tsens 0>; + imx,sensor-resource-id =3D <355>; + trips { + cpu_alert0: trip0 { + temperature =3D <107000>; + hysteresis =3D <2000>; + type =3D "passive"; + }; + cpu_crit0: trip1 { + temperature =3D <127000>; + hysteresis =3D <2000>; + type =3D "critical"; + }; + }; + }; + }; }; --=20 2.7.4