imx: ventana: remove phy gpio reset from dt
authorTim Harvey <tharvey@gateworks.com>
Wed, 29 Sep 2021 22:04:18 +0000 (15:04 -0700)
committerStefano Babic <sbabic@denx.de>
Thu, 7 Oct 2021 14:53:50 +0000 (16:53 +0200)
We configure network phy configuration for internal delay, LED config,
and clock config. If we leave the phy reset gpio defined in dt the
kernel may issue a reset to the phy and break these configs. While some
may be handled by a kernel phy driver, others may not (typically LED
config).

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
board/gateworks/gw_ventana/gw_ventana.c

index 7962982..1646806 100644 (file)
@@ -1048,6 +1048,14 @@ int ft_board_setup(void *blob, struct bd_info *bd)
 #endif
 
        /*
+        * remove reset gpio control as we configure the PHY registers
+        * for internal delay, LED config, and clock config in the bootloader
+        */
+       i = fdt_node_offset_by_compatible(blob, -1, "fsl,imx6q-fec");
+       if (i)
+               fdt_delprop(blob, i, "phy-reset-gpios");
+
+       /*
         * Peripheral Config:
         *  remove nodes by alias path if EEPROM config tells us the
         *  peripheral is not loaded on the board.