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: 10822031 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 2622C14E1 for ; Wed, 20 Feb 2019 12:32:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C55E2E007 for ; Wed, 20 Feb 2019 12:32:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 083202E011; Wed, 20 Feb 2019 12:32:02 +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 B1AF92E030 for ; Wed, 20 Feb 2019 12:32:01 +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=ZWVSjZ1ZOCStCloJ1MBUXAZNTlVjTL1hhXTg2/roI74=; b=HMCy/xlIPuSwZv G+R8fujb6J3QdOd4qo/SPPu7rGEZk2mzHPjkoxZLw7NWeowlE8SoIxI0QFB3Bx2m79r0f44V8p+K8 WP3Np1470WD2AK4vuyBkQKsogcHLncX6Axg6pR3txuntq5JUs6bjbypYBjKfPz+5hG+yiRXTDrw6M hlrmC4hmPjrEVMVulyqjCRVSzmBNZLWHNYOW2vxrC1qZ18xg1Frou2vCC3vIFX3r7VvdwTIjPRJrr 7IyzkshSJ07OuClBSWJbm4O5xQLiG1cETggiwd6Y3SWUzuzIQRtv00awQknrD+7oao8IvHo0i+f87 UqOhNKC3b44hhQeagRfQ==; 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 1gwR2T-0008BJ-PI; Wed, 20 Feb 2019 12:31:49 +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 1gwR2Q-0008AF-Is; Wed, 20 Feb 2019 12:31:47 +0000 X-UUID: d2aafeb79e2a4815b6fd31a4c32dd153-20190220 X-UUID: d2aafeb79e2a4815b6fd31a4c32dd153-20190220 Received: from mtkcas68.mediatek.inc [(172.29.94.19)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 1373921168; Wed, 20 Feb 2019 04:31:38 -0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 20 Feb 2019 04:31:37 -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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190220_043146_637062_F8C74CD3 X-CRM114-Status: UNSURE ( 7.56 ) 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. 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(-)