Skip to contentSkip to conversation

arm64: dts: qcom: sa8155p-adp: Make compatible the first property

PATCH Applied Andrew Halaney 3 participants 8 messages Apr 21, 2023 – May 25, 2023

Subsystems (3)

v3 of 4 Applied Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/4 arm64: dts: qcom: sa8155p-adp: Make compatible the first property

As stated at the below link in another review, compatible is always the first property.

Follow suit here to avoid copying incorrectly in the future.

---

Changes since v2:
* Collect tags
Changes since v1:
* None

 arch/arm64/boot/dts/qcom/sa8155p-adp.dts | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/qcom/sa8155p-adp.dts +2 -3
index 339fea522509..029b23198b3a 100644
@@ -352,19 +352,18 @@ &ethernet {
 	max-speed = <1000>;
 
 	mdio {
+		compatible = "snps,dwmac-mdio";
 		#address-cells = <0x1>;
 		#size-cells = <0x0>;
 
-		compatible = "snps,dwmac-mdio";
-
 		/* Micrel KSZ9031RNZ PHY */
 		rgmii_phy: phy@7 {
+			compatible = "ethernet-phy-ieee802.3-c22";
 			reg = <0x7>;
 
 			interrupt-parent = <&tlmm>;
 			interrupts-extended = <&tlmm 124 IRQ_TYPE_EDGE_FALLING>; /* phy intr */
 			device_type = "ethernet-phy";
-			compatible = "ethernet-phy-ieee802.3-c22";
 		};
 	};
 };
Signature · 1 line
2.40.0
#1 lore raw

PATCH v3 2/4 arm64: dts: qcom: sa8155p-adp: Make -cells decimal

The property logically makes sense in decimal, and is the standard used elsewhere.

---

Changes since v2:
* Collect tags
Changes since v1:
* New patch (Konrad)

 arch/arm64/boot/dts/qcom/sa8155p-adp.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/qcom/sa8155p-adp.dts +2 -2
index 029b23198b3a..ac52a8dfeba1 100644
@@ -353,8 +353,8 @@ &ethernet {
 
 	mdio {
 		compatible = "snps,dwmac-mdio";
-		#address-cells = <0x1>;
-		#size-cells = <0x0>;
+		#address-cells = <1>;
+		#size-cells = <0>;
 
 		/* Micrel KSZ9031RNZ PHY */
 		rgmii_phy: phy@7 {
Signature · 1 line
2.40.0
#2 lore raw

Re: [PATCH v3 2/4] arm64: dts: qcom: sa8155p-adp: Make -cells decimal

Quoted 6 lines · Andrew Halaney

The property logically makes sense in decimal, and is the standard used elsewhere.

Quoted 6 lines

---

Changes since v2:
* Collect tags
Changes since v1:
* New patch (Konrad)

Doing such changes per one board will be a lot of churn...

Best regards,
Krzysztof

#3 lore raw

Re: [PATCH v3 2/4] arm64: dts: qcom: sa8155p-adp: Make -cells decimal

Quoted 9 lines · Krzysztof Kozlowski
Quoted 8 lines · Andrew Halaney

The property logically makes sense in decimal, and is the standard used elsewhere.

---

Quoted 7 lines
Quoted 4 lines

Changes since v2:
* Collect tags
Changes since v1:
* New patch (Konrad)

Doing such changes per one board will be a lot of churn...

Agreed, are you suggesting I drop this patch (and if we do this sort of cleanup to do it in bulk)? Sorry, not entirely sure I am picking up what that comment is implying.

Personally, I'd prefer to keeping that patch as this series is trying to clean up the particular ethernet node.. but if the purpose of the series was just to clean -cells up then I'd go with the bulk approach.

So as is, I'm going to leave it like so unless you have specific advice against doing so.

Thanks,
Andrew

#4 lore raw

Re: [PATCH v3 2/4] arm64: dts: qcom: sa8155p-adp: Make -cells decimal

Quoted 15 lines · Andrew Halaney
Quoted 14 lines · Krzysztof Kozlowski
Quoted 12 lines · Andrew Halaney

The property logically makes sense in decimal, and is the standard used elsewhere.

---

Changes since v2:
* Collect tags
Changes since v1:
* New patch (Konrad)

Quoted 6 lines
Quoted 2 lines

Doing such changes per one board will be a lot of churn...

Agreed, are you suggesting I drop this patch (and if we do this sort of cleanup to do it in bulk)? Sorry, not entirely sure I am picking up what that comment is implying.

Yes, I suggest to fix all Qualcomm arm64 boards with one patch. There are just few more occurrences of this. It's also pure cleanup, no functional change.

Quoted 7 lines

Personally, I'd prefer to keeping that patch as this series is trying to clean up the particular ethernet node.. but if the purpose of the series was just to clean -cells up then I'd go with the bulk approach.

So as is, I'm going to leave it like so unless you have specific advice against doing so.

Best regards,
Krzysztof

#5 lore raw

PATCH v3 3/4 arm64: dts: qcom: sa8155p-adp: Remove unneeded rgmii_phy information

In reply to Andrew Halaney

Using interrupts-extended already indicates what the interrupt-parent is, so drop the explicit interrupt-parent.

The comment about this being the phy-intr is not helpful either, since this is the only interrupt in the phy node.

---

Changes since v2:
* Collect tags
Changes since v1:
* New patch (Konrad)

 arch/arm64/boot/dts/qcom/sa8155p-adp.dts | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm64/boot/dts/qcom/sa8155p-adp.dts +1 -2
index ac52a8dfeba1..b65e0203d783 100644
@@ -361,8 +361,7 @@ rgmii_phy: phy@7 {
 			compatible = "ethernet-phy-ieee802.3-c22";
 			reg = <0x7>;
 
-			interrupt-parent = <&tlmm>;
-			interrupts-extended = <&tlmm 124 IRQ_TYPE_EDGE_FALLING>; /* phy intr */
+			interrupts-extended = <&tlmm 124 IRQ_TYPE_EDGE_FALLING>;
 			device_type = "ethernet-phy";
 		};
 	};
Signature · 1 line
2.40.0
#6 lore raw

PATCH v3 4/4 arm64: dts: qcom: sa8155p-adp: Move mtl nodes into ethernet node

In reply to Andrew Halaney

The mtl nodes aren't evaluated unless they're under the node with the compatible. Move them so they're now evaluated in case future patchsets modify them incorrectly.

An example of this can be seen in the link.

---

Changes since v2:
* New patch (me, after realizing this on another platform)

 arch/arm64/boot/dts/qcom/sa8155p-adp.dts | 46 ++++++++++++------------
 1 file changed, 23 insertions(+), 23 deletions(-)
arch/arm64/boot/dts/qcom/sa8155p-adp.dts +23 -23
index b65e0203d783..02d04ce877c9 100644
@@ -47,29 +47,6 @@ vreg_s4a_1p8: smps4 {
 
 		vin-supply = <&vreg_3p3>;
 	};
-
-	mtl_rx_setup: rx-queues-config {
-		snps,rx-queues-to-use = <1>;
-		snps,rx-sched-sp;
-
-		queue0 {
-			snps,dcb-algorithm;
-			snps,map-to-dma-channel = <0x0>;
-			snps,route-up;
-			snps,priority = <0x1>;
-		};
-	};
-
-	mtl_tx_setup: tx-queues-config {
-		snps,tx-queues-to-use = <1>;
-		snps,tx-sched-wrr;
-
-		queue0 {
-			snps,weight = <0x10>;
-			snps,dcb-algorithm;
-			snps,priority = <0x0>;
-		};
-	};
 };
 
 &apps_rsc {
@@ -365,6 +342,29 @@ rgmii_phy: phy@7 {
 			device_type = "ethernet-phy";
 		};
 	};
+
+	mtl_rx_setup: rx-queues-config {
+		snps,rx-queues-to-use = <1>;
+		snps,rx-sched-sp;
+
+		queue0 {
+			snps,dcb-algorithm;
+			snps,map-to-dma-channel = <0x0>;
+			snps,route-up;
+			snps,priority = <0x1>;
+		};
+	};
+
+	mtl_tx_setup: tx-queues-config {
+		snps,tx-queues-to-use = <1>;
+		snps,tx-sched-wrr;
+
+		queue0 {
+			snps,weight = <0x10>;
+			snps,dcb-algorithm;
+			snps,priority = <0x0>;
+		};
+	};
 };
 
 &qupv3_id_1 {
Signature · 1 line
2.40.0
maintainer Applied
#7 lore raw

Re: (subset) [PATCH v3 1/4] arm64: dts: qcom: sa8155p-adp: Make compatible the first property

In reply to Andrew Halaney
Quoted 6 lines · Andrew Halaney

As stated at the below link in another review, compatible is always the first property.

Follow suit here to avoid copying incorrectly in the future.

Applied, thanks!

[1/4] arm64: dts: qcom: sa8155p-adp: Make compatible the first property

      commit: eee7369de0c3cca7aacab3874663d460fb7a5b06
[3/4] arm64: dts: qcom: sa8155p-adp: Remove unneeded rgmii_phy information
      commit: 0ff4f6a380214fcf85a5b5ad64ff481d9bd1dfc6
[4/4] arm64: dts: qcom: sa8155p-adp: Move mtl nodes into ethernet node
      commit: 93fe463652504bba298a68b56334729cdf92c0c3

Best regards,

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