Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3617691imm; Mon, 18 Jun 2018 00:54:21 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL5QNsJvbbUGbQW/eb+OsZ/Pdv5ilP2yz1EXyAmZaKzUR81KK0f11op6r9Sf7gAfZ+LM2C9 X-Received: by 2002:a63:6e08:: with SMTP id j8-v6mr10085971pgc.428.1529308461566; Mon, 18 Jun 2018 00:54:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529308461; cv=none; d=google.com; s=arc-20160816; b=ZAKzT6uL9IC3F3nb/eDHuPku6I8SMvweOHzaIxrGtLLJ1/bbb52RDFtnZJujEUnb0z 0bENl9ziezp9RpZAjO9gDsok77o05i/PoFYt5IlnmAlMEZglgZOX1DodDEVGHHKH4cSk DZwrKYASM9uClpgQ+4wRnaXL9FFNv+RU/ZwISycU5Z+VkrwG9fewP9q4t+iTM25xTx/c Jd4f9Z5aojLsbvW5a7bXj4RXYm00t3VXGvMGivuCVuUvumcfG+oSQEksbXU3/t1XGpyr Rw3ru/YW2o9y+SbxD1+6PIrHIGyxL1M84e7K/WPJDTEhEbX+1LOmuJZnuKe4UVeeFk9Q lO5Q== 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=nhZycJGVyrXIzxkjWQ4ltxWSdLV2UeWVBP21LEJXP+8=; b=Ojwl5Hunbt01QNnMnbczY8KT/k5N3ghsKFa/TIEpKjUl+fH7Tdd3jATFKfAyG8IeQU PrkDcZj/lh/YQcBlIw1iAWLNxmGiLWADcJAgVx3QwoJEkE2srCiUUjB7sK6Z+cXoWdpB jdiSWFh9JBnY9fPkVrV37VU+hfIb1Iyse90DtXfhNunBi6V+OzrG+ARSxOoMUe4pV0o7 tb01OwZgp51kRyc4M2SFg3HBQ9FPvXxGbzCIOhSVSNQpFsGEqXON0G+wRN1TUkpANveK gzRwTA3bCuu0XqyOyIsJdrfd/TQOdeuh73D1VgkkPFhmPsaRSCX4KRKkS6z3BCPoCVbV aiJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=HVlqOi4A; 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 v40-v6si12157333pgn.467.2018.06.18.00.54.07; Mon, 18 Jun 2018 00:54:21 -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=HVlqOi4A; 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 S932791AbeFRHx0 (ORCPT + 99 others); Mon, 18 Jun 2018 03:53:26 -0400 Received: from mail-ot0-f195.google.com ([74.125.82.195]:39232 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932524AbeFRHxY (ORCPT ); Mon, 18 Jun 2018 03:53:24 -0400 Received: by mail-ot0-f195.google.com with SMTP id l15-v6so17446407oth.6 for ; Mon, 18 Jun 2018 00:53:24 -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=nhZycJGVyrXIzxkjWQ4ltxWSdLV2UeWVBP21LEJXP+8=; b=HVlqOi4AS5qaVTWmhlRyuxgKjQkiujCFvaGiSnDYTH+KlZnAQHNmMozkgrvQlPu/oH BnJd0KwWX8kB5NCV3oZtQa/K7Lsxe2uKEqfIOrwfH/CJAB8r32Dl9M9e/nqqWUlB8zts nV4BtulpSQhaapkBURA5rpZpyNL//FAoUqmW8= 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=nhZycJGVyrXIzxkjWQ4ltxWSdLV2UeWVBP21LEJXP+8=; b=Qro2ekywvzjBH+wIxaKCDqGVJoC6Hdr1fItTRuHq6MsazO1izg6gmHjtfETt1VnaeL npzmRHUPJQDsnUI5v6uFf3hcpRV26cjZwjuu3s0Wzd67WGY2r9+JNavOHRCTPGxRmcbW zHWvxSaMonb7+ztHqKBCaClNXgOTXe5WLkEyq0w643wjdjr1qGhyGV8yR+nyvAuvSEUQ 5CeaABYYGdM7yyryapRx/KlkVfAq/dOPALepHHCEuGNa7IvOT/W7ED9CST9AM4QxznEG beKVgxm9Jgm34qtjUISQasg33tLPMlkyxSG6+GBoTPOaKlRUPmnGLeDODin4RyeT3AWS M+xQ== X-Gm-Message-State: APt69E28u7fxO2Hc+9dbjPffvWZoh7rYjK0CIqS7xIpjGDtsZllzSRtW XLqe8CDx4amHO63jnW9Nk/fuFQeBKXTJ/Z7l6ezMfQ== X-Received: by 2002:a9d:4894:: with SMTP id d20-v6mr7558092otf.399.1529308403515; Mon, 18 Jun 2018 00:53:23 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:4044:0:0:0:0:0 with HTTP; Mon, 18 Jun 2018 00:53:22 -0700 (PDT) In-Reply-To: References: <1527486084-4636-1-git-send-email-srinath.mannam@broadcom.com> <1527486084-4636-2-git-send-email-srinath.mannam@broadcom.com> <20180531164820.GA23074@rob-hp-laptop> From: Srinath Mannam Date: Mon, 18 Jun 2018 13:23:22 +0530 Message-ID: Subject: Re: [PATCH 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@vger.kernel.org" , BCM Kernel Feedback , Pramod Kumar 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, Please let me know if you have any comments to this patch. If not can you please accept this patch. Regards, Srinath. On Mon, Jun 4, 2018 at 11:36 AM, Srinath Mannam wrote: > Hi Rob Herring, > > Please find my comments in line.. > > On Fri, Jun 1, 2018 at 7:59 PM, Rob Herring wrote: >> On Fri, Jun 1, 2018 at 3:51 AM, Srinath Mannam >> wrote: >>> Hi Rob Herring, >>> >>> Thank you for the review. >>> Please find my answers inline.. >>> >>> On Thu, May 31, 2018 at 10:18 PM, Rob Herring wrote: >>>> On Mon, May 28, 2018 at 11:11:22AM +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. >>>> >>>> What type of memory is this? >>> This is shared memory(cache-able) which is shared between two micro controllers. >> >> What else is in this shared memory? You should probably be >> representing that as a whole somewhere in DT. > Nothing else except 4 byte memory containing temperature value of one > thermal zone. > At present we configured 6 thermal zones. So six separate 4byte > memories provided in > shared memory. >> >>> One micro controller update temperature of all thermal zones in this >>> shared memory. >>> thermal driver running on another micro controller monitors >>> temperature data of all thermal zones. >>>> >>>>> + >>>>> +Example: >>>>> + tmons { >>>>> + compatible = "simple-bus"; >>>>> + #address-cells = <1>; >>>>> + #size-cells = <1>; >>>>> + ranges; >>>>> + >>>>> + tmon_ihost0: thermal@8f100000 { >>>>> + compatible = "brcm,sr-thermal"; >>>>> + reg = <0x8f100000 0x4>; >>>>> + }; >>>> >>>> Convince me that you need a node per register. This can all be >>>> accomplished with a single node and either a single reg entry or a >>>> series of reg entries. >>>> >>> In our system we have 6 different thermal zones. each node belongs to >>> one thermal zone. >>> thermal driver detects each node as separate thermal zone and monitors >>> separately. >>> register entry is only 4byte memory which contains the temperature >>> value of respective thermal zone. >>> Based on requirement we can increase or decrease the number thermal >>> zones need to monitor. >> >> Still, all this can be accomplished with a single node. Having a node >> per register in DT doesn't scale. > Our approach is like we have individual controllers have one driver > with multiple DT nodes. > In coming future we will add more thermal zones based on our > requirement. then we can just > add new DT node, instead of having driver changes. > With this approach we can configure each thermal zone at different trip values. > So we must have all thermal zones are independent. >> >> Rob