Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1058820ybl; Thu, 12 Dec 2019 09:02:28 -0800 (PST) X-Google-Smtp-Source: APXvYqzEPMaH8JbxsOehMzefBFHTMmrQRhTzO6/+48wvOXuOevHQg+gI4keZrbASgMUAb92QqbXK X-Received: by 2002:a05:6830:1689:: with SMTP id k9mr9485123otr.311.1576170148486; Thu, 12 Dec 2019 09:02:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576170148; cv=none; d=google.com; s=arc-20160816; b=DhLd9uMindplA8QZDA/Dv71VkFMSx7xFKkkTwAf+kNdUSvc4dHmBEiG0ZYzvF2Rx7/ qq5c0FULpTbqg89xYIc8thunthNmkMmdLGA5XXfXMgzlIUkfMR9LMFgXZUE963UtNfi/ MM/0n/X1854oefnO8ZDxfNRrcb7/PB/W+cf2jlrSbAAftCM90B5u7rAYWk6qoQ+Jya7R Ywb2jjBHtCGN7W1tyr1HDlJchBg+n+rpEe6FMiFbh+pAR9fMoK94EvuZ2o8Y160c2d9S WZMoV00P99+vCILhK00vWC/0WX2u5+XYo2u77lBIIerBqOFMlO138HmzncGvTGNZfiyd 4ZIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=VFbGuOmt8927R+vYeTAQfCaDgF/GDKY3t3T6KS+4jUA=; b=hqtN842wIcQ+/GTiNITakaibfrSnpMWhvQDxPIsRBjHtsUdxM6Dhmxl/eNSb2fQvBu DLAn6r2wee5MjPfUIf07mvlWAt7wk71QPBQi6ZV1tmb1VEWJoBGgTVgQANFTMb/56RLd 3ubCKjtGyxMiu3Bhgd9TgvwDCXo1FPbd9/+76RzTioSYJkB0iekUuTIKOOPrdbdEaTAr 0tLNrQsYbpJxk8EZ+i9T2SvFxW2l3Q2jnCqTDDzXp/Bl+YDYEghZGqZWFILz8GCSGHkE swFQxtM/UTu5T690kzK80nce4jYpV1Ia5gK65L6sE7Vh4hOmFuZn6IoVWgt9IcDn2vgj z6Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PEe8To71; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16si3395163oih.154.2019.12.12.09.02.08; Thu, 12 Dec 2019 09:02:28 -0800 (PST) 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=@chromium.org header.s=google header.b=PEe8To71; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730033AbfLLRAK (ORCPT + 99 others); Thu, 12 Dec 2019 12:00:10 -0500 Received: from mail-il1-f193.google.com ([209.85.166.193]:43276 "EHLO mail-il1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729907AbfLLRAK (ORCPT ); Thu, 12 Dec 2019 12:00:10 -0500 Received: by mail-il1-f193.google.com with SMTP id u16so2604252ilg.10 for ; Thu, 12 Dec 2019 09:00:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VFbGuOmt8927R+vYeTAQfCaDgF/GDKY3t3T6KS+4jUA=; b=PEe8To71VSS0ZUGmCNvztFYyKJaky6xNL19ZnUI4w8FyeyUpZeT18qnwk/v43/LI9H 4OMWHz3NG2O5QKX4qcDah8HVgYA3ZVKIvn8anspz21uipN5+K+4FXdIKgIhy2Fle8eEx /p/Jl28uAvIyZZ+ZkYBoy8Tg0jFkYiLByPpCw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VFbGuOmt8927R+vYeTAQfCaDgF/GDKY3t3T6KS+4jUA=; b=T68h7L340T5yTILl03ClABs/VKlnRucBWD+yTmlgru3vFxEgMICsjF+0shGAYBJR/H fmFgYqnK8IotpbLXnZKOLX9rgPjTygOjt+51Dggqpi1uMZXJFr13hMykctPeNxSLTSsr +It/aAFHTUbniBi8dgiXWN+gu3HUOHgHRASfpPxl5hXccz5lsIML/L2WkViguaPd8zYL pUlC+bO/H9du+QAbVjfkkK4hawDDOxg3OJURSJ7arUBhNlG4Vfz+gvupdT6T2gz8SkaT iX4IduV9jlXvGKlogzeZKL/F9CLEe/DAYrdun5A3vr4FhuZ5092tBvWcaz3O48o2z9ur Ly+A== X-Gm-Message-State: APjAAAWk/pgPJp0Z0DBJpoMO5HOoVo5YbWtn1GlxQxtjEMFFLyjYxMcD HD7IzpB/wf9HoiEeMKS9QAZzn83HxSw= X-Received: by 2002:a92:91c7:: with SMTP id e68mr9414416ill.161.1576170009040; Thu, 12 Dec 2019 09:00:09 -0800 (PST) Received: from mail-il1-f169.google.com (mail-il1-f169.google.com. [209.85.166.169]) by smtp.gmail.com with ESMTPSA id 16sm1412339iog.13.2019.12.12.09.00.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Dec 2019 09:00:08 -0800 (PST) Received: by mail-il1-f169.google.com with SMTP id t9so2635609iln.4 for ; Thu, 12 Dec 2019 09:00:08 -0800 (PST) X-Received: by 2002:a92:1547:: with SMTP id v68mr8798475ilk.58.1576170007669; Thu, 12 Dec 2019 09:00:07 -0800 (PST) MIME-Version: 1.0 References: <1574934847-30372-1-git-send-email-rkambl@codeaurora.org> <1574934847-30372-2-git-send-email-rkambl@codeaurora.org> In-Reply-To: From: Doug Anderson Date: Thu, 12 Dec 2019 08:59:55 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/1] arm64: dts: qcom: sc7180: Add device node support for TSENS in SC7180 To: Amit Kucheria Cc: Rajeshwari , Andy Gross , Bjorn Andersson , Rob Herring , Mark Rutland , linux-arm-msm , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , sivaa@codeaurora.org, sanm@codeaurora.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Dec 12, 2019 at 8:56 AM Amit Kucheria wrote: > > On Thu, Dec 12, 2019 at 9:39 PM Doug Anderson wrote: > > > > Hi, > > > > On Thu, Dec 12, 2019 at 3:00 AM Amit Kucheria > > wrote: > > > > > > Hi Rajeshwari, > > > > > > On Thu, Nov 28, 2019 at 3:25 PM Rajeshwari wrote: > > > > > > > > Add TSENS node and user thermal zone for TSENS sensors in SC7180. > > > > > > > > Signed-off-by: Rajeshwari > > > > --- > > > > arch/arm64/boot/dts/qcom/sc7180.dtsi | 527 +++++++++++++++++++++++++++++++++++ > > > > 1 file changed, 527 insertions(+) > > > > > > > > diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi > > > > index 666e9b9..6656ffc 100644 > > > > --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi > > > > +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi > > > > @@ -911,6 +911,26 @@ > > > > status = "disabled"; > > > > }; > > > > > > > > + tsens0: thermal-sensor@c263000 { > > > > + compatible = "qcom,sc7180-tsens","qcom,tsens-v2"; > > > > + reg = <0 0x0c263000 0 0x1ff>, /* TM */ > > > > + <0 0x0c222000 0 0x1ff>; /* SROT */ > > > > + #qcom,sensors = <15>; > > > > + interrupts = ; > > > > + interrupt-names = "uplow"; > > > > + #thermal-sensor-cells = <1>; > > > > + }; > > > > + > > > > + tsens1: thermal-sensor@c265000 { > > > > + compatible = "qcom,sc7180-tsens","qcom,tsens-v2"; > > > > + reg = <0 0x0c265000 0 0x1ff>, /* TM */ > > > > + <0 0x0c223000 0 0x1ff>; /* SROT */ > > > > + #qcom,sensors = <10>; > > > > + interrupts = ; > > > > + interrupt-names = "uplow"; > > > > + #thermal-sensor-cells = <1>; > > > > + }; > > > > + > > > > spmi_bus: spmi@c440000 { > > > > compatible = "qcom,spmi-pmic-arb"; > > > > reg = <0 0x0c440000 0 0x1100>, > > > > @@ -1121,6 +1141,513 @@ > > > > }; > > > > }; > > > > > > > > + thermal-zones { > > > > + cpu0-thermal { > > > > + polling-delay-passive = <250>; > > > > + polling-delay = <1000>; > > > > + > > > > + thermal-sensors = <&tsens0 1>; > > > > + > > > > + trips { > > > > + cpu0_alert0: trip-point0 { > > > > + temperature = <90000>; > > > > + hysteresis = <2000>; > > > > + type = "passive"; > > > > + }; > > > > + > > > > + cpu0_alert1: trip-point1 { > > > > + temperature = <95000>; > > > > + hysteresis = <2000>; > > > > + type = "passive"; > > > > + }; > > > > + > > > > + cpu0_crit: cpu_crit { > > > > + temperature = <110000>; > > > > + hysteresis = <1000>; > > > > + type = "critical"; > > > > + }; > > > > > > Where are the cooling maps for all the cpu thermal zones? A passive > > > trip point w/o a cooling map is not of much use. If you are waiting > > > for cpufreq support to land before adding them, then remove the > > > passive trip points for now and add them along with the cooling maps > > > when you have cooling devices. > > > > I will note that cpufreq support has landed in the qcom tree:: > > > > https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux.git/commit/?h=for-next&id=86899d8235ea0d3d7c293404fb43a6fabff866e6 > > > > ...so I guess the right thing is to send a patch adding the cooling > > maps for the cpu thermal zones? > > Great, then the cooling maps should be added to this patch itself. Well, except that this patch itself has also landed: https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux.git/commit/?h=for-next&id=82bdc93972bf293c3407cb7fdac163aadfbb2c12 ...so I think my advice is still correct: the right thing is to send a patch adding the cooling maps for the cpu thermal zones -Doug