Browse Source

apm821xx: MyBook Live convert to DT PHY

Changes MyBook Live to use DT PHY probing and the broadcom phy driver.

Signed-off-by: Christian Lamparter <[email protected]>
Christian Lamparter 8 years ago
parent
commit
0cad9f09be
2 changed files with 12 additions and 0 deletions
  1. 11 0
      target/linux/apm821xx/dts/apollo3g.dtsi
  2. 1 0
      target/linux/apm821xx/sata/config-default

+ 11 - 0
target/linux/apm821xx/dts/apollo3g.dtsi

@@ -171,6 +171,17 @@
 
 &EMAC0 {
 	status = "okay";
+
+	phy-map = <0x2>;
+	phy-address = <0x1>;
+	phy-handle = <&phy>;
+
+	mdio {
+		phy: phy@1 {
+			compatible = "ethernet-phy-ieee802.3-c22";
+			reg = <1>;
+		};
+	};
 };
 
 &SATA1 {

+ 1 - 0
target/linux/apm821xx/sata/config-default

@@ -1,5 +1,6 @@
 # CONFIG_IKAREM is not set
 CONFIG_APOLLO3G=y
+CONFIG_BROADCOM_PHY=y
 CONFIG_EXT4_FS=y
 CONFIG_DMADEVICES=y
 CONFIG_DMA_ENGINE=y