[SOLVED] Mcp251x CAN driver errors.

MaryemAyadi
New Member Posts: 4 ✭
I am trying to setup mcp251x on UP2. When I run dmesg | grep mcp , this is what I get:
[ 3394.625374] device: 'spi1.0': device_add [ 3394.625384] bus: 'spi': add device spi1.0 [ 3394.625460] PM: Adding info for spi:spi1.0 [ 3394.625478] bus: 'spi': driver_probe_device: matched device spi1.0 with driver mcp251x [ 3394.625480] bus: 'spi': really_probe: probing driver mcp251x with device spi1.0 ** [ 3394.625487] mcp251x spi1.0: no default pinctrl state** [ 3394.625494] devices_kset: Moving spi1.0 to end of list [ 3394.655161] mcp251x spi1.0: Cannot initialize MCP2515. Wrong wiring? [ 3394.662335] mcp251x spi1.0: Probe failed, err=19 [ 3394.667521] mcp251x: probe of spi1.0 rejects match -19
What does the error "no default pinctrl state" refer to ?
Any help ??
Comments
-
I hope, You have resolved your problem,.
Anyway, check first your devicetree, that all pincontrol are declared and in correct state.
For instance google "mcp2515 linux devicetree"
Tagged
Categories
- 303 All Categories
- 104 Announcements & News
- 52 Product News - New Product/Product Change Notice/ End-of-life
- 184 Welcome Developers!
- 53 Unboxing & Project Sharing
- 24 Tech Updates
- 590 UP Products
- 6 UP Xtreme i12
- 1 UP Squared Pro 7000
- 1 UP Element i12 Edge
- 13 UP Squared V2
- 41 UP 4000
- 24 UP Xtreme i11
- 34 UP Squared 6000
- 48 UP Squared Pro
- 140 UP Xtreme
- 826 UP Squared
- 1.4K UP Board
- 89 UP Core Plus
- 221 UP Core
- 3 UP Xtreme Lite
- 44 UP AI Edge
- 215 Starter Kits & Peripheral