]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: clock: renesas,cpg-clocks: Document ZT/ZTR trace clock on R-Mobile A1
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 22 Apr 2026 23:36:27 +0000 (01:36 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 27 Apr 2026 09:46:44 +0000 (11:46 +0200)
Document the ZT trace bus and ZTR trace clocks on R-Mobile A1.  These
clocks supply the coresight tracing modules, PTM, TPIU, ETB and
replicator.  Without these clocks, coresight tracing can not be
operated.  While this does change the ABI, it does so by extending the
existing clock-output-names, therefore if 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.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20260422233744.149872-2-marek.vasut+renesas@mailbox.org
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Documentation/devicetree/bindings/clock/renesas,cpg-clocks.yaml
include/dt-bindings/clock/r8a7740-clock.h

index a0e09b7002f071b6bfde21d9f467ed73f57a8ffd..925ed35d6658a8abc459eafa07b717c8039f3da9 100644 (file)
@@ -41,7 +41,7 @@ properties:
 
   clock-output-names:
     minItems: 3
-    maxItems: 17
+    maxItems: 19
 
   renesas,mode:
     description: Board-specific settings of the MD_CK* bits on R-Mobile A1
@@ -123,6 +123,8 @@ allOf:
             - const: zb
             - const: m3
             - const: cp
+            - const: ztr
+            - const: zt
 
       required:
         - renesas,mode
@@ -240,6 +242,6 @@ examples:
             #clock-cells = <1>;
             clock-output-names = "system", "pllc0", "pllc1", "pllc2", "r",
                                  "usb24s", "i", "zg", "b", "m1", "hp", "hpp",
-                                 "usbp", "s", "zb", "m3", "cp";
+                                 "usbp", "s", "zb", "m3", "cp", "ztr", "zt";
             renesas,mode = <0x05>;
     };
index 1b3fdb39cc426f97c37601ae3c2bc374d36891c4..8a8816b2ff6aca745c8d5f28f466f69c348fc82d 100644 (file)
@@ -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
 
 /* MSTP1 */
 #define R8A7740_CLK_CEU21      28