Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5503110imm; Tue, 31 Jul 2018 12:02:47 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfmpGx+YqcNTq/wWvAhS4U9+fFY3vEKIDVSxsnBofk0mMnG9C3oMSn3HOsaRumiM+LxeVHH X-Received: by 2002:a63:eb53:: with SMTP id b19-v6mr13770766pgk.371.1533063767451; Tue, 31 Jul 2018 12:02:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533063767; cv=none; d=google.com; s=arc-20160816; b=CwzwP1z5ZjRnQ5IaQ8d9lo5QitTWN4o9AkG0eo0ek1Ba4E5NPLutfsuTnP8Lk3EXFT IHTkI9+OSZWR2t0ra/8+sBaPjXQgrOKNB3/jeQE7zapY+xhEikSBtLJDpyKxK+K1Uw88 LP5asx7kAVLLsM2L10tN1BuWfetLqF6LLLOO0AkM3heKKkwTb4o+GKU7rNO3JyJKQfF7 oG8uvihYikpy0Acu/pHY43q9lAKXpqYWGrG56glNnlLKK3GzylW3LNa6LJQmRrLHmgib 3gpvJoJjR8SdDQTD+qXFXKeU8XlOihQAHzqu5ygSNmOS3ayOdnj1x2r8D7kc7kDb93tE Mw7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=XWHD3U11wghvwRII1kRUIs8QoNbRmHkZbA9xigt5SRw=; b=gJaKw/51L1Pj89855WZSGhA0ORFU8R4ALg6MI9f4dkb7yYEHYR4M8MIPIwWFFWOvNd LhMOV6PCIHNhPA6hWkrr7NY2nUIlrbc/fHCi2y8xbO81/X2d9WKqRKWilXPmFOfG/3w7 VcxSKQd+92G2U3MPKvHGAb52Fu2ttzkpfsm9iBj5AnvuIf2TAG/EWzpHRseJJuAGLXma 7rampnE2OYxkPCECG7+OQd0hNd7++yDRFI/ZRGSh48kRsmdVVutDIeFzcc6gm7Q4yfQ+ lRrVwKDMFeWfOK8UMzunfxut5y1VB7rMSfU54EW2IIJukVTAIIxTutr39lchborq0mOg ndPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VtKNsFx2; 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=REJECT sp=REJECT 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 e188-v6si6782362pfe.231.2018.07.31.12.02.29; Tue, 31 Jul 2018 12:02:47 -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=@chromium.org header.s=google header.b=VtKNsFx2; 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=REJECT sp=REJECT dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732243AbeGaUl0 (ORCPT + 99 others); Tue, 31 Jul 2018 16:41:26 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:35488 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732211AbeGaUlZ (ORCPT ); Tue, 31 Jul 2018 16:41:25 -0400 Received: by mail-pf1-f196.google.com with SMTP id p12-v6so1448673pfh.2 for ; Tue, 31 Jul 2018 11:59:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XWHD3U11wghvwRII1kRUIs8QoNbRmHkZbA9xigt5SRw=; b=VtKNsFx2fc4xr3o3dPJ+5VUohYwrqfLv+Nz4/VQ6QNzrkXlR5hx6vBnYUJbhiFQfor tlObU1KQ9ZDN9Amr1kPyYq0pZAKphBl3Krt/5fn8kG9SjDmGeYDocJzvLM8yJWgPuipe ruVm1RLrL/HC2wvq70MbYskCB8Bb3LjraFb/8= 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:mime-version:content-transfer-encoding; bh=XWHD3U11wghvwRII1kRUIs8QoNbRmHkZbA9xigt5SRw=; b=s1UXEIBCalPSOdSJRUP+OIZqIWz0KhMEzaPRba2iTmEP0Dd90PlJ7TzQrT0iem2ZHK iaJ1WFtXfQSFVvxoAIuHQQuxV+EoYdKEshJRHNintFBo+roRvLMOcU96CpmQ5vQov9UR hL1stp6SpxcHcvDGu8S1E2psAxALqTTIo4h6iZF1uxb3bS/Qze7auTSpX9hkVQcpDS5w iKBEA2FfFUDaFwK8+ubwZLg3hrk3mNfjO/u/MlRtmhykU2JqbewIkTWDIBlqj7oMibIK CDqAoEmHP1tGWXBvIRqdFliyHp2y4fZKrEYlQ1ThK4A61VjEqYk21SacM0wunamuTfp3 qiPg== X-Gm-Message-State: AOUpUlGKb23/3zAKTNys+77dgUMkqhoIwITVYDWW7BKoGNI99yGq9tQl QfjTp8miQIMV0kWB6rCboWH06A== X-Received: by 2002:aa7:824d:: with SMTP id e13-v6mr23441782pfn.97.1533063585006; Tue, 31 Jul 2018 11:59:45 -0700 (PDT) Received: from mka.mtv.corp.google.com ([2620:15c:202:1:b6af:f85:ed6c:ac6a]) by smtp.gmail.com with ESMTPSA id e132-v6sm27797567pfc.49.2018.07.31.11.59.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jul 2018 11:59:44 -0700 (PDT) From: Matthias Kaehlcke To: Andy Gross , David Brown , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , Zhang Rui , Eduardo Valentin Cc: linux-soc@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, David Collins , Douglas Anderson , Stephen Boyd , Matthias Kaehlcke Subject: [PATCH v6 2/5] dt-bindings: thermal: qcom-spmi-temp-alarm: Improve thermal zone in example Date: Tue, 31 Jul 2018 11:59:14 -0700 Message-Id: <20180731185917.176074-2-mka@chromium.org> X-Mailer: git-send-email 2.18.0.345.g5c9ce644c3-goog In-Reply-To: <20180731185917.176074-1-mka@chromium.org> References: <20180731185917.176074-1-mka@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The current example for a thermal zone isn't very useful as reference since it would result in a hardware shutdown at 145°C, instead of allowing the system to try to shutdown gracefully. Without an ADC channel a maximum of two trip points is useful in practice for this sensor, with temperatures corresponding to the stage 1 and stage 2 'hardware trip points'. A critical trip point at stage 2 may allow the system to shutdown before a hardware shutdown at stage 3 kicks in. It should be noted though that by default the chip performs a 'partial shutdown' when the temperature reaches stage 2, which may prevent an orderly shutdown. The 'partial shutdown' can be disabled by software. Signed-off-by: Matthias Kaehlcke Reviewed-by: Douglas Anderson --- Changes in v6: - patch added to the series --- .../bindings/thermal/qcom-spmi-temp-alarm.txt | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/thermal/qcom-spmi-temp-alarm.txt b/Documentation/devicetree/bindings/thermal/qcom-spmi-temp-alarm.txt index 86fb41fe772f..0273a92a2a84 100644 --- a/Documentation/devicetree/bindings/thermal/qcom-spmi-temp-alarm.txt +++ b/Documentation/devicetree/bindings/thermal/qcom-spmi-temp-alarm.txt @@ -35,19 +35,14 @@ Example: thermal-sensors = <&pm8941_temp>; trips { - passive { - temperature = <1050000>; + stage1 { + temperature = <105000>; hysteresis = <2000>; type = "passive"; }; - alert { + stage2 { temperature = <125000>; hysteresis = <2000>; - type = "hot"; - }; - crit { - temperature = <145000>; - hysteresis = <2000>; type = "critical"; }; }; -- 2.18.0.345.g5c9ce644c3-goog