diff options
author | Corentin Labbe <clabbe.montjoie@gmail.com> | 2017-05-31 03:18:40 -0400 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2017-06-06 14:09:29 -0400 |
commit | 252006cf0da13e65151cd7e7d0d6bb14bc0ca815 (patch) | |
tree | 76bd46bf14e4c2d037f645f5b8e63c9530dd234e | |
parent | 8c7ba536e70976e09b148b43be1299abf3cc1560 (diff) |
arm: sun8i: orangepi-zero: Enable dwmac-sun8i
The dwmac-sun8i hardware is present on the Orange PI Zero.
It uses the internal PHY.
This patch create the needed emac node.
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
-rw-r--r-- | arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts index 9e8b082c134f..dd3525a0f06a 100644 --- a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts +++ b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts | |||
@@ -57,6 +57,7 @@ | |||
57 | aliases { | 57 | aliases { |
58 | serial0 = &uart0; | 58 | serial0 = &uart0; |
59 | /* ethernet0 is the H3 emac, defined in sun8i-h3.dtsi */ | 59 | /* ethernet0 is the H3 emac, defined in sun8i-h3.dtsi */ |
60 | ethernet0 = &emac; | ||
60 | ethernet1 = &xr819; | 61 | ethernet1 = &xr819; |
61 | }; | 62 | }; |
62 | 63 | ||
@@ -103,6 +104,13 @@ | |||
103 | status = "okay"; | 104 | status = "okay"; |
104 | }; | 105 | }; |
105 | 106 | ||
107 | &emac { | ||
108 | phy-handle = <&int_mii_phy>; | ||
109 | phy-mode = "mii"; | ||
110 | allwinner,leds-active-low; | ||
111 | status = "okay"; | ||
112 | }; | ||
113 | |||
106 | &mmc0 { | 114 | &mmc0 { |
107 | pinctrl-names = "default"; | 115 | pinctrl-names = "default"; |
108 | pinctrl-0 = <&mmc0_pins_a>; | 116 | pinctrl-0 = <&mmc0_pins_a>; |