From: MD Danish Anwar <danishanwar@ti.com>
To: Krzysztof Kozlowski <krzk@kernel.org>, Suman Anna <s-anna@ti.com>,
Conor Dooley <conor+dt@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Rob Herring <robh@kernel.org>
Cc: <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>,
<srk@ti.com>, Vignesh Raghavendra <vigneshr@ti.com>,
<r-gunasekaran@ti.com>, Roger Quadros <rogerq@kernel.org>
Subject: Re: [PATCH] dt-bindings: soc: ti: pruss: Add documentation for PA_STATS support
Date: Tue, 14 May 2024 11:33:59 +0530 [thread overview]
Message-ID: <bb323edd-ceac-4811-bdea-51cba429659b@ti.com> (raw)
In-Reply-To: <7742b3d6-b513-43f2-803a-dec83eb37116@kernel.org>
Hi Krzysztof,
On 01/05/24 3:58 pm, Krzysztof Kozlowski wrote:
> On 30/04/2024 14:19, MD Danish Anwar wrote:
>> Add documentation for pa-stats node which is syscon regmap for
>> PA_STATS register. This will be used to dump statistics maintained by
>> ICSSG firmware.
>>
>> Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
>> ---
>> .../devicetree/bindings/soc/ti/ti,pruss.yaml | 17 +++++++++++++++++
>> 1 file changed, 17 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml b/Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml
>> index c402cb2928e8..cb6f41660847 100644
>> --- a/Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml
>> +++ b/Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml
>> @@ -278,6 +278,23 @@ patternProperties:
>>
>> additionalProperties: false
>>
>> + pa-stats@[a-f0-9]+$:
>
> Missing ^
>
Sure, I will add that.
>> + description: |
>> + PA-STATS sub-module represented as a SysCon.
>> +
>> + type: object
>> +
>> + properties:
>> + compatible:
>> + items:
>> + - const: ti,pruss-pa-st
>> + - const: syscon
>> +
>
> No resources? So you use it just to instantiate Linux driver? That's not
> the purpose of DT. Just squash it into parent node?
>
I am trying to module pa-stats as a regmap just like mii-rt and
mii-g-rt. ICSSG has different segments for storing different types of
registers. mii-rt, starting at 0x32000 have registers that stores mainly
TX and RX configurations. mii-g-rt, starting at 0x33000 have registers
that stores hardware statistics counters (TX RX good frame, drop etc).
Similarly pa-stats starting at 0x2c000 have registers that stores some
diagnostic counters which is maintained by firmware. ICSSG firmware
stores statistics other than hadrware statistics like if the packet was
pushed to dma or not. Why was the packet dropped etc. This is very
helpful in debugging failures. Also ICSSG firmware maintains all TSN
related statistics in this memory only, which will be needed to be
dumped from driver once TSN support is enabled (the patches for that are
still under review).
More or less the functionality of pa-stats here is same as mii-rt and
mii-g-rt and that is why I am trying to describe the node in exactly the
same way as the other two nodes.
>> + reg:
>> + maxItems: 1
>> +
>> + additionalProperties: false
>
> Put it after type:object.
>
Sure, will move it.
>> +
>> interrupt-controller@[a-f0-9]+$:
>> description: |
>> PRUSS INTC Node. Each PRUSS has a single interrupt controller instance
>
> Best regards,
> Krzysztof
>
--
Thanks and Regards,
Danish
prev parent reply other threads:[~2024-05-14 6:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-30 12:19 MD Danish Anwar
2024-05-01 10:28 ` Krzysztof Kozlowski
2024-05-14 6:03 ` MD Danish Anwar [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bb323edd-ceac-4811-bdea-51cba429659b@ti.com \
--to=danishanwar@ti.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=r-gunasekaran@ti.com \
--cc=robh@kernel.org \
--cc=rogerq@kernel.org \
--cc=s-anna@ti.com \
--cc=srk@ti.com \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®