]> git.baikalelectronics.ru Git - kernel.git/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)
commit459ad604faef18f215a6aabd5a51a592873aacae
tree387aaedc3da7c46d8639f7d5a54d4186e1e7445f
parente70ab16a944240d675ae486cb21d85a8c8791401
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