Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2710529ybh; Mon, 9 Mar 2020 11:23:47 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvgBBj11AkE/0DxpEfFhbt15+CE9+KbEVv2yWWy+EkNqRgMO9MxExrizT4Q7s47Glkakbyk X-Received: by 2002:a05:6808:289:: with SMTP id z9mr414141oic.48.1583778227794; Mon, 09 Mar 2020 11:23:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583778227; cv=none; d=google.com; s=arc-20160816; b=z2Fpo6GbB0xzbbrDYqy81jxEE+nIX/76KIp/9yYK0QFaKjI3CzZ+13CeoGO1GapvkH C83uBlUV7o2NjYReBDYv8Jqws4sUBO1k6JjbxPKUwYzvL5KhwNes0ZHZmEnEVO/xv0ej IRYOXv90HfnddOguON/wQRcX9mHXJV1zknt8q/rzLTm5GnwuQyv5CiUp6zX1HyrBy+sx yMsau/uHO1gmdJn05pLOUIlu/nVjSBKKio6Vszdv24P1w8IWeFOFT+PdLwS8hheKQ0kd EPVVHjT1oYhCkBk8lU118cFbxfRQbRlH2s781bSLVcflvvVSkvnfDxvyeVMngctLxBZC hYhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:date:to:cc:from :subject:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=82dH+sJ15Ldshryiq0HsH5AclffhvcMdjvdymma/EAM=; b=Hl35N1vRJfipyb8x0qA1oVDAViyyl+Pus4ty1L1D3EQ39B1go+CghPa4RSCaEGZdaO SYHfg7YtN2ESAHnB++qq+S67ERBrj5bAtus7W6JcOqCKPIzXhz7Tuuk/8LNg/DyHpjkw j1EaWQmX9P+DypvtWr7mUTuHr0AfjWmTDEDfX5g68u+5IPFnGvmOUuS0M6MreIzp/NK+ S3qmAj0yTMJmLWxJcFZKS2AOwXCoCUNy8MYEHxUvNGG/hlNVRnpfw0Gnh48SHEFLM+fq R1eAoSOdKv1Fjv8aoAlEUtCeYIiwojItwhKonUjhsa9Ew+cOrdDY7aUrWB6o6XaszYXa wbUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=oLl6S0gM; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 23si4438632oie.185.2020.03.09.11.23.33; Mon, 09 Mar 2020 11:23:47 -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=@chromium.org header.s=google header.b=oLl6S0gM; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727387AbgCISXI (ORCPT + 99 others); Mon, 9 Mar 2020 14:23:08 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:36152 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726661AbgCISXH (ORCPT ); Mon, 9 Mar 2020 14:23:07 -0400 Received: by mail-pf1-f195.google.com with SMTP id i13so5206281pfe.3 for ; Mon, 09 Mar 2020 11:23:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:in-reply-to:references :subject:from:cc:to:date:message-id:user-agent; bh=82dH+sJ15Ldshryiq0HsH5AclffhvcMdjvdymma/EAM=; b=oLl6S0gM4gLxCh+cd88ogRCnh4JBCz5iq0tCYjiarP4lY6rV8yz1pfTfPhF0WfK/qJ gFz0VA+eLUw2SNrcIed9mr2QCj06ekq9xCZPVRUYrxt3lh+6R1CSLWJJ59YRdwiaapIN PWwtibFjepZgVXEjR138LljiCrB1T18zef8XA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :in-reply-to:references:subject:from:cc:to:date:message-id :user-agent; bh=82dH+sJ15Ldshryiq0HsH5AclffhvcMdjvdymma/EAM=; b=dxUtvaFCAlQatyFEETZlTZfSA9l2skENI4KvYWas6D3VU6dG8uD18W1xn3JwkKVFrh 8OGtsmLdbKI3AfyQaVo0uzTPo4MH9mjcnS+uifGIvKAw/xIebiTALlmooPlzvFDdAO4a 8TcMuYMiOGJGMuF5Lnvx9mhsrCmK6jwBGMPntkifuvvUHcOEWS3nliptQ0sTWn23ydJd o2bN5T31hQJa6Y3AMqT1upp1pbaGcUfRU8m4YVN0/m2TPoLEhlW/MI/olylCDkNqYwzc EXkxa75LUPiQcAP6lRDzQnj7BnOmynaJwp63KfPeBjmOdi8sao6VlT/Y0w/hp57d2uVQ w/wQ== X-Gm-Message-State: ANhLgQ17ccokZgfu6LV3706OJ6QzuyeKz5BwCoredPBTYPnOY2dAJCTz /gpG1ta8bJ1mIMSo/L15qq/rlPMQ3r8= X-Received: by 2002:a63:7f1d:: with SMTP id a29mr17893011pgd.123.1583778186633; Mon, 09 Mar 2020 11:23:06 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id q30sm244145pjh.5.2020.03.09.11.23.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2020 11:23:06 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <1583752457-21159-2-git-send-email-mkshah@codeaurora.org> References: <1583752457-21159-1-git-send-email-mkshah@codeaurora.org> <1583752457-21159-2-git-send-email-mkshah@codeaurora.org> Subject: Re: [PATCH v4 1/4] dt-bindings: Introduce SoC sleep stats bindings From: Stephen Boyd Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, agross@kernel.org, dianders@chromium.org, rnayak@codeaurora.org, ilina@codeaurora.org, lsrao@codeaurora.org, Mahesh Sivasubramanian , devicetree@vger.kernel.org, Maulik Shah To: Maulik Shah , bjorn.andersson@linaro.org, evgreen@chromium.org, mka@chromium.org Date: Mon, 09 Mar 2020 11:23:05 -0700 Message-ID: <158377818530.66766.4481786840843320343@swboyd.mtv.corp.google.com> User-Agent: alot/0.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Maulik Shah (2020-03-09 04:14:14) > From: Mahesh Sivasubramanian >=20 > Add device binding documentation for Qualcomm Technologies, Inc. (QTI) > SoC sleep stats driver. The driver is used for displaying SoC sleep > statistic maintained by Always On Processor or Resource Power Manager. >=20 > Cc: devicetree@vger.kernel.org > Signed-off-by: Mahesh Sivasubramanian > Signed-off-by: Lina Iyer > Signed-off-by: Maulik Shah > Reviewed-by: Rob Herring > Reviewed-by: Bjorn Andersson > --- > .../bindings/soc/qcom/soc-sleep-stats.yaml | 46 ++++++++++++++++= ++++++ > 1 file changed, 46 insertions(+) > create mode 100644 Documentation/devicetree/bindings/soc/qcom/soc-sleep-= stats.yaml >=20 > diff --git a/Documentation/devicetree/bindings/soc/qcom/soc-sleep-stats.y= aml b/Documentation/devicetree/bindings/soc/qcom/soc-sleep-stats.yaml > new file mode 100644 > index 00000000..7c29c61 > --- /dev/null > +++ b/Documentation/devicetree/bindings/soc/qcom/soc-sleep-stats.yaml > @@ -0,0 +1,46 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/soc/qcom/soc-sleep-stats.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm Technologies, Inc. (QTI) SoC sleep stats bindings > + > +maintainers: > + - Maulik Shah > + - Lina Iyer > + > +description: > + Always On Processor/Resource Power Manager maintains statistics of the= SoC > + sleep modes involving powering down of the rails and oscillator clock. > + > + Statistics includes SoC sleep mode type, number of times low power mod= e were > + entered, time of last entry, time of last exit and accumulated sleep d= uration. > + > +properties: > + compatible: > + enum: > + - qcom,rpmh-sleep-stats > + - qcom,rpm-sleep-stats > + > + reg: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + > +examples: > + # Example of rpmh sleep stats > + - | > + rpmh_sleep_stats@c3f0000 { > + compatible =3D "qcom,rpmh-sleep-stats"; > + reg =3D <0 0xc3f0000 0 0x400>; > + }; > + # Example of rpm sleep stats > + - | > + rpm_sleep_stats@4690000 { Node names don't have underscores. It really feels like we should be able to get away with not having this device node at all. Why can't we have the rpm message ram be a node that covers the entire range and then have that either create a platform device for debugfs stats or just have it register the stat information from whatever driver attaches to that node? Carving this up into multiple nodes and making compatible strings doesn't seem very useful here because we're essentially making device nodes in DT for logical software components that exist in the rpm message ram.