From nobody Thu Apr 2 15:44:06 2026 Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) (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 A7E8A40DFD7; Sat, 28 Mar 2026 00:00:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774656058; cv=none; b=LVDBQQq0nbST0yugm576Pz36kpWTMYwlhZiQZhjHfuzzrWo2vV0DOdtc2rmEejsyKnJ1KCBrfAgGRKiMxqQwsqUdoatYbqfYfrgmkhSUhBP8KIP/bB6wVFo9v6SX4Kase8a9ZaUIjdjAu5RKqnXIh6MkY0iPRYDVG6aw1oGTRn8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774656058; c=relaxed/simple; bh=JFDMJr30L/H5v8LvsQbGHXdNcZs08uN6Zg+HnfVFnvU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iiZSnqdxIeaJrDH4LtSLfHrX5siafl4JW7KKFSJnmBhGmotYqLwGhB0qySAG2NzOBEPhIG6XsgttSbE3Ed+BrfZjBPCc8pG9QV8642arLerGq39lbW5/PEGfigWVssS8/mq4GOuHKCTt5IMaglBfcalFVcc14bk8Pj2t95OVUUM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mailbox.org; spf=pass smtp.mailfrom=mailbox.org; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b=FjufGfrY; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b=mKcWMAbh; arc=none smtp.client-ip=80.241.56.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mailbox.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b="FjufGfrY"; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b="mKcWMAbh" Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4fjHj25n6cz9tnK; Sat, 28 Mar 2026 01:00:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1774656054; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zFj1swgZY0cQiCwL0lKNikCgBp7iDEG+eoYplYhgMbo=; b=FjufGfrY7qO1BX5ZX8lFtXVxakyFCqGggktrR8SYUs3HPgrKVC0p5VysprG0CNo08vYVfZ Wy70e5R4UtYozoFKqsbq8BqCDlGEu3ExgW9uIbO5YaiPrfk43tjBaoIrmWnHgMwohdu6UE vuEQ0B8MVXHAFhldXDtL9/ftkCSgi5/SQELg4GSFKFWdEZLNMupn8VwW7+9Uz6rmFp7Gwt Juj/VtlCh/sRHWvI9F5intQbpquqiurNzn0BZ0yEGPWRDKF3p+m4G9XIxzUCK30eiWab6w Dy0lR1ZmMCOYtGLMpbLZmY0CjIxkalj5b3hFuK5L0jlM8m9d9SG3j2kYO2clOg== Authentication-Results: outgoing_mbo_mout; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=mKcWMAbh; spf=pass (outgoing_mbo_mout: domain of marek.vasut+renesas@mailbox.org designates 2001:67c:2050:b231:465::202 as permitted sender) smtp.mailfrom=marek.vasut+renesas@mailbox.org From: Marek Vasut DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1774656053; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zFj1swgZY0cQiCwL0lKNikCgBp7iDEG+eoYplYhgMbo=; b=mKcWMAbhi/pIUzxeu86wgP4TKjd2KYrlMK7c1QMYw/PHoj1sAgJW+9SqV1ukeVVdGwdyfQ Y9bOImZ7Bwtl4ymd4FckNy7cgiDY6k20+WEwQFYvfE4NPqMLS/BmlMlUo79S2xxi5UaQsm nBBXQ9pGSlWUzORfJF7lFLPfVDbdfv93dgOdICH5XrCvgYyWg0tBPLSn+bvuz5ru/wIBYq rzMTr2fVLgyYq8UYULy8DqYg3mnZlGyU4DSd0N1Wwovnn3zXcUP1QCmki5IM3yrH37qoaM z1hBF7nwsBd387mp3Vn1gq+wLY7MyAEF08kZlXc9H4Z1nPR4KeFEfIvuuHz+Cw== To: linux-arm-kernel@lists.infradead.org Cc: Marek Vasut , Conor Dooley , Geert Uytterhoeven , Krzysztof Kozlowski , Magnus Damm , Michael Turquette , Rob Herring , Stephen Boyd , devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: [RFC][PATCH 4/4] ARM: dts: renesas: r8a7740: Describe coresight on R-Mobile A1 Date: Sat, 28 Mar 2026 00:58:21 +0100 Message-ID: <20260328000031.94645-5-marek.vasut+renesas@mailbox.org> In-Reply-To: <20260328000031.94645-1-marek.vasut+renesas@mailbox.org> References: <20260328000031.94645-1-marek.vasut+renesas@mailbox.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-MBO-RS-META: 11hto1pogtjuona37e5pzkj8u7wbj4gb X-MBO-RS-ID: f188a53aa2bb19dd3b0 X-Rspamd-Queue-Id: 4fjHj25n6cz9tnK Content-Type: text/plain; charset="utf-8" Describe coresight topology on R-Mobile A1. Extend the current PTM node with connection funnel, TPIU, ETB and replicator. The coresight on this hardware is clocked from the ZT/ZTR trace clock. Signed-off-by: Marek Vasut --- Cc: Conor Dooley Cc: Geert Uytterhoeven Cc: Krzysztof Kozlowski Cc: Magnus Damm Cc: Michael Turquette Cc: Rob Herring Cc: Stephen Boyd Cc: devicetree@vger.kernel.org Cc: linux-clk@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org --- arch/arm/boot/dts/renesas/r8a7740.dtsi | 114 ++++++++++++++++++++++++- 1 file changed, 111 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/renesas/r8a7740.dtsi b/arch/arm/boot/dts/ren= esas/r8a7740.dtsi index 0a622da79dc1a..eb1abc90c4f59 100644 --- a/arch/arm/boot/dts/renesas/r8a7740.dtsi +++ b/arch/arm/boot/dts/renesas/r8a7740.dtsi @@ -18,7 +18,7 @@ / { cpus { #address-cells =3D <1>; #size-cells =3D <0>; - cpu@0 { + cpu0: cpu@0 { compatible =3D "arm,cortex-a9"; device_type =3D "cpu"; reg =3D <0x0>; @@ -59,9 +59,117 @@ pmu { interrupts =3D ; }; =20 - ptm { - compatible =3D "arm,coresight-etm3x"; + replicator { + compatible =3D "arm,coresight-static-replicator"; + clocks =3D <&cpg_clocks R8A7740_CLK_ZTR>; + clock-names =3D "atclk"; power-domains =3D <&pd_d4>; + + out-ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + /* replicator output ports */ + port@0 { + reg =3D <0>; + + replicator_out_port0: endpoint { + remote-endpoint =3D <&tpiu_in_port>; + }; + }; + port@1 { + reg =3D <1>; + + replicator_out_port1: endpoint { + remote-endpoint =3D <&etb_in_port>; + }; + }; + }; + + in-ports { + /* replicator input port */ + port { + replicator_in_port0: endpoint { + remote-endpoint =3D <&funnel_out_port>; + }; + }; + }; + }; + + etb@e6fa1000 { + compatible =3D "arm,coresight-etb10", "arm,primecell"; + reg =3D <0xe6fa1000 0x1000>; + clocks =3D <&cpg_clocks R8A7740_CLK_ZT>, <&cpg_clocks R8A7740_CLK_ZTR>; + clock-names =3D "apb_pclk", "atclk"; + power-domains =3D <&pd_d4>; + + in-ports { + port { + etb_in_port: endpoint { + remote-endpoint =3D <&replicator_out_port1>; + }; + }; + }; + }; + + tpiu@e6fa3000 { + compatible =3D "arm,coresight-tpiu", "arm,primecell"; + reg =3D <0xe6fa3000 0x1000>; + clocks =3D <&cpg_clocks R8A7740_CLK_ZT>, <&cpg_clocks R8A7740_CLK_ZTR>; + clock-names =3D "apb_pclk", "atclk"; + power-domains =3D <&pd_d4>; + + in-ports { + port { + tpiu_in_port: endpoint { + remote-endpoint =3D <&replicator_out_port0>; + }; + }; + }; + }; + + funnel { + compatible =3D "arm,coresight-static-funnel"; + + /* funnel output ports */ + out-ports { + port { + funnel_out_port: endpoint { + remote-endpoint =3D + <&replicator_in_port0>; + }; + }; + }; + + in-ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + /* funnel input ports */ + port@0 { + reg =3D <0>; + funnel0_in_port0: endpoint { + remote-endpoint =3D <&ptm0_out_port>; + }; + }; + }; + }; + + ptm@e6fbc000 { + compatible =3D "arm,coresight-etm3x", "arm,primecell"; + reg =3D <0xe6fbc000 0x1000>; + clocks =3D <&cpg_clocks R8A7740_CLK_ZT>, <&cpg_clocks R8A7740_CLK_ZTR>; + clock-names =3D "apb_pclk", "atclk"; + cpu =3D <&cpu0>; + power-domains =3D <&pd_d4>; + + out-ports { + port { + ptm0_out_port: endpoint { + remote-endpoint =3D <&funnel0_in_port0>; + }; + }; + }; }; =20 ceu0: ceu@fe910000 { --=20 2.53.0