Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp491792imm; Fri, 29 Jun 2018 01:06:55 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJq25gjAl4jD9CqAmBA1amlMS/mqBCTPX/vNlUYZ6BI15aTMe75CXF2jW0088dR6tVIJD9Z X-Received: by 2002:a63:6501:: with SMTP id z1-v6mr11728772pgb.452.1530259615452; Fri, 29 Jun 2018 01:06:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530259615; cv=none; d=google.com; s=arc-20160816; b=X9po38YdNmQFPOxjstZnOGgT2tH4fYPJrrd1He2qwF2YeH78Il1MsdkbVrxMMiQcjP oGboeHWid7OXjG7d5TWksbrZ4LVUwLNQiXnMkEjEmhgSfd39T2zHp2TrJlNNxk0iQlDp +7/p6byaazrklRdUwOQlIm1jMIOEIt4708QqwzBaJYxm3tziDPW/D46Xr0xWT04qiYDc MrOEjaxXvsXjjUMbWwj+xsj+1bm5heFpekpreL7b1NitZV2YuPpAoyVs+mfjwIi+FWNC QvRbpt842hr9HCHfzgNP+4piCui8ijihOSHAQ6CpaTxwdMB0a9JZAwZH0P1D2lVkMJGu rOEw== 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:arc-authentication-results; bh=CKfmZi7JXwI0meuLJKxvvAFnTdfBFv0OAY0IQctqTUI=; b=a4mViS3KIp0+jHT5ts+Jkld40EEndZtnb41Cl1ZlXa6vArRoVHJeWZVA3rnZjBFpIn q5MMTznVuIe9wXItzm1PNN3IhD88hlE8hvD4POH3EKySA+sMp2MUhe/ekzmkEggDfmW7 a7YK3HExF6EOnKVz34LFp8GeSuxxBoo6R6Ahkw713S5cgHOd6IunVwZuRps9zyY9GyVH wnHzH2CrbpcMwPJrp9saUxCqAamcXKywbv9c10JVCFyIEB931kERkix7wfSITyPbBc9M wfORGpkUUXBPjdKavi9nPL8MBncDQQFjLauYO03IUPJTysRMqZUE0y3uKJRFP/JRtskl xVtg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a72-v6si7684577pge.497.2018.06.29.01.06.41; Fri, 29 Jun 2018 01:06:55 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935175AbeF1VJe (ORCPT + 99 others); Thu, 28 Jun 2018 17:09:34 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:42911 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934313AbeF1VJb (ORCPT ); Thu, 28 Jun 2018 17:09:31 -0400 Received: by mail-pf0-f196.google.com with SMTP id v9-v6so2035348pff.9 for ; Thu, 28 Jun 2018 14:09:31 -0700 (PDT) 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=CKfmZi7JXwI0meuLJKxvvAFnTdfBFv0OAY0IQctqTUI=; b=mc7I0N46rPtFuGjSSZ6wWsXkWgBV6qYGf3/DJg5tMYQZ4gYwnmFlYaycViJEWUeIRp 0N4cGauhdAPJex3ODAyt+GiizoPA9dcIQri63bwNsqRbNjtiMRxCd1r1Mlky5WLCgMew kioKCe6m8kT69LsxKqov2r/tXUTxrxTOnDv6RVt8AG3IvHSUP9dYHYdevTeKBxoteXX0 q2lPhncSUhuI5r6ll51vfe47dBtiguOfGHsNnyZvO0/4z8/TwTvmT5zT7/Qpyk02iU4M IKhbSx2SoDk5F5dITrJQHTbSgMQoIcmp+N6H2XJozr8iMh44qgVGDYiC+HFNovTI8qFW /5Hw== X-Gm-Message-State: APt69E2mMiBaB1iPhpMEqdjZr8QK0X1xus7SYo+7vLLBh/41b2vAHIBf C+Z9395SeglTJEUb5JOBmWg3OQ== X-Received: by 2002:a63:6b86:: with SMTP id g128-v6mr10336889pgc.344.1530220170685; Thu, 28 Jun 2018 14:09:30 -0700 (PDT) Received: from mka.mtv.corp.google.com ([2620:0:1000:1501:8e2d:4727:1211:622]) by smtp.gmail.com with ESMTPSA id w18-v6sm9006838pgq.1.2018.06.28.14.09.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jun 2018 14:09:29 -0700 (PDT) From: Matthias Kaehlcke To: Andy Gross , David Brown , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon Cc: linux-soc@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, David Collins , Douglas Anderson , Stephen Boyd , Matthias Kaehlcke Subject: [PATCH 3/3] arm64: dts: qcom: pm8998: Add thermal zone Date: Thu, 28 Jun 2018 14:09:15 -0700 Message-Id: <20180628210915.160893-3-mka@chromium.org> X-Mailer: git-send-email 2.18.0.rc2.346.g013aa6912e-goog In-Reply-To: <20180628210915.160893-1-mka@chromium.org> References: <20180628210915.160893-1-mka@chromium.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add pm8998 thermal zone based on the examples in the spmi-temp-alarm bindings. Note: devices with the pm8998 need to have a 'thermal-zones' node (which may be empty) with a label 'thermal_zones'. Signed-off-by: Matthias Kaehlcke --- arch/arm64/boot/dts/qcom/pm8998.dtsi | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm8998.dtsi b/arch/arm64/boot/dts/qcom/pm8998.dtsi index f2d39074ed74..d85ceb4f976b 100644 --- a/arch/arm64/boot/dts/qcom/pm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8998.dtsi @@ -3,6 +3,7 @@ #include #include +#include &spmi_bus { pm8998_lsid0: pmic@0 { @@ -59,3 +60,30 @@ #size-cells = <0>; }; }; + +&thermal_zones { + pm8998 { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&pm8998_temp>; + + trips { + passive { + temperature = <1050000>; + hysteresis = <2000>; + type = "passive"; + }; + alert { + temperature = <125000>; + hysteresis = <2000>; + type = "hot"; + }; + crit { + temperature = <145000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; +}; -- 2.18.0.rc2.346.g013aa6912e-goog