Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11378941ybi; Thu, 25 Jul 2019 15:21:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqyr2ugSPaE+RJ8ff/SJKKXD2kQu7nnLHgprGDkWirNpeAyp0GPOFmpBz5zsbWzYtzeaHaDX X-Received: by 2002:a65:41c6:: with SMTP id b6mr31205898pgq.269.1564093309621; Thu, 25 Jul 2019 15:21:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564093309; cv=none; d=google.com; s=arc-20160816; b=p9S1TXRMkAqyuY4NNXX0tZUBVb+6jgJoqEdfclyOJiQkN65LIJkFemSG25ScPVMjew 0ka1DhqFG9D3B4ouN5tTx5OSn5d+Oz98QANZh2xZiJAhB09a4jfbbypvH5e2RQN3RQAa fpeGSV8et5L9eV22/ogRKAf8mVjlEEfFi2JbbdrJvFyP42VWqff8XzhtwoHT4ZfcxpOF XFatTobXJjPlVLKUoIqOt6audQ61WFnN38EWLk+gfJj0+3BeRyMvM7IIQBmfoz+zq0M4 90UoI6QQx0wM9/F9MOcCFgHNZUIBpj6jU7ANWRDeJTIVE58qgG4h+NiGh0dfdSC6M0uo OXVg== 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=uiQPKHwj11EPpZuRQWpTBZjUd/uUqkvhWCoDYYQxDwA=; b=XpV/qjwSTUytpVEOXm1RALo4OAoSX9b1nilDA3hV82J2RjDKY9o9Rj+tEwYxBkGls+ iGOvvLzqer3a07d1MhlrIvqsMAC15oovceFzUYQaoCIP7U48+xPX+xcpTmjwa21zW6JZ 0Ly4OG58KsAZLvyMDCYZvXbiPYf40M2quy2KP3Q1U0CpwI+BOVycruSX4o3ufyw0/8w+ jRSHd962TBft/qJeaBRyQoti01hZGO5XLhnqvHPrtf6uMAkCPx+3GgfDbJ564dhXGJJQ ykFWdqc0Y4FFG6za6wOJozQ7DjJh98i87IMX8SuYxigbxhSSVkEF8f9b1RaJBP1AcC9n OeZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uOd7YlV1; 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 bh2si17705111plb.116.2019.07.25.15.21.35; Thu, 25 Jul 2019 15:21:49 -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=uOd7YlV1; 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 S1726999AbfGYWTU (ORCPT + 99 others); Thu, 25 Jul 2019 18:19:20 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:34505 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726983AbfGYWTR (ORCPT ); Thu, 25 Jul 2019 18:19:17 -0400 Received: by mail-pf1-f193.google.com with SMTP id b13so23437027pfo.1 for ; Thu, 25 Jul 2019 15:19:17 -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=uiQPKHwj11EPpZuRQWpTBZjUd/uUqkvhWCoDYYQxDwA=; b=uOd7YlV1/OOkQMJdcCgl8oAUvZobH84I3dUpaQ7blEHEOkHE07y7s7uxV0nagTTRuq q+/TPHlFixOUvXsY0FvjBwKRm+lQO62aY6VronZUz2YP7XZLwuTPTFJwdqlC55ASutoA dQm/VXAe2/IYPSjkimFXad0hCsBy9HXoU+5If2Assoa8l8tP7c04epZcBHhhWf25zdOd B3UzyJdvxULSnoZ1San1Txtsiuu0NxVkVwjmsORJ9lAWJMIte4qpze53IwJjrVgyY+Nl nomgCque2ZcK2lkjnEJlj1SvHGb37Yu2tbQuAtMOiQDYdMd8YHMAfB2ekcPrKDEEa4zV vO6Q== 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=uiQPKHwj11EPpZuRQWpTBZjUd/uUqkvhWCoDYYQxDwA=; b=Yqq700L6jxfwdIhX/aHdyIRUdYc1w1myMi7YVgtv8u59OgU31zECa5Z3QV90duk/rX cbnJtNtOscWFt/CR0KoSNnALIPXlRdBPH2tVmijf9/vpFIep4UE3pMCa42EcpfCTv+rR WgZDLkbUuNcxqBNMC3oNGqiE9MUIEOVw0W7CIYuG0lu5QQd0al9ErVC5e8Vv7mO0Kcym tZ2auDV3XLGCi81x6Gx6pEWPvOs58YxAKGJdyj2Yfk8oIpXYn5k0zh18oPd/dv0HScU6 3arRmIsWgk1GzMUsnwVxrZF4TdijkroKAWChUUvFFTIEW6F+d6w9pBdTX5e/ljNPP2qA gsEg== X-Gm-Message-State: APjAAAVheYrBsKNTt3z19iGMJkhmg/x5o32qI6uv8NTdGuM+LZ7oNRyJ oiogUVCezqsTi9SNeiT62e73aS3DL+WBww== X-Received: by 2002:a62:1bca:: with SMTP id b193mr18389670pfb.57.1564093156830; Thu, 25 Jul 2019 15:19:16 -0700 (PDT) Received: from localhost ([49.248.170.216]) by smtp.gmail.com with ESMTPSA id f64sm53517242pfa.115.2019.07.25.15.19.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Jul 2019 15:19:16 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, Andy Gross , Daniel Lezcano , Mark Rutland , Rob Herring , Zhang Rui Cc: masneyb@onstation.org, devicetree@vger.kernel.org Subject: [PATCH 05/15] arm: dts: msm8974: thermal: Add thermal zones for each sensor Date: Fri, 26 Jul 2019 03:48:40 +0530 Message-Id: <9e2948528c789225bf8a6ef458b83a5350a7ea26.1564091601.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 --- Cc: masneyb@onstation.org 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 369e58f64145..d32f639505f1 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 = <0>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 3>; + + trips { + video_alert0: trip-point0 { + temperature = <95000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + wlan-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + + 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