From 1af492361012553eb71a19d850eb5815831df5de Mon Sep 17 00:00:00 2001 From: Maulik Shah Date: Tue, 18 Jun 2024 10:51:34 +0530 Subject: [PATCH 1/2] dt-bindings: Document optional properties for cluster device Document optional properties. Change-Id: If6ad8199f3d6ac7f35bd3550b997e97bd8612799 Signed-off-by: Maulik Shah --- bindings/arm/msm/qcom,lpm-cluster-dev.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/bindings/arm/msm/qcom,lpm-cluster-dev.yaml b/bindings/arm/msm/qcom,lpm-cluster-dev.yaml index 4bf99b7c..a4f121a6 100644 --- a/bindings/arm/msm/qcom,lpm-cluster-dev.yaml +++ b/bindings/arm/msm/qcom,lpm-cluster-dev.yaml @@ -6,6 +6,9 @@ $schema: http://devicetree.org/meta-schemas/core.yaml# title: Qualcomm Technologies, Inc. Low Power Management Cluster Device +maintainers: + - Maulik Shah + description: | The application processor can do a variety of cluster level low power modes. It does so by predicting the low power mode based on latency and residency @@ -21,6 +24,21 @@ properties: power-domains: maxItems: 1 + qcom,pred-prem-cnt: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Number of premature exits cluster device considers for prediction. + + qcom,sample-invalid-time: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Time after which past samples are invalidated. + + qcom,use-cluster-bias-timer: + type: boolean + description: + Used to determine if bias timer to be setup for cluster + required: - compatible - power-domains From dd6fce7356a2e2b723112a7aff41bcedc3e64b3f Mon Sep 17 00:00:00 2001 From: Maulik Shah Date: Tue, 18 Jun 2024 10:52:11 +0530 Subject: [PATCH 2/2] ARM: dts: msm: Add optional cluster device properties for sun Add properties like premature count, sample invalid time and whether to use bias timer for cluster device. Change-Id: I487e420ce422766b18d6c86632c521215b0ed484 Signed-off-by: Maulik Shah --- qcom/sun.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qcom/sun.dtsi b/qcom/sun.dtsi index 9e9ccb43..35a6f1ee 100644 --- a/qcom/sun.dtsi +++ b/qcom/sun.dtsi @@ -1435,16 +1435,23 @@ cluster-device0 { compatible = "qcom,lpm-cluster-dev"; power-domains = <&CLUSTER_PD0>; + qcom,pred-prem-cnt = <2>; + qcom,sample-invalid-time = <40000000>; }; cluster-device1 { compatible = "qcom,lpm-cluster-dev"; power-domains = <&CLUSTER_PD1>; + qcom,pred-prem-cnt = <2>; + qcom,sample-invalid-time = <40000000>; + qcom,use-cluster-bias-timer; }; cluster-device2 { compatible = "qcom,lpm-cluster-dev"; power-domains = <&CLUSTER_PD2>; + qcom,pred-prem-cnt = <2>; + qcom,sample-invalid-time = <40000000>; }; qcom,memshare {