Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4936

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

$
0
0
May I ask you that you have sorted out how to write the overlay with pullups enabled?

Code:

fragment@20 {target = <&mcp23017_20>;mcp23017_20_irq: __overlay__ {interrupt-controller;interrupt-parent = <&gpio>;interrupts = <18 2>;interrupt-names = "mcp23017@20 irq";#interrupt-cells=<2>;microchip,irq-mirror;pinctrl-names = "default";pinctrl-0 = <&mcp23017_20_pins>, <&gpio20pullups>;gpio20pullups: pinmux {pins = "gpio11", "gpio12", "gpio13", "gpio14", "gpio15";bias-pull-up;};};};
The fragment should enable pull-ups on GPIO11 to GPIO15. Replace your exiting fragment20 with this one and report back.

I've tested this with a gpio-mouse driver (that's just buttons connected to the MCP23017 for mimicking a mouse - viewtopic.php?t=381494 - and as evtest gives results I assume that works (as there is no external pull-up connected)

Statistics: Posted by aBUGSworstnightmare — Tue Dec 24, 2024 5:28 pm



Viewing all articles
Browse latest Browse all 4936

Trending Articles