Commit 0547433761802d773a993d6280f554a2980b4df0

Authored by Maxime Ripard
Committed by Olof Johansson
1 parent 756084c50c

ARM: dts: sun7i: cubieboard2: Enable the EMAC

The Cubieboard2, just like its A10 counterpart, has the Ethernet wired
in. Enable it in the DT.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Olof Johansson <olof@lixom.net>

Showing 1 changed file with 15 additions and 0 deletions Side-by-side Diff

arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
... ... @@ -19,6 +19,21 @@
19 19 compatible = "cubietech,cubieboard2", "allwinner,sun7i-a20";
20 20  
21 21 soc@01c00000 {
  22 + emac: ethernet@01c0b000 {
  23 + pinctrl-names = "default";
  24 + pinctrl-0 = <&emac_pins_a>;
  25 + phy = <&phy1>;
  26 + status = "okay";
  27 + };
  28 +
  29 + mdio@01c0b080 {
  30 + status = "okay";
  31 +
  32 + phy1: ethernet-phy@1 {
  33 + reg = <1>;
  34 + };
  35 + };
  36 +
22 37 pinctrl@01c20800 {
23 38 led_pins_cubieboard2: led_pins@0 {
24 39 allwinner,pins = "PH20", "PH21";