From: Conor Dooley <conor@kernel.org>
To: Chris Packham <Chris.Packham@alliedtelesis.co.nz>
Cc: "tglx@linutronix.de" <tglx@linutronix.de>,
"robh@kernel.org" <robh@kernel.org>,
"krzk+dt@kernel.org" <krzk+dt@kernel.org>,
"conor+dt@kernel.org" <conor+dt@kernel.org>,
"tsbogend@alpha.franken.de" <tsbogend@alpha.franken.de>,
"daniel.lezcano@linaro.org" <daniel.lezcano@linaro.org>,
"paulburton@kernel.org" <paulburton@kernel.org>,
"peterz@infradead.org" <peterz@infradead.org>,
"mail@birger-koblitz.de" <mail@birger-koblitz.de>,
"bert@biot.com" <bert@biot.com>,
"john@phrozen.org" <john@phrozen.org>,
"sander@svanheule.net" <sander@svanheule.net>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-mips@vger.kernel.org" <linux-mips@vger.kernel.org>,
"kabel@kernel.org" <kabel@kernel.org>,
"ericwouds@gmail.com" <ericwouds@gmail.com>
Subject: Re: [PATCH 2/6] dt-bindings: timer: Add schema for realtek,otto-timer
Date: Mon, 24 Jun 2024 17:34:50 +0100 [thread overview]
Message-ID: <20240624-dining-bullseye-5397d0921701@spud> (raw)
In-Reply-To: <2ed9ba19-ef0b-481c-b17a-5499cc0664ed@alliedtelesis.co.nz>
[-- Attachment #1: Type: text/plain, Size: 2761 bytes --]
On Sun, Jun 23, 2024 at 09:23:55PM +0000, Chris Packham wrote:
> (resend as plain text)
>
> On 23/06/24 00:11, Conor Dooley wrote:
> > On Fri, Jun 21, 2024 at 04:27:33PM +1200, Chris Packham wrote:
> >> Add the devicetree schema for the realtek,otto-timer present on a number
> >> of Realtek SoCs.
> >>
> >> Signed-off-by: Chris Packham<chris.packham@alliedtelesis.co.nz>
> >> ---
> >> .../bindings/timer/realtek,otto-timer.yaml | 54 +++++++++++++++++++
> >> 1 file changed, 54 insertions(+)
> >> create mode 100644 Documentation/devicetree/bindings/timer/realtek,otto-timer.yaml
> >>
> >> diff --git a/Documentation/devicetree/bindings/timer/realtek,otto-timer.yaml b/Documentation/devicetree/bindings/timer/realtek,otto-timer.yaml
> >> new file mode 100644
> >> index 000000000000..b6e85aadbc99
> >> --- /dev/null
> >> +++ b/Documentation/devicetree/bindings/timer/realtek,otto-timer.yaml
> >> @@ -0,0 +1,54 @@
> >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> >> +%YAML 1.2
> >> +---
> >> +$id:http://devicetree.org/schemas/timer/realtek,otto-timer.yaml#
> >> +$schema:http://devicetree.org/meta-schemas/core.yaml#
> >> +
> >> +title: Realtek Otto SoCs Timer/Counter
> >> +
> >> +description:
> >> + Realtek SoCs support a number of timers/counters. These are used
> >> + as a per CPU clock event generator and an overall CPU clocksource.
> >> +
> >> +maintainers:
> >> + - Chris Packham<chris.packham@alliedtelesis.co.nz>
> >> +
> >> +properties:
> >> + $nodename:
> >> + pattern: "^timer@[0-9a-f]+$"
> >> +
> >> + compatible:
> >> + items:
> >> + - enum:
> >> + - realtek,rtl930x-timer
>
> I'll change this to rtl9302
>
> >> + - const: realtek,otto-timer
> >> + reg:
> >> + minItems: 5
> >> + maxItems: 5
> > Since minitems == maxitems, can you just make this a list, and define
> > what they all are? Ditto interrupts.
>
> This is where more conditions might need to be added. The rtl9302 is a
> single core SoC. So technically it only needs 2 timers (the hardware
> still has 5 but 3 would be unused at the moment). The rtl9312 is a dual
> core SoC so needs 3 timers (I won't be looking at that platform for a
> while). So I think maybe maxItems should stay at 5 but minItems should
> be set based on the compatible.
Sounds good to me.
> > reg:
> > items:
> > - foo
> > - bar
> > - baz
> >
> > etc.
>
> I can do. But they'd all be something like cpuN-event. The way the
> driver is written it grabs a timer for each CPU and uses the next one
> for a global timer.
I think it's fine if they all have very simplistic names, their roles
should be documented somehow.
Cheers,
Conor.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2024-06-24 16:34 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-21 4:27 [PATCH 0/6] mips: Support for RTL9302C Chris Packham
2024-06-21 4:27 ` [PATCH 1/6] dt-bindings: mips: realtek: Add rtl930x-soc compatible Chris Packham
2024-06-22 12:15 ` Conor Dooley
2024-06-23 7:12 ` Krzysztof Kozlowski
2024-06-21 4:27 ` [PATCH 2/6] dt-bindings: timer: Add schema for realtek,otto-timer Chris Packham
2024-06-22 12:11 ` Conor Dooley
2024-06-23 21:23 ` Chris Packham
2024-06-24 16:34 ` Conor Dooley [this message]
2024-06-23 7:19 ` Krzysztof Kozlowski
2024-06-21 4:27 ` [PATCH 3/6] dt-bindings: interrupt-controller: realtek,rtl-intc: Add rtl9300-intc Chris Packham
2024-06-22 12:08 ` Conor Dooley
2024-06-23 7:12 ` Krzysztof Kozlowski
2024-06-21 4:27 ` [PATCH 4/6] clocksource: realtek: Add timer driver for rtl-otto platforms Chris Packham
2024-06-23 7:13 ` Krzysztof Kozlowski
2024-06-26 2:01 ` kernel test robot
2024-06-26 11:32 ` kernel test robot
2024-06-26 12:08 ` kernel test robot
2024-06-21 4:27 ` [PATCH 5/6] mips: generic: add fdt fixup for Realtek reference board Chris Packham
2024-06-21 4:27 ` [PATCH 6/6] mips: dts: realtek: Add RTL9302C board Chris Packham
2024-06-23 7:15 ` Krzysztof Kozlowski
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=20240624-dining-bullseye-5397d0921701@spud \
--to=conor@kernel.org \
--cc=Chris.Packham@alliedtelesis.co.nz \
--cc=bert@biot.com \
--cc=conor+dt@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=ericwouds@gmail.com \
--cc=john@phrozen.org \
--cc=kabel@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=mail@birger-koblitz.de \
--cc=paulburton@kernel.org \
--cc=peterz@infradead.org \
--cc=robh@kernel.org \
--cc=sander@svanheule.net \
--cc=tglx@linutronix.de \
--cc=tsbogend@alpha.franken.de \
/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