Re: mcp251xfd on RPi 5.4 downstream

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/20/20 2:09 PM, Drew Fustini wrote:
>     Note: It's only one overlay that can be used multiple times, here for a
>     mcp251xfd on spi0/cs0 and one one spi0/cs1:
> 
>     > dtoverlay=mcp251xfd,spi0-0,interrupt=25,rx_interrupt=27
>     > dtoverlay=mcp251xfd,spi0-1,interrupt=5,rx_interrupt=13
> 
>     For devices on spi1 or spi2, the interfaces should be enabled with one of the
>     spi1-1/2/3cs and/or spi2-1/2/3cs overlays.
> 
> Is it possible to specify gpio pin for CS in dtoverlay?

Let me see....Untested example though :D

enable spi1 with 2 chip selects, use pin 23 for CS0 and pin 42 for CS1:

| dtoverlay=spi1-2cs,cs0_pin=23,cs1_pin=42

Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux