Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3318652imu; Mon, 14 Jan 2019 00:24:20 -0800 (PST) X-Google-Smtp-Source: ALg8bN4OmyQqSGsYzFuvRKdkdeTI8o2w1If2a49w1FiVPfTESSaiuSJfMV2qDlJJiOHqc6AOx2V/ X-Received: by 2002:a17:902:aa4c:: with SMTP id c12mr24291674plr.48.1547454260610; Mon, 14 Jan 2019 00:24:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547454260; cv=none; d=google.com; s=arc-20160816; b=uoS8N9MFX2dYqzivADY9D2ZhuRB+w+bRMTYOXZdth1bylu/Lrz0rSeoQ3HJSlbMXz2 6aBwtyk1sy19/DbFaiOhn59n6dwj4OKIdP4v6tFGMjIGHKoRPVbrFePUEWgdfSn+vrSR mj9RTb8+pEKec+mdt8K5UiPyn2RjiysAU9lyMGzJrX+u7xQGr6fu1etbDJ39EMykPd9c DzvRND+UmgHQDuUJz6Ytnlu7PObu4qu/idg8toKdXngxP1BvifAHYP44jhSlZSjQee8R QqBOHOrnl2yjLio8H0gLBiCESIM6wSikuin3eMtIlMW5eNJGJt+fK6zjC0Mjywl5mhSB OdUQ== 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 :in-reply-to:references:mime-version:dkim-signature; bh=lzCMRkPjwb4Dx6wTDpuHrvvkH9s2qA4zbjpLMDOf6WY=; b=vHZ5pFhvtjV611f7NgjDelve8F6iU6PX0JRz8it4xAQuPYRwW7dbVgjdo9PTv4Wn6W cKpy1pQlpTFYESfYUOakD6qR5nebzQqJNODwyyNaOUaok399hs2Lf+sjRP7+IPauqh48 Wq4J5AzOpJNirf+BCgE4yYKarLIEXsxgAJFqRD2Yzi6xoKzmsXOq86fsait527REEj+l wiBu6taLjc3GAx8jd4G2mlLI5zDtDApfw9ePSAd0/y5RfLh4dvrM6ocbZszCYzVRnCq6 XyH5vW5Ir0eZziX8j49humxmZtXanoMviX/LK3wcNsUuWIxPjpGsx+NOyXIIMrkUtBg8 lfbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WWXlINNM; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si28466702pli.438.2019.01.14.00.24.05; Mon, 14 Jan 2019 00:24:20 -0800 (PST) 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=@linaro.org header.s=google header.b=WWXlINNM; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726320AbfANIWr (ORCPT + 99 others); Mon, 14 Jan 2019 03:22:47 -0500 Received: from mail-qt1-f169.google.com ([209.85.160.169]:37868 "EHLO mail-qt1-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726436AbfANIWr (ORCPT ); Mon, 14 Jan 2019 03:22:47 -0500 Received: by mail-qt1-f169.google.com with SMTP id t33so25593249qtt.4 for ; Mon, 14 Jan 2019 00:22:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lzCMRkPjwb4Dx6wTDpuHrvvkH9s2qA4zbjpLMDOf6WY=; b=WWXlINNMXoo8lh1hxH1/uQjyo2DTp5Kw676A1zhH0DUrdB0kd4Ib2IEBWr5mVMEjg/ 6ND7NjNz/8XUM6288E1QSnebUnAiFdGBrYyioQVDtbBBE5P1OVsbCAI2qLytBCPYIm59 kLAUHFcb6+ej4iOQxQ8F0CInsu+Dsehrk8nvo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lzCMRkPjwb4Dx6wTDpuHrvvkH9s2qA4zbjpLMDOf6WY=; b=sZewNNoRyxbOy30J21VZz1VkCqWrnuTpuG/f26i7xYAkJQ4kIAh4H9oJikmit8VAZ6 fiK3hrsBjFzX0wIYZRLaLbwHCeKhKQS/JdtbldI4m7RHEecGHjNApPdS/svBeaHkYy5T PpwTkXaiXwpz8A4o8K6Cx28hKVYsXnYtoRkC/TUVZwM6MbNsiXxPfLxNR255n3O44cR3 HKm4mT4rzTwO1kV3+cpI5JKyXjCVbD9xz9Oaf23Yf8aNkKeAqYHgwG+2cJxW+7KIkfhV TGEbLGaAfh8sJ6Osh33jk8iQGvcUmML2KESkFuU3WuMJuSH5v1nmUP55JPEM5+SrpRHt esaA== X-Gm-Message-State: AJcUukfLcG1niFQm/qnYbbx20BpL1V8SIHK60Ja+Ybp+Jh0YGJOhgrMG 2x5+BD+R+ct/Bifw/2p1pzMx3OckB2GC0BpDlJF52A== X-Received: by 2002:ac8:203:: with SMTP id k3mr23612850qtg.64.1547454165954; Mon, 14 Jan 2019 00:22:45 -0800 (PST) MIME-Version: 1.0 References: <6c5b26e65be18222587724e066fc2e39b9f60397.1547078153.git.amit.kucheria@linaro.org> <20190111003014.GB261387@google.com> <20190111203605.GG261387@google.com> In-Reply-To: <20190111203605.GG261387@google.com> From: Amit Kucheria Date: Mon, 14 Jan 2019 13:52:34 +0530 Message-ID: Subject: Re: [PATCH v1 7/7] arm64: dts: sdm845: wireup the thermal trip points to cpufreq To: Matthias Kaehlcke Cc: LKML , linux-arm-msm , Bjorn Andersson , Viresh Kumar , Eduardo Valentin , Andy Gross , Taniya Das , Stephen Boyd , Douglas Anderson , David Brown , Rob Herring , Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" 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 On Sat, Jan 12, 2019 at 2:06 AM Matthias Kaehlcke wrote: > > Another concern about adding trip points later could be the node > name. We currently have: > > > trips { > cpu0_alert0: trip0 { > ... > }; > > cpu0_crit: trip1 { > ... > }; > }; > > If we keep increasing enumeration with the node name this would become: > > trips { > cpu0_alert0: trip0 { > ... > }; > > cpu0_alert1: trip1 { > ... > }; > > cpu0_crit: trip2 { > ... > }; > }; > > i.e. the node name of the critical trip-point changes, which might be > a concern for dtsi's that override a value, though they should > probably use the phandle &cpu0_crit anyway. If this is a concern we > could change the node names to 'alert0' and 'crit'. > > I looked around a bit and actually I kinda like the naming scheme used > by hisilicon/hi6220.dtsi, mediatek/mt8173.dtsi and rockchip/rk3328.dtsi > (with minor variations): > > trips { > threshold: trip-point@0 { > temperature = <68000>; > hysteresis = <2000>; > type = "passive"; > }; > > target: trip-point@1 { > temperature = <85000>; > hysteresis = <2000>; > type = "passive"; > }; > > cpu_crit: cpu_crit@0 { > temperature = <115000>; > hysteresis = <2000>; > type = "critical"; > }; > }; > > If we were to use this we'd have to adapt it slightly since we have > multiple thermal zones. In line with the other scheme this could be > cpuN_threshold, cpuN_target and cpuN_crit. > I like this scheme enough that I adopted it for v2.