Skip to contentSkip to conversation

Small style fixes in msm8974.dtsi

PATCH Applied Luca Weiss 3 participants 9 messages Jun 27, 2023 – Oct 22, 2023

Subsystems (3)
lore
Share & tools
lore

Luca Weiss

author
#0 lore raw

cover Small style fixes in msm8974.dtsi

While making sure the nodes are sorted correctly, I also noticed that some lines are wrongly indented. Fix both.

---
Luca Weiss (2):
ARM: dts: qcom: msm8974: replace incorrect indentation in interconnect
ARM: dts: qcom: msm8974: sort nodes by reg

 arch/arm/boot/dts/qcom/qcom-msm8974.dtsi | 80 ++++++++++++++++----------------
 1 file changed, 40 insertions(+), 40 deletions(-)

---
base-commit: 53cdf865f90ba922a854c65ed05b519f9d728424
change-id: 20230627-msm8974-sort-e34b28f10a34

Best regards,

Signature · 1 line
Luca Weiss <[email protected]>
author
#1 lore raw

PATCH 1/2 ARM: dts: qcom: msm8974: replace incorrect indentation in interconnect

The clocks definition in the interconnect nodes should use tabs (+ 1 space) for indentation instead of 9 spaces. Fix that.

---
 arch/arm/boot/dts/qcom/qcom-msm8974.dtsi | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
arch/arm/boot/dts/qcom/qcom-msm8974.dtsi +6 -6
index aeca504918a0..c6475837eda3 100644
@@ -1075,7 +1075,7 @@ bimc: interconnect@fc380000 {
 			#interconnect-cells = <1>;
 			clock-names = "bus", "bus_a";
 			clocks = <&rpmcc RPM_SMD_BIMC_CLK>,
-			         <&rpmcc RPM_SMD_BIMC_A_CLK>;
+				 <&rpmcc RPM_SMD_BIMC_A_CLK>;
 		};
 
 		snoc: interconnect@fc460000 {
@@ -1084,7 +1084,7 @@ snoc: interconnect@fc460000 {
 			#interconnect-cells = <1>;
 			clock-names = "bus", "bus_a";
 			clocks = <&rpmcc RPM_SMD_SNOC_CLK>,
-			         <&rpmcc RPM_SMD_SNOC_A_CLK>;
+				 <&rpmcc RPM_SMD_SNOC_A_CLK>;
 		};
 
 		pnoc: interconnect@fc468000 {
@@ -1093,7 +1093,7 @@ pnoc: interconnect@fc468000 {
 			#interconnect-cells = <1>;
 			clock-names = "bus", "bus_a";
 			clocks = <&rpmcc RPM_SMD_PNOC_CLK>,
-			         <&rpmcc RPM_SMD_PNOC_A_CLK>;
+				 <&rpmcc RPM_SMD_PNOC_A_CLK>;
 		};
 
 		ocmemnoc: interconnect@fc470000 {
@@ -1102,7 +1102,7 @@ ocmemnoc: interconnect@fc470000 {
 			#interconnect-cells = <1>;
 			clock-names = "bus", "bus_a";
 			clocks = <&rpmcc RPM_SMD_OCMEMGX_CLK>,
-			         <&rpmcc RPM_SMD_OCMEMGX_A_CLK>;
+				 <&rpmcc RPM_SMD_OCMEMGX_A_CLK>;
 		};
 
 		mmssnoc: interconnect@fc478000 {
@@ -1111,7 +1111,7 @@ mmssnoc: interconnect@fc478000 {
 			#interconnect-cells = <1>;
 			clock-names = "bus", "bus_a";
 			clocks = <&mmcc MMSS_S0_AXI_CLK>,
-			         <&mmcc MMSS_S0_AXI_CLK>;
+				 <&mmcc MMSS_S0_AXI_CLK>;
 		};
 
 		cnoc: interconnect@fc480000 {
@@ -1120,7 +1120,7 @@ cnoc: interconnect@fc480000 {
 			#interconnect-cells = <1>;
 			clock-names = "bus", "bus_a";
 			clocks = <&rpmcc RPM_SMD_CNOC_CLK>,
-			         <&rpmcc RPM_SMD_CNOC_A_CLK>;
+				 <&rpmcc RPM_SMD_CNOC_A_CLK>;
 		};
 
 		tsens: thermal-sensor@fc4a9000 {
Signature · 1 line
2.41.0
Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] ARM: dts: qcom: msm8974: replace incorrect indentation in interconnect

Quoted 5 lines · Luca Weiss

The clocks definition in the interconnect nodes should use tabs (+ 1 space) for indentation instead of 9 spaces. Fix that.

---

Konrad

Quoted 62 lines
 arch/arm/boot/dts/qcom/qcom-msm8974.dtsi | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
arch/arm/boot/dts/qcom/qcom-msm8974.dtsi +6 -6
index aeca504918a0..c6475837eda3 100644
@@ -1075,7 +1075,7 @@ bimc: interconnect@fc380000 {
 			#interconnect-cells = <1>;
 			clock-names = "bus", "bus_a";
 			clocks = <&rpmcc RPM_SMD_BIMC_CLK>,
-			         <&rpmcc RPM_SMD_BIMC_A_CLK>;
+				 <&rpmcc RPM_SMD_BIMC_A_CLK>;
 		};
 
 		snoc: interconnect@fc460000 {
@@ -1084,7 +1084,7 @@ snoc: interconnect@fc460000 {
 			#interconnect-cells = <1>;
 			clock-names = "bus", "bus_a";
 			clocks = <&rpmcc RPM_SMD_SNOC_CLK>,
-			         <&rpmcc RPM_SMD_SNOC_A_CLK>;
+				 <&rpmcc RPM_SMD_SNOC_A_CLK>;
 		};
 
 		pnoc: interconnect@fc468000 {
@@ -1093,7 +1093,7 @@ pnoc: interconnect@fc468000 {
 			#interconnect-cells = <1>;
 			clock-names = "bus", "bus_a";
 			clocks = <&rpmcc RPM_SMD_PNOC_CLK>,
-			         <&rpmcc RPM_SMD_PNOC_A_CLK>;
+				 <&rpmcc RPM_SMD_PNOC_A_CLK>;
 		};
 
 		ocmemnoc: interconnect@fc470000 {
@@ -1102,7 +1102,7 @@ ocmemnoc: interconnect@fc470000 {
 			#interconnect-cells = <1>;
 			clock-names = "bus", "bus_a";
 			clocks = <&rpmcc RPM_SMD_OCMEMGX_CLK>,
-			         <&rpmcc RPM_SMD_OCMEMGX_A_CLK>;
+				 <&rpmcc RPM_SMD_OCMEMGX_A_CLK>;
 		};
 
 		mmssnoc: interconnect@fc478000 {
@@ -1111,7 +1111,7 @@ mmssnoc: interconnect@fc478000 {
 			#interconnect-cells = <1>;
 			clock-names = "bus", "bus_a";
 			clocks = <&mmcc MMSS_S0_AXI_CLK>,
-			         <&mmcc MMSS_S0_AXI_CLK>;
+				 <&mmcc MMSS_S0_AXI_CLK>;
 		};
 
 		cnoc: interconnect@fc480000 {
@@ -1120,7 +1120,7 @@ cnoc: interconnect@fc480000 {
 			#interconnect-cells = <1>;
 			clock-names = "bus", "bus_a";
 			clocks = <&rpmcc RPM_SMD_CNOC_CLK>,
-			         <&rpmcc RPM_SMD_CNOC_A_CLK>;
+				 <&rpmcc RPM_SMD_CNOC_A_CLK>;
 		};
 
 		tsens: thermal-sensor@fc4a9000 {
author
#3 lore raw

PATCH 2/2 ARM: dts: qcom: msm8974: sort nodes by reg

In reply to Luca Weiss

Some nodes weren't sorted by reg, so fix that now. Now all nodes inside /soc should be sorted correctly.

---
 arch/arm/boot/dts/qcom/qcom-msm8974.dtsi | 70 ++++++++++++++++----------------
 1 file changed, 35 insertions(+), 35 deletions(-)
arch/arm/boot/dts/qcom/qcom-msm8974.dtsi +35 -35
index c6475837eda3..9aa8f9a273a8 100644
@@ -334,6 +334,12 @@ apcs: syscon@f9011000 {
 			reg = <0xf9011000 0x1000>;
 		};
 
+		saw_l2: power-controller@f9012000 {
+			compatible = "qcom,saw2";
+			reg = <0xf9012000 0x1000>;
+			regulator;
+		};
+
 		timer@f9020000 {
 			#address-cells = <1>;
 			#size-cells = <1>;
@@ -393,52 +399,46 @@ frame@f9028000 {
 			};
 		};
 
-		saw0: power-controller@f9089000 {
-			compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
-			reg = <0xf9089000 0x1000>, <0xf9009000 0x1000>;
-		};
-
-		saw1: power-controller@f9099000 {
-			compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
-			reg = <0xf9099000 0x1000>, <0xf9009000 0x1000>;
-		};
-
-		saw2: power-controller@f90a9000 {
-			compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
-			reg = <0xf90a9000 0x1000>, <0xf9009000 0x1000>;
-		};
-
-		saw3: power-controller@f90b9000 {
-			compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
-			reg = <0xf90b9000 0x1000>, <0xf9009000 0x1000>;
-		};
-
-		saw_l2: power-controller@f9012000 {
-			compatible = "qcom,saw2";
-			reg = <0xf9012000 0x1000>;
-			regulator;
-		};
-
 		acc0: power-manager@f9088000 {
 			compatible = "qcom,kpss-acc-v2";
 			reg = <0xf9088000 0x1000>, <0xf9008000 0x1000>;
 		};
 
+		saw0: power-controller@f9089000 {
+			compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
+			reg = <0xf9089000 0x1000>, <0xf9009000 0x1000>;
+		};
+
 		acc1: power-manager@f9098000 {
 			compatible = "qcom,kpss-acc-v2";
 			reg = <0xf9098000 0x1000>, <0xf9008000 0x1000>;
 		};
 
+		saw1: power-controller@f9099000 {
+			compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
+			reg = <0xf9099000 0x1000>, <0xf9009000 0x1000>;
+		};
+
 		acc2: power-manager@f90a8000 {
 			compatible = "qcom,kpss-acc-v2";
 			reg = <0xf90a8000 0x1000>, <0xf9008000 0x1000>;
 		};
 
+		saw2: power-controller@f90a9000 {
+			compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
+			reg = <0xf90a9000 0x1000>, <0xf9009000 0x1000>;
+		};
+
 		acc3: power-manager@f90b8000 {
 			compatible = "qcom,kpss-acc-v2";
 			reg = <0xf90b8000 0x1000>, <0xf9008000 0x1000>;
 		};
 
+		saw3: power-controller@f90b9000 {
+			compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
+			reg = <0xf90b9000 0x1000>, <0xf9009000 0x1000>;
+		};
+
 		sdhc_1: mmc@f9824900 {
 			compatible = "qcom,msm8974-sdhci", "qcom,sdhci-msm-v4";
 			reg = <0xf9824900 0x11c>, <0xf9824000 0x800>;
@@ -1051,6 +1051,15 @@ kpss_out: endpoint {
 			};
 		};
 
+		bimc: interconnect@fc380000 {
+			reg = <0xfc380000 0x6a000>;
+			compatible = "qcom,msm8974-bimc";
+			#interconnect-cells = <1>;
+			clock-names = "bus", "bus_a";
+			clocks = <&rpmcc RPM_SMD_BIMC_CLK>,
+				 <&rpmcc RPM_SMD_BIMC_A_CLK>;
+		};
+
 		gcc: clock-controller@fc400000 {
 			compatible = "qcom,gcc-msm8974";
 			#clock-cells = <1>;
@@ -1069,15 +1078,6 @@ rpm_msg_ram: sram@fc428000 {
 			reg = <0xfc428000 0x4000>;
 		};
 
-		bimc: interconnect@fc380000 {
-			reg = <0xfc380000 0x6a000>;
-			compatible = "qcom,msm8974-bimc";
-			#interconnect-cells = <1>;
-			clock-names = "bus", "bus_a";
-			clocks = <&rpmcc RPM_SMD_BIMC_CLK>,
-				 <&rpmcc RPM_SMD_BIMC_A_CLK>;
-		};
-
 		snoc: interconnect@fc460000 {
 			reg = <0xfc460000 0x4000>;
 			compatible = "qcom,msm8974-snoc";
Signature · 1 line
2.41.0
Reviewed-by on v1 2/2
#4 lore raw

Re: [PATCH 2/2] ARM: dts: qcom: msm8974: sort nodes by reg

Quoted 5 lines · Luca Weiss

Some nodes weren't sorted by reg, so fix that now. Now all nodes inside /soc should be sorted correctly.

---

might conflict with Dmitry's SAW/SPM changes

https://lore.kernel.org/linux-arm-msm/[email protected]/T/#maf3c226ca76f1dee37464c465c2429d9bb1dcbb3

still

Konrad

Quoted 126 lines
 arch/arm/boot/dts/qcom/qcom-msm8974.dtsi | 70 ++++++++++++++++----------------
 1 file changed, 35 insertions(+), 35 deletions(-)
arch/arm/boot/dts/qcom/qcom-msm8974.dtsi +35 -35
index c6475837eda3..9aa8f9a273a8 100644
@@ -334,6 +334,12 @@ apcs: syscon@f9011000 {
 			reg = <0xf9011000 0x1000>;
 		};
 
+		saw_l2: power-controller@f9012000 {
+			compatible = "qcom,saw2";
+			reg = <0xf9012000 0x1000>;
+			regulator;
+		};
+
 		timer@f9020000 {
 			#address-cells = <1>;
 			#size-cells = <1>;
@@ -393,52 +399,46 @@ frame@f9028000 {
 			};
 		};
 
-		saw0: power-controller@f9089000 {
-			compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
-			reg = <0xf9089000 0x1000>, <0xf9009000 0x1000>;
-		};
-
-		saw1: power-controller@f9099000 {
-			compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
-			reg = <0xf9099000 0x1000>, <0xf9009000 0x1000>;
-		};
-
-		saw2: power-controller@f90a9000 {
-			compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
-			reg = <0xf90a9000 0x1000>, <0xf9009000 0x1000>;
-		};
-
-		saw3: power-controller@f90b9000 {
-			compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
-			reg = <0xf90b9000 0x1000>, <0xf9009000 0x1000>;
-		};
-
-		saw_l2: power-controller@f9012000 {
-			compatible = "qcom,saw2";
-			reg = <0xf9012000 0x1000>;
-			regulator;
-		};
-
 		acc0: power-manager@f9088000 {
 			compatible = "qcom,kpss-acc-v2";
 			reg = <0xf9088000 0x1000>, <0xf9008000 0x1000>;
 		};
 
+		saw0: power-controller@f9089000 {
+			compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
+			reg = <0xf9089000 0x1000>, <0xf9009000 0x1000>;
+		};
+
 		acc1: power-manager@f9098000 {
 			compatible = "qcom,kpss-acc-v2";
 			reg = <0xf9098000 0x1000>, <0xf9008000 0x1000>;
 		};
 
+		saw1: power-controller@f9099000 {
+			compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
+			reg = <0xf9099000 0x1000>, <0xf9009000 0x1000>;
+		};
+
 		acc2: power-manager@f90a8000 {
 			compatible = "qcom,kpss-acc-v2";
 			reg = <0xf90a8000 0x1000>, <0xf9008000 0x1000>;
 		};
 
+		saw2: power-controller@f90a9000 {
+			compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
+			reg = <0xf90a9000 0x1000>, <0xf9009000 0x1000>;
+		};
+
 		acc3: power-manager@f90b8000 {
 			compatible = "qcom,kpss-acc-v2";
 			reg = <0xf90b8000 0x1000>, <0xf9008000 0x1000>;
 		};
 
+		saw3: power-controller@f90b9000 {
+			compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
+			reg = <0xf90b9000 0x1000>, <0xf9009000 0x1000>;
+		};
+
 		sdhc_1: mmc@f9824900 {
 			compatible = "qcom,msm8974-sdhci", "qcom,sdhci-msm-v4";
 			reg = <0xf9824900 0x11c>, <0xf9824000 0x800>;
@@ -1051,6 +1051,15 @@ kpss_out: endpoint {
 			};
 		};
 
+		bimc: interconnect@fc380000 {
+			reg = <0xfc380000 0x6a000>;
+			compatible = "qcom,msm8974-bimc";
+			#interconnect-cells = <1>;
+			clock-names = "bus", "bus_a";
+			clocks = <&rpmcc RPM_SMD_BIMC_CLK>,
+				 <&rpmcc RPM_SMD_BIMC_A_CLK>;
+		};
+
 		gcc: clock-controller@fc400000 {
 			compatible = "qcom,gcc-msm8974";
 			#clock-cells = <1>;
@@ -1069,15 +1078,6 @@ rpm_msg_ram: sram@fc428000 {
 			reg = <0xfc428000 0x4000>;
 		};
 
-		bimc: interconnect@fc380000 {
-			reg = <0xfc380000 0x6a000>;
-			compatible = "qcom,msm8974-bimc";
-			#interconnect-cells = <1>;
-			clock-names = "bus", "bus_a";
-			clocks = <&rpmcc RPM_SMD_BIMC_CLK>,
-				 <&rpmcc RPM_SMD_BIMC_A_CLK>;
-		};
-
 		snoc: interconnect@fc460000 {
 			reg = <0xfc460000 0x4000>;
 			compatible = "qcom,msm8974-snoc";
author
#5 lore raw
In reply to Luca Weiss
Quoted 9 lines · On Dienstag, 27. Juni 2023 21:45:12 CEST Luca Weiss wrote:

While making sure the nodes are sorted correctly, I also noticed that some lines are wrongly indented. Fix both.

---
Luca Weiss (2):
ARM: dts: qcom: msm8974: replace incorrect indentation in interconnect
ARM: dts: qcom: msm8974: sort nodes by reg

Quoted 8 lines
 arch/arm/boot/dts/qcom/qcom-msm8974.dtsi | 80

++++++++++++++++---------------- 1 file changed, 40 insertions(+), 40 deletions(-)
---
base-commit: 53cdf865f90ba922a854c65ed05b519f9d728424
change-id: 20230627-msm8974-sort-e34b28f10a34

Best regards,

Hi Bjorn,

also ping on this one. I didn't check again if it now conflicts with -next (as pointed out by Konrad a while ago), if it does let me know and I'll resend.

Regards
Luca

#6 lore raw
Quoted 17 lines · Luca Weiss
Quoted 16 lines · On Dienstag, 27. Juni 2023 21:45:12 CEST Luca Weiss wrote:

While making sure the nodes are sorted correctly, I also noticed that some lines are wrongly indented. Fix both.

---
Luca Weiss (2):
ARM: dts: qcom: msm8974: replace incorrect indentation in interconnect
ARM: dts: qcom: msm8974: sort nodes by reg

  arch/arm/boot/dts/qcom/qcom-msm8974.dtsi | 80

++++++++++++++++---------------- 1 file changed, 40 insertions(+), 40 deletions(-)
---
base-commit: 53cdf865f90ba922a854c65ed05b519f9d728424
change-id: 20230627-msm8974-sort-e34b28f10a34

Quoted 6 lines
Quoted 1 line

Best regards,

Hi Bjorn,

also ping on this one. I didn't check again if it now conflicts with -next (as pointed out by Konrad a while ago), if it does let me know and I'll resend.

git fetch linux-next
git checkout linux-next/master
b4 shazam <msgid>

if retval == 0:
ping
else
resend

this only takes a couple seconds and saves you the burden of sending an email and Bjorn of checking ^^

Konrad

author
#7 lore raw
Quoted 33 lines · On Samstag, 23. September 2023 14:03:05 CEST Konrad Dybcio wrote:
Quoted 21 lines · Luca Weiss
Quoted 20 lines · On Dienstag, 27. Juni 2023 21:45:12 CEST Luca Weiss wrote:

While making sure the nodes are sorted correctly, I also noticed that some lines are wrongly indented. Fix both.

---

Luca Weiss (2):
ARM: dts: qcom: msm8974: replace incorrect indentation in interconnect

ARM: dts: qcom: msm8974: sort nodes by reg

  arch/arm/boot/dts/qcom/qcom-msm8974.dtsi | 80

++++++++++++++++---------------- 1 file changed, 40 insertions(+), 40 deletions(-)
---
base-commit: 53cdf865f90ba922a854c65ed05b519f9d728424
change-id: 20230627-msm8974-sort-e34b28f10a34

Quoted 7 lines
Quoted 1 line

Best regards,

Hi Bjorn,

also ping on this one. I didn't check again if it now conflicts with -next (as pointed out by Konrad a while ago), if it does let me know and I'll resend.

git fetch linux-next
git checkout linux-next/master
b4 shazam <msgid>

Quoted 7 lines

if retval == 0:
ping
else
resend

this only takes a couple seconds and saves you the burden of sending an email and Bjorn of checking ^^

Well, seems to apply fine still, so seems the other series wasn't picked up yet. But true, would've been faster to check instead of writing that message ;)

Quoted 2 lines

Konrad

maintainer Applied
#8 lore raw
In reply to Luca Weiss
Quoted 4 lines · Luca Weiss

While making sure the nodes are sorted correctly, I also noticed that some lines are wrongly indented. Fix both.

Applied, thanks!

[1/2] ARM: dts: qcom: msm8974: replace incorrect indentation in interconnect

      commit: 207f4ce365819ac68b634153d074252338d00ef6
[2/2] ARM: dts: qcom: msm8974: sort nodes by reg
      commit: 4960e06d386ecc5307bc2e66a77d5f06df1e2a6f

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>