lkml.org 
[lkml]   [2023]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
Subject[PATCH 02/53] dt-bindings: interconnect: qcom,bcm-voter: Add qcom,bcm-voter-idx
In order to (at least partially) untangle the global BCM voter lookup
(as again, they are shared throughout the entire system and not bound to
individual buses/providers), introduce a new required property to assign
a unique identifier to each BCM voter.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
.../devicetree/bindings/interconnect/qcom,bcm-voter.yaml | 10 ++++++++++
1 file changed, 10 insertions(+)

diff --git a/Documentation/devicetree/bindings/interconnect/qcom,bcm-voter.yaml b/Documentation/devicetree/bindings/interconnect/qcom,bcm-voter.yaml
index eec987640b37..09321c1918bf 100644
--- a/Documentation/devicetree/bindings/interconnect/qcom,bcm-voter.yaml
+++ b/Documentation/devicetree/bindings/interconnect/qcom,bcm-voter.yaml
@@ -38,8 +38,14 @@ properties:

$ref: /schemas/types.yaml#/definitions/uint32

+ qcom,bcm-voter-idx:
+ $ref: /schemas/types.yaml#/definitions/uint32-array
+ description:
+ A globally unique predefined discrimnator, identifying each BCM voter.
+
required:
- compatible
+ - qcom,bcm-voter-idx

additionalProperties: false

@@ -48,8 +54,11 @@ examples:
# as defined in Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml
- |

+ #include <dt-bindings/interconnect/qcom,icc.h>
+
apps_bcm_voter: bcm-voter {
compatible = "qcom,bcm-voter";
+ qcom,bcm-voter-idx = <ICC_BCM_VOTER_APPS>;
};

# Example 2: disp bcm_voter on SDM845 should be defined inside &disp_rsc node
@@ -61,5 +70,6 @@ examples:
disp_bcm_voter: bcm-voter {
compatible = "qcom,bcm-voter";
qcom,tcs-wait = <QCOM_ICC_TAG_AMC>;
+ qcom,bcm-voter-idx = <ICC_BCM_VOTER_DISP>;
};
...
--
2.41.0

\
 
 \ /
  Last update: 2023-07-11 14:19    [W:1.183 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site