Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49A06C05027 for ; Fri, 10 Feb 2023 09:13:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231886AbjBJJNj (ORCPT ); Fri, 10 Feb 2023 04:13:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231769AbjBJJNd (ORCPT ); Fri, 10 Feb 2023 04:13:33 -0500 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 835015BA67 for ; Fri, 10 Feb 2023 01:13:24 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id c26so9260297ejz.10 for ; Fri, 10 Feb 2023 01:13:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=8fZFf2yI4NiZ1ohXSbStbdFw0GfjyGPBHrzhVz49z0Y=; b=b2tb5/OmuOTxoKVQ1J47Qg4rdMcs72fXWi2DfegMVNDSgLn/zmioHttGI9DFW+/qzO 96+2ePEG/zrjdP3GQl7vtsyP9kRPGLutO27ermYdpR0e4tHx7pko4FrB0tILW41i8pj+ lJC2lLEgiqa39+x8zVHZEfRw6ZyQwxKpS73UR37olSz5OGLmHnSbLV3yAGCIkezCx+bZ 3YKLECmvyv1A336QZ3mUaN3cQ2YSd2yz6iSe2D+ptr82EpDptxzhcW8pJ+sLw5hn2CGJ yl7czinS3HoNadZ0i7ykVJoirTqSh+11oUPnlCzAIxf1R22L/6/bBQ//MSXFOy7yRTX/ 5fvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8fZFf2yI4NiZ1ohXSbStbdFw0GfjyGPBHrzhVz49z0Y=; b=70GTpjjn/L9Utw6mD3oNVs66DFO/QUbjnXOT+15G6MHyYMhtLIP91pKwASF2b8yNq6 O7K1SP6Rq4uo5aKj9cddKl34x2l9q/8/vQsaZT3cJK8djBLtIzKW5qe1klSEMje5Tb/G 2G52deviJ0pg/nA9pcYAPAWWl36pZE661KloztoFIFfUlNnE7NEuiZ8jnf/1bp/EmGyY Q2Gkgl+gCIifMliHW8DTC9lkLT9ckC4ro4Lfg6xq/DyJUDy5BCmkas30jPE3HKa9uhJo SXXg6B2wTlQm9N3H0sI4GSdCvquCpOgl+MCihg4kSUxobxbVUGIFp0yCXWGTXrNMWv7w qtAQ== X-Gm-Message-State: AO0yUKVY0f3arxIw/RiD2jYHv5vZZyiWnITvf532Z5Y6xmSzbq0148fB TgNzVXS7iEL8NjOWgyrFUVk5YMhWOMZ6efizpDNocw== X-Google-Smtp-Source: AK7set8z0VVs9Ynm8YK8/sg/s2hoilc5vUf32Iszp/v3ATNK4ku2TS/dWRb+ymTJE6AxLofb6FZhMsS0juAOG5sQLBU= X-Received: by 2002:a17:906:ca04:b0:7c0:f45e:22ff with SMTP id jt4-20020a170906ca0400b007c0f45e22ffmr3467086ejb.104.1676020403067; Fri, 10 Feb 2023 01:13:23 -0800 (PST) MIME-Version: 1.0 References: <20230209105628.50294-1-bchihi@baylibre.com> In-Reply-To: From: Balsam CHIHI Date: Fri, 10 Feb 2023 10:12:47 +0100 Message-ID: Subject: Re: [PATCH v14 0/6] Add LVTS Thermal Architecture To: Daniel Lezcano Cc: 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, 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, khilman@baylibre.com, james.lo@mediatek.com, rex-bc.chen@mediatek.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Daniel, On Fri, Feb 10, 2023 at 7:44 AM Daniel Lezcano wrote: > > On 09/02/2023 11:56, bchihi@baylibre.com wrote: > > From: Balsam CHIHI > > > > The LVTS (Low Voltage Thermal Sensor) driver is capable of monitoring > > multiple hot points. For that, it contains 7 thermal control blocks > > dedicated to specific devices on the die. Each control block can handle > > up to 4 sensors. > > > > The thermal controller supports several interrupts. One for the cold > > trip point, the hot trip point, the return to the normal trip point, > > and a specific programmable trip point to monitor the temperature > > dynamically. > > > > The temperature measurement can be done in two ways, the immediate mode > > where the temperature read is instantaneous and the filtered mode where > > the controller uses, by configuration, an average of a set of values > > removing the minimum and the maximum. > > > > Finally, it is composed of 2 finite-state machines responsible for > > the state of the temperature (cold, hot, hot 2 normal, hot hot), > > the triggering of the interrupts, and the monitoring of the temperature= . > > > > As requested, the thermal driver has been reworked to reduce > > the complexity of the code. At this time, the 4 little CPUs and > > the 4 big CPUs are supported by the thermal driver.They are described > > in a data structure and more devices can be added later. > > The calibration routine has been simplified also. > > > > The series provide the following changes: > > - Move the Mediatek drivers inside a dedicated folder as their number > > is increasing > > - Add the DT bindings for the controller > > - Add the efuse node for the mt8195 > > - The LVTS driver > > - The thermal zones description in the DT > > Applied patch 1,2 and 4 for v6.3 Thank you very much! > > Patches 5 and 6 should go through the Mediatek tree. > > Thanks! > > -- Daniel > > > -- > Linaro.org =E2=94=82 Open source software for AR= M SoCs > > Follow Linaro: Facebook | > Twitter | > Blog > Best regards, Balsam