From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796224923; b=SmZtNQrhGAEArmf288ePSOKb1i3fh6J8bTyz9YjdenOyx+RNhR3XbwjFDBFuORmR7E8h l8o7ZcCccaz7K6sxGgDpJODe41A72pR1THAdJmXq9x5eI+YoeJWhIEI3z+DYC3mprMaDd bMj71CZphlB4qXBPJArllitgLoAfQVKHdC0yT2sWg4w8QfISQSBvLIqHm1xKR7ZzMYlxG f/dLPIAL7H/c0hN1JFkE5gbobsONMXg+nBTnksZ/nLtTZxf8SGlpRSwzEG/rOdi4HsEOw d8VySuVYqDOXX2Gxe/o7vhtbN91DiPLj1NBqTcS91QGX6EIVnu/PZWx/lmIRENynHzA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796224923; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=tIxCTm1jnkogO0qe7ZkDy/eWucIvI1gk3nDIsM7jSRU=; b=uLdWQNhZVpKUEaM0AyfEoucXdezurHa/+Rkc4NKK0n+DoAmCsVHNdWW+m8jqqqtL+DDC bGX+zf+pRCOl1r/uPlaAqzhNZpsHAJ5Glu6TUbLJOXUwVZam0BDmA89Lrgh4PLTQ4j/jT 8i2cbi7cvnTQt06abqHX9GGfqGW79MgfpzcuDd12aG7UWMnnpLkDu3pEftP96L8x8WEFI tb54X+DjDEoxwJ3iOmOgs02uVTTB1PT9HYRNaAOPqvunPDcMv3uODJnA87tEIjbMk1Afg qUKrBVD0b3cB70aychiSWJZkbwhUgketDNKuxzvSyzXYeu8qmYsGHjlo4HGFy4u27RQ== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=kyO+AD21; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 32AC8606A325; Wed, 2 Dec 2026 15:22:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=kyO+AD21 Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1796224923; b=zJSIWSpwFKaiNr1kbVCJCwfB8pZE+YZz5hC6ogvSRl+8wDU6q+4qWEXi2nBzR9Sol/Hp jDiDrkO7dKs3xwC+grqoIdWV8BD2Py82bmbmzL+Ocvvfm+tVOgUUWlo4i4g1aX9AfS2vM Fhx677eYBY1gBps3B+z16261D6g4eOhb4kYKF8H9ZzhzObUwVWHswruEcLUpvBiiAy517 DhZJLJI/6jTllJKkpb08azGicIkVolitK/3vdp3aDUvQzTE9miOAIakY263kafi7YE1K6 2hHMFHoFSKHoMG99Odi1jENi+7ambcmGKZ4HGG/7qwXc6jiBaOWcHsC2w4UaDPBKaVQ== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1796224923; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=tIxCTm1jnkogO0qe7ZkDy/eWucIvI1gk3nDIsM7jSRU=; b=eR1uDlavCO/ThyCqZXZFqo4O3tK+ciJ2nfzebclfttXzA6wBTg/UjavP6ms8t4kFKd4L 3RUEcTYuNXCyXmpHpE9pm+8NW0y4MhTSWlOLZY1eJ3/7xRbxUSvEyNe9/olS2P8+sBHCh +o5ox9hzEGUVXyMnAxs3K/1xLlnRIO5g0URFFt6fy3RPjnBayCAE0imvSVlw1zOTrmCFV AJVKQUnXInny4FI/ExDh3GVAqHHH91VE2ZVPSruiNEaXAY4GdyovJ4kSOcFuv6/SXMwZg BBvHim45yvHfbhC93XhFs5wLNjSdBNGWGBRt5Q8okcD6RL3A27q1c7vI1R/D4G6Jmdw== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 984421F0092B; Wed, 2 Dec 2026 15:21:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796224922; bh=tIxCTm1jnkogO0qe7ZkDy/eWucIvI1gk3nDIsM7jSRU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=kyO+AD21wwUylckTJjpp84ZC5TtJ981ktq1bu6eTp4R2roHi7fAMeZYJUzDwBF3Hg NkgLx4XBl4DUb7Sg2HJzed5incC+omXrJuHf+9uBUswJG0Ct8L6WRI/UQRple8yQCC zuRbZuSBRfheW4B/lhcKidSQOYYoPBuHo6RBgbwXiC16FUk0iYxb+MqOYWulMApaSC S2A4T4Xj+ePw2GRjc5tZ8VdsYwrMAAPFMwA9hcytiFsLf5n2Djz5itDfaXCa92taAZ yBIHEp/7LXjS9Q5Q6MmPUS8USg8akmdS2cE7POqE6rAUbGdpYNPhqQl74x/j58hn5a cRNX7/1XJTiVQ== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id BEA524F4C1; Wed, 2 Dec 2026 15:21:32 +0000 (UTC) From: Aleksa Paunovic via B4 Relay Date: Wed, 02 Dec 2026 16:21:25 +0100 Subject: [PATCH v5 5/8] dt-bindings: timer: Add MIPS P8700 ACLINT MTIMER X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20261202-p8700-dts-v5-5-9d8829ef4841@htecgroup.com> References: <20261202-p8700-dts-v5-0-9d8829ef4841@htecgroup.com> In-Reply-To: <20261202-p8700-dts-v5-0-9d8829ef4841@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 , Paul Walmsley , Palmer Dabbelt , Chao-Ying Fu , Aleksa Paunovic , Conor Dooley X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796224891; l=2574; i=aleksa.paunovic@htecgroup.com; s=20250806; h=from:subject:message-id; bh=NmIYyLj+gJ6O//Yk7OxU878XkPBa6KujS6dDK+sOfuA=; b=541zTE+r1hcA11kRLe+FKZiMtgR5+TI1EJJ6TUyDgA84e08MTqlpitrgS85cDpIX/nnv4P8c4 RbnUnV8hxCbCx3asctoTxlkt0llVRDKzCY81E9SX6RphzieH1YzBfK+ 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 Content-Transfer-Encoding: 7bit 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. When both registers are present, the order is fixed to mtime first and mtimecmp second because both OpenSBI and U-Boot expect this behavior of the riscv,aclint-mtimer compatible. Acked-by: Conor Dooley Signed-off-by: Aleksa Paunovic --- .../bindings/timer/thead,c900-aclint-mtimer.yaml | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml b/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml index cf7c82e980f674afcf59fc726742dc4f49c1a820..e74816c171d9e9b3417806c531969085d260977a 100644 --- a/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml +++ b/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml @@ -21,13 +21,19 @@ properties: - enum: - anlogic,dr1v90-aclint-mtimer - const: nuclei,ux900-aclint-mtimer + - const: mips,p8700-aclint-mtimer reg: + minItems: 1 items: + - description: MTIME Registers, or MTIMECMP Registers if only one + region is present - description: MTIMECMP Registers reg-names: + minItems: 1 items: + - enum: [ mtime, mtimecmp ] - const: mtimecmp interrupts-extended: @@ -42,6 +48,28 @@ required: - reg-names - interrupts-extended +allOf: + - if: + properties: + compatible: + contains: + const: 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 +81,15 @@ examples: reg = <0xac000000 0x00010000>; reg-names = "mtimecmp"; }; + + - | + timer@16108050 { + compatible = "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