[openwrt/openwrt] apm821xx: Force Ethernet PHYID on MX60/MX60W

LEDE Commits lede-commits at lists.infradead.org
Thu Apr 12 22:54:44 PDT 2018


mkresin pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/c61c709f4e3f4331716d6e5624f7678d03b5d80c

commit c61c709f4e3f4331716d6e5624f7678d03b5d80c
Author: Christian Lamparter <chunkeey at gmail.com>
AuthorDate: Tue Apr 10 10:59:42 2018 -0500

    apm821xx: Force Ethernet PHYID on MX60/MX60W
    
    The MX60's uboot disables all the PHYs before starting linux.
    This causes the PHY/switch detection code to malfunction
    almost all of the time. To get around this, set a compatible
    flag to force PHYID.
    
    Signed-off-by: Christian Lamparter <chunkeey at gmail.com>
    Signed-off-by: Chris Blake <chrisrblake93 at gmail.com>
---
 target/linux/apm821xx/dts/meraki-mx60.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/apm821xx/dts/meraki-mx60.dts b/target/linux/apm821xx/dts/meraki-mx60.dts
index 32e5c85..cf20e2e 100644
--- a/target/linux/apm821xx/dts/meraki-mx60.dts
+++ b/target/linux/apm821xx/dts/meraki-mx60.dts
@@ -107,7 +107,7 @@
 		#address-cells = <1>;
 		#size-cells = <0>;
 		phy0: ethernet-phy at 0 {
-			device_type = "ethernet-phy";
+			compatible = "ethernet-phy-id004d.d034";
 			reg = <0>;
 			qca,ar8327-initvals = <
 				0x0010 0x40000000



More information about the lede-commits mailing list