Re: [PATCH v2 4/4] net: dsa: vsc73xx: Assert reset if iCPU is enabled
From: PaweÅ Dembicki
Date: Thu Jul 04 2019 - 17:57:33 EST
On 4/7/19 09:22 Linus Walleij <linus.walleij@xxxxxxxxxx> wrote:
>
> My devices do not have direct access to the reset line so I
> can't assert reset no matter how I try, if it works for you, the
> code is certainly better like this.
>
In P2020RDB, VSC7385 reset is connected to GPIO. U-boot put binary
file to iCPU and make VSC7385 unmanaged.
However reset flush internal memory and iCPU stop.
In this case bootlog looks like that:
[ 2.989047] vsc73xx-platform ffb00000.switch: VSC7385 (rev: 2) switch found
[ 2.996192] vsc73xx-platform ffb00000.switch: iCPU enabled boots
from PI/SI, no external memory
[ 3.005057] vsc73xx-platform ffb00000.switch: Chip seems to be out
of control. Assert reset and try again.
[ 3.045034] vsc73xx-platform ffb00000.switch: VSC7385 (rev: 2) switch found
[ 3.052171] vsc73xx-platform ffb00000.switch: iCPU disabled, no
external memory
Best Regards,
Pawel Dembicki