Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5467634ybl; Tue, 27 Aug 2019 05:16:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxaVVwhyTQHqyMnxNTQE6SC/ARED1re2F1js8JWgPTBxnS5qUtu2jvHTZ3LrqWZLeeJeJ+O X-Received: by 2002:aa7:80d7:: with SMTP id a23mr25403787pfn.208.1566908171961; Tue, 27 Aug 2019 05:16:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566908171; cv=none; d=google.com; s=arc-20160816; b=RBRsA//cDMkyQuff0leWlDkJEbXmaYlWiUd31EstAtcePD6fpqO7kpwPmnOA/wNQdb XvYQQ2M6MnI07mqXifnLLtFwJGrZFiMz0rCR6ZHt+kDCk+gIKuyHSw/QZNY+NVwgbPn2 AHwrOiz3r/ICjEHpm9MhceuxEHL8APSeaIHvCtp4VrCRS/uL1SOVaGGzKMiC4dI0k7DF Td4cGIzkIbvazLD5BE8YhP80ykSqI8xiemxZfHMV9O3Qyx9Y7jpW7g/19XmRJzb2pI8J JbuvvQ4qo1uuwDdG7jMzouZnjvHDgvCHZYQNwatbBjHy10wrOQGA3SM5pSoYDgxgEzuE JTuw== 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=pptHIxhK3eUIONZUZXLRgUgraNH7ZHKiRKOOZXId9Og=; b=AwvwSMdI4VYQLVXnVbpQw/5MDOXooZoSxkShAp2RU0iydS3PHDZLy2qexqUF18fPfL Rpeoe569gjvr2+IDAruxdGSIXjg/pa9wDEQzbrO8C7mZ1NcTz/gxqoFgAjnOsD7XaVgw C9ouyjOi3N41RikpejgWuj4UfWDbSOC/s5QiKn3UrnkkmHYF8HKg0MmIWw+pKTiA4ihQ hOvKeOOg7dCdLz9SopILG+p9hdedo/W2pm5rX/pz3hQQrZ+N9nxNFaOqn5Fkugv6/b2C 0TLc67Ep4ULdmZ311bf2WKMBFdNjkKUgQDOBkUzYa4RWFujrZl0LcYX30p9Hae/JWYoR L7fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Yt68EfZ2; 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 q43si2480146pjb.29.2019.08.27.05.15.55; Tue, 27 Aug 2019 05:16:11 -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=Yt68EfZ2; 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 S1729787AbfH0MOq (ORCPT + 99 others); Tue, 27 Aug 2019 08:14:46 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:36979 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729766AbfH0MOp (ORCPT ); Tue, 27 Aug 2019 08:14:45 -0400 Received: by mail-pf1-f195.google.com with SMTP id y9so13641990pfl.4 for ; Tue, 27 Aug 2019 05:14:44 -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=pptHIxhK3eUIONZUZXLRgUgraNH7ZHKiRKOOZXId9Og=; b=Yt68EfZ2pCFv6y3gNY6s3zwZ4WSXntxsFOa47DjhNzOsV1J5zO/oWMXCCM4ziZopTz bc59P5UcoHPyCzi8fpT3YV0x8Y8a9xopYAIppMf0Ei5huVhnE/riO5bgNckL3Lc/tu2E ibzWAufe7k3bLbA3nFAaz6IiNjcoh1dSxIr1vja5R5iKFcCSEVke98SjyUfm4yQmHgsL fW34Jl0um+NvWqv2+ew8nSypw3pPLE70fQXXZEuaKLWxhzYUoaei9XyypBgJ89dre9CI qO3nXzc/NqrNtjkAHCVo2hp3/8mQokN+UyXXdqAJCEf8u8epkU2/7YYUTaOcAtwCW2sF NIUg== 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=pptHIxhK3eUIONZUZXLRgUgraNH7ZHKiRKOOZXId9Og=; b=saBWK8hJpfiKaytnkechx4bOxIg9yUp5FCIiid9SC9DnIdKxR+Bn3Uix9RU1r5aw8A 2tWb6vdH1AntouGuIqYQu74yq83jltUFV+gy3pGZdEiuSI+hxSGBxz2ht/wkNjrTGpkT aB9MwvWTcqjO+9yCer/de7hFWan9FkZc7mEKhKHr6V/EYl0Xb4znJThW97Rq/mb+haxL qThNR2NsIL/joTIiQTjaTZd58KYbSr3l75MAzDTMNoKZcl2oo9Jaxn/FHn7i2kzaxO6U 455XzIu/wl76W3PvqbftC8OwePdyT0LC/ThJRmW4C8wNmYVJwGZqw6QteMGrZNNnRoA/ uY2A== X-Gm-Message-State: APjAAAXC8MgX7alRKzLeEdnPx+2mIF/RW8R1/rrrOceaZISuMI10X6jq GJwHU+SoHlJvK67FQzYFmOdbZzaA9v/SDA== X-Received: by 2002:a17:90a:2ec3:: with SMTP id h3mr5833943pjs.121.1566908084300; Tue, 27 Aug 2019 05:14:44 -0700 (PDT) Received: from localhost ([49.248.54.193]) by smtp.gmail.com with ESMTPSA id g10sm25108702pfb.95.2019.08.27.05.14.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Aug 2019 05:14:43 -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, sboyd@kernel.org, masneyb@onstation.org, marc.w.gonzalez@free.fr, Daniel Lezcano , Mark Rutland , Rob Herring , Zhang Rui Cc: devicetree@vger.kernel.org Subject: [PATCH v2 05/15] arm: dts: msm8974: thermal: Add thermal zones for each sensor Date: Tue, 27 Aug 2019 17:44:01 +0530 Message-Id: <5b26d4410b50387fcacae939d97f9f75853e69ea.1566907161.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 --- 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..d32f639505f1b 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