Skip to contentSkip to conversation

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

PATCH Superseded Andrew Halaney 2 participants 6 messages Apr 13, 2023

Subsystems (3)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/3 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 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.39.2
#1 lore raw

PATCH v2 2/3 arm64: dts: qcom: sa8155p-adp: Make -cells decimal

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

---

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.39.2
Reviewed-by on v2 2/3
#2 lore raw

Re: [PATCH v2 2/3] 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.

---

Konrad

Quoted 22 lines

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 {
#3 lore raw

PATCH v2 3/3 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 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.39.2
Reviewed-by on v2 3/3
#4 lore raw

Re: [PATCH v2 3/3] arm64: dts: qcom: sa8155p-adp: Remove unneeded rgmii_phy information

Quoted 9 lines · 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.

---

Konrad

Quoted 21 lines

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";
 		};
 	};
Reviewed-by on v2 1/3
#5 lore raw
In reply to Andrew Halaney
Quoted 8 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.

---

Konrad

Quoted 33 lines

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";
 		};
 	};
 };