As you're on CM4, use SPI6 instead?
Don't worry about the CE lines - the kernel can use any GPIO, so 17 & 18 are fine.$ pinctrl funcs | grep SPI6
18, GPIO18, PCM_CLK, SD10, DPI_D14, SPI6_CE0_N, SPI1_CE0_N, PWM0_0
19, GPIO19, PCM_FS, SD11, DPI_D15, SPI6_MISO, SPI1_MISO, PWM0_1
20, GPIO20, PCM_DIN, SD12, DPI_D16, SPI6_MOSI, SPI1_MOSI, GPCLK0
21, GPIO21, PCM_DOUT, SD13, DPI_D17, SPI6_SCLK, SPI1_SCLK, GPCLK1
27, GPIO27, SD0_DAT3, -, DPI_D23, SD1_DAT3, ARM_TMS, SPI6_CE1_N
Code:
q$ dtoverlay -h spi6-2csName: spi6-2csInfo: Enables spi6 with two chip select (CS) lines and associated spidev dev nodes. The gpio pin numbers for the CS lines and spidev device node creation are configurable. BCM2711 only.Usage: dtoverlay=spi6-2cs,<param>=<val>Params: cs0_pin GPIO pin for CS0 (default 18 - BCM SPI6_CE0). cs1_pin GPIO pin for CS1 (default 27 - BCM SPI6_CE1). cs0_spidev Set to 'off' to prevent the creation of a userspace device node /dev/spidev6.0 (default is 'on' or enabled). cs1_spidev Set to 'off' to prevent the creation of a userspace device node /dev/spidev6.1 (default is 'on' or enabled).
Statistics: Posted by PhilE — Wed Nov 20, 2024 10:38 am