Skip to content

Commit

Permalink
Fix ethernet on Bananapi M64
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed Feb 13, 2018
1 parent 69ccc04 commit 6ab13a0
Showing 1 changed file with 49 additions and 0 deletions.
@@ -0,0 +1,49 @@
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts
index 19b6817c4..4792e30b0 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts
@@ -47,7 +47,7 @@
#include <dt-bindings/gpio/gpio.h>

/ {
- model = "BananaPi-M64";
+ model = "Banana Pi BPI-M64";
compatible = "sinovoip,bananapi-m64", "allwinner,sun50i-a64";

aliases {
@@ -81,9 +81,8 @@
&emac {
pinctrl-names = "default";
pinctrl-0 = <&rgmii_pins>;
- phy-mode = "rgmii";
+ phy-mode = "rgmii-txid";
phy-handle = <&ext_rgmii_phy>;
- phy-supply = <&reg_dc1sw>;
status = "okay";
};

@@ -102,7 +101,7 @@
bias-pull-up;
};

-&external_mdio {
+&mdio {
ext_rgmii_phy: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
@@ -174,6 +173,15 @@

#include "axp803.dtsi"

+&ac_power_supply {
+ status = "okay";
+};
+
+&battery_power_supply {
+ status = "okay";
+};
+
+
&reg_aldo1 {
regulator-min-microvolt = <2800000>;
regulator-max-microvolt = <2800000>;

2 comments on commit 6ab13a0

@ThomasKaiser
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the purpose of changing the model name (especially now that libs like ArmbianIO start to rely on this string)?

@igorpecovnik
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

None. Copy/paste job. Fixed, tnx.

Please sign in to comment.