From nobody Sun Jun 14 06:11:00 2026 Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) (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 F10592FB084; Sat, 2 May 2026 18:56:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.152 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777748180; cv=none; b=tWBtKff9i+zUx77gjMFDInlJbxTOTGhlLuYyLMuLBpwSLHpfRI/7ElhGGkJA6xubygH434d7mcGSDzS7rUX4Do42X778P5ih27oVzSogk+1qI9ieSR9Lq+CB0zVYcKQtmYVdxXiLdiOdNz8tA6As8BOjX/6v3/asrqlpqTBC4wo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777748180; c=relaxed/simple; bh=SCl2xtltmL93OPjjCQu1B6mnUwtNXopQTQp9OqTXcjY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=h7Mv+2i9GjNhZyMdaMQV4E6VU2EEbVvashLPDHP0+BcallqCPLsrjO5DnMIZ6M7T4YQfYhOQsI3JMtDKgOEf+AQyQZC4Vd00AMJzwYN4tHGirouyIolXKax3/aRHbZaLVZqlq6o8roxgF3wkpVsF+s7bWDBqDQKLpmcJCbUKokA= 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=urkVpFDH; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b=DNdkN5rY; arc=none smtp.client-ip=80.241.56.152 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="urkVpFDH"; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b="DNdkN5rY" Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (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-102.mailbox.org (Postfix) with ESMTPS id 4g7HDp6tmQz9slK; Sat, 2 May 2026 20:56:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1777748171; 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=Nr8CyOu1jAgUyzExSTfTJ47zvCfGtulOLtwadhcScWE=; b=urkVpFDH8o76gzBzivWuQc4ccWWmNIyAtZ5AMEDT+cjAPGQCTIGlKPoMZOFZjQwcAZAbeY VmZ2tCAjhwf6cnRd136y3bT3wd+/Tv3HrekcONSfS1HR0sdEwdGSglZchq5erEQ7xch6Ib Dt8sv1NUKINVhpxZ9050NcxsbUJTPHj4iTa/q/PJQ0Lxw92uQSk60UOZyTkVd9cWTp2vQJ 1yhn5C9WYG9HiPtStoZYM8BYpXJ+cYbreEKjiG8/ksco8XorbjLCyvXKImEoxKJLxeN3Em YNM6bl/jcPtXyyGHNftqxAxmqnzL+nyEMhKPLZy60YvSN11afFGg08PbYZiwPQ== From: Marek Vasut DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1777748169; 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=Nr8CyOu1jAgUyzExSTfTJ47zvCfGtulOLtwadhcScWE=; b=DNdkN5rYz/3ln3lP4+ifoRGkLCjjHsmS6LvU7H/B9l8m96fmdspTiAKwerS+M6pvKkh6+o bLl+MxfN5jrQumTg3HafyyCyImcgtXUJEuynddsBBOsrjj6IrRKHwyD+/SQZTty5z4Bi7N 4f5FB8If/gdm9frFxmYF6WR8qaleKHXz3vNg1zgRvy8Z52fcJ8VIZiGPnkxrgWIiVw1/Vb A7V3aVBsdTrOYJw2peU2kd8Y/DB4WAF7Fh5pfB4C1eqqvi+2vpIWrDuwoD/E/gm9gLgfN0 E0MOYyBAUYPZzvoOTx03y7Dy5TaRth7n+MiyolYGZI8uSz7nWNN5H2VwxvBiow== 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: [PATCH 1/4] dt-bindings: clock: renesas,cpg-clocks: Document ZT/ZTR trace clock on R-Mobile APE6 Date: Sat, 2 May 2026 20:55:42 +0200 Message-ID: <20260502185557.93061-2-marek.vasut+renesas@mailbox.org> In-Reply-To: <20260502185557.93061-1-marek.vasut+renesas@mailbox.org> References: <20260502185557.93061-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: 3scm56hh3excz98e688ii1y83ibo3aus X-MBO-RS-ID: 413a3d3222bd004d73d Content-Type: text/plain; charset="utf-8" Document ZT trace bus and ZTR trace clock on the R-Mobile APE6. These clock supply the coresight tracing modules, PTM, TPIU, ETB and replicator. Without these clock, the coresight tracing can not be operated. While this does change the ABI, it does so by extending the existing clock-output-names, therefore if an old software is used with new DT, the coresight tracing parts will likely fail to probe, otherwise if new software is used with an old DT, there is no impact. Signed-off-by: Marek Vasut Reviewed-by: Geert Uytterhoeven --- 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 --- Documentation/devicetree/bindings/clock/renesas,cpg-clocks.yaml | 2 ++ include/dt-bindings/clock/r8a73a4-clock.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/renesas,cpg-clocks.yam= l b/Documentation/devicetree/bindings/clock/renesas,cpg-clocks.yaml index 925ed35d6658a..703b5bf26717c 100644 --- a/Documentation/devicetree/bindings/clock/renesas,cpg-clocks.yaml +++ b/Documentation/devicetree/bindings/clock/renesas,cpg-clocks.yaml @@ -90,6 +90,8 @@ allOf: - const: zx - const: zs - const: hp + - const: ztr + - const: zt =20 - if: properties: diff --git a/include/dt-bindings/clock/r8a73a4-clock.h b/include/dt-binding= s/clock/r8a73a4-clock.h index 655440a3e7c68..028ecef81451c 100644 --- a/include/dt-bindings/clock/r8a73a4-clock.h +++ b/include/dt-bindings/clock/r8a73a4-clock.h @@ -23,6 +23,8 @@ #define R8A73A4_CLK_ZX 13 #define R8A73A4_CLK_ZS 14 #define R8A73A4_CLK_HP 15 +#define R8A73A4_CLK_ZTR 16 +#define R8A73A4_CLK_ZT 17 =20 /* MSTP1 */ #define R8A73A4_CLK_TMU0 25 --=20 2.53.0 From nobody Sun Jun 14 06:11:01 2026 Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) (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 42B552FB084; Sat, 2 May 2026 18:56:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.152 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777748185; cv=none; b=miubHIrXV+5diVmmtSQXxTwl05+19tiyG8T3ok6566ohu5A3js/jA9jr0MJvCrogIMUEPJhgG7mIDsEWEAiTTAeeOR0D4dJVT/tXAlas71tQjjZ2JWFkemHVbvh26ZH6BImdbxZrLKapDdznVQ4kat0zftoUhg6SzdiSdBV9Kh0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777748185; c=relaxed/simple; bh=biy276O/ZJqnNqtbtb40lWHS06x+LEbCOesxNsxzQOc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QcV4oXmpUr3D9GKnqgo8bX1bfJDuT+O4p6vx7+Uk/uaobDPMqlWL0PaFDDXyQXQhSYpCRn83CP3gDwNNpbTp5wRevbXXcyvl8soGCeBsyIo7LTjucHMfYBwHzOjzN79xD8Kd4xne24ym627cJ+RsYOUnyelMTTbVxV9J5Nz+zoo= 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=YVdQrB+o; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b=ZzJzH2az; arc=none smtp.client-ip=80.241.56.152 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="YVdQrB+o"; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b="ZzJzH2az" Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (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-102.mailbox.org (Postfix) with ESMTPS id 4g7HDv4nwqz9v9S; Sat, 2 May 2026 20:56:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1777748175; 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=ZWPyxXiCkwOnhKHSaSoDoMa/Yg5EsjWRX7PpMHjDx1A=; b=YVdQrB+om9uC2e3vVJd2BjX+OF/PMUiXZHTD8jmdXRjyBTczm/M8bKdFDxryGiXTu1t+56 l4TWIhP1ahgw3xOJKKj317CICpCIScuRmjFb9Ao8t8t26GfbFf6s5zo3V17BHp/q/yaVsP hsLfT/52ntjbVSVVDD6fbgk0MzJm9Xz0lkFN935OBP89qaYtS90hfmZ1+5SVz6eN63wkgD axl4p4pJJRoTGmUgyqbeZMIdWriI6XsbU5+WIsAeCNnWsr1exf0b9FPZJBMb/kIX+A9v2h 2R7PyL7Otr7ZGdsGHJ8XiU8tmNx1USarNqQEKhbgs7NuEcvgbhg7w5FoMlBRWA== Authentication-Results: outgoing_mbo_mout; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=ZzJzH2az; spf=pass (outgoing_mbo_mout: domain of marek.vasut+renesas@mailbox.org designates 2001:67c:2050:b231:465::2 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=1777748174; 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=ZWPyxXiCkwOnhKHSaSoDoMa/Yg5EsjWRX7PpMHjDx1A=; b=ZzJzH2azs3XePVSz0TiOtm96vSCQdPFdxDJQHVi4kaIkcAWp0TJsa9WI4rNPPrPP51wEre g0JD46ucn1DyDZLEkyTcsYRqXsjo1OfW+koLLJTJ7Tur2gygM5s0y3Ec1KBMHyx7CcVw+u 3F2yVFgbSQWGTd9Vv2/ctTfrAfkMXbriVZLnvNm8bb5eG4N5gEn+W1mE8hGLXfb9zw6wtF SEPpaRVsjQ3q9z3hSBF/Td4nS1XlgNBhbzgONzV+rqi5hvUpnvDRFIH6lmgA/Hwt/5z/1N cpwdYrur+6sUxAvslN27sOPkmhn6UXZg/0V2KAOIn7AElpvGZ2zMBTEKLBICAg== 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: [PATCH 2/4] clk: renesas: r8a73a4: Implement ZT/ZTR trace clock on R-Mobile APE6 Date: Sat, 2 May 2026 20:55:43 +0200 Message-ID: <20260502185557.93061-3-marek.vasut+renesas@mailbox.org> In-Reply-To: <20260502185557.93061-1-marek.vasut+renesas@mailbox.org> References: <20260502185557.93061-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: mtfzoxzo5jjun9hht8drgf8qwto6dswn X-MBO-RS-ID: 6efcc919c2efcb2ece2 X-Rspamd-Queue-Id: 4g7HDv4nwqz9v9S Content-Type: text/plain; charset="utf-8" Implement ZT trace bus and ZTR trace clock on the R-Mobile APE6. Signed-off-by: Marek Vasut Reviewed-by: Geert Uytterhoeven --- 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 --- drivers/clk/renesas/clk-r8a73a4.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/renesas/clk-r8a73a4.c b/drivers/clk/renesas/clk-r8= a73a4.c index 7f47644396e6c..11b387f1ab30a 100644 --- a/drivers/clk/renesas/clk-r8a73a4.c +++ b/drivers/clk/renesas/clk-r8a73a4.c @@ -43,6 +43,8 @@ static struct div4_clk div4_clks[] =3D { { "m1", CPG_FRQCRA, 4 }, { "m2", CPG_FRQCRA, 0 }, { "zx", CPG_FRQCRB, 12 }, + { "ztr", CPG_FRQCRB, 16 }, + { "zt", CPG_FRQCRB, 12 }, { "zs", CPG_FRQCRB, 8 }, { "hp", CPG_FRQCRB, 4 }, { NULL, 0, 0 }, --=20 2.53.0 From nobody Sun Jun 14 06:11:01 2026 Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [80.241.56.171]) (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 DE8321F4634; Sat, 2 May 2026 19:04:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777748653; cv=none; b=oxI+Ho19lXyn+vxDqXW9K6ropgyth0s9kDs4JOkaPayCXmSUEtI+Qzj8TBxrXZJxzQOM4Q5s/x7y0vqVHvgdKi8fv/AMNlTgb5yXVDe5CO9VLu1YPJq8caisCSddeerzMTx9gLeTZMBiMq9SDmmfcRylxedyf0jMeSkAqr4R2OE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777748653; c=relaxed/simple; bh=Eb6ogzDClg1Kmig7EjwNXoSkwdoaI/Yw30ibPgD/02o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uqZvjreiqev4iJQYHYqmPUH1yfQshwOcY1q53mbDYM2IeALXqfwNsndKrVJzuM6GZKkoKhT2x31lmv+AF7T3tIjLcCgKwrtXwmwzxhYNPtm6RpaJFU1RoFSdAn3bQ5v2IOvzAmJ6GERM02/0u0VKL6bsUnWlZLTtw5xhr6dBvII= 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=I6PbfftY; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b=fek1d4Ke; arc=none smtp.client-ip=80.241.56.171 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="I6PbfftY"; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b="fek1d4Ke" Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (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-201.mailbox.org (Postfix) with ESMTPS id 4g7HDy42yRz9tr1; Sat, 2 May 2026 20:56:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1777748178; 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=EQud8duE45gdEVIRYljbYGN30HcxQZI9q+r/Ft9Q8x4=; b=I6PbfftYTIew0NXgeoJjRTHKthuLgqAP/ypOVkHLDVQzlN5pRGRt31fi4jz3GPFRMnZ/b3 J+5FhU1Re9nAxe0FL11DfRegKSka58EWGWEYZEH1REfi85Cq/mAsb0UDdyAexq7l9ALUDS ivuEtk1Ut7y977Fp1Sb5NQ0Cte64G9GPhcjxi8natUnRDyHVVfyaUi5PFDpU4V/qjTl4ZQ DvNxOz38nioBFkGIXe+8OyD1EXAr5QDdCxUzTpbuhqNailVO/LM8js0lwnNfgd34wGFu3c Qu+Af6h+nAwBDFlwggeYdnZNAyMOwSPJD3V62n52o7ONHI+D0oIU38O6ovk8EQ== From: Marek Vasut DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1777748177; 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=EQud8duE45gdEVIRYljbYGN30HcxQZI9q+r/Ft9Q8x4=; b=fek1d4KenZU82Ii02M3nNlVEsNTUMvwepA9uwZXxs3UiniDotsvPPcZnPXl+5NkD9RvL0r Neeot22zsTbN+86hrdg4URWj39TTefdtBFrRCKF/jCGqXrcM1kDTaswVu9+CPKdGiJWbYo QQkFbMKpzbrjHNM3aishHXwgPCI7+iR6RVWElEDzRhpczxS0hOYcHzedZlQXa78567aiom qOg3rhclvHaO5CWJpaKHisJTK+7xQzn8/I9ftRs30zSqjrx/Q1Gc3CvOhhZ7AeTzZVYB3I BbvJQKozCLJBH4ipZYFMOYnR+RCoBJD8NGODjMJXtWFStN+a4vJ7pwzELtTVlw== 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: [PATCH 3/4] ARM: dts: renesas: r8a73a4: Add ZT/ZTR trace clock on R-Mobile APE6 Date: Sat, 2 May 2026 20:55:44 +0200 Message-ID: <20260502185557.93061-4-marek.vasut+renesas@mailbox.org> In-Reply-To: <20260502185557.93061-1-marek.vasut+renesas@mailbox.org> References: <20260502185557.93061-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: g64dm3jh6snd6k7ae94xoc9je766hq9j X-MBO-RS-ID: 642e1cc61f6edc127f4 Content-Type: text/plain; charset="utf-8" Add ZT trace bus and ZTR trace clock on the R-Mobile APE6. These clock supply the coresight tracing modules, PTM, TPIU, ETB and replicator. Without these clock, the coresight tracing can not be operated. Signed-off-by: Marek Vasut Reviewed-by: Geert Uytterhoeven --- 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/r8a73a4.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/renesas/r8a73a4.dtsi b/arch/arm/boot/dts/ren= esas/r8a73a4.dtsi index 2e19ebf9e2ba8..a70a0dc402a5f 100644 --- a/arch/arm/boot/dts/renesas/r8a73a4.dtsi +++ b/arch/arm/boot/dts/renesas/r8a73a4.dtsi @@ -512,7 +512,7 @@ cpg_clocks: cpg_clocks@e6150000 { clock-output-names =3D "main", "pll0", "pll1", "pll2", "pll2s", "pll2h", "z", "z2", "i", "m3", "b", "m1", "m2", - "zx", "zs", "hp"; + "zx", "zs", "hp", "ztr", "zt"; }; =20 /* Variable factor clocks (DIV6) */ --=20 2.53.0 From nobody Sun Jun 14 06:11:01 2026 Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [80.241.56.171]) (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 D77832BEFEE; Sat, 2 May 2026 18:56:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777748185; cv=none; b=HoSkjApIpByuVqVlBVyh//BSU30qLvS84HVmxDpk4qFUnh8KmELYaxAjFCWeAOIuRHMT8rF5HNAWilCf5bpco3w+Ppu+opAttNWnTa9Youu4fdF2UIAJmcaz022MgF5lY+NCnIpqQvolRHE1bmcf+R0CpLDhtiDTvIe8WfJrlH0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777748185; c=relaxed/simple; bh=jVFRCuZO+yNG8H6cyWaT3LdbduYGPhzSKBbD9iHrsgY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=i5pwRi+dTJYt9YKI7kQdINH6uNMkH7+GbN+YPobOC1ZOiKQfkxRZspIMxdHnyrzJP2r5ISqc0UOooeU7vhvnboDHxD94R566KZ57A9BTfVg6AERRaCp0IWl+Xo0Uati01QFfMQqpKV7m1/JdaJmZnd4cwGJyTqqdw3bGsAQaPTo= 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=VcUoxl/6; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b=ILxESlRZ; arc=none smtp.client-ip=80.241.56.171 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="VcUoxl/6"; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b="ILxESlRZ" Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (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-201.mailbox.org (Postfix) with ESMTPS id 4g7HF20Lx4z9ttQ; Sat, 2 May 2026 20:56:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1777748182; 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=7KAzkLlbASG4LW7V5LypyNoWScFuOeCwZgBmWCYq3qI=; b=VcUoxl/6896CDJJC28XPPz2ZRiL2AvAchZ8B0F3lcH+dxMqfBig2Ue501L5axPMtMt2kEW HCwhdNU4LBwvXuz3tQXYRfiEtUkltrPLbMHhwRFUeiDtafBVUWAesm/PMfSSQtvJAYXOBu XZfd+/Sm8Cj9YxOQLl+TtieDeMXNBgsN1fsg5CQK2RQea3/u80s1led5wytLxvQMSPieqm xLcV59TLhVi2omJk0O/i5jDKx7+7qchSFnNSGHxvWNyRG5nkmvZxwi4dDtlz6wAVIogYr+ cTRLE3mZR6HkHcrtv7cWksuQ2kGGMzOei7Uz96BBx5tVIASv7nYMEDsLxVcluQ== Authentication-Results: outgoing_mbo_mout; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=ILxESlRZ; spf=pass (outgoing_mbo_mout: domain of marek.vasut+renesas@mailbox.org designates 2001:67c:2050:b231:465::2 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=1777748180; 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=7KAzkLlbASG4LW7V5LypyNoWScFuOeCwZgBmWCYq3qI=; b=ILxESlRZUZQPs9XRIr+S/PmVgZ5fvh4JX5MUTytXcWpb+Llu21133twCdz4YRgWySwXKLF Hq/aJqRIv38IP7uYgJQJiiat4KMFsJCqXr8bxkfLKmBz3dWIw2osjoYwimfhAtFtQETHRV 4GlCwIUhS4jb7tzT6o+R5aSug1sjr5h/w8Xw8zjW7ydpJc2XsFilqZbcMt3nzDuD7fQHza dA/fEY957Ns58ZrEzfpHxJ8SZcd6OLSQmV8zOoTBNs2cm/s1zoX8WwDPH4x/RvMfR0BGRE +yV7jGrh8e//+DR8yQXFG4tq+YKgL2uOW8Rj1r9bie52sUh9DGcWLzouv0UP5w== 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: [PATCH 4/4] ARM: dts: renesas: r8a73a4: Describe coresight on R-Mobile APE6 Date: Sat, 2 May 2026 20:55:45 +0200 Message-ID: <20260502185557.93061-5-marek.vasut+renesas@mailbox.org> In-Reply-To: <20260502185557.93061-1-marek.vasut+renesas@mailbox.org> References: <20260502185557.93061-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-ID: 939a1c036ea3e18311a X-MBO-RS-META: at5tgu1ibk9swst1773rnnhh8qwqp8px X-Rspamd-Queue-Id: 4g7HF20Lx4z9ttQ Content-Type: text/plain; charset="utf-8" Describe coresight topology on R-Mobile APE6. 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. Note that only core 0 part of the topology is described, because the other cores are still not present in the DT. Signed-off-by: Marek Vasut Reviewed-by: Geert Uytterhoeven --- 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/r8a73a4.dtsi | 112 ++++++++++++++++++++++++- 1 file changed, 110 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/renesas/r8a73a4.dtsi b/arch/arm/boot/dts/ren= esas/r8a73a4.dtsi index a70a0dc402a5f..c3427dc7cf7dd 100644 --- a/arch/arm/boot/dts/renesas/r8a73a4.dtsi +++ b/arch/arm/boot/dts/renesas/r8a73a4.dtsi @@ -47,9 +47,117 @@ L2_CA7: cache-controller-1 { }; }; =20 - ptm { - compatible =3D "arm,coresight-etm3x"; + replicator { + compatible =3D "arm,coresight-static-replicator"; + clocks =3D <&cpg_clocks R8A73A4_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@e6f81000 { + compatible =3D "arm,coresight-etb10", "arm,primecell"; + reg =3D <0 0xe6f81000 0 0x1000>; + clocks =3D <&cpg_clocks R8A73A4_CLK_ZT>, <&cpg_clocks R8A73A4_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@e6f83000 { + compatible =3D "arm,coresight-tpiu", "arm,primecell"; + reg =3D <0 0xe6f83000 0 0x1000>; + clocks =3D <&cpg_clocks R8A73A4_CLK_ZT>, <&cpg_clocks R8A73A4_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 <0 0xe6fbc000 0 0x1000>; + clocks =3D <&cpg_clocks R8A73A4_CLK_ZT>, <&cpg_clocks R8A73A4_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 timer { --=20 2.53.0