I want to configure phy reset pin in the device tree, but I refer to some of your documents and posts for configuration, but it doesn't work, can you tell me how to configure correctly
i.MX93 RMII debug tips - NXP Community
This is my device tree configuration
&eqos {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_eqos>;
phy-mode = "rgmii-id";
phy-handle = <ðphy1>;
fsl,magic-packet;
phy-reset-gpios = <&gpio3 22 GPIO_ACTIVE_HIGH>;
phy-reset-duration = <200>;
phy-reset-post-delay=<20>;
status = "okay";
mdio {
compatible = "snps,dwmac-mdio";
#address-cells = <1>;
#size-cells = <0>;
clock-frequency = <5000000>;
// snps,reset-gpios = <&gpio3 22 GPIO_ACTIVE_HIGH>;
ethphy1: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <4>;
eee-broken-1000t;
// reset-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
// reset-assert-us = <10000>;
// reset-deassert-us = <20000>;
};
};
};
&fec {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_fec>;
phy-mode = "rgmii-id";
phy-handle = <ðphy2>;
fsl,magic-packet;
phy-reset-duration = <20>;
phy-reset-gpios = <&gpio3 24 GPIO_ACTIVE_LOW>;
phy-reset-post-delay=<20>;
status = "okay";
mdio {
compatible = "snps,dwmac-mdio";
#address-cells = <1>;
#size-cells = <0>;
clock-frequency = <5000000>;
ethphy2: ethernet-phy@2 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <6>;
eee-broken-1000t;
// reset-gpios = <&gpio3 24 GPIO_ACTIVE_LOW>;
// reset-assert-us = <10000>;
// reset-deassert-us = <20000>;
};
};
};