From patchwork Fri Jan 3 06:43:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Kao X-Patchwork-Id: 213121 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MIME_BASE64_TEXT, SPF_HELO_NONE, SPF_PASS, UNPARSEABLE_RELAY, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84E78C32771 for ; Fri, 3 Jan 2020 06:44:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5A8C12465D for ; Fri, 3 Jan 2020 06:44:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="QZjmnx6+" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727220AbgACGoT (ORCPT ); Fri, 3 Jan 2020 01:44:19 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:62447 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726181AbgACGoR (ORCPT ); Fri, 3 Jan 2020 01:44:17 -0500 X-UUID: e9e4b51c9fbe42fbac68190756123ae4-20200103 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=ih+VIQfKXduOjptVm6qmEZ+ILG81EfY3C/tspmpMToM=; b=QZjmnx6+7vSaqjC7GGJ5CaY5BVyCt0Kl7Tx5BKUUG9WYwzSK3AJCkZpB9VRClHNHnFD3fbWK7ITN5VO3X9qB+plVtgX1Vdk+PBUwuy7bNYkTzvj5KIJNZmqlKWYnmDkD8vAcQIqgrilsiN2t3wt6QtcuroisWKwNcctOwIYHAjo=; X-UUID: e9e4b51c9fbe42fbac68190756123ae4-20200103 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1938605274; Fri, 03 Jan 2020 14:44:10 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 3 Jan 2020 14:43:44 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 3 Jan 2020 14:44:08 +0800 From: Michael Kao To: Zhang Rui , Eduardo Valentin , Daniel Lezcano , Rob Herring , Mark Rutland , Matthias Brugger , , , CC: , , , Subject: [PATCH v3,0/8] Add Mediatek thermal dirver and dtsi Date: Fri, 3 Jan 2020 14:43:59 +0800 Message-ID: <20200103064407.19861-1-michael.kao@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org This patchset supports for MT8183 chip to mtk_thermal.c. Add thermal zone of all the thermal sensor in SoC for another get temperatrue. They don't need to thermal throttle. And we bind coolers for thermal zone nodes of cpu_thermal. Rebase to kernel-5.5-rc1. Update content: [1/8] Update sustainable power of cpu, tzts1~5 and tztsABB. [7/8] Bypass the failure that non cpu_thermal sensor is not find in thermal-zones in dts, which is normal for mt8173, so prompt a warning here instead of failing. Return -EAGAIN instead of -EACCESS on the first read of sensor that often are bogus values. This can avoid following warning on boot: thermal thermal_zone6: failed to read out thermal zone (-13) This patch series base on these patches [1][2][3][4]. [1]support for reading chip ID and efuse (https://patchwork.kernel.org/patch/10902131/) [2]arm64: dts: mt8183: Add reset-cells in infracfg (https://patchwork.kernel.org/patch/10908653/) [3]clk: reset: Modify reset-controller driver (https://patchwork.kernel.org/patch/10908657/) [4]PM / AVS: SVS: Introduce SVS engine (https://patchwork.kernel.org/patch/10923289/) Matthias Kaehlcke (2): arm64: dts: mt8183: Configure CPU cooling arm64: dts: mt8183: Increase polling frequency for CPU thermal zone Michael Kao (6): arm64: dts: mt8183: add thermal zone node arm64: dts: mt8183: add/update dynamic power coefficients arm64: dts: mt8183: Add #cooling-cells to CPU nodes thermal: mediatek: mt8183: fix bank number settings thermal: mediatek: add another get_temp ops for thermal sensors thermal: mediatek: use spinlock to protect PTPCORESEL arch/arm64/boot/dts/mediatek/mt8183.dtsi | 157 +++++++++++++++++++++++ drivers/thermal/mtk_thermal.c | 88 +++++++++++-- 2 files changed, 231 insertions(+), 14 deletions(-)