From mboxrd@z Thu Jan 1 00:00:00 1970 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 2FD6E477294; Mon, 14 Sep 2026 13:56:07 +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=1789394167; cv=none; b=OqzkpkaOcIunmAkkq/HCTEmSZ1Lt8VH2W3mxukwoSjoRR5m7Ek/4yGiL+yxZ7PG7QZhf4t5o49X8Xb05OwsH1a8RbwKiWWjADdK/BalBg/8CyaCO14AHaNp4vd2guchP1l8hTxxrW7jcDobuTN5KiB99xvJAFsS8IAjSmAiWTGA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789394167; c=relaxed/simple; bh=f0bTgSyA5DkXGRiU8pHG8moLCaSdDcvyHOvL4bU7uNA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ccK1EFIZDkGM/VpSoDq7CQIKDiIAM7Lh/1m6i0UC5lYwc+kHtXuAVOkex/RoSW90gpMIJqmvNqu8/wAEmC7nBrGueYzoeiVsIf2spWs+9ma3Jz1/CxIq11TQYqNzY+WWnCF0EXXOMCdccAPDga3M1zJl4whPRm6Zo0uFbpiLxXk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bZZ8YlgT; 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="bZZ8YlgT" Received: by smtp.kernel.org (Postfix) with ESMTPS id CD276C2BCFB; Mon, 14 Sep 2026 13:56:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1789394166; bh=f0bTgSyA5DkXGRiU8pHG8moLCaSdDcvyHOvL4bU7uNA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=bZZ8YlgTomE8GX9Q1j0+tONFNUkeqo6WHKyFr4O3B7zi5wF9U/TvGQHWu0FJmghNH 0M71xObdvIR36f9ZRjTlgDvnNyF77ADUBBqqU+0SzOYsUQBa2W9YRNGHPBcEqDLQ7R GqhO1RuuEaCGWBTq8NP25NY8ucJBlHoQn6zful1Ez4veYq316T+MFHTdqiQ+VHzfHL OalMYAFud4hZ5GhICMUNsYRTh4Pw4Owjek7h6eqjszm7lbS6UA6gWozE6tylifMOy6 MenETbC+Ne+ojCvKI3l/PFGcRerP/q8bFzHEHf93AHPR+aTOI5UzEm/LrRmtKRnr6g T5sXfkjK2Q3mQ== 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 B551DC88E75; Mon, 14 Sep 2026 13:56:06 +0000 (UTC) From: Aleksa Paunovic via B4 Relay Date: Mon, 14 Sep 2026 15:55:54 +0200 Subject: [PATCH 6/9] dt-bindings: timer: Add MIPS P8700 ACLINT MTIMER Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260914-p8700-dts-v1-6-3267f14ebce1@htecgroup.com> References: <20260914-p8700-dts-v1-0-3267f14ebce1@htecgroup.com> In-Reply-To: <20260914-p8700-dts-v1-0-3267f14ebce1@htecgroup.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Djordje Todorovic , Anup Patel , Thomas Gleixner , Radu Rendec , Inochi Amaoto , Daniel Lezcano Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Conor Dooley , linux-riscv@lists.infradead.org, Vladimir Kondratiev , Aleksa Paunovic X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1789394164; l=2438; i=aleksa.paunovic@htecgroup.com; s=20250806; h=from:subject:message-id; bh=M5IyHBybwxEJk8ac4GspHzVPEulbhlRzm20t9LNaGmM=; b=9Aj12FjNDRPLsiFijbdUWSzeynhgFvKygTdmlPOuxb81BeHEw3ZUUNOXAlM1adSx55m0YRq7V TSBpv33dDYvD1Q+vq/Md9Se5o8TYo+6qcTfV6wdJEUXvYRe9MDz2m7k 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 Document the MIPS P8700 ACLINT MTIMER. Extend support for both mtimecmp and mtime registers within the ACLINT MTIMER, identified via reg-names. Signed-off-by: Aleksa Paunovic --- .../bindings/timer/thead,c900-aclint-mtimer.yaml | 43 ++++++++++++++++++++-- 1 file changed, 39 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml b/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml index cf7c82e980f674afcf59fc726742dc4f49c1a820..35e02da675becb3c8bb187b8e1e623994d52df8c 100644 --- a/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml +++ b/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml @@ -17,18 +17,20 @@ properties: - sophgo,sg2042-aclint-mtimer - sophgo,sg2044-aclint-mtimer - const: thead,c900-aclint-mtimer + - items: + - const: gf,mips-p8700-aclint-mtimer - items: - enum: - anlogic,dr1v90-aclint-mtimer - const: nuclei,ux900-aclint-mtimer reg: - items: - - description: MTIMECMP Registers + minItems: 1 + maxItems: 2 reg-names: - items: - - const: mtimecmp + minItems: 1 + maxItems: 2 interrupts-extended: minItems: 1 @@ -42,6 +44,28 @@ required: - reg-names - interrupts-extended +allOf: + - if: + properties: + compatible: + contains: + const: gf,mips-p8700-aclint-mtimer + then: + properties: + reg: + minItems: 2 + reg-names: + items: + - const: mtime + - const: mtimecmp + else: + properties: + reg: + maxItems: 1 + reg-names: + items: + - const: mtimecmp + examples: - | timer@ac000000 { @@ -53,4 +77,15 @@ examples: reg = <0xac000000 0x00010000>; reg-names = "mtimecmp"; }; + + - | + timer@16108050 { + compatible = "gf,mips-p8700-aclint-mtimer"; + reg = <0x16108050 0x8>, <0x16154000 0x7ff8>; + reg-names = "mtime", "mtimecmp"; + interrupts-extended = <&cpu1intc 7>, + <&cpu2intc 7>, + <&cpu3intc 7>, + <&cpu4intc 7>; + }; ... -- 2.43.0