Thread (6 messages) 6 messages, 4 authors, 2022-04-06

Re: [PATCH 2/2] HID: mcp2221: configure GP pins for GPIO function

flat view

From: Linus Walleij <hidden>
Date: 2021-09-16 23:14:36

On Wed, Aug 18, 2021 at 5:28 PM Tobias Junghans
[off-list ref] wrote:
Per default the GP pins of an MCP2221 are designated to a certain
dedicated or alternate function. While it's possible to change these
defaults by manually updating the internal flash, it's much more
convenient and safe to configure the GP pins as GPIOs automatically
at runtime whenever the corresponding GPIO line is requested. The
previous setting is restored as soon as the GPIO line is freed again.

Signed-off-by: Tobias Junghans <redacted>
My sympathies are usually on the side of users trying to make
use of their hardware and they should be able to.

For other wrong configured GPIO expanders such as FTDI
a publicly available firmware reflash tool exists, and if that does
not exist for this hardware, I think this approach is legitimate.

Acked-by: Linus Walleij <redacted>

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help