Message ID | 20230529164605.3552619-1-bero@baylibre.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1656020vqr; Mon, 29 May 2023 10:06:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5jI+9UlRxuNHcnB7hqAjNp24J5slh25kJXFZD/HaAb1dBVqNYdD7FT8eEhosB7FqA5rrrl X-Received: by 2002:a17:903:18a:b0:1ad:e2b6:d2a0 with SMTP id z10-20020a170903018a00b001ade2b6d2a0mr9666392plg.11.1685379963315; Mon, 29 May 2023 10:06:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685379963; cv=none; d=google.com; s=arc-20160816; b=QmqAoDgSWkgAZGsTCL/3zjx8rbkj3TVXY3R3WbDFaXX6ZNliNfLChsyWZNxqvWszIm Qn8TtUcTQrQcmFLdrJECnyCT5QOQqvzlJk3GBX/LJW3J7GEqpa4G1P5ogxXZSH+sYu6v pHcZwY+5Tn90TVDzZ16xibGW9KNDRuLcMIbjBZxqKjDaOEV84lQFHtArTSZlMXAu9AcP i20zKQaw1WbRPl/hRoZfhj0TiGxtMoheMlkfwOgNJ4fR5VWGrPwVC4rufgyb9YBnJyvX 3q3zWzJr9s0JWtMmwXVSxxoOnlIbWIiz4MyvAL/X3Y3tmtwBKT2rwjUarprrrh2bUfz5 AY+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=P5W2InnJUP/UeKBwKYOBuhVJVSTGLUNK+LLVoQR0plI=; b=NVuTf0dncElw6riNmi/ho9hoYRkn04idiXwAG9UAK2U+f0WoM2V4RJnjZaLhuvlGMZ 8AtqAsXc1ZcBJJ2uMJYJFph/frGaeJY4/UtDSAAZjSO0AnJehaZnYVrnAjUZ7bGF+hCw oPjPcwW7roKr7ajLvM3fWrxa6IjLRg/oVYYD2gnSbnEYYSW5IlbawsS5v9kgH31+qu5G qEXkQCO+TsfzQNvaN1gzk2JgQnh4syiRsnY8TtDc2okugg0D06+yvcH+tRqWkf8fzpRk o2ra2l1x65cjWdLow3t2Gl2KDBtQyUMRWnZMKkVjMIhRP+e4XW+4hGrLGWVJtHe3l6wI MnRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=1h1XpexR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a11-20020a170902eccb00b001b00ae4ad40si8531040plh.368.2023.05.29.10.05.43; Mon, 29 May 2023 10:06:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=1h1XpexR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229596AbjE2QqS (ORCPT <rfc822;callmefire3@gmail.com> + 99 others); Mon, 29 May 2023 12:46:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbjE2QqP (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 29 May 2023 12:46:15 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A8B2AD for <linux-kernel@vger.kernel.org>; Mon, 29 May 2023 09:46:11 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-973e7c35eddso297400066b.0 for <linux-kernel@vger.kernel.org>; Mon, 29 May 2023 09:46:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1685378770; x=1687970770; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=P5W2InnJUP/UeKBwKYOBuhVJVSTGLUNK+LLVoQR0plI=; b=1h1XpexRNcq/GARqspAA3SgX1lx9vLDK6+EnwpwTtJFPeMV7/8eQfB5/0Duo1jdbM0 zCmWVEoFh5y1cmnTFFbEb4XR5dTGF9oL8BTrYLjgNZEZ0zsbpFe5aC5sTu2n9ZSG0Cjz NbmrjT73sF7cjE7sPH0pjCZavpTaTgfx3faWFv17/JCyXnOthchgA39p1Lu8QDrxIPdm SzWueJlsMVOzzCnzQGNawipPcmqEU4jI6gt87OB5OFNlN9Etq4IJ/lBqNNnGrOrBAPzn 1byM6y1ing7jmIqFnZJj7IdKvBwZwxuUOoX8+ABU4l9zz725vX5Zyb/A1A06ABO6CshY RYmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685378770; x=1687970770; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=P5W2InnJUP/UeKBwKYOBuhVJVSTGLUNK+LLVoQR0plI=; b=KM0tO/e8ZxYv0uawkUM6+CngjKLlOzmM3RuFX1UzsrMO9leqAuMJUQLTQRy/+E1Aa6 uc2vnsl5kHQC3IIi3rM4Uf5qrk6wxmrCFvf5QK0CwDgPjak+lRK3poUK2QlJLlFSgHkE dAsude+MloyPHYoZ4kMTa7uCZl60PNMrXr5Wucb8A/Kh3WqoRyAB+x/ik/7ET/la5oYo qV+QOCpAztUJXOmBiFfhnKE+vniM/S5VJhmdmohvwYOMHKw7BzVEIaN/CgP84IWHlXe2 py2li2Kz7E6Rjzo0a7pSKxA86muHFNhMpIs9yGaxNmd+TqKRVxL4ZY7P9omC9Z4nF234 bFvw== X-Gm-Message-State: AC+VfDyrsl8VTifUwoWXaNzVPCFqpjfn0u0DBUlwopD1yclpkk4RNk9Q aGELfvRYouduRcYIJfKF37jmaQ== X-Received: by 2002:a17:907:846:b0:96a:4ea0:a1ea with SMTP id ww6-20020a170907084600b0096a4ea0a1eamr10330693ejb.44.1685378769781; Mon, 29 May 2023 09:46:09 -0700 (PDT) Received: from ph18.baylibre (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id f4-20020aa7d844000000b0050d89daaa70sm3248578eds.2.2023.05.29.09.46.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 May 2023 09:46:09 -0700 (PDT) From: =?utf-8?q?Bernhard_Rosenkr=C3=A4nzer?= <bero@baylibre.com> To: daniel.lezcano@linaro.org, angelogioacchino.delregno@collabora.com, rafael@kernel.org, amitk@kernel.org, rui.zhang@intel.com, matthias.bgg@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, rdunlap@infradead.org, ye.xingchen@zte.com.cn, p.zabel@pengutronix.de Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, wenst@chromium.org, james.lo@mediatek.com, rex-bc.chen@mediatek.com, nfraprado@collabora.com, abailon@baylibre.com, amergnat@baylibre.com, khilman@baylibre.com Subject: [PATCH v3 0/5] Add LVTS support for mt8192 Date: Mon, 29 May 2023 18:46:00 +0200 Message-ID: <20230529164605.3552619-1-bero@baylibre.com> X-Mailer: git-send-email 2.41.0.rc2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767248980040002541?= X-GMAIL-MSGID: =?utf-8?q?1767248980040002541?= |
Series |
Add LVTS support for mt8192
|
|
Message
Bernhard Rosenkränzer
May 29, 2023, 4:46 p.m. UTC
From: Balsam CHIHI <bchihi@baylibre.com> Add full LVTS support (MCU thermal domain + AP thermal domain) to MediaTek MT8192 SoC. Also, add Suspend and Resume support to LVTS Driver (all SoCs), and update the documentation that describes the Calibration Data Offsets. Changelog: v3 : - Rebased : base-commit: 6a3d37b4d885129561e1cef361216f00472f7d2e - Fix issues in v2 pointed out by Nícolas F. R. A. Prado <nfraprado@collabora.com>: Use filtered mode to make sure threshold interrupts are triggered, protocol documentation, cosmetics - I (bero@baylibre.com) will be taking care of this patchset from now on, since Balsam has left BayLibre. Thanks for getting it almost ready, Balsam! v2 : - Based on top of thermal/linux-next : base-commit: 7ac82227ee046f8234471de4c12a40b8c2d3ddcc - Squash "add thermal zones and thermal nodes" and "add temperature mitigation threshold" commits together to form "arm64: dts: mediatek: mt8192: Add thermal nodes and thermal zones" commit. - Add Suspend and Resume support to LVTS Driver. - Update Calibration Data documentation. - Fix calibration data offsets for mt8192 (Thanks to "Chen-Yu Tsai" and "Nícolas F. R. A. Prado"). https://lore.kernel.org/all/20230425133052.199767-1-bchihi@baylibre.com/ Tested-by: Chen-Yu Tsai <wenst@chromium.org> v1 : - The initial series "Add LVTS support for mt8192" : "https://lore.kernel.org/all/20230307163413.143334-1-bchihi@baylibre.com/". Balsam CHIHI (5): dt-bindings: thermal: mediatek: Add LVTS thermal controller definition for mt8192 thermal/drivers/mediatek/lvts_thermal: Add suspend and resume thermal/drivers/mediatek/lvts_thermal: Add mt8192 support arm64: dts: mediatek: mt8192: Add thermal nodes and thermal zones thermal/drivers/mediatek/lvts_thermal: Update calibration data documentation arch/arm64/boot/dts/mediatek/mt8192.dtsi | 454 ++++++++++++++++++ drivers/thermal/mediatek/lvts_thermal.c | 160 +++++- .../thermal/mediatek,lvts-thermal.h | 19 + 3 files changed, 631 insertions(+), 2 deletions(-) base-commit: 6a3d37b4d885129561e1cef361216f00472f7d2e