diff mbox series

[LEDE-DEV,5/5] apm821xx: MyBook Live convert to DT PHY

Message ID 67f5fef6a743c3d1b53d3e5c941695961d5acd99.1511905744.git.chunkeey@gmail.com
State Accepted
Delegated to: John Crispin
Headers show
Series [LEDE-DEV,1/5] build: append metadata for supported images.gz | expand

Commit Message

Christian Lamparter Nov. 28, 2017, 9:51 p.m. UTC
Changes MyBook Live to use DT PHY probing and the broadcom phy driver.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
---
 target/linux/apm821xx/dts/apollo3g.dtsi   | 11 +++++++++++
 target/linux/apm821xx/sata/config-default |  1 +
 2 files changed, 12 insertions(+)
diff mbox series

Patch

diff --git a/target/linux/apm821xx/dts/apollo3g.dtsi b/target/linux/apm821xx/dts/apollo3g.dtsi
index 09a8b8518c..e88973f8d2 100644
--- a/target/linux/apm821xx/dts/apollo3g.dtsi
+++ b/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 {
diff --git a/target/linux/apm821xx/sata/config-default b/target/linux/apm821xx/sata/config-default
index b8342de049..7ca6bd4d3d 100644
--- a/target/linux/apm821xx/sata/config-default
+++ b/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