Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp415752imm; Thu, 28 Jun 2018 23:27:17 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf2II0IWsjkGBqNO6kR8NUegAc7bk8lP5Y/VIXi6nGxB4JMlHN+p+Sh2EgUJ+GKYLmjgFK2 X-Received: by 2002:a62:984b:: with SMTP id q72-v6mr13058040pfd.206.1530253637223; Thu, 28 Jun 2018 23:27:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530253637; cv=none; d=google.com; s=arc-20160816; b=dwxtGhqClWfALxx4XBEZzzYQXIv6EN+WbViwIGVNBFpszJrgjLzFOwTcRQ32TDX/rf GRf7mCBR/eSddrM4wslUdgiOoQjuXe+CHklS0aoujHLhAV+qQinGKbKPUjFC/YtL6/PN xpK74vFH6kw5Q8mkPA+LGnscc9i2gnwc8ccoTDhJ/zczMancHOshChYK+tvsdyzpyVIF DBYIJm53S1mOtgudM63BLKawqUwytdDxPBUbkY1UO+7RyzzpVp2tBpcYoPVpHWzzX957 iz3Dc96jOgELDKn82fA+jFvGXoIpoddKvja6jt3bQQ8tb2hHcpqp08WVyFuNwdwLz9qP EDpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=MKhzBZF6bF01wFalm/itvkOTmHMvbHHLYIgGeNHVd+g=; b=Po/WijJ3OR0lRQPHPWp8eXcWRIuHR6HRt7PlRmOQk9BtZ1IjB1vsl8xzlL+mxvMejz Hc7Wm2vP8fn05aXFT8xkQ1jLl9mdGGqaw/dpfkfu2ZosDr5oRMaC1U6PUCEEdraTr9VU X8P6V6OObwAOq6qhNT59TeWrvFLdBU1YmO1nck7dW7NzyEN0QlZwihJP5yACkBy58y+b 9CY7ii+VOBRjHYTwTfPvzYfNepYNEMT6pHUpCEsTQedRI1iZyNRXQ8oRHu8Tyenao0xt 6qETHJDVGFRPsxErVWqZPKOsepGjCUi6sci3bwZjwt1kFojpVMg+vcnasmS6rwh1ROwn dU3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=Y9+KWinD; dkim=fail header.i=@chromium.org header.s=google header.b=j07roS3i; 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 c18-v6si8128362pfn.245.2018.06.28.23.27.03; Thu, 28 Jun 2018 23:27:17 -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=fail header.i=@google.com header.s=20161025 header.b=Y9+KWinD; dkim=fail header.i=@chromium.org header.s=google header.b=j07roS3i; 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 S967170AbeF1W6p (ORCPT + 99 others); Thu, 28 Jun 2018 18:58:45 -0400 Received: from mail-ua0-f193.google.com ([209.85.217.193]:38994 "EHLO mail-ua0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966992AbeF1W6n (ORCPT ); Thu, 28 Jun 2018 18:58:43 -0400 Received: by mail-ua0-f193.google.com with SMTP id n4-v6so4617745uad.6 for ; Thu, 28 Jun 2018 15:58:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=MKhzBZF6bF01wFalm/itvkOTmHMvbHHLYIgGeNHVd+g=; b=Y9+KWinDwYpBKn1ePFXv2JVwzZfj+SQhQzNcA/Vb0IspOjI5DhMyUu4Y4dxD//L6y5 rUCyFJAnJ4Qwh0W+JFvSotgeDSIZmddqCU2tHsLIub4P//ciT+BKE4kssjuSJkfurgeR ADQqAfuynJxmOBGSPL4iyfTtjdY553o0L8rRysQ3I5YuokKcfy/JU3KKoqMD9oILgxXp KV71CY2dcPb19fD07dvWJqg0SGoaVtOck57zwR4YSv5wqenFUJwiXIS2ZG765up+4K2P e+kHbBFQXefhZIo1hM7zrqPUvbqBe8KGG/nXXzSUlb05qJ7qSdvbioF0twLNOEnOF4+Q MQGQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=MKhzBZF6bF01wFalm/itvkOTmHMvbHHLYIgGeNHVd+g=; b=j07roS3incZI3HfmiviTuwV2zRfDAnaJ4yE6GV10w//n2Vs8PGZ3c6ZF7slJ+xphkn SX99PHf50lEFz0mlzTr40BwppFK+2De2N8QkXlqnRlk0ho9owhBtyNCPJGrAcStzvMGP C4LdwrGHy5RxHZTPxky6GRFBF68ObBK4iWWdo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=MKhzBZF6bF01wFalm/itvkOTmHMvbHHLYIgGeNHVd+g=; b=BuscgzFHYUJlwHpgTK/yyfBdmWx6rIlWlS1Jb7oj0bqMz4qmRpeVhZTP4wPejs3SHv 5UkyfByGjIf1Cvr1OoUnUDFAPRwgwscACj/tFAQV9R2PMky+cQt//LILNPp8zpnLnl1j jR5tF0caa6lNYWs9Yre1W38PfJLFKpEMlpDkkThCbUryPMDHG4nY13qaTkiBVMt19gQj DXLUGbEZBFKXA8EUGdrPJadYrBXDtWTrNyJC+LjLLLZj/1HqOY0SnimfmLvSLxwhssCu T7diThIpAcD8O6YVwwhVennn943ZsjrPg7nnYoMpteNm02ul2SGxYjZEIIwBGEY5L6ix eG3w== X-Gm-Message-State: APt69E2T0Nctx/rxBaigmqconx1hlpaLHb4WtQQYfWR8N/6+/OMY0qWG mP/41jAD11JjOQ/ssIzXoLIso1TLsdgvFtUIhtuwtA== X-Received: by 2002:a9f:3d21:: with SMTP id l33-v6mr7671481uai.135.1530226721815; Thu, 28 Jun 2018 15:58:41 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1f:9495:0:0:0:0:0 with HTTP; Thu, 28 Jun 2018 15:58:41 -0700 (PDT) In-Reply-To: <20180628210915.160893-3-mka@chromium.org> References: <20180628210915.160893-1-mka@chromium.org> <20180628210915.160893-3-mka@chromium.org> From: Doug Anderson Date: Thu, 28 Jun 2018 15:58:41 -0700 X-Google-Sender-Auth: JuvMsc2CAyi81qvJ8atcHJWTh9s Message-ID: Subject: Re: [PATCH 3/3] arm64: dts: qcom: pm8998: Add thermal zone To: Matthias Kaehlcke Cc: Andy Gross , David Brown , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , "open list:ARM/QUALCOMM SUPPORT" , linux-arm-msm , Linux ARM , LKML , David Collins , Stephen Boyd Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Jun 28, 2018 at 2:09 PM, Matthias Kaehlcke wrote: > 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(+) Do you know if this patch actually does anything since you didn't define a cooling-maps? Hopefully at least the critical shuts things down? Do you have any idea how we'll eventually want to specify a cooling-maps? Are we just going to assume we're included by an sdm845 device and refer to the big/little CPU phandles? > 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 { As per comments in patch #1, don't rely on a label. Just put your stuff in a top-level "thermal-zones" node. > + pm8998 { > + polling-delay-passive = <250>; > + polling-delay = <1000>; > + > + thermal-sensors = <&pm8998_temp>; > + > + trips { > + passive { IMO you should proactively put a label on these trips even if there's no cooling device yet. It's expected that at some point someone will add a cooling device and refer to them, right? -Doug