From patchwork Tue Jul 31 18:45:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 10551173 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6E4DE14E0 for ; Tue, 31 Jul 2018 18:46:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5F5062B244 for ; Tue, 31 Jul 2018 18:46:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 524492B2EA; Tue, 31 Jul 2018 18:46:37 +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=ham 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 05F222B244 for ; Tue, 31 Jul 2018 18:46:36 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=7ALMsbiOjAL3eMXTmLRFMiR1kPewBIDIka54U5d1oUY=; b=hyAXHhgnZsd+Vg 782SZCQYjc2FWybzY9DY78G344XP7GsCi5mJrULHdfHEM8kGXsnD03YIyoi84a3Wmp5Jh8FRi7WuD tCSiOKxx0rPPmGM06AYcDyN8WYY46wQWArwsTF6JFhqhNldq2whPvZ9rbglA4reo9qBs1fNGPu9iY X6YPsQ+7MYnyCL4VTpY5d+cafuc0oljTiVr1ZWYMm4uE30IoiF49FPh6tbRz4mjp9UeBiE1sEMeQ/ XUHfF1KFNjl+f4b6qBAKaDx06mt1LO0QP2PTqzWMs38tQ/72X4xXEIBT6M4+MHriXiBQxg8RHN5lB PB8JPB7853I3XVmw/0LA==; 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 1fkZfC-0003Lb-VY; Tue, 31 Jul 2018 18:46:30 +0000 Received: from mail-pf1-f193.google.com ([209.85.210.193]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fkZfA-0003IL-9N for linux-arm-kernel@lists.infradead.org; Tue, 31 Jul 2018 18:46:29 +0000 Received: by mail-pf1-f193.google.com with SMTP id l9-v6so6531731pff.9 for ; Tue, 31 Jul 2018 11:46:17 -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:mime-version:content-transfer-encoding; bh=XWHD3U11wghvwRII1kRUIs8QoNbRmHkZbA9xigt5SRw=; b=DaD0w+aNV9CqoaNN/gm16+QknxVhMO7uDRhCvf+BTHgvjOfH+t45jVh9M9LS06rrJ9 ib9IY5lvclpIN7ZA8wvSrBvru6ajnUfpjqyQYCn+XtAYsn/CGuKeft3bO7bloK4XWZS6 sHp7jdUEBQIqn3DTN2YsSfXollQFe2BuuaUytpV7Ey5JbbPCKtb+iiqntt9zPIoihCsg 8NV5EJvffT3JaD1lzz3Y5pPqNFvOxUoikMlNXEuWbnNxmhJpw+JZFKQXIdRkSDTekFH/ r77zVOF5l11h8XgTusqzKog0w+NfGcaHXROxRY7cKTVFo/U3znMqHqQOCwozZwOcg7S5 IkFw== X-Gm-Message-State: AOUpUlF8JopcB0PwCGjbtcngUqLtc10kNExpSzUiJWLAgLm4vzGg8H8B nwZPxxmBPkf2az4RbR4ad7QpYw== X-Google-Smtp-Source: AAOMgpftK6VTik1iP9nFlcx7ntOye747JELX84OSDJcz9G0DVVKUu/tcmDwuawxnh1cK9zEp6EzsSQ== X-Received: by 2002:a63:6441:: with SMTP id y62-v6mr21271003pgb.240.1533062776409; Tue, 31 Jul 2018 11:46:16 -0700 (PDT) Received: from mka.mtv.corp.google.com ([2620:15c:202:1:b6af:f85:ed6c:ac6a]) by smtp.gmail.com with ESMTPSA id b21-v6sm4981683pgw.79.2018.07.31.11.46.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jul 2018 11:46:15 -0700 (PDT) From: Matthias Kaehlcke To: Andy Gross , David Brown , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , Zhang Rui , Eduardo Valentin Subject: [PATCH v6 2/5] dt-bindings: thermal: qcom-spmi-temp-alarm: Improve thermal zone in example Date: Tue, 31 Jul 2018 11:45:53 -0700 Message-Id: <20180731184556.169290-2-mka@chromium.org> X-Mailer: git-send-email 2.18.0.345.g5c9ce644c3-goog In-Reply-To: <20180731184556.169290-1-mka@chromium.org> References: <20180731184556.169290-1-mka@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180731_114628_330417_1AF378EF X-CRM114-Status: GOOD ( 15.45 ) 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: devicetree@vger.kernel.org, David Collins , linux-pm@vger.kernel.org, Stephen Boyd , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Douglas Anderson , Matthias Kaehlcke , linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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 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"; }; };