kernel: move console loglevel to generic
[oweals/openwrt.git] / target / linux / sunxi / patches-4.9 / 0062-arm64-allwinner-pine64-Enable-dwmac-sun8i.patch
1 From 97023943749367111b9a88e09d1b9bd157dd3326 Mon Sep 17 00:00:00 2001
2 From: Corentin Labbe <clabbe.montjoie@gmail.com>
3 Date: Wed, 31 May 2017 09:18:47 +0200
4 Subject: arm64: allwinner: pine64: Enable dwmac-sun8i
5
6 The dwmac-sun8i hardware is present on the pine64
7 It uses an external PHY via RMII.
8
9 Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
10 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
11 ---
12  arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 16 ++++++++++++++++
13  1 file changed, 16 insertions(+)
14
15 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts
16 +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts
17 @@ -70,6 +70,15 @@
18         status = "okay";
19  };
20  
21 +&emac {
22 +       pinctrl-names = "default";
23 +       pinctrl-0 = <&rmii_pins>;
24 +       phy-mode = "rmii";
25 +       phy-handle = <&ext_rmii_phy1>;
26 +       status = "okay";
27 +
28 +};
29 +
30  &i2c1 {
31         pinctrl-names = "default";
32         pinctrl-0 = <&i2c1_pins>;
33 @@ -80,6 +89,13 @@
34         bias-pull-up;
35  };
36  
37 +&mdio {
38 +       ext_rmii_phy1: ethernet-phy@1 {
39 +               compatible = "ethernet-phy-ieee802.3-c22";
40 +               reg = <1>;
41 +       };
42 +};
43 +
44  &mmc0 {
45         pinctrl-names = "default";
46         pinctrl-0 = <&mmc0_pins>;