Skip to content

Conversation

pelwell
Copy link
Contributor

@pelwell pelwell commented Aug 12, 2025

[1] Removed the sc16is752-spi1 overlay, replacing it with an entry in overlay_map.dts that invokes sc16is75x-spi with specific parameters. This does not work because it fails to configure the SPI1 interface. Most such overlays would require the respective SPI interface to have already been configured using one of the spi- overlays, but it is not possible to do that using overlay_map, and it is unreasonable to suddenly impose that requirement on users.

Work around that specific problem by adding an extra parameter to sc16is75x to configure SPI1. It's not ideal, but better than a complete dedicated overlay.

Link: #6962
Fixes: ce20a8f ("overlays: sc16is75x: Add generic SPI overlay")
Signed-off-by: Phil Elwell phil@raspberrypi.com

[1] commit ce20a8f ("overlays: sc16is75x: Add generic SPI overlay")

[1] Removed the sc16is752-spi1 overlay, replacing it with an entry in
overlay_map.dts that invokes sc16is75x-spi with specific parameters.
This does not work because it fails to configure the SPI1 interface.
Most such overlays would require the respective SPI interface to have
already been configured using one of the spi<n>-<m> overlays, but it is
not possible to do that using overlay_map, and it is unreasonable to
suddenly impose that requirement on users.

Work around that specific problem by adding an extra parameter to
sc16is75x to configure SPI1. It's not ideal, but better than a complete
dedicated overlay.

Link: raspberrypi#6962
Fixes: ce20a8f ("overlays: sc16is75x: Add generic SPI overlay")
Signed-off-by: Phil Elwell <phil@raspberrypi.com>

[1] commit ce20a8f ("overlays: sc16is75x: Add generic SPI overlay")
@nbuchwitz
Copy link
Contributor

A better approach, agreed.

Only little nit: name the new arg something like spi1-1cs-compat to even more state that this is to deal with legacy stuff

@pelwell pelwell merged commit 1413185 into raspberrypi:rpi-6.12.y Aug 13, 2025
11 of 12 checks passed
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Aug 13, 2025
See: raspberrypi/linux#6974

kernel: pisp_be: Stride alignment
See: raspberrypi/linux#6985

kernel: drm/panel: ilitek-ili9881c: Restore missing lanes configuration for nwe080 panel
See: raspberrypi/linux#6987

kernel: drivers: media: pisp_be: Fix alignment for V4L2_PIX_FMT_SRGGB8
See: raspberrypi/linux#6988

kernel: overlays: Fix sc16is752-spi1 emulation
See: raspberrypi/linux#6996

kernel: arm64/dma-mapping: Fix arch_sync_dma_for_device to respect dir parameter
See: raspberrypi/linux#6995
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Aug 13, 2025
See: raspberrypi/linux#6974

kernel: pisp_be: Stride alignment
See: raspberrypi/linux#6985

kernel: drm/panel: ilitek-ili9881c: Restore missing lanes configuration for nwe080 panel
See: raspberrypi/linux#6987

kernel: drivers: media: pisp_be: Fix alignment for V4L2_PIX_FMT_SRGGB8
See: raspberrypi/linux#6988

kernel: overlays: Fix sc16is752-spi1 emulation
See: raspberrypi/linux#6996

kernel: arm64/dma-mapping: Fix arch_sync_dma_for_device to respect dir parameter
See: raspberrypi/linux#6995
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.

2 participants