Skip to content

MCP23s17 gpio expander troubles in linux 4.14 #2311

@dykon

Description

@dykon

Hello, I am trying to use MCP23s17 with my Raspberry pi 3 linux 4.14. I use a default Overlay.

https://github.com/raspberrypi/linux/blob/6a2927dd95b32c92b0badfaf0d18efb20c8a50c5/arch/arm/boot/dts/overlays/mcp23s17-overlay.dts

my config.txt:

dtoverlay=spi1-2cs
dtoverlay=mcp23s17,s17-spi1-0-present=1,s17-spi1-0-int-gpio=24

I get this massage in

sudo vcdbg log msg

001898.409: brfs: File read: /mfs/sd/overlays/mcp23s17.dtbo
002044.836: Loaded overlay 'mcp23s17'
002044.856: dtparam: s17-spi1-0-present=1
002052.266: dtparam: s17-spi1-0-int-gpio=24
003313.325: Device tree loaded to 0x2eff9800 (size 0x6702)

so my Overlay is loaded and i can use it, but in /dev I get

crw-rw---- 1 root gpio    254,   0 Dec 21 11:00 gpiochip0
crw-rw---- 1 root gpio    254,   1 Dec 21 11:00 gpiochip1
crw-rw---- 1 root gpio    254,   2 Dec 21 11:00 gpiochip2
crw-rw---- 1 root gpio    248,   0 Dec 21 11:00 gpiomem

no gpiochip 3, so, it means that my MCP23s17 in not in the list and i can not grap in it. This problem appeared in Linux 4.14 in linux 4.09 everything was perfect.

What is the solution for this problem?
Thanks a lot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions