mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-31 08:25:29 +00:00
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@jmu.edu.cn>
This commit is contained in:
parent
ab375a3484
commit
82b69dfaf6
@ -77,7 +77,6 @@
|
|||||||
ð {
|
ð {
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&mdio_pins>;
|
pinctrl-0 = <&mdio_pins>;
|
||||||
|
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
gmac0: mac@0 {
|
gmac0: mac@0 {
|
||||||
@ -105,12 +104,11 @@
|
|||||||
rtl8221b_phy: ethernet-phy@1 {
|
rtl8221b_phy: ethernet-phy@1 {
|
||||||
compatible = "ethernet-phy-ieee802.3-c45";
|
compatible = "ethernet-phy-ieee802.3-c45";
|
||||||
reg = <1>;
|
reg = <1>;
|
||||||
|
|
||||||
reset-gpios = <&pio 39 GPIO_ACTIVE_LOW>;
|
|
||||||
|
|
||||||
interrupts = <38 IRQ_TYPE_LEVEL_LOW>;
|
|
||||||
reset-assert-us = <100000>;
|
reset-assert-us = <100000>;
|
||||||
reset-deassert-us = <100000>;
|
reset-deassert-us = <100000>;
|
||||||
|
reset-gpios = <&pio 39 GPIO_ACTIVE_LOW>;
|
||||||
|
interrupts = <38 IRQ_TYPE_LEVEL_LOW>;
|
||||||
|
interrupt-parent = <&pio>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -81,7 +81,6 @@
|
|||||||
ð {
|
ð {
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&mdio_pins>;
|
pinctrl-0 = <&mdio_pins>;
|
||||||
|
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
gmac0: mac@0 {
|
gmac0: mac@0 {
|
||||||
@ -105,13 +104,13 @@
|
|||||||
|
|
||||||
&mdio_bus {
|
&mdio_bus {
|
||||||
phy1: phy@1 {
|
phy1: phy@1 {
|
||||||
reg = <1>;
|
|
||||||
compatible = "ethernet-phy-ieee802.3-c45";
|
compatible = "ethernet-phy-ieee802.3-c45";
|
||||||
phy-mode = "2500base-x";
|
reg = <1>;
|
||||||
reset-gpios = <&pio 39 GPIO_ACTIVE_LOW>;
|
|
||||||
interrupts = <38 IRQ_TYPE_LEVEL_LOW>;
|
|
||||||
reset-assert-us = <100000>;
|
reset-assert-us = <100000>;
|
||||||
reset-deassert-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;
|
realtek,aldps-enable;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user