Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp348494imm; Fri, 1 Jun 2018 01:53:12 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJaA/Kt+G1Nj/DaJZu61gIYn0nlmGqIHW5nvJvCxkmir5HrY6Z8bf8im6vIK3DvB6ljxXXf X-Received: by 2002:a17:902:3103:: with SMTP id w3-v6mr10189021plb.353.1527843192533; Fri, 01 Jun 2018 01:53:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527843192; cv=none; d=google.com; s=arc-20160816; b=P9nV166va+60o+l6lbvOw6w4SUOrDwLiK37torks5OYrU2LKuB5TUim+s3y7ATOCIw Rq9HY+/NYzoWn4xBNL+7yhuTWQ860othSvqfRoY6uvw6zS31He/QE8UiyOywoGcx75v2 AEKFwvTK4utx3FLUAK8teg6sTVc3SsktxSewg1a9ZxrYq+yf9cle/4GanysUqpP4/TAR sMg1MOOd9DUfMwcpHiJE/2rPdhlSbC/9vvPL+038TdWybipW7DpN/ZzBmegRRKSvn+F9 RP/dkGsmAEplKkPzoyaDw9tkS1Zmv8CMlfQl6D1xCOJH2nfoU8CIQGpQcsL7Ob5jD3ZM LmXw== 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=8Pk4FGjxAEcxcYGlp5h+UfzyVJeztgVHVhQW/FV2SVU=; b=OjuJni5iMIacJWFt74lwUjE32SaCB5CE7jNzPLJjGld+iwR3g0V6zXrGym7Ie1bT4n 8hKGTXjKD2bh5cTyPjwXOPImpbS83AP8nq9G6PQtYJcIojjkuVeFqxxzwVJNIH/80VUa /xLwlgztnLHr21EJARY6VEZUT6fpDcJ3z1UMlvkgUxdNO8avzJ8cAK7g0QH5Gc4hgtwE xSbCE/ZbenmkiwCYbWxuZhqbbCjkeUu6RqfUVWh19SCA9x+WQVRebBEjvWOWt1p8M4Zz E440E0+kwVqdE0Zs6B/D5yiI7/t4clgcfyXA1KI1j1uw0gNrVfwaiVQeekhLWfioI5jc xCBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=NslESzBo; 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 k185-v6si2748258pgd.22.2018.06.01.01.52.56; Fri, 01 Jun 2018 01:53:12 -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=NslESzBo; 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 S1751346AbeFAIwF (ORCPT + 99 others); Fri, 1 Jun 2018 04:52:05 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:33971 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750736AbeFAIvs (ORCPT ); Fri, 1 Jun 2018 04:51:48 -0400 Received: by mail-oi0-f65.google.com with SMTP id i205-v6so7317132oib.1 for ; Fri, 01 Jun 2018 01:51:48 -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=8Pk4FGjxAEcxcYGlp5h+UfzyVJeztgVHVhQW/FV2SVU=; b=NslESzBon/rcDIPPJXJhBsvjABI2yKYPKdCbnXQCOmbCH0cxQDF4gygfiT8A9a907I lTFhAV+M6hJwGi8l0sWUt0ZwWT94AWR0xWX7wFLZXQXKUE96KMsrg8MkkE8IGhmMKKLF s3TOuyVmu6OCTuugTA6qP+oaadtznKLEUA82E= 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=8Pk4FGjxAEcxcYGlp5h+UfzyVJeztgVHVhQW/FV2SVU=; b=T1WSmT0GMZGdPLJWnBrURaAON2l+dMshG2OjiERYHlR3BauylLgyK6cT14DhtFEBYT auG7u/JAG2/OZJCsT3enA7dU+7UhX8XvYVt3O498UHrbzTdQi/4SgtdWXc7bvOTUftJf AvnGs8qBbG0PjlO+HSJhe6fU66YCLvwhESrQmlwWC5C9lSqrjjXLK2N0Vqjnko2xwTwT LLGhnGUpstCotn7vX+PUKj5gHE9tUZqs3uVMMqTnmpmEWMDG1UQy/z0AaoORhj+Ahb91 QHap5czDGnyTbpVx12WaHmTM97wThi9tr/ZSOJeHRrB5ELcEeHdEdx9Y+gQZsOKxVxI3 ChOQ== X-Gm-Message-State: APt69E0MhEvLy/UEC4Mnq9Bqpk0EsWWY0SKoiqgYRspyNrwuX7tqFF7r aF8WzG+UskvY2rBwn7v0aiQGFqQhQU494kj2w6WJKQ== X-Received: by 2002:aca:ac16:: with SMTP id v22-v6mr6030020oie.227.1527843107861; Fri, 01 Jun 2018 01:51:47 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:73d1:0:0:0:0:0 with HTTP; Fri, 1 Jun 2018 01:51:47 -0700 (PDT) In-Reply-To: <20180531164820.GA23074@rob-hp-laptop> 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: Fri, 1 Jun 2018 14:21:47 +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 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. 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. >> + >> + tmon_ihost1: thermal@8f100004 { >> + compatible = "brcm,sr-thermal"; >> + reg = <0x8f100004 0x4>; >> + }; >> + >> + tmon_ihost2: thermal@8f100008 { >> + compatible = "brcm,sr-thermal"; >> + reg = <0x8f100008 0x4>; >> + }; >> + >> + tmon_ihost3: thermal@8f10000c { >> + compatible = "brcm,sr-thermal"; >> + reg = <0x8f10000c 0x4>; >> + }; >> + >> + tmon_crmu: thermal@8f100010 { >> + compatible = "brcm,sr-thermal"; >> + reg = <0x8f100010 0x4>; >> + }; >> + >> + tmon_nitro: thermal@8f100014 { >> + compatible = "brcm,sr-thermal"; >> + reg = <0x8f100014 0x4>; >> + }; >> + }; >> -- >> 2.7.4 >>