]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: arm: Add label in the coresight components
authorMao Jinlong <quic_jinlmao@quicinc.com>
Sat, 16 Aug 2025 07:25:28 +0000 (00:25 -0700)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Tue, 23 Sep 2025 13:14:13 +0000 (14:14 +0100)
Current name of coresight component's folder consists of prefix of
the device and the id in the device list. When run 'ls' command,
we can get the register address of the device. Take CTI for example,
if we want to set the config for modem CTI, but we can't know which
CTI is modem CTI from all current information.

cti_sys0 -> ../../../devices/platform/soc@0/138f0000.cti/cti_sys0
cti_sys1 -> ../../../devices/platform/soc@0/13900000.cti/cti_sys1

Add label to show hardware context information of each coresight
device. There will be a sysfs node label in each device folder.

cat /sys/bus/coresight/devices/cti_sys0/label

Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Mike Leach <mike.leach@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20250816072529.3716968-2-quic_jinlmao@quicinc.com
15 files changed:
Documentation/devicetree/bindings/arm/arm,coresight-cti.yaml
Documentation/devicetree/bindings/arm/arm,coresight-dummy-sink.yaml
Documentation/devicetree/bindings/arm/arm,coresight-dummy-source.yaml
Documentation/devicetree/bindings/arm/arm,coresight-dynamic-funnel.yaml
Documentation/devicetree/bindings/arm/arm,coresight-dynamic-replicator.yaml
Documentation/devicetree/bindings/arm/arm,coresight-etb10.yaml
Documentation/devicetree/bindings/arm/arm,coresight-etm.yaml
Documentation/devicetree/bindings/arm/arm,coresight-static-funnel.yaml
Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml
Documentation/devicetree/bindings/arm/arm,coresight-tmc.yaml
Documentation/devicetree/bindings/arm/arm,coresight-tpiu.yaml
Documentation/devicetree/bindings/arm/qcom,coresight-ctcu.yaml
Documentation/devicetree/bindings/arm/qcom,coresight-remote-etm.yaml
Documentation/devicetree/bindings/arm/qcom,coresight-tpda.yaml
Documentation/devicetree/bindings/arm/qcom,coresight-tpdm.yaml

index 2d5545a2b49c6cb854cb2a110cf733b88c7fb616..2a91670ccb8cd7bdc7026fa8b1dd1d12a850ce7f 100644 (file)
@@ -98,6 +98,10 @@ properties:
   power-domains:
     maxItems: 1
 
+  label:
+    description:
+      Description of a coresight device.
+
   arm,cti-ctm-id:
     $ref: /schemas/types.yaml#/definitions/uint32
     description:
index 08b89b62c505b94fc8d099b34c8c9bfe7946d87e..ed091dc0c10a949140e9cbe01ac85d01fac843ae 100644 (file)
@@ -39,6 +39,10 @@ properties:
     enum:
       - arm,coresight-dummy-sink
 
+  label:
+    description:
+      Description of a coresight device.
+
   in-ports:
     $ref: /schemas/graph.yaml#/properties/ports
 
index 742dc4e25d3bb27c2f7b33407f229377aec46bd6..78337be42b55f689bc9936e3c94136ef61dbe4a4 100644 (file)
@@ -38,6 +38,10 @@ properties:
     enum:
       - arm,coresight-dummy-source
 
+  label:
+    description:
+      Description of a coresight device.
+
   arm,static-trace-id:
     description: If dummy source needs static id support, use this to set trace id.
     $ref: /schemas/types.yaml#/definitions/uint32
index 44a1041cb0fc958d2eb86219c339bcc76953cf72..b74db15e5f8af2226b817f6af5f533b1bfc74736 100644 (file)
@@ -57,6 +57,10 @@ properties:
   power-domains:
     maxItems: 1
 
+  label:
+    description:
+      Description of a coresight device.
+
   in-ports:
     $ref: /schemas/graph.yaml#/properties/ports
 
index 03792e9bd97a03f9ba14f6882aea040af2bf3afe..17ea936b796fd42bb885e539201276a11e91028c 100644 (file)
@@ -54,6 +54,10 @@ properties:
       - const: apb_pclk
       - const: atclk
 
+  label:
+    description:
+      Description of a coresight device.
+
   power-domains:
     maxItems: 1
 
index 90679788e0bf37e2458d0c18aff65405019ecd51..892df7aca1ac61df86cc03ada66858625ea97ad1 100644 (file)
@@ -54,6 +54,10 @@ properties:
       - const: apb_pclk
       - const: atclk
 
+  label:
+    description:
+      Description of a coresight device.
+
   power-domains:
     maxItems: 1
 
index 01200f67504a53c8c501dff7edfc0dd9a3a24b7d..71f2e1ed27e5b27001e4ed335ca28fe8bd352f8b 100644 (file)
@@ -85,6 +85,10 @@ properties:
       CPU powers down the coresight component also powers down and loses its
       context.
 
+  label:
+    description:
+      Description of a coresight device.
+
   arm,cp14:
     type: boolean
     description:
index cc8c3baa79b457280b3f7907f888dfee03ec8192..9598a3d0a95b20e6272d4d72329a081101cca524 100644 (file)
@@ -30,6 +30,10 @@ properties:
   power-domains:
     maxItems: 1
 
+  label:
+    description:
+      Description of a coresight device.
+
   in-ports:
     $ref: /schemas/graph.yaml#/properties/ports
 
index 0c1017affbad2f03892b250ad864d9a5dc8d02f1..b81851b26c7495047333b0ee0b5e690c0b153a61 100644 (file)
@@ -43,6 +43,10 @@ properties:
           - const: dbg_trc
           - const: dbg_apb
 
+  label:
+    description:
+      Description of a coresight device.
+
   in-ports:
     $ref: /schemas/graph.yaml#/properties/ports
     additionalProperties: false
index 4787d7c6bac2a1ccb9710aa1d63cfc368604aff6..96dd5b5f771a39138df9adde0c9c9a6f5583d9da 100644 (file)
@@ -55,6 +55,10 @@ properties:
       - const: apb_pclk
       - const: atclk
 
+  label:
+    description:
+      Description of a coresight device.
+
   iommus:
     maxItems: 1
 
index 61a0cdc27745fc0f5c718da1fee434c9c5c6d6df..a207f6899e67512a67830d5c8761cf6cb6bc1df4 100644 (file)
@@ -54,6 +54,10 @@ properties:
       - const: apb_pclk
       - const: atclk
 
+  label:
+    description:
+      Description of a coresight device.
+
   power-domains:
     maxItems: 1
 
index 843b52eaf8727c5a873e1c145b9eac2d68bea2af..c969c16c21ef77900a00123fb1a96d3933c784e1 100644 (file)
@@ -39,6 +39,10 @@ properties:
     items:
       - const: apb
 
+  label:
+    description:
+      Description of a coresight device.
+
   in-ports:
     $ref: /schemas/graph.yaml#/properties/ports
 
index 4fd5752978cd0354110b03f508e0d014d004b66d..ffe613efeabe84b6a68f929074e36f2d6b53cc81 100644 (file)
@@ -20,6 +20,10 @@ properties:
   compatible:
     const: qcom,coresight-remote-etm
 
+  label:
+    description:
+      Description of a coresight device.
+
   out-ports:
     $ref: /schemas/graph.yaml#/properties/ports
     additionalProperties: false
index 5ed40f21b8eb5d77a9d2f2fe912cee2fa569fd1e..a48c9ac3eaa9242d6ac239a045a7c1be345aa3b1 100644 (file)
@@ -64,6 +64,10 @@ properties:
     items:
       - const: apb_pclk
 
+  label:
+    description:
+      Description of a coresight device.
+
   in-ports:
     description: |
       Input connections from TPDM to TPDA
index 07d21a3617f5b2cda50b2665bd4b6732863e0e40..4edc47483851f589bcd3489b58b7e48f2c6130ad 100644 (file)
@@ -76,6 +76,10 @@ properties:
     minimum: 0
     maximum: 32
 
+  label:
+    description:
+      Description of a coresight device.
+
   clocks:
     maxItems: 1