Skip to content

Commit

Permalink
WIFI-14438: Fix LAN port issue in Edgecore EAP105
Browse files Browse the repository at this point in the history
Signed-off-by: Tanya Singh <[email protected]>
  • Loading branch information
tanyasingh-ec committed Feb 25, 2025
1 parent 24dbba4 commit ba73333
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
18 changes: 18 additions & 0 deletions feeds/qca/ipq53xx/base-files/etc/board.d/03_gpio_switches
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh

. /lib/functions/uci-defaults.sh

board_config_update

board=$(board_name)

case $board in
edgecore,eap105)
ucidef_add_gpio_switch "eth1_phy_reset_down" "eth1_PHY_reset_down" "481" "0"
ucidef_add_gpio_switch "eth1_phy_reset_up" "eth1_PHY_reset_up" "481" "1"
;;
esac

board_config_flush

exit 0
6 changes: 4 additions & 2 deletions feeds/qca/ipq53xx/dts/ipq5332-edgecore-eap105.dts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
mdio:mdio@90000 {
pinctrl-0 = <&mdio1_pins>;
pinctrl-names = "default";
phy-reset-gpio = <&tlmm 24 GPIO_ACTIVE_LOW &tlmm 22 GPIO_ACTIVE_LOW>;
phy-reset-gpios = <&tlmm 24 GPIO_ACTIVE_LOW>;
phyaddr_fixup = <0xC90F018>;
uniphyaddr_fixup = <0xC90F014>;
mdio_clk_fixup; /* MDIO clock sequence fix up flag */
Expand All @@ -46,6 +46,8 @@
phy0: ethernet-phy@0 {
reg = <2>;
compatible = "ethernet-phy-id001c.c916";
realtek,clkout-disable;
realtek,aldps-enable;
};

phy1: ethernet-phy@1 {
Expand Down Expand Up @@ -97,7 +99,7 @@
compatible = "qcom,nss-dp";
qcom,id = <1>;
reg = <0x3a500000 0x4000>;
qcom,mactype = <1>;
qcom,mactype = <0>;
local-mac-address = [000000000000];
mdio-bus = <&mdio>;
qcom,phy-mdio-addr = <2>;
Expand Down

0 comments on commit ba73333

Please sign in to comment.