From patchwork Tue Jul 31 18:59:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 951755 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=reject dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="VtKNsFx2"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41g5NX1zJGz9s1R for ; Wed, 1 Aug 2018 05:00:12 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732227AbeGaUl0 (ORCPT ); Tue, 31 Jul 2018 16:41:26 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:40559 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732006AbeGaUlZ (ORCPT ); Tue, 31 Jul 2018 16:41:25 -0400 Received: by mail-pf1-f196.google.com with SMTP id e13-v6so6545958pff.7 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=TuDaMkZoOjWXoXhw1bn6U/7+qKkjaf9B0ApKOHxrbEDk+cMhzJJL0bCLEQDPxtNKuF Lm5oie7gvZZUcI3SPz4eEZwuphG+J73QB7cHj0KDoLubM18/TSQo07g6j6UQfAV+YMDZ lCG3EEzUEoUYPp4vdGcoWZDgzyICPcihJbJyy7c+Wg37rx+bJulTiX+Sf27KrLjUZip0 Xe/Uj2zYANL/ncv/G/0EXC+4SMPBOPjZYBICIXNYAcW4PNIlhCAyuTXKsNjz4/EwEnw/ ZM70uRLFahzh8jtLn42oGiGmNBSuGB5vCzkpz1ON4+KBO2MYXYgKaTNXOrjpvRUhpmbG EMcg== X-Gm-Message-State: AOUpUlESrMl5S2P6lN3LX6eUIQMR+jKsE0PzaBjUxBPpw4fEBFCBNmaA xrvTpvZA49RsrXowCk778ppsOA== X-Google-Smtp-Source: AAOMgpcqwTmDD5Ozvi7ayuWDmQ9nKxaf3SQSygz6tb6gXrX94F7Q864clnedanKKUMCy8q4QEVrOxw== 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 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 Reviewed-by: Rob Herring --- 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"; }; };