From patchwork Fri May 10 13:26:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Kao X-Patchwork-Id: 10938809 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 4645492A for ; Fri, 10 May 2019 13:27:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3504C28BCE for ; Fri, 10 May 2019 13:27:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 285B128BE2; Fri, 10 May 2019 13:27:25 +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 CB7EC28BCE for ; Fri, 10 May 2019 13:27:24 +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=RoAZg2UtKLk5KYetahlUJKA7Uc63/P9pKV6JXsyv/Ak=; b=MLHOSE8dgwU8t7 HMYECgwWJxoz7w6bgER1OQTkIpB+27R02cG3LBrSp88iPBVcM8WxUzHtzreAOUMdl6yXwSmevEhxO z+SwQn7HoNbzsn2NWlGxhcpPQzdUvCLAIMKvAlpdwO4gPTy+bErkzfsc87dY+kFRmOu+29cVOevsi ULH6UM/qsyLCP6kxQnuH3f1qE6mDZtR/XCjj4Off6Fruegr4AZThAFmwX3cFw9ZvQp6zy4cHszP7w MJ3Iu8tZjyKgYQlJ61hgUjfZI9NFntEeYBeozEr0Dm0qPrbHXhDXI1QPQkGOa4nvhck/TX/e1ymKw pmyZdPpZIei9x681Yvmw==; 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 1hP5YZ-0001nB-K3; Fri, 10 May 2019 13:27:23 +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 1hP5YS-0001d0-Ma; Fri, 10 May 2019 13:27:19 +0000 X-UUID: 7d0cb4578e2e4fe086ce65b5241b0b6d-20190510 X-UUID: 7d0cb4578e2e4fe086ce65b5241b0b6d-20190510 Received: from mtkcas68.mediatek.inc [(172.29.94.19)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 2086611820; Fri, 10 May 2019 05:27:13 -0800 Received: from MTKMBS01N1.mediatek.inc (172.21.101.68) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 10 May 2019 06:27:11 -0700 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 10 May 2019 21:27:09 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 10 May 2019 21:27:09 +0800 From: michael.kao To: Zhang Rui , Eduardo Valentin , Daniel Lezcano , Rob Herring , Mark Rutland , Matthias Brugger , Subject: [PATCH v2 0/8] Add Mediatek thermal dirver and dtsi Date: Fri, 10 May 2019 21:26:58 +0800 Message-ID: <1557494826-6044-1-git-send-email-michael.kao@mediatek.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190510_062716_977214_6430E2BA X-CRM114-Status: UNSURE ( 6.88 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=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. They don't need to thermal throttle. And we bind coolers for thermal zone nodes of cpu_thermal. 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 | 158 +++++++++++++++++++++++++++++++ drivers/thermal/mtk_thermal.c | 82 +++++++++++++--- 2 files changed, 226 insertions(+), 14 deletions(-)