]> 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)
commit48699428c91b4ec834bfc3e8970cab4b222db1fd
tree387aaedc3da7c46d8639f7d5a54d4186e1e7445f
parentf3ff55e166ec7e23890ee601a6a79796957f65ea
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