Hello tod,
74LV595PW is I2C to GPIO expender ( I2C to 6 channel GPIO). if you want to use a PINs of processor directly to control reset of Phy.
you should do steps below:
(1) IOMUX in device tree
For exmaple, Useing PAD "NAND_CE0" to control reset of phy, open "imx6ul-pinfunc.h", and found:
#define MX6UL_PAD_NAND_CE0_B__GPIO4_IO13 0x01AC 0x0438 0x0000 0x5 0x0
so add "MX6UL_PAD_NAND_CE0_B__GPIO4_IO13" to imx6ull-14x14-evk.dts
...
imx6ul-evk {
pinctrl_hog_1: hoggrp-1 {
fsl,pins = <
MX6UL_PAD_UART1_RTS_B__GPIO1_IO19 0x17059 /* SD1 CD */
MX6UL_PAD_GPIO1_IO05__USDHC1_VSELECT 0x17059 /* SD1 VSELECT */
MX6UL_PAD_GPIO1_IO09__GPIO1_IO09 0x17059 /* SD1 RESET */
MX6UL_PAD_NAND_CE0_B__GPIO4_IO13 0x17059 /* PHY reset*/
>;
};
...
(2) Add it to fec1
In imx6ull-14x14-evk.dts:
&fec1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet1>;
phy-mode = "rmii";
phy-reset-gpios = <&gpio4 13 0>;
phy-handle = <ðphy0>;
status = "okay";
};
Have a great day,
TIC Weidong sun
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------