Skip to content

Commit

Permalink
ramips: fix Gigabit Ethernet port of the HiWiFi HC5861
Browse files Browse the repository at this point in the history
HiWiFi HC5861 has a GbE port which connected to the RTL8211E PHY
chip. This patch adds the missing Realtek PHY driver package and
sets the correct external PHYs base address to make it work again.

Signed-off-by: Shiji Yang <[email protected]>
(cherry picked from commit f025135)
  • Loading branch information
DragonBluep authored and hauke committed Oct 30, 2023
1 parent 2616431 commit ed6e136
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

&ethernet {
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins>;
pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;

nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
Expand All @@ -93,6 +93,10 @@
};
};

&gsw {
mediatek,ephy-base = /bits/ 8 <12>;
};

&pcie {
status = "okay";
};
Expand Down
2 changes: 1 addition & 1 deletion target/linux/ramips/image/mt7620.mk
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ define Device/hiwifi_hc5861
DEVICE_VENDOR := HiWiFi
DEVICE_MODEL := HC5861
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 \
kmod-usb-ledtrig-usbport
kmod-phy-realtek kmod-usb-ledtrig-usbport
SUPPORTED_DEVICES += hc5861
endef
TARGET_DEVICES += hiwifi_hc5861
Expand Down

0 comments on commit ed6e136

Please sign in to comment.