From patchwork Wed Jul 18 07:49:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 10531527 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AAA3D6054B for ; Wed, 18 Jul 2018 07:49:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9993729178 for ; Wed, 18 Jul 2018 07:49:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8D9BC2917F; Wed, 18 Jul 2018 07:49:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3C6BB2917C for ; Wed, 18 Jul 2018 07:49:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=ibSlqAtyQNOmcpTyCYMuEGN5D5JqIkhV30R9G7Astuc=; b=rP63WYwraKy4959IzVbpCCKg4x SOwuy/TFMPCh8SP6Etkpfknog4y5rBQXZ/S5MxbpV8wom/E6NM12vyzIlPsA1FZo55fg8M+Q5xUmo XJ7ATuwqYKDz0qtKekKzQrwrXaSdmm2Tdd+vwxzw7dubqFs+sD+I6PsP3hzAWvQRTEMWDTkK4kwdL dCcn623yaZj8CTpqn9HQVA7WM/+2MKjShOTfFp8bcM/qG8MNyq+5R0iMo0opWJYRtDf2YHxK78VZS 54W0PlCXIu8cwjD8XSYxE8NViS6Hmy/AFASgSZRKHwcy0etfzjfy2DKvs5JHU84qR4PGU7veAAsj/ KPfhKE8Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ffhDS-0005EI-Qd; Wed, 18 Jul 2018 07:49:42 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ffhDP-0004zL-BQ for linux-arm-kernel@lists.infradead.org; Wed, 18 Jul 2018 07:49:40 +0000 Received: by mail-wr1-x441.google.com with SMTP id a3-v6so3617466wrt.2 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=iPkL8aoWTaL1lyO82AtYBapuQNPK39JcRQl8SSIjjDjPHfOyTSgIBgv8VLg48DBCj3 IRgebqMIF7SK2h/G7v6xZQXapwt78WCPJb9VWJpUC8nC6xrXDlarr0Pu5m/L6p+/fjLL 40Hf2hmN/ZIwGUH52sq2DuDi+shoU7xlFBYD+Ftu//UTv+9WbXUP+3pVIibXmt0rLXzM h2MrmrAINPIMJwnLNYYFWQTAXb0ue3HMy22LVmlAeOad0QzcGudLnxR3ic7fqpkFpCdq iVHM4CZI1ksrSid+DLhivuEytI6ekNdKzBXOj2mSYlr86fKeyfXVp/8nYfUez2fDkzyC fOAA== X-Gm-Message-State: AOUpUlE2SxmaLujBZa3MjLmYBg75inOEPZbWy6vdyOcge8gmkYcFZbjD cybXH0KmNL5lpwGKgZsHU3NoHw== X-Google-Smtp-Source: AAOMgpcWRDeBM41giekWfzEb2YWoB0BQtbrx3XMC2zNpEWyWDiP5injbojcI//Ly17Y137eI5pKuLQ== 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 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: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180718_004939_389118_54F45AF2 X-CRM114-Status: GOOD ( 11.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org, Will Deacon , dianders@chromium.org, Rob Herring , bjorn.andersson@linaro.org, edubezval@gmail.com, David Brown , mka@chromium.org, Catalin Marinas , andy.gross@linaro.org, linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP One thermal zone per cpu is defined Signed-off-by: Amit Kucheria Reviewed-by: Matthias Kaehlcke Tested-by: Matthias Kaehlcke --- 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"; + }; + }; + }; + }; };