]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
dt-bindings: arm: qcom,coresight-static-replicator: Add property for source filtering
authorTao Zhang <quic_taozha@quicinc.com>
Fri, 13 Dec 2024 10:07:28 +0000 (18:07 +0800)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Fri, 13 Dec 2024 10:25:14 +0000 (10:25 +0000)
The is some "magic" hard coded filtering in the replicators,
which only passes through trace from a particular "source". Add
a new property "filter-source" to label a phandle to the coresight
trace source device matching the hard coded filtering for the port.

Signed-off-by: Tao Zhang <quic_taozha@quicinc.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20241213100731.25914-2-quic_taozha@quicinc.com
Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml

index 1892a091ac358a7b5432e6c9cfc17f835d09ca12..a6f793ea03b6c193fc0ff72a45e0249a63a2ba3c 100644 (file)
@@ -45,7 +45,22 @@ properties:
     patternProperties:
       '^port@[01]$':
         description: Output connections to CoreSight Trace bus
-        $ref: /schemas/graph.yaml#/properties/port
+        $ref: /schemas/graph.yaml#/$defs/port-base
+        unevaluatedProperties: false
+
+        properties:
+          endpoint:
+            $ref: /schemas/graph.yaml#/$defs/endpoint-base
+            unevaluatedProperties: false
+
+            properties:
+              filter-source:
+                $ref: /schemas/types.yaml#/definitions/phandle
+                description:
+                  phandle to the coresight trace source device matching the
+                  hard coded filtering for this port
+
+              remote-endpoint: true
 
 required:
   - compatible
@@ -72,6 +87,7 @@ examples:
                 reg = <0>;
                 replicator_out_port0: endpoint {
                     remote-endpoint = <&etb_in_port>;
+                    filter-source = <&tpdm_video>;
                 };
             };
 
@@ -79,6 +95,7 @@ examples:
                 reg = <1>;
                 replicator_out_port1: endpoint {
                     remote-endpoint = <&tpiu_in_port>;
+                    filter-source = <&tpdm_mdss>;
                 };
             };
         };