Skip to contentSkip to conversation

ARM: dts: sun8i: v3s: enable emac for zero Dock

PATCH Superseded Andreas Rehn 3 participants 7 messages May 22, 2021 – May 31, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: sun8i: v3s: enable emac for zero Dock

dwmac-sun8i supports v3s and
Licheepi-zero Dock provides an ethernet port

---
 arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts +5 -0
index db5cd0b8574b..2d78b7a52fd3 100644
@@ -94,3 +94,8 @@ button-800 {
 		voltage = <800000>;
 	};
 };
+
+&emac {
+	allwinner,leds-active-low;
+	status = "okay";
+};
Signature · 1 line
2.25.1
#1 lore raw
Quoted 2 lines · On Sat, 22 May 2021 22:50:39 +0200 Andreas Rehn <[email protected]>…

dwmac-sun8i supports v3s and
Licheepi-zero Dock provides an ethernet port

As the other boards do it, and since we only take .dts files unchanged into U-Boot: please add the alias here as well.

Icenowy, can you confirm that this works?

Cheers,
Andre

Quoted 19 lines
---
 arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts +5 -0
index db5cd0b8574b..2d78b7a52fd3 100644
@@ -94,3 +94,8 @@ button-800 {
 		voltage = <800000>;
 	};
 };
+
+&emac {
+	allwinner,leds-active-low;
+	status = "okay";
+};
#2 lore raw

PATCH v2 1/1 ARM: dts: sun8i: v3s: enable emac for zero Dock

In reply to Andreas Rehn

dwmac-sun8i supports v3s and
Licheepi-zero Dock provides an ethernet port

---
Changes in v2:
- add ethernet0 alias.

 arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts +9 -0
index db5cd0b8574b..4d564028f286 100644
@@ -49,6 +49,10 @@ / {
 	compatible = "licheepi,licheepi-zero-dock", "licheepi,licheepi-zero",
 		     "allwinner,sun8i-v3s";
 
+	aliases {
+		ethernet0 = &emac;
+	};
+
 	leds {
 		/* The LEDs use PG0~2 pins, which conflict with MMC1 */
 		status = "disabled";
@@ -94,3 +98,8 @@ button-800 {
 		voltage = <800000>;
 	};
 };
+
+&emac {
+	allwinner,leds-active-low;
+	status = "okay";
+};
Signature · 1 line
2.25.1
#3 lore raw

Hi Andreas,

Quoted 27 lines · Andreas Rehn

dwmac-sun8i supports v3s and
Licheepi-zero Dock provides an ethernet port

---
Changes in v2:
- add ethernet0 alias.

 arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts +4 -0
index db5cd0b8574b..4d564028f286 100644
@@ -49,6 +49,10 @@ / {
 	compatible = "licheepi,licheepi-zero-dock", "licheepi,licheepi-zero",
 		     "allwinner,sun8i-v3s";
 
+	aliases {
+		ethernet0 = &emac;
+	};
+
 	leds {
 		/* The LEDs use PG0~2 pins, which conflict with MMC1 */
 		status = "disabled";

arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts button-800 { · line 105

Quoted 8 lines
arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts +5 -0
@@ -94,3 +98,8 @@ button-800 {
 		voltage = <800000>;
 	};
 };
+
+&emac {
+	allwinner,leds-active-low;
+	status = "okay";
+};

We use alphabetical order for phandle derefences

Maxime

#4 lore raw

PATCH v3 1/1 ARM: dts: sun8i: v3s: enable emac for zero Dock

In reply to Andreas Rehn

dwmac-sun8i supports v3s and
Licheepi-zero Dock provides an ethernet port
furthermore, align nodes in alphabetical order

---
Changes in v3:
- align nodes in alphabetical order
Changes in v2:
- add ethernet0 alias.

 .../boot/dts/sun8i-v3s-licheepi-zero-dock.dts   | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)
arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts +13 -4
index db5cd0b8574b..752ad05c8f83 100644
@@ -49,16 +49,18 @@ / {
 	compatible = "licheepi,licheepi-zero-dock", "licheepi,licheepi-zero",
 		     "allwinner,sun8i-v3s";
 
+	aliases {
+		ethernet0 = &emac;
+	};
+
 	leds {
 		/* The LEDs use PG0~2 pins, which conflict with MMC1 */
 		status = "disabled";
 	};
 };
 
-&mmc1 {
-	broken-cd;
-	bus-width = <4>;
-	vmmc-supply = <&reg_vcc3v3>;
+&emac {
+	allwinner,leds-active-low;
 	status = "okay";
 };
 
@@ -94,3 +96,10 @@ button-800 {
 		voltage = <800000>;
 	};
 };
+
+&mmc1 {
+	broken-cd;
+	bus-width = <4>;
+	vmmc-supply = <&reg_vcc3v3>;
+	status = "okay";
+};
Signature · 1 line
2.25.1
Reviewed-by on v3 1/1
#5 lore raw
Quoted 5 lines · On Tue, 25 May 2021 19:31:59 +0200 Andreas Rehn <[email protected]>…

dwmac-sun8i supports v3s and
Licheepi-zero Dock provides an ethernet port
furthermore, align nodes in alphabetical order

Cheers,
Andre

Quoted 46 lines

---
Changes in v3:
- align nodes in alphabetical order
Changes in v2:
- add ethernet0 alias.

 .../boot/dts/sun8i-v3s-licheepi-zero-dock.dts   | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)
arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts +13 -4
index db5cd0b8574b..752ad05c8f83 100644
@@ -49,16 +49,18 @@ / {
 	compatible = "licheepi,licheepi-zero-dock", "licheepi,licheepi-zero",
 		     "allwinner,sun8i-v3s";
 
+	aliases {
+		ethernet0 = &emac;
+	};
+
 	leds {
 		/* The LEDs use PG0~2 pins, which conflict with MMC1 */
 		status = "disabled";
 	};
 };
 
-&mmc1 {
-	broken-cd;
-	bus-width = <4>;
-	vmmc-supply = <&reg_vcc3v3>;
+&emac {
+	allwinner,leds-active-low;
 	status = "okay";
 };
 
@@ -94,3 +96,10 @@ button-800 {
 		voltage = <800000>;
 	};
 };
+
+&mmc1 {
+	broken-cd;
+	bus-width = <4>;
+	vmmc-supply = <&reg_vcc3v3>;
+	status = "okay";
+};