diff --git a/target/linux/mediatek/dts/mt7981b-cudy-ap3000-v1.dts b/target/linux/mediatek/dts/mt7981b-cudy-ap3000-v1.dts index b4c4e9a5c0..7ebb90df9e 100644 --- a/target/linux/mediatek/dts/mt7981b-cudy-ap3000-v1.dts +++ b/target/linux/mediatek/dts/mt7981b-cudy-ap3000-v1.dts @@ -89,13 +89,19 @@ }; &mdio_bus { + /* We need to have the reset GPIO on the MDIO bus node, + * otherwise the PHY would be held in reset during PHY detection */ + reset-gpios = <&pio 39 GPIO_ACTIVE_LOW>; + reset-delay-us = <100000>; + reset-post-delay-us = <100000>; + phy1: phy@1 { + /* Either Realtek RTL8221B-VB-CG or Motorcomm YT8821, + * depending on HW revision */ + compatible = "ethernet-phy-ieee802.3-c45"; reg = <1>; interrupt-parent = <&pio>; interrupts = <38 IRQ_TYPE_LEVEL_LOW>; - reset-gpios = <&pio 39 GPIO_ACTIVE_LOW>; - reset-assert-us = <100000>; - reset-deassert-us = <100000>; }; }; diff --git a/target/linux/mediatek/image/filogic.mk b/target/linux/mediatek/image/filogic.mk index 7fefca3a11..5f15c7f9a9 100644 --- a/target/linux/mediatek/image/filogic.mk +++ b/target/linux/mediatek/image/filogic.mk @@ -1096,7 +1096,7 @@ define Device/cudy_ap3000-v1 IMAGE_SIZE := 65536k KERNEL_IN_UBI := 1 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata - DEVICE_PACKAGES := kmod-mt7915e kmod-mt7981-firmware mt7981-wo-firmware + DEVICE_PACKAGES := kmod-mt7915e kmod-mt7981-firmware mt7981-wo-firmware kmod-phy-motorcomm endef TARGET_DEVICES += cudy_ap3000-v1