ARM: dts: sun8i: v3s: enable emac for zero Dock
Subsystems (2)
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
@@ -94,3 +94,8 @@ button-800 { voltage = <800000>; }; }; + +&emac { + allwinner,leds-active-low; + status = "okay"; +};
Signature · 1 line
2.25.1
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
Signed-off-by Andreas Rehn <[email protected]>--- 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@@ -94,3 +94,8 @@ button-800 { voltage = <800000>; }; }; + +&emac { + allwinner,leds-active-low; + status = "okay"; +};
PATCH v2 1/1 ARM: dts: sun8i: v3s: enable emac for zero Dock
In reply to Andreas Rehndwmac-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
@@ -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
Hi Andreas,
Quoted 27 lines · Andreas Rehn
dwmac-sun8i supports v3s and
Licheepi-zero Dock provides an ethernet portSigned-off-by Andreas Rehn <[email protected]>---
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@@ -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
PATCH v3 1/1 ARM: dts: sun8i: v3s: enable emac for zero Dock
In reply to Andreas Rehndwmac-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
@@ -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 = <®_vcc3v3>; +&emac { + allwinner,leds-active-low; status = "okay"; };
@@ -94,3 +96,10 @@ button-800 { voltage = <800000>; }; }; + +&mmc1 { + broken-cd; + bus-width = <4>; + vmmc-supply = <®_vcc3v3>; + status = "okay"; +};
Signature · 1 line
2.25.1
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 orderSigned-off-by Andreas Rehn <[email protected]>
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@@ -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 = <®_vcc3v3>; +&emac { + allwinner,leds-active-low; status = "okay"; };@@ -94,3 +96,10 @@ button-800 { voltage = <800000>; }; }; + +&mmc1 { + broken-cd; + bus-width = <4>; + vmmc-supply = <®_vcc3v3>; + status = "okay"; +};
Maxime Ripard
AppliedQuoted 10 lines · Andre Przywara
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 orderSigned-off-by Andreas Rehn <[email protected]>Reviewed-by Andre Przywara <[email protected]>
Applied, thanks
Maxime