[source] apm821xx: MyBook Live convert to DT PHY

LEDE Commits lede-commits at lists.infradead.org
Thu Dec 14 00:29:49 PST 2017


blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/0cad9f09bec5c734fa46db0cf8a8a2104c5b2ad1

commit 0cad9f09bec5c734fa46db0cf8a8a2104c5b2ad1
Author: Christian Lamparter <chunkeey at gmail.com>
AuthorDate: Tue Nov 28 22:51:09 2017 +0100

    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 <chunkeey at gmail.com>
---
 target/linux/apm821xx/dts/apollo3g.dtsi   | 11 +++++++++++
 target/linux/apm821xx/sata/config-default |  1 +
 2 files changed, 12 insertions(+)

diff --git a/target/linux/apm821xx/dts/apollo3g.dtsi b/target/linux/apm821xx/dts/apollo3g.dtsi
index 09a8b85..e88973f 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 at 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 b8342de..7ca6bd4 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



More information about the lede-commits mailing list