Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp229917imm; Wed, 18 Jul 2018 00:51:02 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc+Dblbkq5JbfLi5W2YTCVHcV/eEyD42BIRc9k4q91I4cUhAWqH8d3d2P7HKraNGSD6PtMz X-Received: by 2002:a17:902:2c83:: with SMTP id n3-v6mr4841565plb.211.1531900262605; Wed, 18 Jul 2018 00:51:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531900262; cv=none; d=google.com; s=arc-20160816; b=adhApvtQXT9OKPHGttenTYhoXFwkotmjHFhzaVi5b+GsopiR4WnEj0JgET9C1L4spa 9Rc2Zs7Q1ZjQSu6ik1FzH2jOnd9oC8n08LeJgfn0pNNQP7lD4lp1d6HIOh4ZQB5oXVVV mMQQRIXPo3Tx8GOBcI52yYmCTX2KcPBIvYiv9mFOfe72GZJgZcN/Z9kFvndyjAE1LPVU KJw9NBH/HcQBifM65EZeWNAiZfofKR5bJMXjylwwD8KlROBnGSFulQ+EJZrNR53VZlkd Viuf2acFuH8DmVMsPAYxn4/T8EKYvFXLaOhavqqre9AuKR3GHp98oPgi9bhahUB/zsot H4dw== 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:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=Olw6CucR1gGeb506sf4sE2oIBIreMnW2/BM09+7ohCE=; b=hEwjjFZea5LIKGBXFRYemUH0puoyCX2W1hGjtkqxLA9C/5INwb+jdWoQrWJoWGIPtO /Ffyg2bQtt79Ooffmr5KLAwMShV8w3ybkNoWvPCF+l77auX0YbEcDFo2z40ytLlXLDEU C3ngkcSF2L/ck1CzAw0VgeM7ey0ga9gC7QDQH/l3dmlJ46v02bCgwl9AyFkKdvs9ewzx e1J/63JsuuaUPs020di3emAPwXohZmcRm3ounHNDuTkPHCged5BYr6Zr+HlXjxqGTnJl nytjbisDZayeFuBs7eWuzAilfvhtD8zwQR8Ou8wCGOPKEi/JrAdU+axVqMxy+giebux4 IV1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kyeGdi8Y; 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 194-v6si2751556pgf.651.2018.07.18.00.50.47; Wed, 18 Jul 2018 00:51:02 -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=kyeGdi8Y; 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 S1729220AbeGRI0D (ORCPT + 99 others); Wed, 18 Jul 2018 04:26:03 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:37199 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727575AbeGRI0D (ORCPT ); Wed, 18 Jul 2018 04:26:03 -0400 Received: by mail-wr1-f67.google.com with SMTP id q10-v6so3623813wrd.4 for ; Wed, 18 Jul 2018 00:49:26 -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; bh=Olw6CucR1gGeb506sf4sE2oIBIreMnW2/BM09+7ohCE=; b=kyeGdi8Yca07kJkDQ3bmWS3/lvn9nryL7/Awu2Ex67IRiwmrm/36whVNXRYtELw2RW XCXbV27EL62sdtconlo9rfF2E49AkNf799/Vagv73KPs5Ne3fVkeQhDR+2Ta0Lpy2sz4 gLWengeW70fzTNHOPji/hNWRGhWngth72AnI8= 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; bh=Olw6CucR1gGeb506sf4sE2oIBIreMnW2/BM09+7ohCE=; b=sN6np8Eb8sRUZdpPY97VtGseIt3u9jiqSBexpQ9a0tqig5wJ1LOJUU0dMeHDuA9IG8 D0CJNbh8wWisEpIItZvyuoOx1UsBNK7diujouIXJHcWhsJ3alkqEYDXKnLigmqcakI9U opRneqHY0BLFsDaYVI+RcJWp2Pemnwsn2YLmrQUKoyVLVV3tv+BbWVxzNxC1wLKRVMYZ gMQEiz7az5s9qQdXpyVNjnAdQvAYzk4Dv1HvtJVZIouwpQE0dw7r4JnzdzaRTRxamtTx D52QOMmVBwYwG58bAnq/LTqWV598NFR6HnE2RxQwP7dgKGAFpOAXPpSg7TASwLEvHu67 s70w== X-Gm-Message-State: AOUpUlGF+GxdxIA7rX6iFf5+z8281f1rHjAlrIP944Yhr5KnvCxoP1Zj 8HbGXIZvAWwB81rMUUIlsxylh75xTcs= X-Received: by 2002:adf:f342:: with SMTP id e2-v6mr3504776wrp.161.1531900165364; Wed, 18 Jul 2018 00:49:25 -0700 (PDT) Received: from localhost ([103.249.91.115]) by smtp.gmail.com with ESMTPSA id c7-v6sm1976278wma.26.2018.07.18.00.49.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Jul 2018 00:49:24 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, andy.gross@linaro.org, dianders@chromium.org, mka@chromium.org, edubezval@gmail.com, David Brown , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v1] arm64: dts: sdm845: enable tsens thermal zones Date: Wed, 18 Jul 2018 13:19:17 +0530 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org One thermal zone per cpu is defined Signed-off-by: Amit Kucheria --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 170 +++++++++++++++++++++++++++++++++++ 1 file changed, 170 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 01ff146..a75be7c 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -340,4 +340,174 @@ }; }; }; + + thermal-zones { + cpu0-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 1>; + + trips { + cpu_alert0: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_crit0: trip1 { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cpu1-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 2>; + + trips { + cpu_alert1: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_crit1: trip1 { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cpu2-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 3>; + + trips { + cpu_alert2: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_crit2: trip1 { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cpu3-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 4>; + + trips { + cpu_alert3: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_crit3: trip1 { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cpu4-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 7>; + + trips { + cpu_alert4: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_crit4: trip1 { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cpu5-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 8>; + + trips { + cpu_alert5: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_crit5: trip1 { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cpu6-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 9>; + + trips { + cpu_alert6: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_crit6: trip1 { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + + cpu7-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens0 10>; + + trips { + cpu_alert7: trip0 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_crit7: trip1 { + temperature = <110000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + }; + }; }; -- 2.7.4