From patchwork Fri Mar 29 10:12:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 161416 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1835114jan; Fri, 29 Mar 2019 03:13:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqxLjk/m9jsvsVQ2owgAp/F0kFCRrdhaVYiYr4bcyN8MtsinXYjSYNC7XNnjbtVyY4jxFCI7 X-Received: by 2002:a63:3fc2:: with SMTP id m185mr23418427pga.145.1553854408918; Fri, 29 Mar 2019 03:13:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553854408; cv=none; d=google.com; s=arc-20160816; b=DbFzmOxe2bZ27mV8K0f1vZzHpQPMqvveqsOTppRnlCPY1kVIjicdb7moueh3+fRcVA 4nJ7DOikiQAhPkk/MUDm2Sf+Mn6dxe8Nv2ygXUcGszLDrn1vk3W8QKJHPa+HxSGz6Mgj Qv1C1fVlNCGlfzHcAjVoww4eHsNJybnroQeEYyoAM5btvVtmnofLUEAIzhscLj1JX0pN 9QLKoB2Zoy7TjhglP7jIzkjLgFUMrEkMhrzSfAVgUTaqu9iIwEK3buvcJZEMTWDrcFvd zuhOuC1r5W7UgTuj7lAS+yPm1yc+2qjwaRJ19T8hIOMZGQaN/u2TcQRAvIwsJ1ylD7D2 zYlw== 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=o2Wp7eKMAG4NFM8Fr+KWAR1FMJdBJukeKveTGM8Z088=; b=iV4dIFzW8k4k0VPIKP5uwYrrlXba0zFjeQvuTqXvw6zNpoILUfxgGBKYX9NGifu8R0 ieZcFHc7wnvW0t1xoCMRW06AdXyPsB9C3NrPRmlDAP7jYJHEetRYrZgCy649CFynWb/1 6bn4Jj18Iv7v8JdQFKOEjeJ1bGtFDdFHp6PB4DG0++FwycxThQxi8GVkKcuWUczv7CtA BB/I1BlQD9SKRr8UZRBeUER3OTBMmectata5XVLyPrzWOcJm4CKgVhFwe/XPKyDgjo5h wwUMjiaQ/QnhPy1+IlE1OtYxOFyjQHL4hyg1/Ir1+g11AmJf/1n9CAE20OlmPDgoDlM8 7d5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZtKkJn0i; 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 t6si1501320pgt.476.2019.03.29.03.13.28; Fri, 29 Mar 2019 03:13:28 -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=ZtKkJn0i; 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 S1729254AbfC2KN1 (ORCPT + 31 others); Fri, 29 Mar 2019 06:13:27 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:38592 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729235AbfC2KN0 (ORCPT ); Fri, 29 Mar 2019 06:13:26 -0400 Received: by mail-wm1-f66.google.com with SMTP id w15so2108917wmc.3 for ; Fri, 29 Mar 2019 03:13:25 -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=o2Wp7eKMAG4NFM8Fr+KWAR1FMJdBJukeKveTGM8Z088=; b=ZtKkJn0ihizrjTT7FNr+XopsRNpLa3tJ1EfFLtumXB84bZiVCbZdDVJoQ0qgLNo1mA Z8+z3I9KCxStiq6vRmlbjzNXcc7u3impVlUE8tk47D1lfd7Sp0TBcro1KXJ1MYGrb1F4 SiTnrK9yJ588yPLN7ag3L7pIcVbIjxlTnqJ42/NZECnkjN/aZKEuZP1JjFKBkGqPOC02 W9bPlAcyxPmkpr+MT5OnkokkC+jqM3ScYqTqr+yUGUKB9tPlWGD12eWnO7UKVr+hP88/ cbwtNn10RVhvpqW+CfhyQWZGikj6JOYXk6KXBHC/LvaX4pf0CssDBWQKKkV0KTMlECH1 tszw== 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=o2Wp7eKMAG4NFM8Fr+KWAR1FMJdBJukeKveTGM8Z088=; b=k3C1geIyAjiLMt2XmKFLf203TcH7bCnERQexBo8RI2r4QBSqM2U0Gsz20BKee/xfFB T2QAjZ7el9rmQJfgppZk2/vpr00pBo/C38Z2qcEbATardv6hZPLCN8ak8fgQ0DimicOC fJV+n1ATK7rLrDM3MjpWTDgDDcW/2vg/gXFfr9/QDFgG6nbjP5QJlKqLoN9yssdPUIDE YHlzTgToE5wEPkmC+VHAgYr5gIvZmXoQ6gyL92p33BwaxdEpeNyQI0POfFOpwSEGkPg6 R/XucTSfi709VWWW3d8e1I/alCtq/8A1zYVjwGCRchmmhhQiLxH4Itq5N93OxCtC9y4/ p+Cg== X-Gm-Message-State: APjAAAXamONacszpX1NQo0RtHHZnHTQaklCFZgGziYy2WvoZ0VwobbTu yaxj69UFj2nBST32bztidf9BVA4RoaA= X-Received: by 2002:a1c:ca06:: with SMTP id a6mr3041939wmg.14.1553854404056; Fri, 29 Mar 2019 03:13:24 -0700 (PDT) Received: from localhost ([49.248.196.175]) by smtp.gmail.com with ESMTPSA id h2sm3025684wro.11.2019.03.29.03.13.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Mar 2019 03:13:23 -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 09/13] arm64: dts: sdm845: thermal: Add temperature sensors near major peripherals Date: Fri, 29 Mar 2019 15:42:15 +0530 Message-Id: <19d3a2e99cb5ebce63e5cd1e604d71f8a919828a.1553853990.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 sdm845 has a total of 21 temperature sensors. Populate DT with information about them. Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 205 +++++++++++++++++++++++++++ 1 file changed, 205 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 5308f1671824..7c0643ccef18 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2611,5 +2611,210 @@ }; }; }; + + aoss0-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 0>; + + trips { + aoss0_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + cluster0-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 5>; + + trips { + cluster0_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + cluster0_crit: cluster0_crit { + temperature = <110000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + cluster1-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 6>; + + trips { + cluster1_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + cluster1_crit: cluster1_crit { + temperature = <110000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + + gpu-thermal-top { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 11>; + + trips { + gpu1_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + gpu-thermal-bottom { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 12>; + + trips { + gpu2_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + aoss1-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 0>; + + trips { + aoss1_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + q6-modem-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 1>; + + trips { + q6_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-hvx-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 4>; + + trips { + q6_hvx_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"; + }; + }; + }; + + video-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 6>; + + trips { + video_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + modem-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens1 7>; + + trips { + modem_alert0: trip-point@0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; }; };