Skip to content

Commit

Permalink
ARM: dts: sun8i: r40: bananapi-m2-ultra: Enable GMAC ethernet controller
Browse files Browse the repository at this point in the history
The Bananapi M2 Ultra has a Realtek RTL8211E RGMII PHY tied to the GMAC.
The PMIC's DC1SW output provides power for the PHY, while the ALDO2
output provides I/O voltages on both sides.

Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
  • Loading branch information
wens committed May 17, 2018
1 parent 76f8032 commit c36fd5a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
compatible = "sinovoip,bpi-m2-ultra", "allwinner,sun8i-r40";

aliases {
ethernet0 = &gmac;
serial0 = &uart0;
};

Expand Down Expand Up @@ -101,6 +102,22 @@
status = "okay";
};

&gmac {
pinctrl-names = "default";
pinctrl-0 = <&gmac_rgmii_pins>;
phy-handle = <&phy1>;
phy-mode = "rgmii";
phy-supply = <&reg_dc1sw>;
status = "okay";
};

&gmac_mdio {
phy1: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
};
};

&i2c0 {
status = "okay";

Expand Down Expand Up @@ -149,13 +166,26 @@
status = "okay";
};

&reg_aldo2 {
regulator-always-on;
regulator-min-microvolt = <2500000>;
regulator-max-microvolt = <2500000>;
regulator-name = "vcc-pa";
};

&reg_aldo3 {
regulator-always-on;
regulator-min-microvolt = <2700000>;
regulator-max-microvolt = <3300000>;
regulator-name = "avcc";
};

&reg_dc1sw {
regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3000000>;
regulator-name = "vcc-gmac-phy";
};

&reg_dcdc1 {
regulator-always-on;
regulator-min-microvolt = <3000000>;
Expand Down

0 comments on commit c36fd5a

Please sign in to comment.