Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3447669pxk; Mon, 5 Oct 2020 09:52:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/ODvYiSoshX/MV2MUII300JDXOVzLcgRmyVQZiTLDyl5daoYbN5Gx4Dahv90Q8/fKL3Ks X-Received: by 2002:a05:6402:2076:: with SMTP id bd22mr571365edb.197.1601916739899; Mon, 05 Oct 2020 09:52:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601916739; cv=none; d=google.com; s=arc-20160816; b=WLYW9rjoFntqe+N+2HuUWxLkw3+HJpR0p/XXiVF9zJlE7fGSZyy2vA09Hi6Z0q5E8o crbLPwKhZqwFNtD4qeGeUCx4QP2gL2o0qeJFdfW1S7dwGvizkeZkIsU5EXNbxZbd1ix+ 3SHSaJJzpjYke0VQ46EfCXNi6JTBPDRlLSyFa9+cs6fHMqhIHHiBT8uMo5eD4Xb0h/+q rCi08TymviSRkL9kcYWGBd/nlRrGgnL4/XAVcrCrJRV0WFXeg4UlvA/RMs2OJB6bH+6a wCu1YPAOmN8nCTq9YOV732395CPmf+SW0iFvJ6x0eRp9F4Wov/aEkVoqXrdtZ6hUOLVk FRqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=EezbwMcgNsSkfm2RuM0angA1ri0gdxmsxzDPBMJaQZ0=; b=LKNvfYMmOs7jWQsALFO7HQE+Kl3Qjew746gROnHvbGIqJ06ALWjmOCLQyV0BaKNUmi xTFgK7XVPUxW64y3kKa5nSUM3Ulbq0R14gnYOPo8mI8GcSlGLJzqgDzL3PpoNUQDHzF1 zXLtYuWpfNNyJZlyG5iGcQzupDh7IgL61M0sIiWCZ25h/4jFFl/l9ltrXVYpVB2asfYL O77GEX7uaN+8pheBYnPE10R0Ee7KXQtMihcAxt1Kf3CeRFbmroE/llujvQH2ivlqki03 OIWpRfGXKcfc2VYEZaWXhqeJuojFUmlA2NcLjVDGp0QZuhCw8NTH3sH7gp1RxtVKJcxK jSjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="OTuUxv/n"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w3si97481ejy.651.2020.10.05.09.51.56; Mon, 05 Oct 2020 09:52:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="OTuUxv/n"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726938AbgJEPZh (ORCPT + 99 others); Mon, 5 Oct 2020 11:25:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726567AbgJEPZh (ORCPT ); Mon, 5 Oct 2020 11:25:37 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8916AC0613A9 for ; Mon, 5 Oct 2020 08:25:35 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id t10so10076729wrv.1 for ; Mon, 05 Oct 2020 08:25:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=EezbwMcgNsSkfm2RuM0angA1ri0gdxmsxzDPBMJaQZ0=; b=OTuUxv/nH7FNQkh8FS3PvFlz+A/gAAZJHo7hTbfnQim9Fixk9czrkRJQusz3P/meD+ 21ZoKmCbDouNkR3jLDPgsRHM0pPFabpQw476csRSbPbFQ/hYiwe0Hp0R5Qv47smBq1wX Ho5IJC19hSTyZpHVaXjKAAYxrjrkH1h5HcmQExDdez2Wvd3Ky9Gp0MNK1gL31cy6jAUi A/PTBOMuvLRBZ4uavNSSeWZZFFvbqmCTwloew5iHTFYOuvkuk51tV4y3LHyPyf7HKOnG OB6YvDS/ofmIwPJX34O7dbKzFR9fMbW8lzlKury4jUHfTsMegbkHW/Kx5OuvlNlmB4V2 vQFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=EezbwMcgNsSkfm2RuM0angA1ri0gdxmsxzDPBMJaQZ0=; b=jN5zICtrjygcEyzNPjtzZixqGYQb8xr7oi8y3BaLP7AE6S/ovMteoBMaJ9xdA8RpCH F36vqvKScK/gACdysvIi0e6vtr1gYexNL5pS51IHVjrzwgt33hN5JsoKLvZCGv1AaJ/6 uX1CAgVK6HJuwBGaA+YxpKvgguIo9EqoVNrLIkIxTMkoVxqhVxneIN8oqqFMyrbxl6lb stchxJGKcCaDRYqwLY0+h0g67fflaacJnwvTrMAwXPQjy9hSybHn3pDkLUDrgV+IM1PD 4JxyvA5bPZHNrOsEMg5VUyQDrXWnolmd+mSzxOfoMt1fD9Ml9r7kzxeawvtYTOlo1SnX BGfQ== X-Gm-Message-State: AOAM531q+eXzbE/BieihbpcGe0E8ceZNC+0DWnQve/k6NTs8JjEqGEWy 9tY8DS4TbZocA/Ta6Kc5CnadJvudqJFAkg== X-Received: by 2002:adf:ffc2:: with SMTP id x2mr17670964wrs.48.1601911533669; Mon, 05 Oct 2020 08:25:33 -0700 (PDT) Received: from ?IPv6:2a01:e34:ed2f:f020:4892:2327:f1c5:e39c? ([2a01:e34:ed2f:f020:4892:2327:f1c5:e39c]) by smtp.googlemail.com with ESMTPSA id t16sm89309wmi.18.2020.10.05.08.25.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Oct 2020 08:25:33 -0700 (PDT) Subject: Re: [PATCH 03/11] arm64: dts: qcom: pm8994: Add thermal-zones for temp alarm To: Konrad Dybcio Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20201005150313.149754-1-konradybcio@gmail.com> <20201005150313.149754-4-konradybcio@gmail.com> From: Daniel Lezcano Message-ID: Date: Mon, 5 Oct 2020 17:25:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201005150313.149754-4-konradybcio@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/10/2020 17:03, Konrad Dybcio wrote: > This will shut down the platform in case the PMIC overheats. > > Signed-off-by: Konrad Dybcio > --- > arch/arm64/boot/dts/qcom/pm8994.dtsi | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/pm8994.dtsi b/arch/arm64/boot/dts/qcom/pm8994.dtsi > index 7825208b0d8b..9ab5657f7d23 100644 > --- a/arch/arm64/boot/dts/qcom/pm8994.dtsi > +++ b/arch/arm64/boot/dts/qcom/pm8994.dtsi > @@ -4,6 +4,30 @@ > #include > #include > > +/ { > + thermal-zones { > + pm8994 { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&pm8994_temp>; > + > + trips { > + pm8994_alert0: pm8994-alert0 { > + temperature = <95000>; > + hysteresis = <2000>; > + type = "passive"; > + }; Don't you want to add a 'hot' trip point, so userspace can get the notification and have an opportunity to do some action like unplugging some CPU before a wild shutdown happens ? > + pm8994_crit: pm8994-crit { > + temperature = <125000>; > + hysteresis = <2000>; > + type = "critical"; > + }; > + }; > + }; > + }; > +}; > + > &spmi_bus { > > pmic@0 { > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog