diff mbox

[U-Boot,1/2] sunxi: dts: OrangePi Zero: add Ethernet node

Message ID 1484359570-10428-2-git-send-email-andre.przywara@arm.com
State Accepted
Commit 8b15f8eb67a48a98d5c131c1d44aa78c236c064d
Delegated to: Jagannadha Sutradharudu Teki
Headers show

Commit Message

Andre Przywara Jan. 14, 2017, 2:06 a.m. UTC
The OrangePi Zero can happily use the EMAC along with its integrated
PHY to use Ethernet (for TFTP booting, for instance).
Add the emac node to the board .dts by copying it from the OrangePi One
DT.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
---
 arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts | 11 +++++++++++
 1 file changed, 11 insertions(+)

Comments

jonsmirl@gmail.com Jan. 14, 2017, 2:42 p.m. UTC | #1
Can you simultaneously use both Ethernet interfaces on the A64? I've
received conflicting answers to this question.

On Fri, Jan 13, 2017 at 9:06 PM, Andre Przywara <andre.przywara@arm.com> wrote:
> The OrangePi Zero can happily use the EMAC along with its integrated
> PHY to use Ethernet (for TFTP booting, for instance).
> Add the emac node to the board .dts by copying it from the OrangePi One
> DT.
>
> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
> ---
>  arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts | 11 +++++++++++
>  1 file changed, 11 insertions(+)
>
> diff --git a/arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts b/arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts
> index 0989434..20d489c 100644
> --- a/arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts
> +++ b/arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts
> @@ -99,6 +99,17 @@
>         status = "okay";
>  };
>
> +&emac {
> +       phy = <&phy1>;
> +       phy-mode = "mii";
> +       allwinner,use-internal-phy;
> +       allwinner,leds-active-low;
> +       status = "okay";
> +       phy1: ethernet-phy@1 {
> +               reg = <1>;
> +       };
> +};
> +
>  &mmc0 {
>         pinctrl-names = "default";
>         pinctrl-0 = <&mmc0_pins_a>;
> --
> 2.8.2
>
> --
> You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Maxime Ripard Jan. 15, 2017, 4:04 p.m. UTC | #2
On Sat, Jan 14, 2017 at 02:06:09AM +0000, Andre Przywara wrote:
> The OrangePi Zero can happily use the EMAC along with its integrated
> PHY to use Ethernet (for TFTP booting, for instance).
> Add the emac node to the board .dts by copying it from the OrangePi One
> DT.
> 
> Signed-off-by: Andre Przywara <andre.przywara@arm.com>

Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>

Thanks,
Maxime
Jagan Teki Jan. 15, 2017, 5:25 p.m. UTC | #3
On Sunday 15 January 2017 05:04 PM, Maxime Ripard wrote:
> On Sat, Jan 14, 2017 at 02:06:09AM +0000, Andre Przywara wrote:
>> The OrangePi Zero can happily use the EMAC along with its integrated
>> PHY to use Ethernet (for TFTP booting, for instance).
>> Add the emac node to the board .dts by copying it from the OrangePi One
>> DT.
>>
>> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
>
> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>

Reviewed-by: Jagan Teki <jagan@openedev.com>

Applied to u-boot-sunxi/master

thanks!
diff mbox

Patch

diff --git a/arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts b/arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts
index 0989434..20d489c 100644
--- a/arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts
+++ b/arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts
@@ -99,6 +99,17 @@ 
 	status = "okay";
 };
 
+&emac {
+	phy = <&phy1>;
+	phy-mode = "mii";
+	allwinner,use-internal-phy;
+	allwinner,leds-active-low;
+	status = "okay";
+	phy1: ethernet-phy@1 {
+		reg = <1>;
+	};
+};
+
 &mmc0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc0_pins_a>;