Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spi: bcm2835: Support spi0-0cs and SPI_NO_CS mode #5837

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

pelwell
Copy link
Contributor

@pelwell pelwell commented Jan 8, 2024

The forced conversion of native CS lines into software CS lines is done whether or not the controller has been given any CS lines to use. This breaks the use of the spi0-0cs overlay to prevent SPI from claiming any CS lines, particularly with spidev which doesn't pass in the SPI_NO_CS flag at creation.

Use the presence of an empty cs-gpios property as an indication that no CS lines should be used, bypassing the native CS conversion code.

See: #5835

The forced conversion of native CS lines into software CS lines is done
whether or not the controller has been given any CS lines to use. This
breaks the use of the spi0-0cs overlay to prevent SPI from claiming any
CS lines, particularly with spidev which doesn't pass in the SPI_NO_CS
flag at creation.

Use the presence of an empty cs-gpios property as an indication that no
CS lines should be used, bypassing the native CS conversion code.

See: raspberrypi#5835

Signed-off-by: Phil Elwell <[email protected]>
@pelwell pelwell merged commit 5d9075e into raspberrypi:rpi-6.1.y Jan 8, 2024
12 checks passed
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Jan 10, 2024
kernel: ARM: dts: bcm2712-rpi-5-b: Add eth_ledx parameters
See: raspberrypi/linux#5826

kernel: ARM: dts: bcm2712-rpi-5-b: Add fan speed dtparams
See: raspberrypi/linux#5822

kernel: drm/vc4: don't check if plane->state->fb == state->fb
See: raspberrypi/linux#5832

kernel: spi: bcm2835: Support spi0-0cs and SPI_NO_CS mode
See: raspberrypi/linux#5837

kernel: Add link freq Control for IMX519 and Arducam64MP
See: raspberrypi/linux#5841

kernel: watchdog: bcm2835_wdt: Fix WDIOC_SETTIMEOUT handling
See: raspberrypi/linux#5838
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Jan 10, 2024
kernel: ARM: dts: bcm2712-rpi-5-b: Add eth_ledx parameters
See: raspberrypi/linux#5826

kernel: ARM: dts: bcm2712-rpi-5-b: Add fan speed dtparams
See: raspberrypi/linux#5822

kernel: drm/vc4: don't check if plane->state->fb == state->fb
See: raspberrypi/linux#5832

kernel: spi: bcm2835: Support spi0-0cs and SPI_NO_CS mode
See: raspberrypi/linux#5837

kernel: Add link freq Control for IMX519 and Arducam64MP
See: raspberrypi/linux#5841

kernel: watchdog: bcm2835_wdt: Fix WDIOC_SETTIMEOUT handling
See: raspberrypi/linux#5838
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant