From patchwork Thu Mar 19 09:54:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?SGVucnkgWWVuICjpoY/kv67muqsp?= X-Patchwork-Id: 11446963 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2739692A for ; Thu, 19 Mar 2020 09:55:49 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 04BEC20788 for ; Thu, 19 Mar 2020 09:55:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ftWbWlWy"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="oY66sdEF" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 04BEC20788 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org 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=mK73SAafwrE3ooZSRf0132ewvqjYbKYi8UWvC67U0/w=; b=ftWbWlWy6vLLwY c98Z0n8aJSE19U2oCt/Ys/5GB/okfeewnxfk5s8wZJFFuOU3eTnczbiep7BhIyqd6Ng369crNrNu+ VdDY+qMUAH7jlLd/5izc29zXIyzpxTu57vFpMSzDfAtby/fAtG1ZPlCdE1KZI3MCvqQbdQPdmvNA8 WqZ1rtPBcdZlgcAxwOEg6jkRqUyFPw4ScKEc6Qaf3BM/bhlUezr4v58jDwQNjzaU7F/08yzczFHLb PVfy0K2dl56LkYpp0yZgJB7e0jedq0j2NB8+SNb0KRk4DpG9rDR/VmGTGa7cIgWU7TaaVI0sgjtau 06BROT3AvG83CQJd0Shw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jErty-0002R2-4v; Thu, 19 Mar 2020 09:55:46 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jErtk-0002GR-HQ; Thu, 19 Mar 2020 09:55:34 +0000 X-UUID: acfaec9ac72644cb9f3e84107b496905-20200319 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=eAP4t7CT+ZTox+ouHvAMB5H/l5cIuHdf3USlLwvMS5Y=; b=oY66sdEFmCBVNQ9ZuL0OkbFWGhHr4c8T4PiH2eMs3xZqOQzCHvCOTlUakqaTtkbu6HK5y8KTiXCyegD0WVnABFhPHj2gh+SruiFYL3Suv8hP8nzuWYTPUqDr3Igne3UALiDOKnAo1xocp3F5HRtethedgR1ly/NMUx759/+0T3o=; X-UUID: acfaec9ac72644cb9f3e84107b496905-20200319 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 834903801; Thu, 19 Mar 2020 01:55:26 -0800 Received: from MTKMBS02N2.mediatek.inc (172.21.101.101) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 19 Mar 2020 02:55:25 -0700 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 19 Mar 2020 17:52:26 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 19 Mar 2020 17:52:16 +0800 From: Henry Yen To: Zhang Rui , Daniel Lezcano , Amit Kucheria , Matthias Brugger Subject: [PATCH 0/2] Add Mediatek thermal driver for MT7622 Date: Thu, 19 Mar 2020 17:54:51 +0800 Message-ID: <1584611693-3553-1-git-send-email-henry.yen@mediatek.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-TM-SNTS-SMTP: CE5A3A715436CF45EA217465AFB9DE324815F7979766A429500461C9CCCC66552000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200319_025532_741064_93B48542 X-CRM114-Status: UNSURE ( 6.53 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [216.200.240.184 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 MIME_BASE64_TEXT RAW: Message text disguised using base64 encoding -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Steven Liu , Henry Yen , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Kao , linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org Mediatek owns two thermal systems, which are almost the same except for the way of reading calibration data and converting temperature. MT8173, MT2701, MT2712 and MT8183 belongs to version 1 thermal system, and MT7622 belongs to version 2. The current code has already supported version 1 system. Then this patchset adds the support for another platform (e.g., MT7622 SoC). Henry Yen (2): thermal: mediatek: prepare to add support for other platforms thermal: mediatek: add tsensor support for MT7622 SoC drivers/thermal/mtk_thermal.c | 244 ++++++++++++++++++++++++++-------- 1 file changed, 189 insertions(+), 55 deletions(-)