Skip to content

Commit

Permalink
ipq806x: ap3935: Use rgmii-id mode for LAN1
Browse files Browse the repository at this point in the history
Fix issue with LAN1 interface on ap3935 devices, where the LAN
1interface won't come up after boot unless the bootloader has
initialized the network stack. Use of `fixed-link` in the prior code
kept the driver from clobbering PHY settings, but now that the driver
supports rgmii-id phy-mode, we can just use that.

Signed-off-by: Bryan Berg <[email protected]>
  • Loading branch information
berg committed May 18, 2024
1 parent 004ff4e commit 138ba37
Showing 1 changed file with 19 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,21 @@
bias-pull-up;
};
};

rgmii0_pins: rgmii0_pins {
mux {
pins = "gpio2", "gpio66";
drive-strength = <8>;
bias-disable;
};

tx {
pins = "gpio53", "gpio64";
drive-strength = <2>;
bias-pull-down;
input-enable;
};
};
};

&gsbi2 {
Expand Down Expand Up @@ -316,16 +331,14 @@
qcom,id = <0>;
mdiobus = <&mdio0>;

phy-mode = "rgmii";
pinctrl-0 = <&rgmii0_pins>;
pinctrl-names = "default";

phy-mode = "rgmii-id";
phy-handle = <&phy1>;

nvmem-cells = <&ethaddr 0>;
nvmem-cell-names = "mac-address";

fixed-link {
speed = <1000>;
full-duplex;
};
};

&gmac2 {
Expand Down

0 comments on commit 138ba37

Please sign in to comment.