Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1821221ybb; Thu, 9 Apr 2020 09:36:58 -0700 (PDT) X-Google-Smtp-Source: APiQypJX9mqdRn+xRskrTsDTB7QPn2WoBpbbKwsdvAJ6x4OCmtAB4oWnPE1EbtiYRMWoy3ETeEPn X-Received: by 2002:ac8:6d1d:: with SMTP id o29mr134765qtt.327.1586450218585; Thu, 09 Apr 2020 09:36:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586450218; cv=none; d=google.com; s=arc-20160816; b=RgFOTchMfqxxurXeeOkEq2kjjYnxSXclxth45y6NOf6p9RlV54v9YfwISvL1VfwqRS +oOlQyAMP5p2jpK68ssc8NnIJw8HklZ1M1WWHPcHiGEEdzd+dzv1vuJ/vofWyQ7+fthx MB601rO9QEl+4+X+kRqThfyBJRzDfLPxok1mvXBA9tJKk+9FZRAqod+a1haVcSlknj7/ P6a24ijXPAfv2/5KJV7kZZqDWfn5wa0PsBo4UHFIDiS7BXInc6JnW+d5uoz+TcIMOhdi +/rDvelIAphVqlWHsosGPhQ2yX44aLwAaKtsQBnL39WHz79Lt0usR5Uva58lOt0aAP/v DSxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=xI/13ahNFkzIs4fIOUGU+GiPaJZFLk48sQn0t25jaGY=; b=hiwz8MnwnJ7KWYzjj2IOQvOH2ouGbtWL+EkK248adEVcZkeNCMwbNzqFDBB17cdOaj Mf54nyELHPy5aTZjMvMyhFy3Oh60B6+VLBg0AyXjx9D6HKYnJechHLeAvJmyMaIRuRXt VOUqI89e+n3t5jFNQFpfn/WtzgRdAaCaQhRAIVNXCcgFITFXcyNs94qqpumF8nxO6dYv OuHYnbqSymwA7kYl9eoye5RSE6dwRFpHU4wb+FT855Q3BjfePAR44H9z0RDzOEGYi91D /hMUZC2KA3TvWeKQVs0Cc0QiGh7GsrXQsjOGOuXxLeDWW+RARNjFDHRckZ7bMxTOfBnt ZYzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=afn5Tbxa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q4si5972532qkb.342.2020.04.09.09.36.43; Thu, 09 Apr 2020 09:36:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=afn5Tbxa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726956AbgDINtd (ORCPT + 99 others); Thu, 9 Apr 2020 09:49:33 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:44396 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726641AbgDINtd (ORCPT ); Thu, 9 Apr 2020 09:49:33 -0400 Received: by mail-wr1-f65.google.com with SMTP id c15so11943682wro.11 for ; Thu, 09 Apr 2020 06:49:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=xI/13ahNFkzIs4fIOUGU+GiPaJZFLk48sQn0t25jaGY=; b=afn5TbxaSodVr0dusUmbWTENkDb2K7KmcDYRZvC1s1/ABXD0YGMH+o0CUhuulFvK8D TiiyY59rpWL2aj/8BFvJcBbzZd3kS72CwBWjKimtNHITiDCpdWPXbpMyrq9VIGeapAoZ JFj9e9zNZjLMKip1oZo6xLrulUab5B0RopS2krK6YhQKUVhDJ6EV9zHcdxi/tlYmIp9P VHDGc9RTvC9FU8xTekWP6oBJ5KhFJfwCMx5E5AR/Co0fbbo4lyQbXK0Xvl4OjHtuEn8I +9cIQsqMGxquOA3ok8x7PkaJl2UIYpHP6F93Dfn0cMZrwnprNo9JjDjGiynZ3f4NEKRS oxgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=xI/13ahNFkzIs4fIOUGU+GiPaJZFLk48sQn0t25jaGY=; b=Opehlyc4Ask68OWrAKce/5ev7m71P4fuFuCXDriKh1mlE3CIu4KogqItSEaxZO5u9M tptHUDibqWfTMs6XuGi1+++bvrLSo1AkUIcNz9iCJxMH32bQYGg4L/+r+l0nb4QdTeEa L3Vf1F7Qfen9KejJQcbyT9V6+2qukqqDtglCG3bDV7J0tWDaRXB7nAS8rQvNkyaadbpi zNDHb2NTeSTQ1Gsis6XmxT5c1Bn/3t6mXaMkTaVZgPK1oYwDy7+xsHOQAsZhEsMNUI1q 5Oqw5x6z0P3CW5GSQTb9edhpCkrkN1/nmv4x8Z1HsDLN8bcAo9SOeWM3Hh/vUT+gs6QZ 5ygA== X-Gm-Message-State: AGi0PuY9T1hXugqJB5PsHJ21tlOcgNGJ+rrKklFXhXP+sBJ2hd7B6AHA 12n8dY4C6r17YhqHCzZqkN5Uym4KtMk= X-Received: by 2002:adf:aacc:: with SMTP id i12mr15309250wrc.116.1586440171850; Thu, 09 Apr 2020 06:49:31 -0700 (PDT) Received: from ?IPv6:2a01:e34:ed2f:f020:4e:2ab3:ef46:7bda? ([2a01:e34:ed2f:f020:4e:2ab3:ef46:7bda]) by smtp.googlemail.com with ESMTPSA id u17sm45525611wra.63.2020.04.09.06.49.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Apr 2020 06:49:31 -0700 (PDT) Subject: Re: [PATCH v6 0/4] thermal: k3: Add support for bandgap sensors To: Keerthy , rui.zhang@intel.com, robh+dt@kernel.org Cc: amit.kucheria@verdurent.com, t-kristo@ti.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, mark.rutland@arm.com References: <20200407055116.16082-1-j-keerthy@ti.com> From: Daniel Lezcano Message-ID: <3c69e3c6-5549-e891-fde6-95a2ecc49f77@linaro.org> Date: Thu, 9 Apr 2020 15:49:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200407055116.16082-1-j-keerthy@ti.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Keerthy, On 07/04/2020 07:51, Keerthy wrote: > Add VTM thermal support. In the Voltage Thermal > Management Module(VTM), K3 AM654 supplies a voltage > reference and a temperature sensor feature that are gathered in the band > gap voltage and temperature sensor (VBGAPTS) module. The band > gap provides current and voltage reference for its internal > circuits and other analog IP blocks. The analog-to-digital > converter (ADC) produces an output value that is proportional > to the silicon temperature. > > Add support for bandgap sensors. Currently reading temperatures > is supported. How do you want to proceed? Shall I take patches 1 & 2 ? > Changes in v6: > > * Removed bunch of unused #defines and couple of redundant variables. > * Reordered patches a bit. > * Minor reordering in dt binding patch. > > Changes in v5: > > * Removed thermal work function which was unused. > * Removed unused preve_tenmp and a couple more struct variables. > * Removed couple of redundant header function include. > > Changes in v4: > > * Fixed comments from Daniel to remove trend function. > * Mostly cleaned up all the unused variables. > * Driver from bool to tristate. > > Changes in v3: > > * Fixed errors seen with: > dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/thermal/ti,am654-thermal.yaml > > Changes in v2: > > * Fixed yaml errors > * renamed am654-industrial-thermal.dtsi to k3-am654-industrial-thermal.dtsi > to follow the convention for k3 family. > > Keerthy (4): > dt-bindings: thermal: k3: Add VTM bindings documentation > thermal: k3: Add support for bandgap sensors > arm64: dts: ti: am65-wakeup: Add VTM node > arm64: dts: ti: am654: Add thermal zones > > .../bindings/thermal/ti,am654-thermal.yaml | 56 ++++ > arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi | 11 + > .../dts/ti/k3-am654-industrial-thermal.dtsi | 45 +++ > drivers/thermal/Kconfig | 10 + > drivers/thermal/Makefile | 1 + > drivers/thermal/k3_bandgap.c | 264 ++++++++++++++++++ > 6 files changed, 387 insertions(+) > create mode 100644 Documentation/devicetree/bindings/thermal/ti,am654-thermal.yaml > create mode 100644 arch/arm64/boot/dts/ti/k3-am654-industrial-thermal.dtsi > create mode 100644 drivers/thermal/k3_bandgap.c > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog