Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4086401ybg; Mon, 21 Oct 2019 03:36:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzjgYpVZP8Cb/3R7E7Ffv1PJRWxC9+kL1gVAvzcH19dcEZ3tAkvs4UgvYi9tKjVd4KUrvDz X-Received: by 2002:a17:907:429c:: with SMTP id ny20mr20715544ejb.234.1571654216667; Mon, 21 Oct 2019 03:36:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571654216; cv=none; d=google.com; s=arc-20160816; b=G4jl0X9PcwhbfS+VuyGJDKhIk9hzNDnEYd4bZ7a4QYS7iAq2NOnNtGiAC3tyA9hBFP aONCLs1GF39chChsg0Fw1GGYj3URpadADwM3AGL404RldC4R6gbZ/msAALAD4NKYLqDC DN5h1Qsg26S08YAOvEKCcaNf4SlLOsh0witxcj+4SM5c+KNM6RmuTljNbEusiSIeDxy9 9g0p2vfd73HF+bTT8QD5E0XUKKhS4vbA1krG2/PMDrpodIdTNlp2slqXrq0Y/vVCfU0R 6A1JBRdm+AJhpbVbVItBOjFzRV8BAFKR0QpFk93cgvewPa5tyYPZsGKyXu2JaXeliqyL 3+8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=cUh1ZeV5zyjcsg3Iod3jbARGXcyJz+PpaHp2DpcKIvo=; b=IVbUX6+5VTpFXr6KlIpJwFMPczo71RuF4l/OgwaOhTPC9FNNiBI6Y9EVEo2Bnx9KT+ n+I1evOXRrh8rZyuoA3+o8xKiJc1xdz/73eSFDuJUHhJ9zU0UeFA/ZRfOfc32+BbgLu6 KGtiJugskPVkWYTN2odIwUKgltPRgwN9efGbs6RDRP1BTARVV8DGEI2eDLBpCWg46gLl LISVmPtcYm7cqD66wv6mjihJY2Oz3Bce80c+SmTl8hdOoQdZVaB/cSMEuMEYIVNbaOVK kSUW3R3wdSrOSYKQgxAdXX+T9DefMkircSW1rM/timrORUvZu4SrWuiw/n2k1g9Gy+SU UPsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="GB/iNLsV"; 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 p20si7521116eju.109.2019.10.21.03.36.33; Mon, 21 Oct 2019 03:36:56 -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="GB/iNLsV"; 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 S1728278AbfJUKgD (ORCPT + 99 others); Mon, 21 Oct 2019 06:36:03 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:35913 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728268AbfJUKgB (ORCPT ); Mon, 21 Oct 2019 06:36:01 -0400 Received: by mail-pf1-f193.google.com with SMTP id y22so8179783pfr.3 for ; Mon, 21 Oct 2019 03:36:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=cUh1ZeV5zyjcsg3Iod3jbARGXcyJz+PpaHp2DpcKIvo=; b=GB/iNLsVk+ApucmOndcOCjbvj0CgYAqzijKY5FGCBUbaN+U/kVWyXWHbkpG7BSggYp f6IbuQNNH5x5j+409JsPqM3ZQJarU5yMHogMhB0PyoyaikyLZmvxEEFHMiSBDwnffIZO WpvIzsaXwYEBhjSwBfaeE2vmVUoU73KJFSPVsLn90WenyvhMqiwWhbDif/QJuCDnGWc5 QgXpc2EGiPmug9U5kBGw8Ffwt+Aim18NdbY+U0BbBw/UwfYMUdtjT2C1unkOxVNPrF1x db8UIVOYhkcOd4txq4pUd3AbSig2rXuqT4iyIRnPiEhWEDPRWyMaVBApa3utcJEO4DMQ BXUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=cUh1ZeV5zyjcsg3Iod3jbARGXcyJz+PpaHp2DpcKIvo=; b=f+pSdhJIEEt3viULTbrMMDj7OWonwNgbckHdje+pOmmyUTTa8f2NAA43Rx4KKXJEno +wmEaPeBHWCuBtRgUul4nKab7q6w/vBP2bclAy/SQmEhGxMmbB+TTZ5xKj52n+MPYSi5 d+IEx34EK+b2Mb1z+QpPeBXBHjHo748z5s/xERJYZx2ICi03LESdoU71OCqKtYFjr7HO sKy2NqqXEJK1+QVK7O8X+ezkNDe2sA1T4Isajk27LVqtMC5MBEoMP5io+/Bqep/OZncb LdGzyQQpuu7ATF/IAFFYwFFevgTv02Punwvt0RVRxO1RTb9Zh/eDWpdSDIbEhL8rR7+r PugA== X-Gm-Message-State: APjAAAXE5WRUB+4/F/mAM8/JOJcBfXwu1c2PCGHMdKIzXkg4iNijerOn eEEKMA23tDjl2X87yY80XmNayf9s1PQY5g== X-Received: by 2002:a63:934d:: with SMTP id w13mr6975734pgm.185.1571654160053; Mon, 21 Oct 2019 03:36:00 -0700 (PDT) Received: from localhost ([49.248.62.222]) by smtp.gmail.com with ESMTPSA id e14sm15420515pgk.70.2019.10.21.03.35.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Oct 2019 03:35:59 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, agross@kernel.org, masneyb@onstation.org, swboyd@chromium.org, julia.lawall@lip6.fr, Amit Kucheria , Daniel Lezcano , Mark Rutland , Rob Herring , Zhang Rui Cc: devicetree@vger.kernel.org Subject: [PATCH v6 05/15] arm: dts: msm8974: thermal: Add thermal zones for each sensor Date: Mon, 21 Oct 2019 16:05:24 +0530 Message-Id: <72cc755c16888976edea555f1df60a299daa8a1e.1571652874.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org msm8974 has 11 sensors connected to a single TSENS IP. Define a thermal zone for each of those sensors to expose the temperature of each zone. Signed-off-by: Amit Kucheria Tested-by: Brian Masney Reviewed-by: Stephen Boyd --- arch/arm/boot/dts/qcom-msm8974.dtsi | 90 +++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 369e58f64145d..33c534370fd5c 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi @@ -217,6 +217,96 @@ }; }; }; + + q6-dsp-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 1>; + + trips { + q6_dsp_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + modemtx-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 2>; + + trips { + modemtx_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + video-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 3>; + + trips { + video_alert0: trip-point0 { + temperature = <95000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + wlan-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 4>; + + trips { + wlan_alert0: trip-point0 { + temperature = <105000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + gpu-thermal-top { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 9>; + + trips { + gpu1_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + gpu-thermal-bottom { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 10>; + + trips { + gpu2_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; }; cpu-pmu { -- 2.17.1