From nobody Thu Apr 2 14:10:40 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 ED2252066F7; Sat, 28 Mar 2026 00:00:49 +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=1774656052; cv=none; b=O4/FrwyFi2opNw4mOVf7IKGDQqRLm/u5P6QN9Zr8tQeYEHvu8QK0X/yoryKy0hrdFwpGEbGklaU20FFLMtVfTDmldslU2I3T8VxT3FYtv9ogvLUE4jxtkaEYhrLXNE52pamXaTLWGVHyYzQArBHkto80FXerWCULRhs8nc3+nHc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774656052; c=relaxed/simple; bh=7sKHw34AUEgq/XqLcT5vMyasoi4uj3pnEWa2hfg6eLg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tHwYXJH9LrkG/GZBEB/NzwTZxEeSApnWzMI50oIDK78uu34N3FpmwZZJk28fhn7dgphkeruVX0P8Xz1bfAcqeIl6MIUS0PmCItX+ceDSmQcbZoRDYQnt3v0hWFpHYUczDq94MxwqK2brnoo3oiDLhJa5Wv1hZh/hLkjos47WAmo= 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=Ocu0kZwh; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b=BGMDzIXj; 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="Ocu0kZwh"; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b="BGMDzIXj" Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.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-201.mailbox.org (Postfix) with ESMTPS id 4fjHhw1BKYz9tcq; Sat, 28 Mar 2026 01:00:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1774656048; 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=ChVlZg4DQcM0BMMikYPaCk2lhDaVuYdhq7p8q4efM+k=; b=Ocu0kZwhTlksevo19PYFTZ69n6soqc9lCQa+xcrf6AhQMJQ3Nzc4edYqTAGUXX2dIHj8lT 6DAYDyrI4KK1o3RAaemy4wP2IiZ0CcNiGKflVcF8Z25ynUCCsBgFgoPecW6b2Fxec/dEuf KHYvEa1Vw3h+kfdiJ2Zy7GyBFQhLAbz/rHNsKy1iisoPTnF9VE+SRSchiwyZrAjpp62mW5 v1ypBGywsCb4FmNnelF6/wis5vcmZQaLZ5UUowMwlwqE0Rtmw/v6OJi53M4evEws/ZHqkF iP2HV/Q/JZGQWdDBKCiuV+4w0L4yqtzOqxYfju329HvwLzzyNThzIGAYdyQymQ== From: Marek Vasut DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1774656046; 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=ChVlZg4DQcM0BMMikYPaCk2lhDaVuYdhq7p8q4efM+k=; b=BGMDzIXjadXYInfpq9ZCy27CEQYTdyPskKxQFVK8T3azuJNK2de+FX+ZflQ9QPwQ5As3qd lODwad0eHZuxHuAd4XY4ZxPki/plEJz9n+HiYVRsQ92x5miAYmpPHbv4LQPZQTc+bxmSjM FSw2gP6+gg3/ynDFai494c7Mj7e9SX1+Y74tlcszNob+IDqQ6ALa+DLxHaG3FYS//Noh4U oL+FDHtnqUOrHlBaPF0wBwuvBFKgeqvgwL/rGherHdL1uv8PyEma1O3xH7G/Fmby2V4h+i hyfHmSut8UOvKF+5VJ528ThdDvXPtpzIoZcmfVaJ0sfq7t1NsWojhEPBOUtThQ== 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 1/4] dt-bindings: clock: renesas,cpg-clocks: Document ZT/ZTR trace clock on R-Mobile A1 Date: Sat, 28 Mar 2026 00:58:18 +0100 Message-ID: <20260328000031.94645-2-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-ID: a36fb0b4677beb61b53 X-MBO-RS-META: pwr3aftunkzg7rwc7fgbask7d5d3axb4 Content-Type: text/plain; charset="utf-8" Document ZT trace bus and ZTR trace clock on the R-Mobile A1. 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 --- .../devicetree/bindings/clock/renesas,cpg-clocks.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/renesas,cpg-clocks.yam= l b/Documentation/devicetree/bindings/clock/renesas,cpg-clocks.yaml index a0e09b7002f07..e974dd077efbb 100644 --- a/Documentation/devicetree/bindings/clock/renesas,cpg-clocks.yaml +++ b/Documentation/devicetree/bindings/clock/renesas,cpg-clocks.yaml @@ -41,7 +41,7 @@ properties: =20 clock-output-names: minItems: 3 - maxItems: 17 + maxItems: 19 =20 renesas,mode: description: Board-specific settings of the MD_CK* bits on R-Mobile A1 @@ -116,6 +116,8 @@ allOf: - const: zg - const: b - const: m1 + - const: ztr + - const: zt - const: hp - const: hpp - const: usbp @@ -239,7 +241,7 @@ examples: clocks =3D <&extal1_clk>, <&extal2_clk>, <&extalr_clk>; #clock-cells =3D <1>; clock-output-names =3D "system", "pllc0", "pllc1", "pllc2", "r= ", - "usb24s", "i", "zg", "b", "m1", "hp", "hp= p", - "usbp", "s", "zb", "m3", "cp"; + "usb24s", "i", "zg", "b", "m1", "ztr", "z= t", + "hp", "hpp", "usbp", "s", "zb", "m3", "cp= "; renesas,mode =3D <0x05>; }; --=20 2.53.0 From nobody Thu Apr 2 14:10:40 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 2778DF4FA; Sat, 28 Mar 2026 00:00:52 +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=1774656054; cv=none; b=VV1aeV0j+ym4XqTsQsrzBORHs62WMQ2/w10F3AS9sV+nf69X+kM5rHIyEm0TFWIzyY0Ahetnxi/YsirAHp4dFxVpjJkX07j0Ijb25nXrz1qmJyw+zj1UcEiyXT9nideJdY4Qs7QxGI0W9B1Sf8B6caNfLGhsmn4QDrp6q2QrTGM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774656054; c=relaxed/simple; bh=xVfZoPe9f8CJ+iT8FVmiyMGFFwkR2pIdijUAdMLmwKY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SRnrDS6/POechunIA+NX8gnwbfpJ/LUng6alu3HLGvW386/PyXHewoYnaiv8Cip4HEViipiq+DELQbJ5TttiIPNMlxuB1NJZ4rD1YkWUmTlLiqM4TTcmaTMTWwaOpxhwPmksfyDrURc5WoTcoOy2kp4L+590kuadunZF4B2tRME= 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=JWj60bgW; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b=gmhbv5g+; 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="JWj60bgW"; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b="gmhbv5g+" 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-201.mailbox.org (Postfix) with ESMTPS id 4fjHhy355vz9tgl; Sat, 28 Mar 2026 01:00:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1774656050; 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=fZ2XWEV2FATbgEJyCNwydDCXXSAIds9YSXBHTGFZU04=; b=JWj60bgW5y69OqXlUkH5KnshgLFHI6ITvPjSswGdv/yE3RzWAysNq7PdlfnnhhrZng2JhX 4sxvS/meOs4VjJRI0Zh9iUncKkri6u4eZpu3iqPaEUySi6aXsR4TEI/e5pChp+wzx1ls6E UqD0stLHcMdV26My2BNyuUD31L+DDmkYJT2aKN/oqg77BgVDdzzn8hLXzyIJyTNJ5O1aBq 0d4DyoQZjUd1X66xM3gJcSsQVzYBp8EY9mFnN6SP0/UyPUkdyzSigzJY+WqwPTMGiDI2Nn gZJZgWOQ3xe+g+CR5002C44ZoNMBfmjZGAQ/eKqnVeKYWb8F5CsS1xiY16xD0w== Authentication-Results: outgoing_mbo_mout; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=gmhbv5g+; 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=1774656048; 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=fZ2XWEV2FATbgEJyCNwydDCXXSAIds9YSXBHTGFZU04=; b=gmhbv5g+5wIwkyCuW74uvfEcHLDJvV4hdMK/jFAu7SoaCeXoxBAj4jr+W9i6jBSSfBnShZ Hyp8qv/F/zVtqgQwOLAUaOa3aP7tTkfXRssu/uCg/T8Um1sKvB2+wFe50L+/zTvfJcMIY3 00yRO+keX589pNaR501gzXvsodU4FsJsgxYDBG1G3CyPt2Ji3QHw9/UX8YRokZATpKfUb6 I2W0mHKxGCYznSY/euVn3zMkQPTgJdTiQMNSp2S17u3GK+A1CCpQe/mYIXrt8BZ4K7f5iy u3RN+UQDjgB6qD5M10klo05tADgN3BAUp7VVesDWuweqkYOpteiHrYmFY0RDQA== 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 2/4] clk: renesas: r8a7740: Implement ZT/ZTR trace clock on R-Mobile A1 Date: Sat, 28 Mar 2026 00:58:19 +0100 Message-ID: <20260328000031.94645-3-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: qsz9pumjndg8z8ztm568pkzihbkix5cf X-MBO-RS-ID: b94a82c6cb88c768f2f X-Rspamd-Queue-Id: 4fjHhy355vz9tgl Content-Type: text/plain; charset="utf-8" Implement ZT trace bus and ZTR trace clock on the R-Mobile A1. 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 --- drivers/clk/renesas/clk-r8a7740.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/renesas/clk-r8a7740.c b/drivers/clk/renesas/clk-r8= a7740.c index 635d59ead499e..31a79674583e8 100644 --- a/drivers/clk/renesas/clk-r8a7740.c +++ b/drivers/clk/renesas/clk-r8a7740.c @@ -37,6 +37,8 @@ static struct div4_clk div4_clks[] =3D { { "zg", CPG_FRQCRA, 16 }, { "b", CPG_FRQCRA, 8 }, { "m1", CPG_FRQCRA, 4 }, + { "ztr", CPG_FRQCRB, 20 }, + { "zt", CPG_FRQCRB, 16 }, { "hp", CPG_FRQCRB, 4 }, { "hpp", CPG_FRQCRC, 20 }, { "usbp", CPG_FRQCRC, 16 }, --=20 2.53.0 From nobody Thu Apr 2 14:10:40 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 7C26E3C1F; Sat, 28 Mar 2026 00:00:54 +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=1774656056; cv=none; b=L5w8EqWiinJS62VbHqCaqReDmAMKABj+VwJbDT0fVolnvoHo0YLmD4bq9vyoAAZ22zVO+1bEDZsc3WvRn4dgcbMkmW/CKw+dnUrgBj3YBJ+Ka3iZIzmk7ZrjvLUZyyuVaKCTeEzJUQJYP2JlwR9VihqWyZ0dUE5goaB/AOzf4vA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774656056; c=relaxed/simple; bh=wEsjeFWjn65aGJrjBgYuxcGCgOjobTA8eWYeLGz6lwA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZpR5H1UOIX/DpQnVmHY2rb1tB06/Z4qKBgtz3bGjF/0HaG3W6Mij1rAH0nzdAAKkReDQMW5J+1iHFaBUNWs9GO/KzFVutEjfTdE3e27FP240Gz50yqTApQINTMOsPyiW6DdphFKu/uus42gE5eGTJ82LqD0jiKprP2U3+DHcDo8= 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=o1KxClSY; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b=Flu0XLbq; 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="o1KxClSY"; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b="Flu0XLbq" Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.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 4fjHj049zlz9tQq; Sat, 28 Mar 2026 01:00:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1774656052; 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=FA7vRkaUWeTAiIDXNhp4k7I+V+nhQPb2VXXYgIo7eRQ=; b=o1KxClSY1eeSPxPVEvF8mWbox8jOPmegvPLmiGnUYeAkzZaY4E5rC7U6cruffz6PTvXQLP UFgL2TgBDDNbEPiYAS4ucQ6JCcCrh8Tlmn+f79P+U4qlNtyIC91CIjnDf9NqrKhyftMmYf C+97uDOFo5LryFCi92dlguzcndbDN4IxTjnFbc8zY1ruskvEj4AFRnyKb3xzZUtLozd/VY FkjuQYGncIO6rHs1aGgfyoTXTkoVMtWuxx4x80qYZtpxrpdDQqGMSPOGFtNW20zoEkfKZ8 IV8sCYlALmSv3jsxk7IZTPJq9M4MlJX5b3uvSBiaEWuXn+0V+dIoFsvQ7G4sIQ== From: Marek Vasut DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1774656051; 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=FA7vRkaUWeTAiIDXNhp4k7I+V+nhQPb2VXXYgIo7eRQ=; b=Flu0XLbqQyKdp4GJqX0R0GesdtjkM1G7HlgcKzSW2bJIzzKjNp4bwHpju7LtItWoiUbzH/ pdZAfqf+NBCAdF6SwDxGazFLbTo9Lrey+oBchca2BUzwwlRbClRWoKrNIeFVxVxQ55Y+WF nYclNd01Bv/cdKvRTN7NAoVYkSwEu60ZioQlQRAWaZasw3FfhCj1o8uj92yorb35AeoB67 mrut8yO0g3bPeuiEe5Whma8CALLCzxQG1vNsJcS/ViIm++qbcPDkayOxnFzY8i7ViiukP5 9mNej/Ur7FeMZO+3yB18BfRfd5nQtelnBHrkUhIKPXXfs4LgEjO0K12xZCtJCw== 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 3/4] ARM: dts: renesas: r8a7740: Add ZT/ZTR trace clock on R-Mobile A1 Date: Sat, 28 Mar 2026 00:58:20 +0100 Message-ID: <20260328000031.94645-4-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-ID: e99503f44b42a0a902d X-MBO-RS-META: 1s68q53skbzoodft3bacmomj6bgdeui9 Content-Type: text/plain; charset="utf-8" Add ZT trace bus and ZTR trace clock on the R-Mobile A1. 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 | 6 +++--- include/dt-bindings/clock/r8a7740-clock.h | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/renesas/r8a7740.dtsi b/arch/arm/boot/dts/ren= esas/r8a7740.dtsi index d13ab86c3ab47..0a622da79dc1a 100644 --- a/arch/arm/boot/dts/renesas/r8a7740.dtsi +++ b/arch/arm/boot/dts/renesas/r8a7740.dtsi @@ -551,9 +551,9 @@ cpg_clocks: cpg_clocks@e6150000 { clock-output-names =3D "system", "pllc0", "pllc1", "pllc2", "r", "usb24s", - "i", "zg", "b", "m1", "hp", - "hpp", "usbp", "s", "zb", "m3", - "cp"; + "i", "zg", "b", "m1", "ztr", "zt", + "hp", "hpp", "usbp", "s", "zb", + "m3", "cp"; }; =20 /* Variable factor clocks (DIV6) */ diff --git a/include/dt-bindings/clock/r8a7740-clock.h b/include/dt-binding= s/clock/r8a7740-clock.h index 1b3fdb39cc426..8a8816b2ff6ac 100644 --- a/include/dt-bindings/clock/r8a7740-clock.h +++ b/include/dt-bindings/clock/r8a7740-clock.h @@ -24,6 +24,8 @@ #define R8A7740_CLK_ZB 14 #define R8A7740_CLK_M3 15 #define R8A7740_CLK_CP 16 +#define R8A7740_CLK_ZTR 17 +#define R8A7740_CLK_ZT 18 =20 /* MSTP1 */ #define R8A7740_CLK_CEU21 28 --=20 2.53.0 From nobody Thu Apr 2 14:10:40 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