Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp303396imm; Thu, 12 Jul 2018 20:04:40 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd5qW1rxXqnVmlKTJ4QBYTkX6f7tQZCN8fjZ+8Y1bwyZA4wqmGpDzBTEHF4o2dppwpBtQd1 X-Received: by 2002:a63:1844:: with SMTP id 4-v6mr4486615pgy.313.1531451080329; Thu, 12 Jul 2018 20:04:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531451080; cv=none; d=google.com; s=arc-20160816; b=07WNOQ5NcmzOrRtXJnXprrR/lVdcLHtepKC/7pEgSFs7gRxFMRZUGVkziqD2NitOBo Tf7UGNNi7Oe0wVSG/JQ9hhhUuvEv1vAQ3ajkQ9Pgj0KMn6IbSould0j7daj6Lls49J39 RPf1SuKjDNNFMB05ywjIaTUbhlT4yIFEAS9jSeEoERqsTR6r5Xkid0+J8R3Uqii3sMiI YFmAVg+FPL9PjtUWkkJ7fnQRt+32pyXcsOxtFm9Yl75BvCoX+xC7X12lAa5JAKj2dpNP fsiauEUytHRZWEymvKYMnSqRgfWTQfXi58ZiqoUAvj1bA9EB7nv1DHcUWWch2j4R2Wg/ AcMA== 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 :arc-authentication-results; bh=hUb+AKsKTukEzD0hTK/XXGzxlNb/zZiK8rssLD+qZ5c=; b=E3c7oCwzsV6l3BO8DV+NMRlrAwDQ7PkUxQUUL0gXo4g07SOsvzW+Jr6H+Ot5eCLMKp mKbKsulYM+GLzNRieq/EH1gteoevBEh6cSxxwxwBwgCQMaE2JZiuJnNrN4I2RsnsL6T1 Of9RGLZFAnx4ZTMD1y7FHRqEw0cobhvZ9TyTTuGPbH80kMZqhgwcGHvYdxuDn7zBXe5K 8ngvTIygw7rEVSAC5AGYztdvVa3NcH5xUip5/se2xOZfQ8xOGCOQkBTn2U93KaMU9tSn GpxPWpmsL2GvwS50l7VFcIK7OHr2hNm8k4DyHVGIERkzf3924p+dN7J4RKUyH4PIXUku agrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=QTJ83gLl; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u10-v6si21840040pgc.261.2018.07.12.20.04.25; Thu, 12 Jul 2018 20:04:40 -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=pass header.i=@broadcom.com header.s=google header.b=QTJ83gLl; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387906AbeGMDQX (ORCPT + 99 others); Thu, 12 Jul 2018 23:16:23 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:34509 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387696AbeGMDQX (ORCPT ); Thu, 12 Jul 2018 23:16:23 -0400 Received: by mail-oi0-f67.google.com with SMTP id 13-v6so59673612ois.1 for ; Thu, 12 Jul 2018 20:03:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=hUb+AKsKTukEzD0hTK/XXGzxlNb/zZiK8rssLD+qZ5c=; b=QTJ83gLlPV9NEK4MQgNj1xhTeeUzUevuhyBUlP8aXAi0ZbYAco1Mmh0KoldBjbaP7a JwfsneARexeOFlQQwpr+Jt6qn3De+RQu2/jYB9/NqTJHnKrZPh1D2zYDXSsr7EJp7ENX Ss4asEesoXr0Cvf6ssqJtI2QhCwO23GxjFyXw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=hUb+AKsKTukEzD0hTK/XXGzxlNb/zZiK8rssLD+qZ5c=; b=hMGugaUFrQCGYFlIG65epWL/B4Li700MtSgXIA5fPxP61h7yszORvx8T8ya+MwEnkG F/3W9a9HmfsL3tPPsTJOByONsvMrGe2trnBqC8Xt6ZZVIxGB8rO0LErdjnce+ut0brfh qrDrPJF41RvMAA3h87oTuDd7KaDcGNWIQQr4rLnAfvq1v4bnc1E3pYZ5y0RdY09520LA T3vVzkrMSHUIscBiwQvO7Btm9GakSNuVySkSph2/m6/BD/pN4gomPpPub8ycPNUdMWGz IP1XtnzemWyxBE+zUcAMBC65Nil1mLDJLYMgPOat8krlJ447Eke4XR0aNRIKubN5X30w jXug== X-Gm-Message-State: AOUpUlF5NVK5X86PeSXn3Wl94dv2q8b9XsX01MEYGyKDYvEU3pC7jdbI hIicoPi6+mkGfQRwhH4BX2CtRPr3LthCNNsLysalYw== X-Received: by 2002:aca:37c2:: with SMTP id e185-v6mr4812846oia.326.1531451031491; Thu, 12 Jul 2018 20:03:51 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:6043:0:0:0:0:0 with HTTP; Thu, 12 Jul 2018 20:03:50 -0700 (PDT) In-Reply-To: References: <1529310679-13482-1-git-send-email-srinath.mannam@broadcom.com> <1529310679-13482-2-git-send-email-srinath.mannam@broadcom.com> <20180620195214.GA10436@rob-hp-laptop> From: Srinath Mannam Date: Fri, 13 Jul 2018 08:33:50 +0530 Message-ID: Subject: Re: [PATCH v2 1/3] dt-bindings: thermal: Add binding document for SR thermal To: Rob Herring Cc: Zhang Rui , Eduardo Valentin , Mark Rutland , devicetree@vger.kernel.org, Linux Kernel Mailing List , BCM Kernel Feedback , Pramod Kumar , Vikram Prakash , Ray Jui 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 Rob, I have provided my inputs for the purpose of having multiple nodes. Please get back if you have any comments or suggestions. Regards, Srinath. On Tue, Jul 3, 2018 at 4:15 PM, Srinath Mannam wrote: > Hi Rob, > > Kindly provide your feedback. > > Regards, > Srinath. > > On Fri, Jun 22, 2018 at 11:21 AM, Srinath Mannam > wrote: >> Hi Rob, >> >> Please find my comments for the reason to have multiple DT nodes. >> >> On Thu, Jun 21, 2018 at 1:22 AM, Rob Herring wrote: >>> On Mon, Jun 18, 2018 at 02:01:17PM +0530, Srinath Mannam wrote: >>>> From: Pramod Kumar >>>> >>>> Add binding document for supported thermal implementation >>>> in Stingray. >>>> >>>> Signed-off-by: Pramod Kumar >>>> Reviewed-by: Ray Jui >>>> Reviewed-by: Scott Branden >>>> Reviewed-by: Srinath Mannam >>>> --- >>>> .../bindings/thermal/brcm,sr-thermal.txt | 45 ++++++++++++++++++++++ >>>> 1 file changed, 45 insertions(+) >>>> create mode 100644 Documentation/devicetree/bindings/thermal/brcm,sr-thermal.txt >>>> >>>> diff --git a/Documentation/devicetree/bindings/thermal/brcm,sr-thermal.txt b/Documentation/devicetree/bindings/thermal/brcm,sr-thermal.txt >>>> new file mode 100644 >>>> index 0000000..33f9e11 >>>> --- /dev/null >>>> +++ b/Documentation/devicetree/bindings/thermal/brcm,sr-thermal.txt >>>> @@ -0,0 +1,45 @@ >>>> +* Broadcom Stingray Thermal >>>> + >>>> +This binding describes thermal sensors that is part of Stingray SoCs. >>>> + >>>> +Required properties: >>>> +- compatible : Must be "brcm,sr-thermal" >>>> +- reg : memory where tmon data will be available. >>>> + >>>> +Example: >>>> + tmons { >>>> + compatible = "simple-bus"; >>>> + #address-cells = <1>; >>>> + #size-cells = <1>; >>>> + ranges; >>>> + >>>> + tmon_ihost0: thermal@8f100000 { >>>> + compatible = "brcm,sr-thermal"; >>>> + reg = <0x8f100000 0x4>; >>>> + }; >>> >>> You still haven't given me a compelling reason why you need a node per >>> register. >>> >>> You have a single range of registers. Make this 1 node. >>> >> >> We Have two reasons to have multiple nodes.. >> 1. Our chip has multiple functional blocks. Each functional block has >> its own thermal zone. >> Functional blocks and their thermal zones enabled/disabled based on end product. >> Few functional blocks need to disabled for few products so thermal >> zones also need to disable. >> In that case, nodes of specific thermal zones are removed from DTS >> file of corresponding product. >> >> 2. Thermal framework provides sysfs interface to configure thermal >> zones and read temperature of thermal zone. >> To configure individual thermal zone, we need to have separate DT node. >> Same to read temperature of individual thermal zone. >> Ex: To read temperature of thermal zone 0. >> cat /sys/class/thermal/thermal_zone0/temp >> To configure trip temperature of thermal zone 0. >> echo 110000 > /sys/class/thermal/thermal_zone0/trip_point_0_temp >> >> Also to avoid driver source change for the multiple products it is >> clean to have multiple DT nodes. >> >>> Rob