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: mtk17045 X-Patchwork-Id: 212173 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MIME_BASE64_TEXT, SPF_HELO_NONE, SPF_PASS, UNPARSEABLE_RELAY, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1AB4BC8300B for ; Thu, 30 Apr 2020 09:14:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DB2F5214D8 for ; Thu, 30 Apr 2020 09:14:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="Us9RZsZw" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726395AbgD3JOp (ORCPT ); Thu, 30 Apr 2020 05:14:45 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:33341 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726358AbgD3JOp (ORCPT ); Thu, 30 Apr 2020 05:14:45 -0400 X-UUID: f207856ef58a444a9ad3c554b2e7f10f-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=Us9RZsZwQWKSnaORmR1b3FZpJRd8+LQWH9wrFyKxFsRA7fmz1MUBYHoSf9uLkV6BCnKpXnY9EfY38W74DRqeIwxNhFZSPASrkCN6JqQ1jGf3WNKorx9v49TKTuPywk7sBLWFvAr/dYo+23nG8hzOfm8D0Ynh4eMLE/YRwzenQmQ=; X-UUID: f207856ef58a444a9ad3c554b2e7f10f-20200430 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1925825601; Thu, 30 Apr 2020 17:14:41 +0800 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 CC: , , , , Steven Liu , Henry Yen , Michael Kao 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 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.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(-) -- 2.17.1 Reviewed-by: Matthias Brugger