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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 58778CA0FEF for ; Fri, 1 Sep 2023 18:13:55 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 85E148657B; Fri, 1 Sep 2023 20:13:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="CjdQo5+V"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 03E388669D; Fri, 1 Sep 2023 20:13:52 +0200 (CEST) Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 989C381FA8 for ; Fri, 1 Sep 2023 20:13:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-kumar1@ti.com Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 381IDikV004852; Fri, 1 Sep 2023 13:13:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1693592025; bh=u1XzRv44So5HPTjKgztz+m6FZdHzHL0a1P6nzU/tI7o=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=CjdQo5+V8vF/fLIXK22ZgdhsYiaTPCBwxzqSYbWQRzT/BPp4xPHfMA94bjcHPJ/1a Zzha6RyWPr0RlUoO19Bk1K6pw2Puk4o6kAXw1ghIuKq8WRT0ldM/uK5sMxsVNqqHxr cFG8AW52e4jIkg25UT3z3eJz5HQYAJE0gycTd0UI= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 381IDikj095695 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 1 Sep 2023 13:13:44 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 1 Sep 2023 13:13:44 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 1 Sep 2023 13:13:44 -0500 Received: from [10.249.141.75] (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 381IDfQ0011145; Fri, 1 Sep 2023 13:13:42 -0500 Message-ID: <8857fb8f-415b-2b59-585f-d6a3cff9327b@ti.com> Date: Fri, 1 Sep 2023 23:43:40 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [PATCH 1/2] thermal: k3-j72xx-bandgap: Add support for vtm To: Nishanth Menon CC: , , , , , , , References: <20230901061500.2342452-1-u-kumar1@ti.com> <20230901061500.2342452-2-u-kumar1@ti.com> <20230901150640.u7nyi3hawwkz3rbs@leverage> <20230901173344.fw7glgqmed3fm7ua@comfort> Content-Language: en-US From: "Kumar, Udit" In-Reply-To: <20230901173344.fw7glgqmed3fm7ua@comfort> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On 9/1/2023 11:03 PM, Nishanth Menon wrote: > On 22:54-20230901, Kumar, Udit wrote: >>>> +static const struct udevice_id of_k3_j72xx_bandgap_match[] = { >>>> + { >>>> + .compatible = "ti,j721e-vtm", >>>> + .data = (ulong)&k3_j72xx_bandgap_j721e_data, >>> So what happens to drivers/misc/k3_avs.c ? >> Could you help me to understand this comment. >> >> Do you mean, why we can not add this support in AVS driver or >> >> need of this porting ? >> >> How I see, AVS driver to run at SPL/R5 time and this driver >> >> to be probed in Main/A72 u-boot when needed. > you are saying the drivers are mutually exclusive - how about detecting > over-temp scenario at R5 boot? switching on A53 will be a mistake at > that point, no? Yes these areĀ  mutually exclusive. Let me see, how I can add TSHUT value programming in avs driver to avoid above. But in case, temperature reading is needed from u-boot shell, we still need this code.