kernel: move console loglevel to generic
[oweals/openwrt.git] / target / linux / sunxi / patches-4.9 / 0063-arm64-allwinner-pine64-plus-Enable-dwmac-sun8i.patch
1 From 94dcfdc77fc55ed1956011ceea341911c6e760a0 Mon Sep 17 00:00:00 2001
2 From: Corentin Labbe <clabbe.montjoie@gmail.com>
3 Date: Wed, 31 May 2017 09:18:48 +0200
4 Subject: arm64: allwinner: pine64-plus: Enable dwmac-sun8i
5
6 The dwmac-sun8i hardware is present on the pine64 plus.
7 It uses an external PHY rtl8211e via RGMII.
8
9 Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
10 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
11 ---
12  .../arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts | 17 ++++++++++++++++-
13  1 file changed, 16 insertions(+), 1 deletion(-)
14
15 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts
16 +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts
17 @@ -46,5 +46,20 @@
18         model = "Pine64+";
19         compatible = "pine64,pine64-plus", "allwinner,sun50i-a64";
20  
21 -       /* TODO: Camera, Ethernet PHY, touchscreen, etc. */
22 +       /* TODO: Camera, touchscreen, etc. */
23 +};
24 +
25 +&emac {
26 +       pinctrl-names = "default";
27 +       pinctrl-0 = <&rgmii_pins>;
28 +       phy-mode = "rgmii";
29 +       phy-handle = <&ext_rgmii_phy>;
30 +       status = "okay";
31 +};
32 +
33 +&mdio {
34 +       ext_rgmii_phy: ethernet-phy@1 {
35 +               compatible = "ethernet-phy-ieee802.3-c22";
36 +               reg = <1>;
37 +       };
38  };