Skip to content

Commit 1ad38ef

Browse files
Mao JinlongSuzuki K Poulose
authored andcommitted
dt-bindings: arm: Add label in the coresight components
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 <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Mike Leach <[email protected]> Signed-off-by: Suzuki K Poulose <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 28a272d commit 1ad38ef

15 files changed

+60
-0
lines changed

Documentation/devicetree/bindings/arm/arm,coresight-cti.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ properties:
9898
power-domains:
9999
maxItems: 1
100100

101+
label:
102+
description:
103+
Description of a coresight device.
104+
101105
arm,cti-ctm-id:
102106
$ref: /schemas/types.yaml#/definitions/uint32
103107
description:

Documentation/devicetree/bindings/arm/arm,coresight-dummy-sink.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ properties:
3939
enum:
4040
- arm,coresight-dummy-sink
4141

42+
label:
43+
description:
44+
Description of a coresight device.
45+
4246
in-ports:
4347
$ref: /schemas/graph.yaml#/properties/ports
4448

Documentation/devicetree/bindings/arm/arm,coresight-dummy-source.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ properties:
3838
enum:
3939
- arm,coresight-dummy-source
4040

41+
label:
42+
description:
43+
Description of a coresight device.
44+
4145
arm,static-trace-id:
4246
description: If dummy source needs static id support, use this to set trace id.
4347
$ref: /schemas/types.yaml#/definitions/uint32

Documentation/devicetree/bindings/arm/arm,coresight-dynamic-funnel.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ properties:
5757
power-domains:
5858
maxItems: 1
5959

60+
label:
61+
description:
62+
Description of a coresight device.
63+
6064
in-ports:
6165
$ref: /schemas/graph.yaml#/properties/ports
6266

Documentation/devicetree/bindings/arm/arm,coresight-dynamic-replicator.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ properties:
5454
- const: apb_pclk
5555
- const: atclk
5656

57+
label:
58+
description:
59+
Description of a coresight device.
60+
5761
power-domains:
5862
maxItems: 1
5963

Documentation/devicetree/bindings/arm/arm,coresight-etb10.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ properties:
5454
- const: apb_pclk
5555
- const: atclk
5656

57+
label:
58+
description:
59+
Description of a coresight device.
60+
5761
power-domains:
5862
maxItems: 1
5963

Documentation/devicetree/bindings/arm/arm,coresight-etm.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ properties:
8585
CPU powers down the coresight component also powers down and loses its
8686
context.
8787

88+
label:
89+
description:
90+
Description of a coresight device.
91+
8892
arm,cp14:
8993
type: boolean
9094
description:

Documentation/devicetree/bindings/arm/arm,coresight-static-funnel.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ properties:
3030
power-domains:
3131
maxItems: 1
3232

33+
label:
34+
description:
35+
Description of a coresight device.
36+
3337
in-ports:
3438
$ref: /schemas/graph.yaml#/properties/ports
3539

Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ properties:
4343
- const: dbg_trc
4444
- const: dbg_apb
4545

46+
label:
47+
description:
48+
Description of a coresight device.
49+
4650
in-ports:
4751
$ref: /schemas/graph.yaml#/properties/ports
4852
additionalProperties: false

Documentation/devicetree/bindings/arm/arm,coresight-tmc.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ properties:
5555
- const: apb_pclk
5656
- const: atclk
5757

58+
label:
59+
description:
60+
Description of a coresight device.
61+
5862
iommus:
5963
maxItems: 1
6064

0 commit comments

Comments
 (0)