summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorLABBE Corentin <clabbe.montjoie@gmail.com>2017-05-31 09:18:42 +0200
committerDavid S. Miller <davem@davemloft.net>2017-06-01 20:53:06 +0200
commit0d38218c4d84ec1a975195cf45eeda0fae6b0c0a (patch)
tree771fc7d6ccc6177c0a60506937b41ad87cd21c80 /arch
parentarm: sun8i: orangepi-one: Enable dwmac-sun8i (diff)
downloadlinux-0d38218c4d84ec1a975195cf45eeda0fae6b0c0a.tar.xz
linux-0d38218c4d84ec1a975195cf45eeda0fae6b0c0a.zip
arm: sun8i: orangepi-2: Enable dwmac-sun8i
The dwmac-sun8i hardware is present on the Orange PI 2. It uses the internal PHY. This patch create the needed emac node. Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/boot/dts/sun8i-h3-orangepi-2.dts8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts
index 5b6d14555b7c..cedd326b6089 100644
--- a/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts
+++ b/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts
@@ -54,6 +54,7 @@
aliases {
serial0 = &uart0;
/* ethernet0 is the H3 emac, defined in sun8i-h3.dtsi */
+ ethernet0 = &emac;
ethernet1 = &rtl8189;
};
@@ -108,6 +109,13 @@
status = "okay";
};
+&emac {
+ phy-handle = <&int_mii_phy>;
+ phy-mode = "mii";
+ allwinner,leds-active-low;
+ status = "okay";
+};
+
&ir {
pinctrl-names = "default";
pinctrl-0 = <&ir_pins_a>;