From patchwork Fri Mar 29 10:12:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 161415 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1834972jan; Fri, 29 Mar 2019 03:13:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0lfbZP90EsO2swE4tAU1xiOK7QKQ/2bwtK0s/eW7KGt+EHWuVR0fRZrDeny+XhG3jmX7Z X-Received: by 2002:a17:902:2927:: with SMTP id g36mr19969216plb.57.1553854401023; Fri, 29 Mar 2019 03:13:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553854401; cv=none; d=google.com; s=arc-20160816; b=NPoZzQoSSmop9Uot0o7DI0rGhzUktq6uI86OAEPMNq/eC7PthmkKGSzsKPZbpTTomd SBPkNIbTU1tUQe0NParujNXZBQYcbW2wOI+du5O9puK5nqVFIzlXwiXN3Zmiaas8vHSS 97nSowdkYx3+HS0B11AbEGRNY+hiTVRtM4lxOjujmiEL+VuoUHW5uIiEdgpcvz5InIPp Cro3SoYR7v1HPT11FYeaoiagE4ycyxylTjC4XABTwAh6A0dV2SRbPW0Rp2//VVLlFQ25 s2niZJS2kQwBZAmV0fYkcmWDO8vPdcBcSIsX+tWeJngZauf8jDCEyq9GLGWtN/J2lTjr 1nzg== 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=4WP7vJpVKRp4mAy2lLrKwHicvrn2dHrj30KYt06Ejqg=; b=GMhKoLn2Wu4mDbDBaYOJH5k2h/NUh6EmN0Lzx+o1RBfeGrhc1kqWf5mPaXa8bXSff8 HLqgOSSwh0kR+I9+srcVULmF47yxf7AjxR6hZ28/613uTmMQ06geMg+K1PDFk4BTfxaU Z8SvxM/rjfPu8Fn0L6FbezPIXd4/EaReY4elMUHLtwUACsFSJKyWNEXuTc3EAUyzxyOW qWT/gTT7Zrh5NbO2MntShgsFSeG/144DSfZvFOya1r1AoHHBjQYrIL88aoJf8rJ/SVWv OXiMgWcjlVjOPiz4msdCDxuhri2jkNd5H8jyobQ4tIOLzXJX1tkwguUo9yBJPpIpK7fh JjUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HwfvFzt8; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 i65si1611579plb.438.2019.03.29.03.13.20; Fri, 29 Mar 2019 03:13:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=HwfvFzt8; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1729173AbfC2KNU (ORCPT + 15 others); Fri, 29 Mar 2019 06:13:20 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:42629 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729202AbfC2KNT (ORCPT ); Fri, 29 Mar 2019 06:13:19 -0400 Received: by mail-wr1-f68.google.com with SMTP id g3so1848103wrx.9 for ; Fri, 29 Mar 2019 03:13:18 -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=4WP7vJpVKRp4mAy2lLrKwHicvrn2dHrj30KYt06Ejqg=; b=HwfvFzt8WzHIRDTIuZ5svJlx/Vl9TO7GcKcruimTKRHJmnsLIZ69awWsY91wPokyYV HR7XGUH5V2ih3tAzX9UmYrB+yWh1bJen/kGRRVHuV1vP31iZIihdwOnRlsPlgPARDwSg YAaKXKXCBRLdxkr6Yvnb9drh9AEF5NR2yrMUUQZZQ86IMnWCE9a9qYS1Q37t5KfpDJ2R oj3pMR7ACboa4xPsVTQvKqVPRF8jEqWInoVWClXup7rHXEJC/z3AocRvGHRHOmpE8O5b t+7EjQUCmwAQim/YU2s0Yr8do7+e5n0VqoYy9M87M8AmEPEMBEcqJk5BuNtwmQLX6mUJ 8muQ== 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=4WP7vJpVKRp4mAy2lLrKwHicvrn2dHrj30KYt06Ejqg=; b=fKzGG4bCvJhEYf/Bd6bf34WRlopkKcwv+AtpnpbrXGDqllFdTz0WS+3yTqPwSOk0QC yessN0ARZbimC/JWf0g+oCfTLrriUNbCCwuRJWdvTkwqYVSFyIhlQJn1pvZeUSnYgBvv PTrV9f1UBo4xeREpBjiyQv93Whuexknkg2cw2DybeIH9fhODn+GzLRJq4kM023LiI/DZ VHr3QkEASEGsRFgyM9LProR3wx1jrN+1EJw4h4iCNjJ2jAvsU7pmBp/6OhmbLwRujsmI fGhTVxcym0yNm16VGcCbmVlBVh1aQjlEt4cucW1oW+fG2od3IL8QUbVQwnVL7xdBmIkS icXw== X-Gm-Message-State: APjAAAVqiSYiQH0lwaFQ28upT2Vkd0xGnuAIUfk6XdrmnffIzu7AI5h+ Dlr3yos3rRORpPTJ37oQwV+vBA== X-Received: by 2002:adf:fe03:: with SMTP id n3mr19580004wrr.59.1553854397857; Fri, 29 Mar 2019 03:13:17 -0700 (PDT) Received: from localhost ([49.248.196.175]) by smtp.gmail.com with ESMTPSA id s10sm1836419wmh.0.2019.03.29.03.13.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Mar 2019 03:13:17 -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, David Brown Cc: devicetree@vger.kernel.org Subject: [PATCH v2 08/13] arm64: dts: msm8998: thermal: Add temperature sensors near major peripherals Date: Fri, 29 Mar 2019 15:42:14 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org msm8998 has a total of 22 temperature sensors. Populate DT with information about them. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/msm8998.dtsi | 135 ++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index b368da235663..26e476078cb6 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -535,6 +535,141 @@ }; }; }; + + cluster0-mhm-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 5>; + + trips { + cluster0_mhm_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + cluster1-mhm-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 6>; + + trips { + cluster1_mhm_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + cluster1-l2-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 11>; + + trips { + cluster1_l2_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + modem-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 1>; + + trips { + modem_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + mem-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 2>; + + trips { + mem_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + wlan-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 3>; + + trips { + wlan_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + q6-dsp-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 4>; + + trips { + q6_dsp_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + camera-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 5>; + + trips { + camera_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + multimedia-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 6>; + + trips { + multimedia_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; }; timer {