mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Konrad Dybcio <konradybcio@kernel.org>
To: Bjorn Andersson <andersson@kernel.org>,
	 Konrad Dybcio <konradybcio@kernel.org>,
	Rob Herring <robh@kernel.org>,
	 Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>,
	cros-qcom-dts-watchers@chromium.org,
	 Marc Gonzalez <mgonzalez@freebox.fr>,
	Dmitry Baryshkov <lumag@kernel.org>,
	 Arnaud Vrac <avrac@freebox.fr>
Cc: Marijn Suijten <marijn.suijten@somainline.org>,
	 linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	 linux-kernel@vger.kernel.org,
	 Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Subject: [PATCH 1/8] dt-bindings: soc: qcom,rpmh-rsc: Limit power-domains requirement
Date: Tue, 18 Mar 2025 19:35:14 +0100	[thread overview]
Message-ID: <20250318-topic-more_dt_bindings_fixes-v1-1-cb36882ea9cc@oss.qualcomm.com> (raw)
In-Reply-To: <20250318-topic-more_dt_bindings_fixes-v1-0-cb36882ea9cc@oss.qualcomm.com>

From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Certain platforms (such as Chrome SDM845 and SC7180 with a TF-A running
as secure firmware) do not have a OSI-mode capable PSCI implementation.

That in turn means the PSCI-associated power domain which represents the
system's power state can't provide enough feedback to the RSC device.

Don't require power-domains on platforms where this may be the case.

Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
---
 .../bindings/soc/qcom/qcom,rpmh-rsc.yaml           | 24 ++++++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml
index af632d0e0355c56748ecac24f528dc2eec7d1193..f8b7428df6bc3caef2917b300ce47a91bb3f0fd0 100644
--- a/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml
+++ b/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml
@@ -44,7 +44,13 @@ description: |
 
 properties:
   compatible:
-    const: qcom,rpmh-rsc
+    oneOf:
+      - items:
+        - enum:
+          - qcom,sc7180-rpmh-apps-rsc
+          - qcom,sdm845-rpmh-apps-rsc
+        - const: qcom,rpmh-rsc
+      - const: qcom,rpmh-rsc
 
   interrupts:
     minItems: 1
@@ -124,7 +130,21 @@ required:
   - qcom,tcs-offset
   - reg
   - reg-names
-  - power-domains
+
+allOf:
+  # Some platforms may lack a OSI-mode PSCI implementation, which implies the
+  # system power domain can't provide feedback about entering power collapse
+  - if:
+      not:
+        properties:
+          compatible:
+            contains:
+              enum:
+                - qcom,sc7180-rpmh-apps-rsc
+                - qcom,sdm845-rpmh-apps-rsc
+    then:
+      required:
+        - power-domains
 
 additionalProperties: false
 

-- 
2.48.1


  reply	other threads:[~2025-03-18 18:35 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-18 18:35 [PATCH 0/8] More more dt-bindings fixes for arm64/qcom Konrad Dybcio
2025-03-18 18:35 ` Konrad Dybcio [this message]
2025-03-18 19:20   ` [PATCH 1/8] dt-bindings: soc: qcom,rpmh-rsc: Limit power-domains requirement Rob Herring (Arm)
2025-03-18 18:35 ` [PATCH 2/8] arm64: dts: qcom: sc7180: Add specific APPS RSC compatible Konrad Dybcio
2025-03-18 21:30   ` Dmitry Baryshkov
2025-03-19 14:14     ` Konrad Dybcio
2025-03-19 17:25       ` Dmitry Baryshkov
2025-03-19 17:28         ` Konrad Dybcio
2025-03-19 18:51           ` Dmitry Baryshkov
2025-03-18 18:35 ` [PATCH 3/8] arm64: dts: qcom: sdm845: " Konrad Dybcio
2025-03-18 21:32   ` Dmitry Baryshkov
2025-03-19 18:52   ` Dmitry Baryshkov
2025-03-18 18:35 ` [PATCH 4/8] arm64: dts: qcom: msm8998: Remove mdss_hdmi_phy phandle argument Konrad Dybcio
2025-03-18 21:32   ` Dmitry Baryshkov
2025-03-18 18:35 ` [PATCH 5/8] arm64: dts: qcom: qcs615: Remove disallowed property from AOSS_QMP node Konrad Dybcio
2025-03-18 21:32   ` Dmitry Baryshkov
2025-03-18 18:35 ` [PATCH 6/8] arm64: dts: qcom: msm8998-fxtec: Add QUSB2PHY VDD supply Konrad Dybcio
2025-03-18 21:33   ` Dmitry Baryshkov
2025-03-18 18:35 ` [PATCH 7/8] arm64: dts: qcom: msm8998-mtp: " Konrad Dybcio
2025-03-18 21:33   ` Dmitry Baryshkov
2025-03-18 18:35 ` [PATCH 8/8] arm64: dts: qcom: msm8998-yoshino: " Konrad Dybcio
2025-03-18 21:33   ` Dmitry Baryshkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250318-topic-more_dt_bindings_fixes-v1-1-cb36882ea9cc@oss.qualcomm.com \
    --to=konradybcio@kernel.org \
    --cc=andersson@kernel.org \
    --cc=avrac@freebox.fr \
    --cc=conor+dt@kernel.org \
    --cc=cros-qcom-dts-watchers@chromium.org \
    --cc=devicetree@vger.kernel.org \
    --cc=konrad.dybcio@oss.qualcomm.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lumag@kernel.org \
    --cc=marijn.suijten@somainline.org \
    --cc=mgonzalez@freebox.fr \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®