Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2178341pxu; Sun, 6 Dec 2020 22:33:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJz2PYmSqxjvlxFwKNXLfRdcZ+cIU5FxproaKc50O8/fK+m7082q865/r4GcaZREn6+JvJTa X-Received: by 2002:a17:906:c289:: with SMTP id r9mr17228082ejz.311.1607322837258; Sun, 06 Dec 2020 22:33:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607322837; cv=none; d=google.com; s=arc-20160816; b=zulj2e6kxQEs7fwdXGDCLmEOZfrQmMsiRswfCNMSsXy/ImgJpvTvIRj9icxIUkNO+u /wG/l8JaMSfdUgPud97M6hMrD8BhPloZyFt9jt8uJFw8O0ETYJoj8/8GxB1jn16DsZhz 9UvVY8GylvbQw3/Ll/GU0dJTfKJr05gmvFpUP8xbSYoDdPrBjLR4rJll5/qMOUe+xF0x hlEN7CuCBBi4sLTUQ+0RrFjblm4h9rbHY1maA0N1dbZR4jiO7hrgjoYorB6d+QbWIsV+ 9sB81NwlqgxzC7r/DMgk5yqUfn1pm5N3VPdXQLG4SdqIUfC4ZWLBxC17foSaNAFcLj3M 04uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=ukfidMxs4yyc5AKJPwjjsoycAz2k0E44fXCNbm1aE2I=; b=FQWXScnOSH6KSQNCw1Fp3Br1TLkWZuV8aqwQmgUkpICPtrr1eGe6qQWGiWoOIEaAzy mRhRfYwpgnxOoGbuoLCqdVtii+ZoYvZK7QHLs92e4MoBxQWkL7d34SHLbiOVwrYy9wDv RXOm8Pwkz1TV00aShDwLTrrCXrwoHjRjT/BekN7aLw4JMseUBHLUd1982C9NdnLf1j/5 lsr2iU8QKhYaK4hcxtkLONbMiysIBadoPzEmAdrQhGa3Ny73B0fOaVv7Mbf+d32gpgl4 D9tWbqwGyk6IawPkPiVp839Pb58s51KF+kBU1Lt6cBk4HZ6SLx2QCIcmT5d4F8MzioKp gA+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v4si6157804ejx.279.2020.12.06.22.33.33; Sun, 06 Dec 2020 22:33:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725917AbgLGGcP (ORCPT + 99 others); Mon, 7 Dec 2020 01:32:15 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:58721 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725853AbgLGGcO (ORCPT ); Mon, 7 Dec 2020 01:32:14 -0500 X-UUID: e61621a38d034822a5fe688d5d26d22f-20201207 X-UUID: e61621a38d034822a5fe688d5d26d22f-20201207 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1939597967; Mon, 07 Dec 2020 14:31:28 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 7 Dec 2020 14:31:27 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 7 Dec 2020 14:31:26 +0800 From: Michael Kao To: , , Zhang Rui , Daniel Lezcano , , CC: Eduardo Valentin , Rob Herring , Mark Rutland , Matthias Brugger , , , , , Subject: [PATCH 0/3] Add LVTS architecture thermal controller Date: Mon, 7 Dec 2020 14:31:24 +0800 Message-ID: <20201207063127.28051-1-michael.kao@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch move thermal files related to Mediatek to the mediatek folder. And introduce the new architecture LVTS (low pressure thermal sensor) driver to report the highest temperature in the SoC and record the highest temperature sensor, each sensor as a hot zone. The LVTS body is divided into two parts, the LVTS controller and the LVTS device. The LVTS controller can connect up to 4 LVTS devices, and each LVTS device can connect up to 7 TSMCUs. The architecture will be the first to be used on mt6873 and mt8192. Michael Kao (3): thermal: mediatek: Relocate driver to mediatek folder thermal: mediatek: Add LVTS drivers for SoC theraml zones dt-bindings: thermal: Add binding document for mt6873 thermal controller .../thermal/mediatek-thermal-lvts.yaml | 80 + drivers/thermal/Kconfig | 14 +- drivers/thermal/Makefile | 2 +- drivers/thermal/mediatek/Kconfig | 33 + drivers/thermal/mediatek/Makefile | 2 + .../{mtk_thermal.c => mediatek/soc_temp.c} | 0 drivers/thermal/mediatek/soc_temp_lvts.c | 1293 +++++++++++++++++ drivers/thermal/mediatek/soc_temp_lvts.h | 312 ++++ 8 files changed, 1725 insertions(+), 11 deletions(-) create mode 100644 Documentation/devicetree/bindings/thermal/mediatek-thermal-lvts.yaml create mode 100644 drivers/thermal/mediatek/Kconfig create mode 100644 drivers/thermal/mediatek/Makefile rename drivers/thermal/{mtk_thermal.c => mediatek/soc_temp.c} (100%) create mode 100644 drivers/thermal/mediatek/soc_temp_lvts.c create mode 100644 drivers/thermal/mediatek/soc_temp_lvts.h -- 2.18.0