]> git.itanic.dy.fi Git - linux-stable/commit
net: dsa: qca8k: introduce reset via gpio feature
authorChristian Lamparter <chunkeey@gmail.com>
Tue, 25 Jun 2019 08:41:51 +0000 (10:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Jun 2019 18:17:30 +0000 (11:17 -0700)
commita653f2f538f9d3e2d1f1445f74a47bfdace85c2e
tree387aaedc3da7c46d8639f7d5a54d4186e1e7445f
parente7dd8a894830ca2d7b96d35dd5405993b0cfe32c
net: dsa: qca8k: introduce reset via gpio feature

The QCA8337(N) has a RESETn signal on Pin B42 that
triggers a chip reset if the line is pulled low.
The datasheet says that: "The active low duration
must be greater than 10 ms".

This can hopefully fix some of the issues related
to pin strapping in OpenWrt for the EA8500 which
suffers from detection issues after a SoC reset.

Please note that the qca8k_probe() function does
currently require to read the chip's revision
register for identification purposes.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca8k.c
drivers/net/dsa/qca8k.h