From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Icenowy Zheng <uwu@icenowy.me>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
Thomas Gleixner <tglx@linutronix.de>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Karol Gugala <kgugala@antmicro.com>,
Mateusz Holenko <mholenko@antmicro.com>,
Gabriel Somlo <gsomlo@gmail.com>, Joel Stanley <joel@jms.id.au>
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: timer: add a binding for LiteX Timer
Date: Mon, 21 Nov 2022 11:19:32 +0100 [thread overview]
Message-ID: <0dc15e61-62a3-fa23-1fa9-09179d90874b@linaro.org> (raw)
In-Reply-To: <20221121042545.421532-1-uwu@icenowy.me>
On 21/11/2022 05:25, Icenowy Zheng wrote:
> The LiteX SoC generator has a timer core, which by default only
> generates a simple down counter.
Subject: drop second, redundant "bindings".
>
> Add a DT binding for it.
>
> Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
> ---
> .../bindings/timer/litex,timer.yaml | 52 +++++++++++++++++++
> 1 file changed, 52 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/timer/litex,timer.yaml
>
> diff --git a/Documentation/devicetree/bindings/timer/litex,timer.yaml b/Documentation/devicetree/bindings/timer/litex,timer.yaml
> new file mode 100644
> index 000000000000..bece07586c6b
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/timer/litex,timer.yaml
> @@ -0,0 +1,52 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/timer/litex,timer.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: LiteX Timer
> +
> +maintainers:
> + - Icenowy Zheng <uwu@icenowy.me>
> +
> +description: |
> + The LiteX Timer is a count-down timer that is defaultly embedded
> + into all LiteX SoCs, unless explicitly disabled. It's fed directly
> + by the system clock like other LiteX peripherals.
> +
> +properties:
> + compatible:
> + const: litex,timer
No model name/number? If it is part of Soc, then a SoC specific number
is expected usually.
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + clocks:
> + maxItems: 1
> +
> + litex,width:
> + description:
> + The width of the timer's value, specified as the width argument
> + when creating an instance of litex.soc.cores.Timer.
This lacks type ($ref) and units in description, but more important -
why this is not part of compatible? Is it a width of register(s)?
And what is "instance of litex.soc.cores.Timer"? Is it configurable,
soft-core?
BTW, there is reg-io-width property.
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> + - clocks
> + - litex,width
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + timer@a0006000 {
Use 4 spaces for example indentation.
> + compatible = "litex,timer";
> + reg = <0xa0006000 0x20>;
> + clocks = <&sys_clk>;
> + interrupts = <17>;
> + litex,width = <32>;
> + };
Best regards,
Krzysztof
next prev parent reply other threads:[~2022-11-21 10:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-21 4:25 Icenowy Zheng
2022-11-21 4:25 ` [PATCH 2/2] clocksource/drivers: add LiteX timer Icenowy Zheng
2022-11-21 10:19 ` Krzysztof Kozlowski [this message]
2022-11-21 14:39 ` [PATCH 1/2] dt-bindings: timer: add a binding for LiteX Timer Icenowy Zheng
2022-11-22 7:53 ` Krzysztof Kozlowski
2022-11-22 20:28 ` Rob Herring
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=0dc15e61-62a3-fa23-1fa9-09179d90874b@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=gsomlo@gmail.com \
--cc=joel@jms.id.au \
--cc=kgugala@antmicro.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mholenko@antmicro.com \
--cc=robh+dt@kernel.org \
--cc=tglx@linutronix.de \
--cc=uwu@icenowy.me \
/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®