Quantcast
Viewing all articles
Browse latest Browse all 5235

Device Tree • Re: MCP23017 overlay error -EIO: can't write IOCON 32

I suspect that part of the solution to enabling the pulls will be adding a gpio-ranges declaration to provide the mapping between GPIO and pinctrl/pinconf spaces. It would look something like this:

Code:

mcp23017_20: mcp@20 {...gpio-ranges = <&mcp23017_20 0 0 16>;};
I just tried that, and the device defers probing (on Pi5 at least)

Code:

~ $ cat /sys/kernel/debug/devices_deferred 14-0020mcp230xx: can't add GPIO chip
Presumably it's objecting as it wants to link to itself, although all the other examples appear to do that happily.

Statistics: Posted by 6by9 — Fri Dec 20, 2024 6:04 pm



Viewing all articles
Browse latest Browse all 5235

Trending Articles