From: Rob Herring <robh@kernel.org>
To: Ben Zong-You Xie <ben717@andestech.com>
Cc: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org,
linux-kernel@vger.kernel.org, paul.walmsley@sifive.com,
palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr,
krzk+dt@kernel.org, conor+dt@kernel.org, tglx@linutronix.de,
daniel.lezcano@linaro.org,
prabhakar.mahadev-lad.rj@bp.renesas.com, tim609@andestech.com
Subject: Re: [PATCH 5/9] dt-bindings: timer: add Andes machine timer
Date: Mon, 7 Apr 2025 09:18:54 -0500 [thread overview]
Message-ID: <20250407141854.GA2277442-robh@kernel.org> (raw)
In-Reply-To: <20250407104937.315783-6-ben717@andestech.com>
On Mon, Apr 07, 2025 at 06:49:33PM +0800, Ben Zong-You Xie wrote:
> Add the DT binding documentation for Andes machine timer.
>
> The RISC-V architecture defines a machine timer that provides a real-time
> counter and generates timer interrupts. Andes machiner timer (PLMT0) is
> the implementation of the machine timer, and it contains memory-mapped
> registers (mtime and mtimecmp). This device supports up to 32 cores.
>
> Signed-off-by: Ben Zong-You Xie <ben717@andestech.com>
> ---
> .../bindings/timer/andestech,plmt0.yaml | 42 +++++++++++++++++++
> MAINTAINERS | 1 +
> 2 files changed, 43 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/timer/andestech,plmt0.yaml
>
> diff --git a/Documentation/devicetree/bindings/timer/andestech,plmt0.yaml b/Documentation/devicetree/bindings/timer/andestech,plmt0.yaml
> new file mode 100644
> index 000000000000..e0ea3ce86b76
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/timer/andestech,plmt0.yaml
> @@ -0,0 +1,42 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/timer/andestech,plmt0.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Andes machine timer
> +
> +maintainers:
> + - Ben Zong-You Xie <ben717@andestech.com>
> +
> +properties:
> + compatible:
> + items:
> + - enum:
> + - andestech,qilai-aclint-mtimer
> + - const: andestech,plmt0
Drop the fallback.
> +
> + reg:
> + maxItems: 1
> +
> + interrupts-extended:
> + minItems: 1
> + maxItems: 32
Here and in the plicsw, it would be good to describe what determines how
many interrupts there are and what's the mapping (index 0 is ???, index
1 is ???).
> +
> +additionalProperties: false
> +
> +required:
> + - compatible
> + - reg
> + - interrupts-extended
> +
> +examples:
> + - |
> + interrupt-controller@100000 {
> + compatible = "andestech,qilai-aclint-mtimer", "andestech,plmt0";
> + reg = <0x100000 0x100000>;
> + interrupts-extended = <&cpu0intc 7>,
> + <&cpu1intc 7>,
> + <&cpu2intc 7>,
> + <&cpu3intc 7>;
> + };
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 645d7137cb07..d1e1b98dfe7b 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -20730,6 +20730,7 @@ M: Ben Zong-You Xie <ben717@andestech.com>
> S: Maintained
> F: Documentation/devicetree/bindings/interrupt-controller/andestech,plicsw.yaml
> F: Documentation/devicetree/bindings/riscv/andes.yaml
> +F: Documentation/devicetree/bindings/timer/andestech,plmt0.yaml
>
> RISC-V ARCHITECTURE
> M: Paul Walmsley <paul.walmsley@sifive.com>
> --
> 2.34.1
>
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
WARNING: multiple messages have this Message-ID (diff)
From: Rob Herring <robh@kernel.org>
To: Ben Zong-You Xie <ben717@andestech.com>
Cc: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org,
linux-kernel@vger.kernel.org, paul.walmsley@sifive.com,
palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr,
krzk+dt@kernel.org, conor+dt@kernel.org, tglx@linutronix.de,
daniel.lezcano@linaro.org,
prabhakar.mahadev-lad.rj@bp.renesas.com, tim609@andestech.com
Subject: Re: [PATCH 5/9] dt-bindings: timer: add Andes machine timer
Date: Mon, 7 Apr 2025 09:18:54 -0500 [thread overview]
Message-ID: <20250407141854.GA2277442-robh@kernel.org> (raw)
In-Reply-To: <20250407104937.315783-6-ben717@andestech.com>
On Mon, Apr 07, 2025 at 06:49:33PM +0800, Ben Zong-You Xie wrote:
> Add the DT binding documentation for Andes machine timer.
>
> The RISC-V architecture defines a machine timer that provides a real-time
> counter and generates timer interrupts. Andes machiner timer (PLMT0) is
> the implementation of the machine timer, and it contains memory-mapped
> registers (mtime and mtimecmp). This device supports up to 32 cores.
>
> Signed-off-by: Ben Zong-You Xie <ben717@andestech.com>
> ---
> .../bindings/timer/andestech,plmt0.yaml | 42 +++++++++++++++++++
> MAINTAINERS | 1 +
> 2 files changed, 43 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/timer/andestech,plmt0.yaml
>
> diff --git a/Documentation/devicetree/bindings/timer/andestech,plmt0.yaml b/Documentation/devicetree/bindings/timer/andestech,plmt0.yaml
> new file mode 100644
> index 000000000000..e0ea3ce86b76
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/timer/andestech,plmt0.yaml
> @@ -0,0 +1,42 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/timer/andestech,plmt0.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Andes machine timer
> +
> +maintainers:
> + - Ben Zong-You Xie <ben717@andestech.com>
> +
> +properties:
> + compatible:
> + items:
> + - enum:
> + - andestech,qilai-aclint-mtimer
> + - const: andestech,plmt0
Drop the fallback.
> +
> + reg:
> + maxItems: 1
> +
> + interrupts-extended:
> + minItems: 1
> + maxItems: 32
Here and in the plicsw, it would be good to describe what determines how
many interrupts there are and what's the mapping (index 0 is ???, index
1 is ???).
> +
> +additionalProperties: false
> +
> +required:
> + - compatible
> + - reg
> + - interrupts-extended
> +
> +examples:
> + - |
> + interrupt-controller@100000 {
> + compatible = "andestech,qilai-aclint-mtimer", "andestech,plmt0";
> + reg = <0x100000 0x100000>;
> + interrupts-extended = <&cpu0intc 7>,
> + <&cpu1intc 7>,
> + <&cpu2intc 7>,
> + <&cpu3intc 7>;
> + };
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 645d7137cb07..d1e1b98dfe7b 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -20730,6 +20730,7 @@ M: Ben Zong-You Xie <ben717@andestech.com>
> S: Maintained
> F: Documentation/devicetree/bindings/interrupt-controller/andestech,plicsw.yaml
> F: Documentation/devicetree/bindings/riscv/andes.yaml
> +F: Documentation/devicetree/bindings/timer/andestech,plmt0.yaml
>
> RISC-V ARCHITECTURE
> M: Paul Walmsley <paul.walmsley@sifive.com>
> --
> 2.34.1
>
next prev parent reply other threads:[~2025-04-07 14:26 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-07 10:49 [PATCH 0/9] add Voyager board support Ben Zong-You Xie
2025-04-07 10:49 ` Ben Zong-You Xie
2025-04-07 10:49 ` [PATCH 1/9] riscv: add Andes SoC family Kconfig support Ben Zong-You Xie
2025-04-07 10:49 ` Ben Zong-You Xie
2025-04-07 10:49 ` [PATCH 2/9] dt-bindings: riscv: add Andes QiLai SoC and the Voyager board bindings Ben Zong-You Xie
2025-04-07 10:49 ` Ben Zong-You Xie
2025-04-07 14:13 ` Rob Herring (Arm)
2025-04-07 14:13 ` Rob Herring (Arm)
2025-04-07 10:49 ` [PATCH 3/9] dt-bindings: interrupt-controller: add Andes QiLai PLIC Ben Zong-You Xie
2025-04-07 10:49 ` Ben Zong-You Xie
2025-04-07 14:14 ` Rob Herring (Arm)
2025-04-07 14:14 ` Rob Herring (Arm)
2025-04-07 10:49 ` [PATCH 4/9] dt-bindings: interrupt-controller: add Andes machine-level software interrupt controller Ben Zong-You Xie
2025-04-07 10:49 ` Ben Zong-You Xie
2025-04-07 14:17 ` Rob Herring
2025-04-07 14:17 ` Rob Herring
2025-04-21 12:19 ` Ben Zong-You Xie
2025-04-21 12:19 ` Ben Zong-You Xie
2025-04-07 10:49 ` [PATCH 5/9] dt-bindings: timer: add Andes machine timer Ben Zong-You Xie
2025-04-07 10:49 ` Ben Zong-You Xie
2025-04-07 14:18 ` Rob Herring [this message]
2025-04-07 14:18 ` Rob Herring
2025-04-07 10:49 ` [PATCH 6/9] dt-bindings: cache: ax45mp-cache: allow variable cache-sets for Andes L2 cache Ben Zong-You Xie
2025-04-07 10:49 ` Ben Zong-You Xie
2025-04-07 14:19 ` Rob Herring (Arm)
2025-04-07 14:19 ` Rob Herring (Arm)
2025-04-07 10:49 ` [PATCH 7/9] riscv: dts: andes: add QiLai SoC device tree Ben Zong-You Xie
2025-04-07 10:49 ` Ben Zong-You Xie
2025-04-07 14:30 ` Krzysztof Kozlowski
2025-04-07 14:30 ` Krzysztof Kozlowski
2025-04-08 16:43 ` Conor Dooley
2025-04-08 16:43 ` Conor Dooley
2025-04-07 10:49 ` [PATCH 8/9] riscv: dts: andes: add Voyager board " Ben Zong-You Xie
2025-04-07 10:49 ` Ben Zong-You Xie
2025-04-07 14:31 ` Krzysztof Kozlowski
2025-04-07 14:31 ` Krzysztof Kozlowski
2025-04-07 10:49 ` [PATCH 9/9] riscv: defconfig: enable Andes SoC Ben Zong-You Xie
2025-04-07 10:49 ` Ben Zong-You Xie
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=20250407141854.GA2277442-robh@kernel.org \
--to=robh@kernel.org \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=ben717@andestech.com \
--cc=conor+dt@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
--cc=tglx@linutronix.de \
--cc=tim609@andestech.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.