From patchwork Wed Feb 20 12:31:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Kao X-Patchwork-Id: 10822049 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 233B014E1 for ; Wed, 20 Feb 2019 12:32:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 071C62E077 for ; Wed, 20 Feb 2019 12:32:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D86BD2E00A; Wed, 20 Feb 2019 12:32:29 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 24BD72E068 for ; Wed, 20 Feb 2019 12:32:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728018AbfBTMcW (ORCPT ); Wed, 20 Feb 2019 07:32:22 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:18778 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727484AbfBTMbo (ORCPT ); Wed, 20 Feb 2019 07:31:44 -0500 X-UUID: 9fbae55b8a5c4fd3852ab660312c0e86-20190220 X-UUID: 9fbae55b8a5c4fd3852ab660312c0e86-20190220 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1456685008; Wed, 20 Feb 2019 20:31:37 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkexhb01.mediatek.inc (172.21.101.102) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 20 Feb 2019 20:31:36 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkcas07.mediatek.inc (172.21.101.84) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 20 Feb 2019 20:31:35 +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; Wed, 20 Feb 2019 20:31:35 +0800 From: To: Zhang Rui , Eduardo Valentin , Daniel Lezcano , Rob Herring , Mark Rutland , Matthias Brugger CC: , , , , Subject: [PATCH v2,0/7] Add Mediatek thermal dirver for mt8183 Date: Wed, 20 Feb 2019 20:31:26 +0800 Message-ID: <1550665893-22561-1-git-send-email-michael.kao@mediatek.com> X-Mailer: git-send-email 1.9.1 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 X-Virus-Scanned: ClamAV using ClamSMTP This patchset supports for mt8183 chip to mtk_thermal.c. MT8183 has six temperature sensors and two thermal controllers. It has different calibration coefficent with past project, and doesn't need to select bank. As a result, we add the common architecture for scalability. change in v2: 1.Add fix tag of commit message to PATCH 1/7. 2.Change memery declaration of controller_base to PATCH 4/7. 3.Add module author to PATCH 7/7. Michael Kao (7): thermal: mediatek: fix register index error thermal: mediatek: add common index of vts settings. thermal: mediatek: add calibration item thermal: mediatek: add thermal controller offset thermal: mediatek: add flag for bank selection dt-bindings: thermal: add binding document for mt8183 thermal controller thermal: mediatek: add support for MT8183 .../bindings/thermal/mediatek-thermal.txt | 1 + drivers/thermal/mtk_thermal.c | 316 +++++++++++++++++---- 2 files changed, 258 insertions(+), 59 deletions(-)