Linux-ARM-MSM Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH 0/2] arm64: dts: msm8916: Conform to updated PSCI bindings
@ 2020-03-26 10:39 Ulf Hansson
  2020-03-26 10:39 ` [PATCH 1/2] arm64: dts: msm8916: Conform to the domain-idle-state binding Ulf Hansson
  2020-03-26 10:39 ` [PATCH 2/2] arm64: dts: msm8916: Conform to the nodename pattern PSCI subnodes Ulf Hansson
  0 siblings, 2 replies; 3+ messages in thread
From: Ulf Hansson @ 2020-03-26 10:39 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson
  Cc: Rob Herring, Ulf Hansson, linux-arm-msm, linux-kernel, devicetree

The PSCI DT binding was recently updated to fix some errors and so was also the
related domain-idle-state DT binding. Therefore, this series updates the
msm8916 to conform to these updates.

Ulf Hansson (2):
  arm64: dts: msm8916: Conform to the domain-idle-state binding
  arm64: dts: msm8916: Conform to the nodename pattern PSCI subnodes

 arch/arm64/boot/dts/qcom/msm8916.dtsi | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

-- 
2.20.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] arm64: dts: msm8916: Conform to the domain-idle-state binding
  2020-03-26 10:39 [PATCH 0/2] arm64: dts: msm8916: Conform to updated PSCI bindings Ulf Hansson
@ 2020-03-26 10:39 ` Ulf Hansson
  2020-03-26 10:39 ` [PATCH 2/2] arm64: dts: msm8916: Conform to the nodename pattern PSCI subnodes Ulf Hansson
  1 sibling, 0 replies; 3+ messages in thread
From: Ulf Hansson @ 2020-03-26 10:39 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson
  Cc: Rob Herring, Ulf Hansson, linux-arm-msm, linux-kernel, devicetree

As the domain-idle-state DT binding got converted to the json-schema, a few
minor changes were introduced. For example, the states needs to be
specified within a separate node, named domain-idle-states. Let's conform
to the updated binding.

This also silence the below errors for msm8916 from of 'make dtbs_check':
idle-states: cluster-retention:compatible:0: 'arm,idle-state' was expected
idle-states: cluster-gdhs:compatible:0: 'arm,idle-state' was expected

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
---
 arch/arm64/boot/dts/qcom/msm8916.dtsi | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi
index a88a15f2352b..e7ff8701eed3 100644
--- a/arch/arm64/boot/dts/qcom/msm8916.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi
@@ -165,6 +165,9 @@
 				min-residency-us = <2000>;
 				local-timer-stop;
 			};
+		};
+
+		domain-idle-states {
 
 			CLUSTER_RET: cluster-retention {
 				compatible = "domain-idle-state";
-- 
2.20.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 2/2] arm64: dts: msm8916: Conform to the nodename pattern PSCI subnodes
  2020-03-26 10:39 [PATCH 0/2] arm64: dts: msm8916: Conform to updated PSCI bindings Ulf Hansson
  2020-03-26 10:39 ` [PATCH 1/2] arm64: dts: msm8916: Conform to the domain-idle-state binding Ulf Hansson
@ 2020-03-26 10:39 ` Ulf Hansson
  1 sibling, 0 replies; 3+ messages in thread
From: Ulf Hansson @ 2020-03-26 10:39 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson
  Cc: Rob Herring, Ulf Hansson, linux-arm-msm, linux-kernel, devicetree

Subnodes for PSCI should start with "power-domain-", so let's adopt to
this.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
---
 arch/arm64/boot/dts/qcom/msm8916.dtsi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi
index e7ff8701eed3..2fdc6aa61b83 100644
--- a/arch/arm64/boot/dts/qcom/msm8916.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi
@@ -191,31 +191,31 @@
 		compatible = "arm,psci-1.0";
 		method = "smc";
 
-		CPU_PD0: cpu-pd0 {
+		CPU_PD0: power-domain-cpu0 {
 			#power-domain-cells = <0>;
 			power-domains = <&CLUSTER_PD>;
 			domain-idle-states = <&CPU_SLEEP_0>;
 		};
 
-		CPU_PD1: cpu-pd1 {
+		CPU_PD1: power-domain-cpu1 {
 			#power-domain-cells = <0>;
 			power-domains = <&CLUSTER_PD>;
 			domain-idle-states = <&CPU_SLEEP_0>;
 		};
 
-		CPU_PD2: cpu-pd2 {
+		CPU_PD2: power-domain-cpu2 {
 			#power-domain-cells = <0>;
 			power-domains = <&CLUSTER_PD>;
 			domain-idle-states = <&CPU_SLEEP_0>;
 		};
 
-		CPU_PD3: cpu-pd3 {
+		CPU_PD3: power-domain-cpu3 {
 			#power-domain-cells = <0>;
 			power-domains = <&CLUSTER_PD>;
 			domain-idle-states = <&CPU_SLEEP_0>;
 		};
 
-		CLUSTER_PD: cluster-pd {
+		CLUSTER_PD: power-domain-cluster {
 			#power-domain-cells = <0>;
 			domain-idle-states = <&CLUSTER_RET>, <&CLUSTER_PWRDN>;
 		};
-- 
2.20.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-26 10:39 [PATCH 0/2] arm64: dts: msm8916: Conform to updated PSCI bindings Ulf Hansson
2020-03-26 10:39 ` [PATCH 1/2] arm64: dts: msm8916: Conform to the domain-idle-state binding Ulf Hansson
2020-03-26 10:39 ` [PATCH 2/2] arm64: dts: msm8916: Conform to the nodename pattern PSCI subnodes Ulf Hansson

Linux-ARM-MSM Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-arm-msm/0 linux-arm-msm/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-arm-msm linux-arm-msm/ https://lore.kernel.org/linux-arm-msm \
		linux-arm-msm@vger.kernel.org
	public-inbox-index linux-arm-msm

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-arm-msm


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git