arm: mvebu: turris_omnia: Fix setting switch CONFIG pins on new board design
PATCH 1/1 arm: mvebu: turris_omnia: Fix setting switch CONFIG pins on new board design
It seems that waiting only 10 ms after releasing LAN switch from reset is not enough for the strapping pins to latch the requested values. P6_MODE[0] is latched to 0 instead of 1.
Increasing the delay to 50 ms fixes this issue.
--- board/CZ.NIC/turris_omnia/turris_omnia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
board/CZ.NIC/turris_omnia/turris_omnia.c +1 -1
@@ -654,7 +654,7 @@ static void initialize_switch(void) ctrl[1 ] = EXT_CTL_nRES_LAN; err =omnia_mcu_write (CMD_EXT_CONTROL , ctrl,sizeof (ctrl)); -mdelay (10 ); +mdelay (50 );/* Change RGMII pins back to RGMII mode */
Signature · 1 line
2.35.1
Quoted 16 lines · On Tue, 13 Sep 2022 18:10:28 +0200 Marek Behún <[email protected]> wrote:
It seems that waiting only 10 ms after releasing LAN switch from reset is not enough for the strapping pins to latch the requested values. P6_MODE[0] is latched to 0 instead of 1.
Increasing the delay to 50 ms fixes this issue.
Signed-off-by Marek Behún <[email protected]>--- board/CZ.NIC/turris_omnia/turris_omnia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)board/CZ.NIC/turris_omnia/turris_omnia.c +0
-0
board/CZ.NIC/turris_omnia/turris_omnia.c static void initialize_switch(void) · line 660
Quoted 8 lines
board/CZ.NIC/turris_omnia/turris_omnia.c +1
-1@@ -654,7 +654,7 @@ static void initialize_switch(void) ctrl[1 ] = EXT_CTL_nRES_LAN; err =omnia_mcu_write (CMD_EXT_CONTROL , ctrl,sizeof (ctrl)); -mdelay (10 ); +mdelay (50 );/* Change RGMII pins back to RGMII mode */
I forgot to add
Quoted 7 lines · Marek Behún
It seems that waiting only 10 ms after releasing LAN switch from reset is not enough for the strapping pins to latch the requested values. P6_MODE[0] is latched to 0 instead of 1.
Increasing the delay to 50 ms fixes this issue.
Signed-off-by Marek Behún <[email protected]>
Thanks,
Stefan
Quoted 9 lines
--- board/CZ.NIC/turris_omnia/turris_omnia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)board/CZ.NIC/turris_omnia/turris_omnia.c +0
-0
board/CZ.NIC/turris_omnia/turris_omnia.c static void initialize_switch(void) · line 660
Quoted 8 lines
board/CZ.NIC/turris_omnia/turris_omnia.c +1
-1@@ -654,7 +654,7 @@ static void initialize_switch(void) ctrl[1 ] = EXT_CTL_nRES_LAN; err =omnia_mcu_write (CMD_EXT_CONTROL , ctrl,sizeof (ctrl)); -mdelay (10 ); +mdelay (50 );/* Change RGMII pins back to RGMII mode */
Viele Grüße,
Stefan Roese
Signature · 3 lines
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
Quoted 7 lines · Marek Behún
It seems that waiting only 10 ms after releasing LAN switch from reset is not enough for the strapping pins to latch the requested values. P6_MODE[0] is latched to 0 instead of 1.
Increasing the delay to 50 ms fixes this issue.
Signed-off-by Marek Behún <[email protected]>
Applied to u-boot-marvell/master
Thanks,
Stefan
Quoted 9 lines
--- board/CZ.NIC/turris_omnia/turris_omnia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)board/CZ.NIC/turris_omnia/turris_omnia.c +0
-0
board/CZ.NIC/turris_omnia/turris_omnia.c static void initialize_switch(void) · line 660
Quoted 8 lines
board/CZ.NIC/turris_omnia/turris_omnia.c +1
-1@@ -654,7 +654,7 @@ static void initialize_switch(void) ctrl[1 ] = EXT_CTL_nRES_LAN; err =omnia_mcu_write (CMD_EXT_CONTROL , ctrl,sizeof (ctrl)); -mdelay (10 ); +mdelay (50 );/* Change RGMII pins back to RGMII mode */
Viele Grüße,
Stefan Roese
Signature · 3 lines
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]