[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250423-blazer-obtain-ef4a0cd0a23d@spud>
Date: Wed, 23 Apr 2025 16:27:53 +0100
From: Conor Dooley <conor@...nel.org>
To: Aleksa Paunovic <aleksa.paunovic@...cgroup.com>
Cc: "linux-riscv@...ts.infradead.org" <linux-riscv@...ts.infradead.org>,
Djordje Todorovic <djordje.todorovic@...cgroup.com>,
Palmer Dabbelt <palmer@...belt.com>,
Aleksandar Rikalo <arikalo@...il.com>,
Paul Walmsley <paul.walmsley@...ive.com>,
Albert Ou <aou@...s.berkeley.edu>,
Daniel Lezcano <daniel.lezcano@...aro.org>,
Thomas Gleixner <tglx@...utronix.de>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>
Subject: Re: [PATCH v3 1/2] dt-bindings: timer: mti,gcru
On Wed, Apr 23, 2025 at 12:14:26PM +0000, Aleksa Paunovic wrote:
> HTEC Public
>
> Add dt-bindings for the GCR.U memory mapped timer device for RISC-V
> platforms. The GCR.U memory region contains shadow copies of the RISC-V
> mtime register and the hrtime Global Configuration Register.
>
> Signed-off-by: Aleksa Paunovic <aleksa.paunovic@...cgroup.com>
> ---
> .../devicetree/bindings/timer/mti,gcru.yaml | 47 +++++++++++++++++++
> 1 file changed, 47 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/timer/mti,gcru.yaml
>
> diff --git a/Documentation/devicetree/bindings/timer/mti,gcru.yaml b/Documentation/devicetree/bindings/timer/mti,gcru.yaml
> new file mode 100644
> index 000000000000..6555dbab402e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/timer/mti,gcru.yaml
> @@ -0,0 +1,47 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/timer/mti,gcru.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: GCR.U timer device for RISC-V platforms
> +
> +maintainers:
> + - Aleksa Paunovic <aleksa.paunovic@...cgroup.com>
> +
> +description:
> + The GCR.U memory region contains memory mapped shadow copies of
> + mtime and hrtime Global Configuration Registers,
> + which software can choose to make accessible from user mode.
> +
> +select:
> + properties:
> + compatible:
> + contains:
> + const: mti,gcru
> +
> + required:
> + - compatible
Why is this select required?
I don't see why it would be since there's not a fallback to a compatble
from some toher binding.
> +
> +properties:
> + compatible:
> + const: mti,gcru
> +
> + reg:
> + items:
> + - description: Read-only shadow copy of the RISC-V mtime register.
> + - description: Read-only shadow copy of the high resolution timer register.
> +
> +required:
> + - compatible
> + - reg
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + gcru: timer@...7F000 {
Drop the "gcru" label from here, there are no users.
> + compatible = "mti,gcru";
> + reg = <0x1617F050 0x8>,
> + <0x1617F090 0x8>;
> + };
> --
> 2.34.1
Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)
Powered by blists - more mailing lists