kernel: move console loglevel to generic
[oweals/openwrt.git] / target / linux / sunxi / patches-4.9 / 0072-arm-sun8i-orangepi-2-Enable-dwmac-sun8i.patch
1 From a9992f2dd1890112643a93d621ff5a4c97c55d53 Mon Sep 17 00:00:00 2001
2 From: Corentin Labbe <clabbe.montjoie@gmail.com>
3 Date: Wed, 31 May 2017 09:18:42 +0200
4 Subject: arm: sun8i: orangepi-2: Enable dwmac-sun8i
5
6 The dwmac-sun8i hardware is present on the Orange PI 2.
7 It uses the internal PHY.
8
9 This patch create the needed emac node.
10
11 Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
12 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
13 ---
14  arch/arm/boot/dts/sun8i-h3-orangepi-2.dts | 8 ++++++++
15  1 file changed, 8 insertions(+)
16
17 --- a/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts
18 +++ b/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts
19 @@ -55,6 +55,7 @@
20         aliases {
21                 serial0 = &uart0;
22                 /* ethernet0 is the H3 emac, defined in sun8i-h3.dtsi */
23 +               ethernet0 = &emac;
24                 ethernet1 = &rtl8189;
25         };
26  
27 @@ -109,6 +110,13 @@
28         status = "okay";
29  };
30  
31 +&emac {
32 +       phy-handle = <&int_mii_phy>;
33 +       phy-mode = "mii";
34 +       allwinner,leds-active-low;
35 +       status = "okay";
36 +};
37 +
38  &ir {
39         pinctrl-names = "default";
40         pinctrl-0 = <&ir_pins_a>;