[openwrt/openwrt] mediatek: cudy: fixes 2.5G PHY interrupt support
LEDE Commits
lede-commits at lists.infradead.org
Fri Jan 24 13:45:01 PST 2025
hauke pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/e5f3704f9a7e1117efd53df651bce7dc01f5e58e
commit e5f3704f9a7e1117efd53df651bce7dc01f5e58e
Author: Chukun Pan <amadeus at jmu.edu.cn>
AuthorDate: Mon Dec 9 23:17:06 2024 +0800
mediatek: cudy: fixes 2.5G PHY interrupt support
Fixed interrupt support for 2.5G PHY.
Removed useless phy-mode on phy node.
Tested on Cudy TR3000.
Signed-off-by: Chukun Pan <amadeus at jmu.edu.cn>
(cherry picked from commit 82b69dfaf6ca92eeffb7523295d3d81a1d54323a)
---
target/linux/mediatek/dts/mt7981b-cudy-m3000-v1.dts | 8 +++-----
target/linux/mediatek/dts/mt7981b-cudy-tr3000-v1.dts | 9 ++++-----
2 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/target/linux/mediatek/dts/mt7981b-cudy-m3000-v1.dts b/target/linux/mediatek/dts/mt7981b-cudy-m3000-v1.dts
index b1797157ac..abe40403af 100644
--- a/target/linux/mediatek/dts/mt7981b-cudy-m3000-v1.dts
+++ b/target/linux/mediatek/dts/mt7981b-cudy-m3000-v1.dts
@@ -77,7 +77,6 @@
ð {
pinctrl-names = "default";
pinctrl-0 = <&mdio_pins>;
-
status = "okay";
gmac0: mac at 0 {
@@ -105,12 +104,11 @@
rtl8221b_phy: ethernet-phy at 1 {
compatible = "ethernet-phy-ieee802.3-c45";
reg = <1>;
-
- reset-gpios = <&pio 39 GPIO_ACTIVE_LOW>;
-
- interrupts = <38 IRQ_TYPE_LEVEL_LOW>;
reset-assert-us = <100000>;
reset-deassert-us = <100000>;
+ reset-gpios = <&pio 39 GPIO_ACTIVE_LOW>;
+ interrupts = <38 IRQ_TYPE_LEVEL_LOW>;
+ interrupt-parent = <&pio>;
};
};
diff --git a/target/linux/mediatek/dts/mt7981b-cudy-tr3000-v1.dts b/target/linux/mediatek/dts/mt7981b-cudy-tr3000-v1.dts
index 31a2cf5194..2591de8520 100644
--- a/target/linux/mediatek/dts/mt7981b-cudy-tr3000-v1.dts
+++ b/target/linux/mediatek/dts/mt7981b-cudy-tr3000-v1.dts
@@ -81,7 +81,6 @@
ð {
pinctrl-names = "default";
pinctrl-0 = <&mdio_pins>;
-
status = "okay";
gmac0: mac at 0 {
@@ -105,13 +104,13 @@
&mdio_bus {
phy1: phy at 1 {
- reg = <1>;
compatible = "ethernet-phy-ieee802.3-c45";
- phy-mode = "2500base-x";
- reset-gpios = <&pio 39 GPIO_ACTIVE_LOW>;
- interrupts = <38 IRQ_TYPE_LEVEL_LOW>;
+ reg = <1>;
reset-assert-us = <100000>;
reset-deassert-us = <100000>;
+ reset-gpios = <&pio 39 GPIO_ACTIVE_LOW>;
+ interrupts = <38 IRQ_TYPE_LEVEL_LOW>;
+ interrupt-parent = <&pio>;
realtek,aldps-enable;
};
};
More information about the lede-commits
mailing list