From patchwork Thu May 2 10:43:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Kao X-Patchwork-Id: 10926531 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 895A992A for ; Thu, 2 May 2019 10:44:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 75B0828D92 for ; Thu, 2 May 2019 10:44:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 69F3628DA0; Thu, 2 May 2019 10:44:03 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1AEA128D92 for ; Thu, 2 May 2019 10:44:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=NynvNCaGXqMbJlJ9CGS63z+W4P2hBaK6dNtC7BWztZk=; b=D0Oj2ddPf35Rzf eS5up12Z0odzZ6TFHSZo+S7Ym2UXGB16pE0RUWdvax+GSRrEJs6eTOGzR0JkBKM55brQNdxajRhnc 0yae7n1aZe1MNkRJ0tiXoig3YmbttpaMyB7jjuXuZ3IWym2M2urFncD7C/dphSAOjGgOEQqGwAiLX eKwXY5YEWCTdu9eUHprAsX22JknLAqt+lCgCzMeoBmRJgdg2jghpNO3QWC4dZucIPZl/tQziVuU1F xNHsi7eidPCDPsWuv6R+BuuaQSF3Exqdkw6NFKPj6faVs4MPHzAIxCybVECbzJyFlI1O8RYxoFhCH vYrOMl8JXD0MjDY56h+g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hM9C2-0000pG-Ry; Thu, 02 May 2019 10:43:58 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hM9BV-0008Uf-FU; Thu, 02 May 2019 10:43:26 +0000 X-UUID: 77c3bea6cf084fffbd7d1c0db18eb986-20190502 X-UUID: 77c3bea6cf084fffbd7d1c0db18eb986-20190502 Received: from mtkcas67.mediatek.inc [(172.29.193.45)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 322891785; Thu, 02 May 2019 02:43:21 -0800 Received: from mtkmbs08n2.mediatek.inc (172.21.101.56) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 2 May 2019 03:43:20 -0700 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 2 May 2019 18:43:18 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 2 May 2019 18:43:18 +0800 From: michael.kao To: , , , , , , Zhang Rui , Eduardo Valentin , Daniel Lezcano , Rob Herring , Mark Rutland , Matthias Brugger Subject: [PATCH 0/8] Add Mediatek thermal dirver and dtsi Date: Thu, 2 May 2019 18:43:07 +0800 Message-ID: <1556793795-25204-1-git-send-email-michael.kao@mediatek.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-TM-SNTS-SMTP: 96AF9BAD32D3D5A97367FCFE066B758E2ED5C4DC0DC4A32DCA4AD0B1EEA40AC12000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190502_034325_520242_00737BE0 X-CRM114-Status: UNSURE ( 6.57 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patchset supports for MT8183 chip to mtk_thermal.c. Add thermal zone of all the thermal sensor in SoC for another get temperatrue. And we add thermal zone nodes and bind coolers. 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 | 137 +++++++++++++++++++++++++++++++ drivers/thermal/mtk_thermal.c | 82 ++++++++++++++---- 2 files changed, 205 insertions(+), 14 deletions(-)