From nobody Sun Oct 5 10:51:17 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1136528A1D3; Wed, 6 Aug 2025 12:27:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754483241; cv=none; b=cbqKPXaAAQa/tIiaYjIf7ePpyGXx9PDvxCfOTMIYafuRSQcr98XNOqJV5VAWNWoHMd58r9JsvZTMxJyezLaxz2YkDoyQp0M+9/dFGy/TiHTNJqziLQ2I5mbs4LKVIdpyfskrtnjmW6KUmzxVxajQZ4jOSaKSTru4Zxgvf88Q2nc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754483241; c=relaxed/simple; bh=vMA/TDrL6pX/37cIVwe+uCWPjNEkgQmBnrmcW+A7gxA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hhzPtCSfjIXaNUcLwJC/WACtt+T8htYO2KmQ1gEFDJ4tareMgQmHt5qiGdTrCL7EymaeYOfXO1Z0hj5GJkpa+zN7xApeZwz8O9/aDD027kgskKvAEPgcXquXEId3ckSPhqCPWcmOtXEs011c0RoGMrwi4i6k25HejlR1Jf3RRLc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MDM3rkOL; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MDM3rkOL" Received: by smtp.kernel.org (Postfix) with ESMTPS id A1092C4CEF6; Wed, 6 Aug 2025 12:27:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1754483240; bh=vMA/TDrL6pX/37cIVwe+uCWPjNEkgQmBnrmcW+A7gxA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=MDM3rkOL3lQukUAj90i6fS3TMJ4qN8aLdyE48OE6W/0DyUQIsx8f5uKwudY4hc7iD YJr0KdcCYzGpzQkVvzNSuIqqm6Go+mWqf+nXFsIFgLqSWmn9ILifyQV7HbzoUHIUi8 ykw35mDBg37LozA/YT1WlNGGh5XEPLj4uRQ1hLTEE4ddoIGwjJSctWFaQBzmJYrk+k Sbc/jag+/veaBJlisToBr6Cf1JXuz7WvxfYcsDJN1pcsIotZyuSHAHC/e9DYdTsPhn L9QjqiSD4S5RNGpWVP+wZmz2ZT8TwEYHZQZ6hYhXYTMyATCyDAbx20lVuqWv7e1NVk q5qmfb3WMybwA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 903B2C87FD3; Wed, 6 Aug 2025 12:27:20 +0000 (UTC) From: Aleksa Paunovic via B4 Relay Date: Wed, 06 Aug 2025 14:26:39 +0200 Subject: [PATCH v6 1/2] dt-bindings: timer: mips,p8700-gcru Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250806-riscv-time-mmio-v6-1-2df0e8219998@htecgroup.com> References: <20250806-riscv-time-mmio-v6-0-2df0e8219998@htecgroup.com> In-Reply-To: <20250806-riscv-time-mmio-v6-0-2df0e8219998@htecgroup.com> To: Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, Djordje Todorovic , Aleksa Paunovic , Conor Dooley X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1754483238; l=1839; i=aleksa.paunovic@htecgroup.com; s=20250806; h=from:subject:message-id; bh=qlCmLDBO1Y2Dd5pfYZ/Ggi2QMtMAGxo3h0341eF3VPk=; b=56m9JHl4s+2niceVarV1ds9YTUDNqZYPSY0MKzOiiWT6b+U4cVwZajDZSWDVvSepqWQmUbqq5 UefHGtyZpD9CshfqOwaN3w94Ov49XPBmPLiLOqmhlt8k+DNNvMMIa2A X-Developer-Key: i=aleksa.paunovic@htecgroup.com; a=ed25519; pk=Dn4KMnDdgyhlXJNspQQrlHJ04i7/irG29p2H27Avd+8= X-Endpoint-Received: by B4 Relay for aleksa.paunovic@htecgroup.com/20250806 with auth_id=476 X-Original-From: Aleksa Paunovic Reply-To: aleksa.paunovic@htecgroup.com From: Aleksa Paunovic 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 Acked-by: Conor Dooley --- .../devicetree/bindings/timer/mips,p8700-gcru.yaml | 38 ++++++++++++++++++= ++++ 1 file changed, 38 insertions(+) diff --git a/Documentation/devicetree/bindings/timer/mips,p8700-gcru.yaml b= /Documentation/devicetree/bindings/timer/mips,p8700-gcru.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3498255762cce6b3f491292d340= d9639bb573e6d --- /dev/null +++ b/Documentation/devicetree/bindings/timer/mips,p8700-gcru.yaml @@ -0,0 +1,38 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/timer/mips,p8700-gcru.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: GCR.U timer device for the MIPS P8700 platform + +maintainers: + - Aleksa Paunovic + +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. + +properties: + compatible: + const: mips,p8700-gcru + + reg: + items: + - description: Read-only shadow copy of the RISC-V mtime register. + - description: Read-only shadow copy of the P8700 high resolution ti= mer register. + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + timer@1617f000 { + compatible =3D "mips,p8700-gcru"; + reg =3D <0x1617f050 0x8>, + <0x1617f090 0x8>; + }; --=20 2.43.0