From patchwork Thu Apr 30 09:14:32 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: 11519625 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 AFF8815AB for ; Thu, 30 Apr 2020 09:25:06 +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 DB9FF2137B for ; Thu, 30 Apr 2020 09:25:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="SXGfE2k9"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="AxN0iCza" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DB9FF2137B 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=jqrEBthXUDV1C0IZlGXJSDty4Dlpwv7aFcxbRLUdF30=; b=SXGfE2k9wAoY9r +BkO3pthBa03/Xh63YBOIo31h6TJi9wGnC9059G24RHQT8aJNbywg0ZZSC0ls/nABxhXFSB3wwyVu AZJ4ZLkAP/aen18qvcxelFB0P1qKEzb6lpHhqEld419ZhPH/OaG1KwdxIJx7Dia8x6Xaq7YIklyDW O/1KFW1qTa34ipOgxv/bmoUlIlx6O4R0G8JZWNsgnmOHr5XLHk7mOt2/YkZTDFHZFH3rDB0nEtRgv Ts+UJBsGvCoJBDkHGStzAvnh2jmCYnoHuXJ7tsIgOCkJWmol6sNRz2I63JMNKwTuVnocy+BMRAJDe 0IfPgjVln3PvyIdJsSMw==; 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 1jU5RD-00007S-MV; Thu, 30 Apr 2020 09:24:59 +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 1jU5R2-0008Ns-V3; Thu, 30 Apr 2020 09:24:50 +0000 X-UUID: b7e6786c90ad4316aa499689621340ba-20200430 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=ZyWHANL6IrB0l51Zfc83GdOFYp8wjYfrW0mYPD40bfY=; b=AxN0iCza3K8zIbbx4JQpmtqPtpbqrlAHclTp91xQwNzi2Xve6tZ4RsklUhwbfzP2z4OTkigkxzi2X40moUcXib1yqeif6h3V+xLiBA/5E7n255c8YkTJwNipDbitckNaMhF3Anm/Oc9HVpWJj5h4+w1/GQHMDC6x0rNv+PbmqWo=; X-UUID: b7e6786c90ad4316aa499689621340ba-20200430 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 1452036851; Thu, 30 Apr 2020 01:24:37 -0800 Received: from MTKMBS02N2.mediatek.inc (172.21.101.101) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 30 Apr 2020 02:14:39 -0700 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 30 Apr 2020 17:14:36 +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.1497.2 via Frontend Transport; Thu, 30 Apr 2020 17:14:39 +0800 From: Henry Yen To: Zhang Rui , Daniel Lezcano , Amit Kucheria , Matthias Brugger Subject: [PATCH v2 0/2] Mediatek thermal driver update Date: Thu, 30 Apr 2020 17:14:32 +0800 Message-ID: <1588238074-19338-1-git-send-email-henry.yen@mediatek.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-TM-SNTS-SMTP: 7F58CE61F64B44D235ACC83466F1B3E82A319B4F514B5C42ADCF5FDE31662D0F2000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200430_022449_008543_C23883D0 X-CRM114-Status: UNSURE ( 6.45 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -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_AU Message has a valid DKIM or DK signature from author's domain -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.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, MT8183, MT2701 and MT2712 belongs to version 1 thermal system, and MT7622 belongs to version 2. The current code has already supported version 1 system. Then this patchset will add the support for another platform (e.g., MT7622 SoC). Changelog: v2: * reorganize the order of the two patches * remove unnecessary .extract and .convert callbacks * add fixes tag v1: * initial post Henry Yen (2): thermal: mediatek: prepare to add support for other platforms thermal: mediatek: add tsensor support for V2 thermal system drivers/thermal/mtk_thermal.c | 234 ++++++++++++++++++++++++++-------- 1 file changed, 181 insertions(+), 53 deletions(-)